• Welcome to Simple Machines Community Forum. Please login or sign up.
October 26, 2021, 01:00:28 AM

News:

Check out the SMF Function DB!


Bookmarks

Started by Matthew K., July 16, 2007, 01:07:24 PM

Previous topic - Next topic

Ra__

If and when you update this mod, can you add an SSI function?

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Jacque

Hi,
I was going to ask help in solving my problem, but I'm diligent, and tried a few more things.  I found the problem, and thought I'd post it here.

I had no bookmark item on the topic menu, and forum error messages were:

8: Undefined index: bookmarks
File: /forum/Themes/default/BoardIndex.template.php (eval?)
Line: 580

8: Undefined index: bookmarks
File: /forum/Themes/default/Errors.template.php (eval?)
Line: 580

8: Undefined index: bookmarks
File: /forum/Themes/default/BoardIndex.template.php (eval?)
Line: 580


8: Undefined index: bookmark_add
File: /forum/Themes/default/Display.template.php (eval?)
Line: 643

8: Undefined index: bookmarks
File: /forum/Themes/default/MessageIndex.template.php (eval?)
Line: 580


What fixed everything was editing the file /Themes/default/languages/Modifications.english.php  to Modifications.english-utf8.php

Just in case it helps someone else out there.

Jacque

Paracelsus

Quote from: sennad on September 06, 2007, 05:06:49 AM
Great idea, sure, but it is not of a maximum use if users can't see if there are new replies on posts. I can bookmark topics in my browser and get same thing as this.

What would be great is that this mod shows in which of topics are new replies ("new" icon), or if it would show ony bookmarked topics that has new replies (like in "Show unread posts since last visit", but just for bookmarked topics).

I'm trying to mod this MOD ;) because I'm also looking for this function. I believe that the answer lies in the way the topics and boards notification list is made.

alex111

Great mod. I installed it by hand and it works perfectly.

Two things that I hope that you will consider adding (along with showing which topics have new replies):

1) folders: add the ability for users to create folders, add new bookmarks to specific folders and sort their bookmarks into folders

2) pagination: create a "page 2" after 100 or so bookmarks so that a huge bookmark list doesn't take a while to load

These are features that my users have repeatedly asked for when using our old bookmark hack.

Paracelsus

I'm getting back on this because my PHP skills aren't still good enough...  ;)

So, the goal is to make the "New" button appear in front of topics with new messages in the bookmark topic list... So, I've checked the Notifications code which has this function working perfectly and found in Profile.template.php this piece of code to call that button:

foreach ($context['topic_notifications'] as $topic)
{
echo '
<tr>
<td class="windowbg" valign="middle" width="48%">
', $topic['link'];

if ($topic['new'])
echo ' <a href="', $topic['new_href'], '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="', $txt[302], '" /></a>';



The problem is I can't get this to work together with the code in Bookmark.template.php:



// Show the bookmarks if there are any



if (isset($context['bookmarks']))



{





// Show each bookmark





foreach($context['bookmarks'] as $bookmark)





{





    echo '



            <tr>
                    <td class="windowbg"><a href="', $scripturl, '?topic=', $bookmark['id'], '.new">', $bookmark['title'], '</a></td>
                    <td class="windowbg2" width="30"><a href="', $scripturl, '?topic=', $bookmark['id'], '.0" target="_blank"><img src="', $settings['images_url'], '/buttons/im_reply.gif" title="', $txt['bookmark_open_window'], '" alt="', $txt['bookmark_open_window'], '" /></a></td>
               



<td class="windowbg2" width="30"><a href="', $scripturl, '?action=bookmarks;sa=delete;topic=', $bookmark['id'], '"><img src="', $settings['images_url'], '/buttons/delete.gif" title="', $txt['bookmark_delete'], '" alt="', $txt['bookmark_delete'], '" /></a></td>



            </tr>';





}



}


Can someone with expertise in PHP help with this?

RoboO

Quote from: diegolyanky on July 28, 2007, 12:26:14 PM
Installed but don't work on helios_multi theme, and is very hard to midify manually, be cause helios_multi has index.template.php and display.template.php are very differents.

Any ideas ?

I'm having this same problem.  Did you ever find a fix for it?

Alpay

November 05, 2007, 06:05:47 AM #67 Last Edit: November 05, 2007, 06:11:37 AM by Alpay
help ..

Unknown column 'b.ID_TOPIC' in 'field list'
Dosya: /..../Sources/Bookmarks.php
Satır: 52

:(
ok fixed tablo drop... new tablo =)

Altair

Quote from: Paracelsus on September 28, 2007, 10:24:45 AM
I'm getting back on this because my PHP skills aren't still good enough...  ;)

So, the goal is to make the "New" button appear in front of topics with new messages in the bookmark topic list... So, I've checked the Notifications code which has this function working perfectly and found in Profile.template.php this piece of code to call that button:

foreach ($context['topic_notifications'] as $topic)
{
echo '
<tr>
<td class="windowbg" valign="middle" width="48%">
', $topic['link'];

if ($topic['new'])
echo ' <a href="', $topic['new_href'], '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="', $txt[302], '" /></a>';



The problem is I can't get this to work together with the code in Bookmark.template.php:



// Show the bookmarks if there are any



if (isset($context['bookmarks']))



{





// Show each bookmark





foreach($context['bookmarks'] as $bookmark)





{





    echo '



            <tr>
                    <td class="windowbg"><a href="', $scripturl, '?topic=', $bookmark['id'], '.new">', $bookmark['title'], '</a></td>
                    <td class="windowbg2" width="30"><a href="', $scripturl, '?topic=', $bookmark['id'], '.0" target="_blank"><img src="', $settings['images_url'], '/buttons/im_reply.gif" title="', $txt['bookmark_open_window'], '" alt="', $txt['bookmark_open_window'], '" /></a></td>
               



<td class="windowbg2" width="30"><a href="', $scripturl, '?action=bookmarks;sa=delete;topic=', $bookmark['id'], '"><img src="', $settings['images_url'], '/buttons/delete.gif" title="', $txt['bookmark_delete'], '" alt="', $txt['bookmark_delete'], '" /></a></td>



            </tr>';





}



}


Can someone with expertise in PHP help with this?

Please, i would LOVE this feature. :)

Altair


Alpay

November 11, 2007, 11:28:39 AM #70 Last Edit: November 14, 2007, 04:49:06 AM by Alpay
Sorry
is a themes error =)
Tenk u mod..

Altair


Altair

Quote from: Paracelsus on September 28, 2007, 10:24:45 AM
I'm getting back on this because my PHP skills aren't still good enough...  ;)

So, the goal is to make the "New" button appear in front of topics with new messages in the bookmark topic list... So, I've checked the Notifications code which has this function working perfectly and found in Profile.template.php this piece of code to call that button:

foreach ($context['topic_notifications'] as $topic)
{
echo '
<tr>
<td class="windowbg" valign="middle" width="48%">
', $topic['link'];

if ($topic['new'])
echo ' <a href="', $topic['new_href'], '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="', $txt[302], '" /></a>';



The problem is I can't get this to work together with the code in Bookmark.template.php:



// Show the bookmarks if there are any



if (isset($context['bookmarks']))



{





// Show each bookmark





foreach($context['bookmarks'] as $bookmark)





{





    echo '



            <tr>
                    <td class="windowbg"><a href="', $scripturl, '?topic=', $bookmark['id'], '.new">', $bookmark['title'], '</a></td>
                    <td class="windowbg2" width="30"><a href="', $scripturl, '?topic=', $bookmark['id'], '.0" target="_blank"><img src="', $settings['images_url'], '/buttons/im_reply.gif" title="', $txt['bookmark_open_window'], '" alt="', $txt['bookmark_open_window'], '" /></a></td>
               



<td class="windowbg2" width="30"><a href="', $scripturl, '?action=bookmarks;sa=delete;topic=', $bookmark['id'], '"><img src="', $settings['images_url'], '/buttons/delete.gif" title="', $txt['bookmark_delete'], '" alt="', $txt['bookmark_delete'], '" /></a></td>



            </tr>';





}



}


Can someone with expertise in PHP help with this?

Please, i would LOVE this feature. :)

Aaron

I finally found some spare time to update this mod, filling a few feature requests. Here's the changelog for version 1.1:

Version 1.1

  • + Show whether there are new replies in a bookmarked topic (Bookmarks.php)
  • & Redone the bookmarks template, making it a bit more organised (Bookmarks.template.php)
  • + Allow users to delete multiple bookmarks at the same time (Bookmarks.php)
  • & Updated the bookmark template accordingly (Bookmarks.template.php)
  • * Slightly adjusted the language files (Modifications language file)

Link to mod

Paracelsus

Thanks Aäron... it works flawlessly!

gavin

Good job and cheers, it works nicely.

Altair

Thanks for Updating this Aaron, is it also possible to show WHO posted the latest post?



Aileen

Nice Mod. Where can I find my saved bookmarks

Advertisement: