Add Comment

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Jarritos
Regular
Posts: 5
Joined: Tue Jan 17, 2006 10:54 am

Add Comment

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Add Comment

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Jarritos
Regular
Posts: 5
Joined: Tue Jan 17, 2006 10:54 am

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply