PDA

View Full Version : Would like to take out comments


Rash
04-06-2005, 09:58 PM
Greetings,

I'm a newbie to Pixelpost and a newbie to PHP. So, if this question has already been asked (I searched but couldn't find anything) would someone please post a link?

I'm using the default "dark" template and would like the option to not have comments. I didn't see a setting in the admin menu for this. Did I miss it?

Any and all help would be greatly appreciated.

Best regards,
Rashunda

Rash
04-06-2005, 10:03 PM
I'm sorry, I'm using the "salted" template.

Best regards,
Rashunda

Connie
04-07-2005, 06:26 AM
look into your template, what means: open it in a text editor and find some texts like the following:

<COMMENT_POPUP>
<IMAGE_COMMENTS_NUMBER>
<LATEST_COMMENT_ID>
<LATEST_COMMENT_NAME>
<IMAGE_COMMENTS>
<IMAGE_COMMENTS>

check, if you find text like this:

<div id="comments">
&lt;a href='#addcomment' onclick="flip('add-comment'); return false;">Add Comment</a>&lt;p />
&lt;IMAGE_COMMENTS>
&lt;/div>
&lt;div id="add-comment">

&lt;script language='javascript' type='text/javascript'>flip('add-comment');&lt;/script>
<a name="addcomment"> </a>
&lt;form method='post' action='index.php?x=save_comment' name='commentform' accept-charset='UTF-8'>
Message:&lt;br />
&lt;textarea name='message' rows='2' cols='40'>&lt;/textarea>&lt;p />
Name:&lt;br />
&lt;input type='text' name='name' class='input' value='&lt;VINFO_NAME>' style='width:100%;'/> &lt;br />&lt;br />
Website URL, if any: &lt;br />
&lt;input type='text' name='url' class='input' value='&lt;VINFO_URL>' style='width:100%;'/> &lt;br />&lt;br />
Email (not visible to others)&lt;br />
&lt;input class='input' type='text' name='email' value='&lt;VINFO_EMAIL>' style='width:100%;'/>&lt;br />&lt;br />
&lt;input type='hidden' name='parent_name' value='&lt;IMAGE_NAME>' />
&lt;input type='checkbox' value='set' name='vcookie' /> Save User Info&lt;br />&lt;br />
&lt;input type='submit' value='Add' />
&lt;input type='hidden' name='parent_id' value='&lt;IMAGE_ID>' />
&lt;/form>
&lt;/div>

delete it and there will be no comments

you must not edit any PHP etc., just the template....

Rash
04-07-2005, 08:13 PM
Hi Connie,

Thank you. I'll try your solution and report back.

Best regards,
Rashunda