You are not logged in! If you have not registered yet then click here to join the community!

TOLRA Community Forums

Go Back   TOLRA Community Forums > TOLRA Products (PHP Scripts) > Web Directory Script > Directory Script Mods


Thread Tools Display Modes
Old 04-06-2007, 05:13 PM
Paul's Avatar
Paul Paul is offline
Join Date: May 2006
Location: UK
Posts: 568
Blog Entries: 3
Social Bookmark Links

The attached mod draws a list of social bookmark links to the listings detail page.

It requires V4 of the directory script.

To install:
  • Create a folder called extensions if it doesn't already exist.
  • Unpack the attached zip file
  • Upload the bookmarks folder from the archive to the extensions folder on the server.
  • Create a file called extensioninfo.php with the following:
    $extBasePath = dirname(__FILE__) . '/';
    $g_events->addLoadableListener('draw_detail', 'bookmarks', 'bookmarks', 'draw_detail');
  • Upload extensioninfo.php to the extensions folder on the server.
  • Add {$bookmarks} to the t!wddetail.html template where the list of bookmark links should be shown.
Note: If the file extensioninfo.php already exists on the server then edit it and add the following line just above ?>:

$g_events->addLoadableListener('draw_detail', 'bookmarks', 'bookmarks', 'draw_detail');

To style the list as a horizontal list add the following to your CSS file:
.bookmarks {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
	text-align: center;

.bookmarks li {
	display: inline;
	padding: 0 4px;
Attached Files
File Type: zip (5.3 KB, 70 views)

Last edited by Paul; 12-09-2007 at 05:02 PM.
Reply With Quote
Sponsored Links


bookmark, links, social

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 09:57 AM.