Welcome, Guest. Please Login or Register.
April 26, 2025, 10:38:00 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [BETA] Bookmarks « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [BETA] Bookmarks  (Read 6810 times)
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
[BETA] Bookmarks
« on: January 02, 2003, 03:08:06 AM »
Reply with quote

This is a betat version of the bookmarks available here at yabbse.org

Note, this mod does, unfortunately impact several key queries in Profile.php and Load.php, backup before trying this thing out.

Again, I reiterate this is a beta for 1.5
Logged

percherie
Full Member
***
Posts: 177


Si t'en perd trops tu risque de ressembler à ça

percherie@tiscali.fr WWW
Re:[BETA] Bookmarks
« Reply #1 on: January 02, 2003, 05:41:31 AM »
Reply with quote

Sorry, the mod don't find the caractère "?>" in the file "subs.php" and the bookmarks don't display in the forum 1.5
Logged

BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[BETA] Bookmarks
« Reply #2 on: January 02, 2003, 10:13:46 AM »
Reply with quote

Help of this file?

first run the mod's and then the database changes? (+ place bookmarks.php?
Logged
Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Bookmarks
« Reply #3 on: January 02, 2003, 10:50:50 AM »
Reply with quote

I manualy edit the mod file to be compatible with my other mod changes.

installation worked.
db update worked.
i enable the mod in my admin center.

but i still don't see the bookmarks
Logged


Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Bookmarks
« Reply #4 on: January 02, 2003, 10:55:29 AM »
Reply with quote

Quote from: onsforum on January 02, 2003, 10:13:46 AMHelp of this file?

first run the mod's and then the database changes? (+ place bookmarks.php?

i guess you have to place it in your Source folder
and you have to go to admin center and enable the mod in the mod settings.
Logged


Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Bookmarks
« Reply #5 on: January 02, 2003, 11:25:10 AM »
Reply with quote

the checkbox doesn't work in modsettings if i check it and then go back its back unchecked

Solution add the following row to yabbse_settings
showBookmarks       1

now the check box works, but i still don't see the bookmars future on my boards
Logged


Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Bookmarks
« Reply #6 on: January 02, 2003, 11:42:55 AM »
Reply with quote

stupid question i see that you add the function yybookmarks() to the subs file.

but i can't find no point in your mod where you call that function
Logged


David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[BETA] Bookmarks
« Reply #7 on: January 02, 2003, 11:58:48 AM »
Reply with quote

Quote from: Mr.Sins on January 02, 2003, 11:42:55 AMstupid question i see that you add the function yybookmarks() to the subs file.

but i can't find no point in your mod where you call that function
Template header in subs.php is what calls it.
Logged

Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Bookmarks
« Reply #8 on: January 02, 2003, 12:19:17 PM »
Reply with quote

when i search through subs.php i only find the function yyBookmarks()

but i don't find the entry point where you call it

code of yybookmarkfunction yyBookmarks()
{
   global $settings, $db_prefix, $ID_MEMBER, $username, $txt, $yytitle, $scripturl, $HTTP_SERVER_VARS, $modSettings;

   if ($username != 'Guest' && $settings[24]=='1' && $modSettings['showBookmarks'] == '1')
   {
      $sql = 'SELECT url, title FROM ' . $db_prefix . 'bookmarks WHERE ID_MEMBER=' . $ID_MEMBER . ' ORDER BY display_order';
      $request = mysql_query ($sql);
      ?>
      <script>
      function addOption(theSel, theText, theValue)
      {
         var newOpt = new Option(theText, theValue);
         var selLength = theSel.length;
         theSel.options[selLength] = newOpt;
      }
      </script>
      <?php
      
echo '<table border=0 cellspacing=0 cellpadding=0><form name="bookmarkFrm"><tbody><tr><td><b>' $txt['bookmarks1'] . '</b> <select name="bookmarks" onchange="window.location.href=this.options[this.selectedIndex].value;">';

      while (
$row mysql_fetch_assoc($request))
         echo 
'<option value="' $row['url'] . '">' $row['title'] . '</option>';         

      
$addUrl $scripturl '?action=bookmarks;sub=add;title=' urlencode($yytitle) . ';url=' urlencode(urlencode($scripturl.'?'.$HTTP_SERVER_VARS['QUERY_STRING']));

      echo 
'</select> <input type=button value="' $txt['bookmarks8'] . '" onclick="window.location.href=bookmarks.options[bookmarks.selectedIndex].value;"> <input type=button value="' $txt['bookmarks2'] . '" onclick="window.location.href=\'' $addUrl '\';"> <input type=button value="' $txt['bookmarks3'] . '" onclick="window.open(\'' $scripturl '?action=bookmarks;sub=edit\',\'bookmarks\',\'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=500,height=220,resizable=no\');"></td></tr></tbody></form></table>';
   }
}

but where is it called
Logged


Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Bookmarks
« Reply #9 on: January 02, 2003, 12:29:24 PM »
Reply with quote

linux:/srv/www/html/yabbse/Sources # grep yyBookmark *
Subs.php:function yyBookmarks()
linux:/srv/www/html/yabbse/Sources # cd ..
linux:/srv/www/html/yabbse # grep yyBookmark *
linux:/srv/www/html/yabbse #
Logged


Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[BETA] Bookmarks
« Reply #10 on: January 02, 2003, 01:21:41 PM »
Reply with quote

I guess it wasn't really obvious - you need to add a <yabb bookmarks> tag into your template.  ::)
Logged

Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Bookmarks
« Reply #11 on: January 02, 2003, 01:26:07 PM »
Reply with quote

: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
(/srv/www/htdocs/yabbse/Sources/Subs.php ln 1318)
Logged


Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Bookmarks
« Reply #12 on: January 02, 2003, 01:32:48 PM »
Reply with quote

change this
$sql = 'SELECT url, title FROM ' . $db_prefix . 'bookmarks WHERE ID_MEMBER=' . $ID_MEMBER . ' ORDER BY display_order';

to
$sql = 'SELECT url, title FROM ' . 'bookmarks WHERE ID_MEMBER=' . $ID_MEMBER . ' ORDER BY display_order';

its seem you have some litle bugs in your db install file
you forgot to name your db yabbse_bookmarks
Logged


Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:[BETA] Bookmarks
« Reply #13 on: January 02, 2003, 01:41:31 PM »
Reply with quote

instead of changing the code, you just better rename the table from bookmarks to yabbse_bookmarks

everything works fine, for now.

thx for this great mod
Logged


Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:[BETA] Bookmarks
« Reply #14 on: January 02, 2003, 01:59:59 PM »
Reply with quote

Quote from: Mr.Sins on January 02, 2003, 01:41:31 PMinstead of changing the code, you just better rename the table from bookmarks to yabbse_bookmarks

everything works fine, for now.

thx for this great mod
No problem - I'll try to post an updated BETA tomorrow.  I want to get this thing released as a final mod in a day or two.
Logged

Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [BETA] Bookmarks « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.015 seconds with 18 queries.