Page 1 of 1
Add Comment
Posted: Sat Jan 21, 2006 5:56 am
by Jarritos
Is there a way to make a link to add a comment? like on the main page have add comment then it goes to the comment forum?
also i want to add a bullet point to the archives thing where it says January and such on the side bar where would i go to edit that?
Re: Add Comment
Posted: Sat Jan 21, 2006 1:33 pm
by garvinhicking
Can you be more specific, I think I don't get the question. Do you want to link to a specific item? This is possible, all individual comments have a "<a id=XXX>" HTML marker to which you can reference.
The bullet points can only be inserted if you edit the plugin class that is defined in include/plugins_internal.inc.php for the Archives plugin.
HTH,
Garvin
Posted: Sat Jan 21, 2006 9:55 pm
by Jarritos
thanks for the help
http://www.moviegur.us/blog/ if you go there and look at add comment. thats what i was talking about. also plugins_internal.inc.php is a huge file is there anyway you could give me a line number. i know very little php so it would help a lot. thanks for all your help
Posted: Sun Jan 22, 2006 1:09 am
by garvinhicking
I still don't know about the comment. Please describe exactly what you want.
About adding a <li> item. Inside your plugins_internal.inc.php file first search for "class serendipity_archives_plugin". Then search for this line:
Code: Select all
echo '<a href="' . $link . '" title="' . $ts_title . '">' . $ts_title . '</a><br />' . "\n";
You can modify that to
Code: Select all
echo '<li><a href="' . $link . '" title="' . $ts_title . '">' . $ts_title . '</a></li>' . "\n";
This is the most important step. You might want to modify the other HTML outputs below that as well to use <li>s.
HTH,
Garvin