View Full Version : Comments Functions
Abercrombie
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?
Thanks
Dennis
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)
Abercrombie
11-01-2007, 09:07 AM
Didn't work
Dennis
11-01-2007, 10:45 AM
what version do you have?
Abercrombie
11-01-2007, 12:18 PM
Latest.
I've included the comments add / view into the image page using Ajax to show / hide.
But it's fully functional.
Abercrombie
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.
Abercrombie
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.
dakwegmo
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.
Abercrombie
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.
dakwegmo
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?
Dkozikowski
11-01-2007, 04:51 PM
Should be in functions_comments.php
Abercrombie
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>
Dkozikowski
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.