thumbnail + text links for front page/index page.?

Creating and modifying plugins.
Post Reply
virtex
Regular
Posts: 8
Joined: Mon Jan 14, 2008 5:16 am

thumbnail + text links for front page/index page.?

Post by virtex »

Hiya new to the system and the plugin system I was wondering, Right now I am using the thumbnail plugin to display my blog entries. I can't find anywhere on there or a way of having the title also displayed as a link with the picture. The plugin is the serendipity_event_thumbnails.php plugin. any help would be appreciated. Thanks

the url I am working on is located at http://www.websmuggler.com/blog2/index. ... %5D=thumbs

I cant figure out how for the life of me to be able to get the thumbnails to have the links also on there / text link.

any help would be appreciated
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: thumbnail + text links for front page/index page.?

Post by garvinhicking »

Hi!

That plugin doesn't have template files, so you would need to edit the serendipity_event_thumbnails.php file, search for this place:

Code: Select all

echo '<a href="' . $entryLink . '" title="' . htmlspecialchars($entry['title']) . '">';
and change it to:

Code: Select all

echo '<a href="' . $entryLink . '" title="' . htmlspecialchars($entry['title']) . '">' . htmlspecialchars($entry['title']) . '<br />';
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