View Full Version : Comments Functions
10-31-2007, 06:22 PM
I'd like to change the redirect splash to a page refresh and alter the "posted by" text.
Where would I find the code for these?
10-31-2007, 09:14 PM
from the documentation:
Added new functionality: direct redirection after posting comment (without "thank you screen"); it needs <input type='hidden' name='withthankyou' value='no' /> in comment form (in template file)
11-01-2007, 09:07 AM
11-01-2007, 10:45 AM
what version do you have?
11-01-2007, 12:18 PM
I've included the comments add / view into the image page using Ajax to show / hide.
But it's fully functional.
11-01-2007, 01:37 PM
The redirect shows the thank you message, then redirects to the flood message, even if you're posting outside the flood limit. But if you click the link, it reloads the image page.
Solved that by changing "$comment_redirect_url" to "$_SERVER[HTTP_REFERER]"
I've located the functions_comments.php. Just need to work around this without breaking it now.
11-01-2007, 02:49 PM
Okay, sorted that.
Next issue. I'd like to change the comment format.
At present it's printed like this
This is the message
Abercrombie @ 2007-10-29 19:52:00
I'd like it to look like this
Abercrombie said: This is the message
Just a single line, no time or date required. Please point me in the right direction for the edit.
11-01-2007, 04:23 PM
In your template directory should be a file called comment_template.html, start there. If not, then the comments are probably embedded in the image_template.html.
PixelPost includes documentation, in the doc folder. There's a file called tags.html, that gives you an explanation of all the tags that you can use in templates. The section dealing with comments related tags is called (suprisingly) Comment Related Tags.
11-01-2007, 04:34 PM
I know, I've already been through it. I only ask when I can't find the solution myself.
I'm not using the comments template, I've written the tags for it into the image template.
It's embedded somewhere else, thus my question.
11-01-2007, 04:51 PM
If you don't have a comment_template.html and the comment tags aren't being used in your image_template.html, I don't know where they would be.
What template are you using?
11-01-2007, 04:51 PM
Should be in functions_comments.php
11-01-2007, 05:12 PM
It's okay I found it. For future ref it's in the functions.php
<li class=\"admin_comment\">$comment_message<br />$comment_name @ $comment_datetime</li>
11-01-2007, 10:00 PM
Sorry, it's in functions.php
Lines 116 and 118
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.