I tried to find somewhere, where this was done but I did not. And I have a very novice skill level when it comes to php. But I understand things. Anyway through some trial and error I was able to piece together and make the Bookmarks mod work. If anyone will use it, no idea, but at least it can be documented.
I also know that this is the SMF forum and I posted this over on the TP Forum as well.
-SMF V1.14 and TP V.98
-This mod is for the Bookmarks v1.1 to work with the Helios_TP theme
-Install the mod normally. It will work for the default theme. It has to move the files into the right places.
-Then you will have to do a semi-manual install to the Helios_TP theme.
-Move the bookmarks.template.php into the themes main directory
-Put the Image files into the themes/helios_multi11final_tp/images/english directory
-you can make custom buttons here - http://www.tinyportal.net/button-generator/helios.php (http://www.tinyportal.net/button-generator/helios.php)
-just be sure to edit the display.template.php and the index.template.php with the new name of the button
-display.template.php modifications in the helios directory
find ->
//Show the linktree as well as the "Who's Viewing" information.
add after that -->
//this is for the messages of the bookmarks:
if(isset($context['bookmark_message']))
echo $context['bookmark_message'];
so it should look like --->
//Show the linktree as well as the "Who's Viewing" information.
//this is for the messages of the bookmarks:
if(isset($context['bookmark_message']))
echo $context['bookmark_message'];
find ->
$buttonArray = array();
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
add after that -->
//Helios bookmarks Edit here
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=bookmarks;sa=add;topic=' . $context['current_topic'] . '.' . $context['start'] . '.0;do=Bookmark' . $context['bookmark_message'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/addbm1.gif" alt="' . $txt[Bookmark] . '" border="0" />' : $txt[Bookmark]) . '</a>';
so it would look like --->
$buttonArray = array();
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
//Helios bookmarks Edit here
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=bookmarks;sa=add;topic=' . $context['current_topic'] . '.' . $context['start'] . '.0;do=Bookmark' . $context['bookmark_message'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/addbm1.gif" alt="' . $txt[Bookmark] . '" border="0" />' : $txt[Bookmark]) . '</a>';
-Next file to modify would be the Index.template.php in the helios directory
find ->
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<td><a href="', $scripturl, '?action=usercp">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt['usercp'] . '" style="margin: 0px 0;" border="0" />' : $txt[467]), '</a></td>';
Add after -->
// The [bookmarks] button
if ($context['user']['is_logged'])
echo '<td><a href="', $scripturl, '?action=bookmarks">' ,($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/bookmarks.gif" alt="bookmarks" style="margin: 0px 0;" border="0" />' : 'bookmarks'), '</td>';
I have not tried this at all with any other theme other then the Helios_TP. And I documented what I did and this was the final/correct changes I made. Just figured that this may help someone.
Plus included are the two buttons that I made
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fgoodybarsco.no-ip.org%2Fimages%2Faddbm1.gif&hash=6862a0639c66df072dd333ea71e03dc3e836c8ed)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fgoodybarsco.no-ip.org%2Fimages%2Fbookmarks.gif&hash=67537a4a44f616b6331658a71c4caf49f88cab5e)
Thank you for posting this guide!
It works on the regular Helios theme (v1.1) as well. The only thing I didn't do is "-Move the bookmarks.template.php into the themes main directory" near the start.
Just a heads-up in case anyone else wants to use this mod on Helios.
Sunil
you are very welcome!
Thanks for using it!