vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   MyBookmarks for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=41113)

aidler 08-21-2002 09:23 AM

Yes I have.

Part of my getinfo template....

Code:

<tr>
        <td bgcolor="#13486D"><normalfont><b>$userinfo[username]'s Bookmarks:</b></normalfont></td>
        <td bgcolor="#13486D"><normalfont>$bookmarklink$userinfo[publics] Public Bookmarks / $userinfo[allhits] Views</normalfont></td>
</tr>

And I inserted this into member.php

PHP Code:

// ~~~~~~~~~~~~~~~~~~~~ MyBookmarks Hack  1.10 - by Madman ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
if($bookmarktest=$DB_site->query_first("SELECT COUNT(bmid) AS count,SUM(counter) AS allhits FROM bookmarks WHERE public='1' AND userid='$userinfo[userid]'") and $bookmarktest[count]>and $bmpublicbrowse and $bmenabled)
        eval(
"\$bookmarklink=\"".gettemplate("mybookmarks_memberprofile")."\";");
    
$userinfo[publics]=($bookmarktest[count])?"$bookmarktest[count]":"0";
    
$userinfo[allhits]=($bookmarktest[allhits])?"$bookmarktest[allhits]":"0";
  
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

....and nothing was not absolutely correct. I can see the following:
"xxx's Bookmarks: Public Bookmarks / Views ". The variables $bookmarklink, $userinfo[publics] and $userinfo[allhits] obviousely don't hold any values.

Buddha 09-06-2002 12:11 PM

this is a fantastic hack!
love it.
thank you very much.
installed like a breeze, tested and works perfectly. hell, i gave myself a 500 limit so i can store all of my bookmarks using this... will make it easier when going back and forth between work and home.
thanks a lot bud!

*clicks installed*

Okiewan 09-06-2002 12:28 PM

Quote:

Database error in vBulletin 2.2.1:

Invalid SQL:
SELECT
post.*,SUM(bookmarks.public) AS bmcount,SUM(bookmarks.counter) AS allhits,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,

attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,style.title as styletitle
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN style on (user.styleid = style.styleid)
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid = '113307'

mysql error: Unknown table 'bookmarks' in field list

mysql error number: 1109
This error started after a recent apache/php upgrade. Any input would be appreciated, getting tons of error email :(

In addition... users are saying that suddenly others are on their Ignore Lists ... when they "click here to read thread" another bookmarks related SQL error shows.

Odd stuff.

kira 09-06-2002 06:29 PM

bad_madman, thank you for this fabulous hack. I'm running it on my test forum and I can't wait to give it a try on my real site.

I'm wondering if there's any way this can be modified or reworked to create a regular link directory, i.e., an addon to the main site rather than just confined to the members' control panels. (I know there are other vB-Link Directory type of hacks, but MyBookmarks seems to work more smoothly than they do... my apologies to the creators of those hacks if they're around!) Anyone interested in fiddling with this idea? Should I post this in "requests" maybe?

At any rate, thanks again for the excellent work!!

Dean C 10-08-2002 05:43 PM

jus found this hack :D

wonderful... goes off to install on my testboard :D

- miSt

incursio 11-02-2002 12:18 PM

It seems that links with ampsersands (&) in them get written to the database as "&amp;" (html entities). Obviously, that causes a problem when displayed, and people try to click on it.

Has this been fixed in a newer version? I think I'm still running the original release ...

NuclioN 11-10-2002 01:20 AM

Quote:

Originally posted by Okiewan


This error started after a recent apache/php upgrade. Any input would be appreciated, getting tons of error email :(

In addition... users are saying that suddenly others are on their Ignore Lists ... when they "click here to read thread" another bookmarks related SQL error shows.

Odd stuff.

Yep, same error over here. When a user is on ignore and someone clicks "HERE" to read the post, this error shows up :(

Esdee 11-25-2002 08:21 PM

Awesome hack.

One problem though, the shortkeys are shift+b Which is real annoying as no one on myt forum can type a capital B anymore >.<

ryancooper 11-28-2002 12:51 PM

Great hack. . . took all of 5 min to install and works like a charm!! Thanks!

flup 12-13-2002 05:17 PM

Havin' some problems with this hack.

DId everything the file said to me.
Edited templates and edited files, but the bookmarks wont appear in my User CP :(


All times are GMT. The time now is 05:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01216 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete