News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Bookmark Mod

Started by Leipe Po, May 22, 2006, 11:48:26 PM

Previous topic - Next topic

johny000

hello everyone  & thank you TrueSatan 
but soorry the link you give me  did not  help me

note for ppl using Dilber Multicolor theme by HarzeM. this code

    // The [bookmarks] button
if ($context['user']['is_logged'])
echo ($current_action == 'bookmarks' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'bookmarks' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=bookmarks">' , $txt['bookmarks'] , '</a>
</td>' , $current_action == 'bookmarks' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

  is not working 100% with the Dilber Multicolor theme by HarzeM.

iwas playng with code & i fix it.  use this code 
    // The [bookmarks] button
if ($context['user']['is_logged'])
echo ($current_action == 'bookmarks' || $context['browser']['is_ie4']) ? '<td class="menubg' . $first . '">&nbsp;</td>' : '' , '
<td align="center" class="menubg' , $current_action == 'bookmarks' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=bookmarks">' , $txt['bookmarks'] , '</a>
</td>' , $current_action == 'bookmarks' ? '<td class="menubg' . $last . '"></td>' : '';


Scarlet Tree

#181
Hi, I just installed this mod, but I can't figure out how to add the following code in my not default Display.template file:

$normal_buttons = array(
'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),
'bookmark' => array('text' => 'bookmark_add', 'lang' => true, 'url' => $scripturl . '?action=bookmarks;sa=add;topic=' . $context['current_topic']),


I'm using Pn-Pn 1.1.3 as theme, which contains this part of code and uses images as buttons:

$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>';
if ($context['can_mark_notify'])


Someone knows how to change the code here? Thanks.

edit: nevermind, I worked out this code to bookmark with an image (bookmark.gif):

if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=bookmarks;sa=add;topic=' . $context['current_topic'] . '.">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/bookmark.gif" alt="' . '" border="0" />' : $txt['bookmark_add']) . '</a>';


:)

ragots

My forum is embedded in Joomla. After the user delete a bookmark the forum goes back to standalone.  I don't want my users to ever see the standalone version.

Where do I fix that ? Which file do I modify and what ?


Thanks

TrueSatan

@ ragots

Given that the Joomla/SMF bridge is now discontinued I'm unable to replicate your configuration to see what is going wrong. I can't be of any help on this issue and can only suggest that as you will have so abandon the bridge in order to upgrade your software in any case it is the least of your forum problems.

Leipe Po

well it wasnt likely to come back, but i'm back!!!
i worked on some projects in other programming languages, now thats all done,
and i bought a house so was busy with that, plus promotion at work consumed alot of my time,
now everything is in place i have some more free time so i can work on my hobby's some more,
when ive got my website up and running i will release a new bookmark mod for 1.1.4, till that time i would like a list of features you all would like to see in it,

and by the way, i live in the netherlands, never been to the UK or china  ;)
and this mod has no licence, i like to call it "Public Domain", that means you are free to use/modify/release it, if you want to give credit, be my guest, but i would never demand it...
There is only one thing more importend to me then coding:
My Girlfriend

Microsoft - "You've got questions.  We've got dancing paperclips."

TrueSatan

Welcome back...I've done a tidy up of your code and bug fixes as has Karl Benson...we have a working SMF 1.1.4 version already (1.1.x actually) and I have been making it available via the SMF Helper site (link in my signature.)

If you'd like the code it's available to download there and I'll happily hand the future development of it back to you (or share it with you) though I would suggest that you review the other bookmarks mod now available for SMF.

Please let me know (via PM) if I can be of further assistance.

BigMike

Quote from: TrueSatan on November 22, 2007, 10:35:54 AM
and I have been making it available via the SMF Helper site (link in my signature.)

I searched your site and could not find it. Could you provide a direct link for it?

(or any direct link for a version of this mod that works with 1.1.4?)

Thanks!
BigMike

RoCKeT-88

Leipe Po are you still gonna update this to 1.4.1?  I am either a.) too stupid figure out the errors with the other bookmark mod or b.) too stupid to figure out the other one. ;)

Thanks!
Insert Witty Signature Here.

thedesigner

I got a few test failed errors when trying to install this bookmark mod. Any suggestions? Im using a custom theme. Test failed on two files, board index and manage permissions.  :'(

maelstr0m

Does this work with SMF 1.1.7 and/or a non-default theme such as Dilber Multicolor? I encounter the following errors upon installation:

Execute Modification   ./Themes/default/Display.template.php   Test failed
Execute Modification   ./index.php   Test failed

Karmalakas

Any chances this would be upgraded to SMF 2.0?

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Karmalakas

I saw that one, bus authors aren't the same. I had mod by Leipe Po in my SMF 1.1 and after upgrading to 2.0 I want it to work the same. Sorry if I confused You.

Kindred

Since Leipe:
Last Active:
    December 23, 2007, 03:48:29 PM

it is unlikely that this mod will ever be updated to anything...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

richardwbb

Hello there,

Leipe Po, or someone else possibly;

Is is just me or is this mod not able to bookmark a specfic 'page' within a [long] topic within an smf forum. Or is it maybe I just don't get. Just wondering, I wasn't able to implement what I sense, my users need; bookmarking a specific page within a topic, for example, not page one, but, two, or three, etc.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

richardwbb

I've figured with a given tip, that users should use the bookmark system of their browsers, well, as far as I can tell, they don't. Many knowledge about our cars [same brand model] is there and smf search isn't very helpful [my forum isn't also in decent chapters like this one is]

But I formulated an answer, asking for a mod, if it is good and looking for a 'hello world' how to make a smf package, here is the url;

Re: Bookmark
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Advertisement: