Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBFavorites Details »»
vBFavorites
Version: 2.1.1, by akanevsky akanevsky is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: End-User Options - Version: 3.6.x Rating:
Released: 11-24-2006 Last Update: 06-02-2009 Installs: 178
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*================================================= =====================*\
|| vBFavorites
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jun 03, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*================================================ ======================*/

DESCRIPTION

This modification gives your users an opportunity to create their own personalized menus of favorite threads, posts and users within your bulletin board.

STATISTICS

File Uploads: 1
Products to Install: 1


FEATURES
  • Zero file or template edits.
  • Favorite Threads, Posts & Users.
  • Complete list of favorites is listed in the user cp.
  • Last {x} favorites are listed in a navbar dropdown that is available from every page, where {x} is a number configurable via admin cp.
  • Users can create their own titles for their favorite items.

VERSION HISTORY

2.1.1
[+] Made it so that the redirect screens no longer show up, for faster redirection.
[F] Fixed a bug which made favorites entries non-editable.
[F] Fixed a bug which made prevented anything from showing in favorites dropdown on standard error screens.
[F] Fixed a text wrapping bug in postbit_legacy.

2.1.0
[+] Eliminated all file and template edits.
[+] The hack is now compatible with vBulletin 3.5.x - 3.8.x.

2.0.2
[F] Fixed a bug which made it impossible for multiple users to add the same favorites item.

2.0.1
[F] Corrected a minor template bug, which caused invalid links in navbar dropdown.

2.0.0
[+] The modification has been rewritten from scratch: the code has been optimized, and is now compatible with both vBulletin 3.5 and 3.6.
[+] Implemented "Smart Links": When an item is in one's favorites, the link "Add Item to Favorites" is replaced with "Remove Item from Favorites". This is achieved without any extra queries.
[+] Templates have been redesigned; they are now more stylish and fully compatible with vBulletin CSS Layout.
[+] Some templates have been removed, others have been added.
[+] Implemented the "Who's Online" information bit for users located at vbfavorites.php.
[+] User CP listings are now collapsible.

1.0.3
[+] It is now possible to enable or disable either of the three parts of the hack via vbulletin options.

1.0.2
[F] Corrected a minor sql problem.
[F] Corrected a minor template bug.

1.0.1
[+] Less file edits; more plugins.
[F] Corrected a couple of minor sql problems and a minor readme mistake.

1.0.0
Initial Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 02-03-2007, 05:36 AM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
That would be the same conditional as the one around the navbar link, just reverse that.
I apologize for my ignorance, how would I reverse that? I tried

Code:
<if condition="!$show['vbfavorites_fav_lastthreads'] OR !$show['vbfavorites_fav_lastposts'] OR !$show['vbfavorites_fav_lastusers']">

And

<if condition="!$show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers']">
But neither of them worked. I also tried putting an else after the statement and it didn't work either.
Reply With Quote
  #43  
Old 02-03-2007, 01:27 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rrr View Post
I apologize for my ignorance, how would I reverse that? I tried

Code:
<if condition="!$show['vbfavorites_fav_lastthreads'] OR !$show['vbfavorites_fav_lastposts'] OR !$show['vbfavorites_fav_lastusers']">

And

<if condition="!$show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers']">
But neither of them worked. I also tried putting an else after the statement and it didn't work either.
The easiest way to reverse it is to place the whole original condition string into parenthesis and then prepend it with an exclamation sign. Or, replace all instances of OR with AND in the first code you posted.

Either:

Code:
<if condition="!($show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers'])">
OR

Code:
<if condition="!$show['vbfavorites_fav_lastthreads'] AND !$show['vbfavorites_fav_lastposts'] AND !$show['vbfavorites_fav_lastusers']">
Reply With Quote
  #44  
Old 02-03-2007, 02:50 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Psionic Vision View Post
The easiest way to reverse it is to place the whole original condition string into parenthesis and then prepend it with an exclamation sign. Or, replace all instances of OR with AND in the first code you posted.

Either:

Code:
<if condition="!($show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers'])">
OR

Code:
<if condition="!$show['vbfavorites_fav_lastthreads'] AND !$show['vbfavorites_fav_lastposts'] AND !$show['vbfavorites_fav_lastusers']">
Weird, I tried both of those and neither seemed to work. If I have favorites saved, it still shows the text in the IF, if I don't have favorites saved, it still shows the text.

Could it be because if I have a favorite thread and a favorite post, but NOT a favorite user, the if conditional still gets triggered the same as if I didn't have any of the 3?
Reply With Quote
  #45  
Old 02-03-2007, 05:36 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Could it be because if I have a favorite thread and a favorite post, but NOT a favorite user, the if conditional still gets triggered the same as if I didn't have any of the 3?
The conditional is true when none of the favorites are added, and it is false if there is at least one favorite item.
Reply With Quote
  #46  
Old 02-04-2007, 08:19 PM
blogtorank's Avatar
blogtorank blogtorank is offline
 
Join Date: Jan 2006
Posts: 450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Psionic Vision View Post
Status: Not Installed
Awwwwww just caught this, I clicked it now just for you on 4 boards of mine! However I'm catching hell on one and not sure what's up but I'll figure it out later on the other one...

Status: Installed so take that back!
Reply With Quote
  #47  
Old 02-04-2007, 08:47 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blogtorank View Post
Awwwwww just caught this, I clicked it now just for you on 4 boards of mine! However I'm catching hell on one and not sure what's up but I'll figure it out later on the other one...

Status: Installed so take that back!
Thanks
Reply With Quote
  #48  
Old 02-05-2007, 03:23 AM
blogtorank's Avatar
blogtorank blogtorank is offline
 
Join Date: Jan 2006
Posts: 450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Anthony having issues with this here... I never had an issue with installing any of your hacks maybe I only have the most hacked boards out there, but I just can't find where this is going wrong here.

The navbar favorites is not showing up or anything (Odd S@#% if you ask me). I go to the URL www.mydomain.com/forums/vbfavorites.php "No permissions" to the Admin... I am probably just too damn tired from all of these damn boards I don't know dude, I went through all of your instructions 3 x to make sure and not a chance did I miss nothing!

I'm PM a URL to see what I mean if you like.

All the best!
Reply With Quote
  #49  
Old 02-05-2007, 03:17 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Suggestion:

When I hover over any of your add-ons from the index, this is all I can see (truncated):

Quote:
/*================================================= =====================*\
|| vBFavorites
||
|| ================================================== =====
|| Brought to you by:
|| VisionScripts
|| Premium PHP & vBulletin Solutions!
|| ================================================== =====
||
|| Author : Anthony Kanevsky - aka Psionic Vision
|| Rent-a-Coder ID : #1360893
|| Works on : vBulletin 3.5 / 3.6
|| Released : Dec 01, 2006
||
|| Time required to install: 5 minutes
|| Difficulty: easy
\*================================================ ======================*/
It would be more helpful to post your add-ons with the following on top of that notice, so that index surfers could actually see what your mod is about:

Quote:
DESCRIPTION

This modification gives your users an opportunity to create their own personalized menus of favorite threads, posts and users within your bulletin board.
Reply With Quote
  #50  
Old 02-05-2007, 08:39 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blogtorank View Post
Hey Anthony having issues with this here... I never had an issue with installing any of your hacks maybe I only have the most hacked boards out there, but I just can't find where this is going wrong here.

The navbar favorites is not showing up or anything (Odd S@#% if you ask me). I go to the URL www.mydomain.com/forums/vbfavorites.php "No permissions" to the Admin... I am probably just too damn tired from all of these damn boards I don't know dude, I went through all of your instructions 3 x to make sure and not a chance did I miss nothing!

I'm PM a URL to see what I mean if you like.

All the best!
You are not supposed to go to that URL directly.
Reply With Quote
  #51  
Old 02-05-2007, 08:57 PM
Rickeo's Avatar
Rickeo Rickeo is offline
 
Join Date: Jan 2007
Location: Manchester
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installing now nice mod!!!

~Rick~
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:51 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.05406 seconds
  • Memory Usage 2,327KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete