Ideas Support topic

Discussion forum for MOD Writers regarding MOD Development.
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10551
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Ideas Support topic

Post by Noxwizard »

Are you running PHP 5.3.0 or greater?
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
Anuj Dhawan
Registered User
Posts: 378
Joined: Sat Aug 10, 2013 6:44 pm

Re: Ideas Support topic

Post by Anuj Dhawan »

PHP 5.2.17.
Thanks,
Anuj Dhawan
Registered User
Posts: 378
Joined: Sat Aug 10, 2013 6:44 pm

Re: Ideas Support topic

Post by Anuj Dhawan »

Is there some role of PHP version as well here, for the installation of this "MOD"?
Thanks,
User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: Ideas Support topic

Post by callumacrae »

Anuj Dhawan wrote:Is there some role of PHP version as well here, for the installation of this "MOD"?
I have no idea what is causing the problem (I haven't written any PHP for ages), but I know that updating your PHP would fix it - and it's probably a good idea anyway, as you're running a PHP version too low to update to phpBB 3.1.

EDIT: __DIR__ was added in PHP 5.3, apparently. Either update your PHP (recommended), or replace __DIR__ with dirname(__FILE__).
macr.ae = my website. you probably won't like it.
Proud user ofProud user of
Anuj Dhawan
Registered User
Posts: 378
Joined: Sat Aug 10, 2013 6:44 pm

Re: Ideas Support topic

Post by Anuj Dhawan »

Thanks for the hint callumacrae, this helps. Appreciate your time.

This solved two problem of mine - first I had a warning in Admin Panel about the PHP version , which I had been ignoring all while and second this 'idea-MOD' was not working.

I thought that the host has to update the PHP version and not me but it happened to be other way round.I got it going my updating .htaccess file though and 'idea MOD' seems to work now. Though I still have some follow up:

1. Whenever a new idea is posted, the author of its comes as "Anonymous", why?
2. Can we delete the idea itself? I'm able to delete "the posts made by idea" but not the idea itself.


Edit: I realized that I've deleted the underlying topics and not the idea...oops I think that's the reason 2 point, above, comes in... :oops:
Thanks,
Anuj Dhawan
Registered User
Posts: 378
Joined: Sat Aug 10, 2013 6:44 pm

Re: Ideas Support topic

Post by Anuj Dhawan »

With some more time with this and I could solve the first query here:
Anuj Dhawan wrote:1. Whenever a new idea is posted, the author of its comes as "Anonymous", why?
2. Can we delete the idea itself? I'm able to delete "the posts made by idea" but not the idea itself.


Edit: I realized that I've deleted the underlying topics and not the idea...oops I think that's the reason 2 point, above, comes in... :oops:
1. I've changed this in the ideas/includes/ideas.php file

Code: Select all

'poster_id'			=> IDEAS_POSTER_ID,
to

Code: Select all

poster_id'			=> $user->data['user_id'],
and this seems to work so far.

2. I did not get a work around for second query yet - can we delete the idea if the "posts created by idea are itself deleted"? Possibly someone can assist.
Thanks,
Anuj Dhawan
Registered User
Posts: 378
Joined: Sat Aug 10, 2013 6:44 pm

Re: Ideas Support topic

Post by Anuj Dhawan »

Anuj Dhawan wrote:2. Can we delete the idea itself? I'm able to delete "the posts made by idea" but not the idea itself.


Edit: I realized that I've deleted the underlying topics and not the idea...oops I think that's the reason 2 point, above, comes in... :oops:
Is there any way round for that. Please advise.
Thanks,
Anuj Dhawan
Registered User
Posts: 378
Joined: Sat Aug 10, 2013 6:44 pm

Re: Ideas Support topic

Post by Anuj Dhawan »

Hi,

I've this "Ideas "MOD" " on my board and at "Ideas Home" I see the heading as "phpBB Ideas" - is there any way to change it to something different, e.g., "New Ideas"? Please advise.
Thanks,
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Ideas Support topic

Post by Oyabun1 »

Anuj Dhawan wrote:I see the heading as "phpBB Ideas" - is there any way to change it to something different, e.g., "New Ideas"?
Open /ideas/template/index_body.html

Find

Code: Select all

<h2>phpBB Ideas</h2>
Replace phpBB Ideas with your desired text.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Anuj Dhawan
Registered User
Posts: 378
Joined: Sat Aug 10, 2013 6:44 pm

Re: Ideas Support topic

Post by Anuj Dhawan »

Thanks - this did the trick. Appreciate your time.
Thanks,
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: Ideas Support topic

Post by Jessica »

http://chenschool.elementfx.com/phpBB3/ideas/index.php

There's nothing under Top Ideas but when I go click View All one idea appears. So I don't know why that idea isn't appearing on the ideas index page..
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: Ideas Support topic

Post by Jessica »

Any help here...?

Has development for the Ideas Center stopped or something? It's been given barely any attention. I would say none at all
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: Ideas Support topic

Post by Jessica »

Jessica wrote:http://chenschool.elementfx.com/phpBB3/ideas/index.php

There's nothing under Top Ideas but when I go click View All one idea appears. So I don't know why that idea isn't appearing on the ideas index page..
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
Anuj Dhawan
Registered User
Posts: 378
Joined: Sat Aug 10, 2013 6:44 pm

Re: Ideas Support topic

Post by Anuj Dhawan »

My knowledge about phpBB development is limited as of now, however one observation I've which might help you. When you say
There's nothing under Top Ideas but when I go click View All one idea appears. So I don't know why that idea isn't appearing on the ideas index page..
- are you logged in and then you see "no idea/s listed", when you click on "View All..."? Because as a guest when I click on "View All...", is shows this error:
General Error
SQL ERROR [ mysql4 ]

Unknown column 'ideas_status' in 'where clause' [1054]
I think that gives a clue.

Hope this helps.
Thanks,
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: Ideas Support topic

Post by Jessica »

I just fixed that error - don't think it's related to the top ideas issue though :/ the general error's gone (I hope) but the top ideas still isn't appearing on the Ideas index page

I think this file is relevant to the top ideas table?

/ideas/template/index_body.html

Code: Select all

<!-- INCLUDE overall_header.html -->

<h2>phpBB Ideas</h2>

<!-- IF S_USER_LOGGED_IN -->
<a href="posting.php" class="newidea"><span></span></a>
<!-- ENDIF -->

<div style="overflow: auto">
	<div style="width: 49%; float: left;">
		<div class="forabg">
			<div class="inner"><span class="corners-top"><span></span></span>
			<ul class="topiclist">
				<li class="header">
					<dl class="icon">
						<dt><span class="wrap-content">{L_LATEST_IDEAS}</span></dt>
						<dd class="posts">{L_RATING}</dd>
					</dl>
				</li>
			</ul>
			<ul class="topiclist forums">
				<!-- BEGIN latest_ideas -->
				<li class="row">
					<dl class="icon" style="background-image: url({T_IMAGESET_PATH}/forum_<!-- IF not latest_ideas.READ -->un<!-- ENDIF -->read.gif); background-repeat: no-repeat;">
						<dt title="Read posts">
							<a href="{latest_ideas.LINK}" class="forumtitle">{latest_ideas.TITLE}</a><br />
							by <strong>{latest_ideas.AUTHOR}</strong> &raquo; {latest_ideas.DATE}
						</dt>

                        	<div class="minivoteup solid"><span>{latest_ideas.VOTES_UP}</span></div>
                                <div class="minivotedown solid"><span>{latest_ideas.VOTES_DOWN}</span></div>
                        </dd>
					</dl>
				</li>
				<!-- END latest_ideas -->
			</ul>

			<span class="corners-bottom"><span></span></span></div>
		</div>
		<a href="{U_VIEW_LATEST}" class="viewall forumbg">{L_VIEW_ALL}&hellip;</a>
	</div>

	<div style="width: 49%; float: right;">
		<div class="forabg">
			<div class="inner"><span class="corners-top"><span></span></span>
			<ul class="topiclist">
				<li class="header">
					<dl class="icon">
						<dt><span class="wrap-content">{L_TOP_IDEAS}</span></dt>
						<dd class="posts">{L_RATING}</dd>
					</dl>
				</li>
			</ul>
			<ul class="topiclist forums">
				<!-- BEGIN top_ideas -->
				<li class="row">
					<dl class="icon" style="background-image: url({T_IMAGESET_PATH}/forum_<!-- IF not top_ideas.READ -->un<!-- ENDIF -->read.gif); background-repeat: no-repeat;">
						<dt title="Read posts">
							<a href="{top_ideas.LINK}" class="forumtitle">{top_ideas.TITLE}</a><br />
							by <strong>{top_ideas.AUTHOR}</strong> &raquo; {top_ideas.DATE}
						</dt>

                        <dd class="topics">
                        	<div class="minivoteup solid"><span>{top_ideas.VOTES_UP}</span></div>
                                <div class="minivotedown solid"><span>{top_ideas.VOTES_DOWN}</span></div>
                        </dd>
					</dl>
				</li>
				<!-- END top_ideas -->
			</ul>

			<span class="corners-bottom"><span></span></span></div>
		</div>
		<a href="{U_VIEW_TOP}" class="viewall forumbg">{L_VIEW_ALL}&hellip;</a>
	</div>
</div>

<!-- IF S_USER_LOGGED_IN -->
<a href="posting.php" class="newidea"><span></span></a>
<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->
Oh and by the way, this might be relevant as well, not sure...but I'm not using the standard voting icons...I followed the edits to this pull request -- https://github.com/phpbb/phpbb-ideas/pull/1
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
Locked

Return to “[3.0.x] MOD Writers Discussion”