vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBFavorites (https://vborg.vbsupport.ru/showthread.php?t=98808)

akanevsky 10-18-2005 10:00 PM

vBFavorites
 
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

dastar 10-19-2005 09:55 PM

Nice. Will install and let you know how it goes.

akanevsky 10-19-2005 10:00 PM

Quote:

"First posted reserved"
:nervous:

Snake 10-19-2005 10:06 PM

Ahem... screenshots?

akanevsky 10-19-2005 10:07 PM

There are screenshots in the 3.0 thread of this hack...
But those are outdated, I'll post fresh ones in a bit :)

Snake 10-19-2005 10:08 PM

Ah I'll just wait for that then. :)

Oblivion Knight 10-19-2005 10:17 PM

Since this requires file changes, it is not classified as an Extension but a Code Modification.. :)

akanevsky 10-19-2005 10:19 PM

Since it requires an upload of an additional file, it is classified as an Extension :)

Quote:

Ah I'll just wait for that then.
You might wanna go ahead and click "Install", so that I can send you a screenshot update later on when it's available :)

Oblivion Knight 10-19-2005 10:23 PM

Quote:

Originally Posted by Dark Visor
Since it requires an upload of an additional file, it is classified as an Extension :)

Read the forum descriptions again.. ;)

Snake 10-19-2005 10:32 PM

Quote:

Originally Posted by Dark Visor
Since it requires an upload of an additional file, it is classified as an Extension :)



You might wanna go ahead and click "Install", so that I can send you a screenshot update later on when it's available :)

Yeah a'ight, just clicked on the "install" button. ;)

akanevsky 10-19-2005 11:02 PM

Quote:

Read the forum descriptions again..
Oh, my bad :) Andreaaaaassssss!!!!!!!!!!!! Move it please tyvm!! :)

akanevsky 10-19-2005 11:15 PM

Screenshots uploaded :)

Jenta 10-19-2005 11:45 PM

They should install that here because of the dropdown you get that subscribed threads dont give you.

Off topic: Hey what image editor do you use for you screenshots? Love the ripped out look and other things.

TTG 10-19-2005 11:54 PM

Had this on 3.0.7 .. thanks for porting over to 3.5.0 Dark Visor.

Installed with no problems .. clicked install.

akanevsky 10-20-2005 12:12 AM

Quote:

They should install that here because of the dropdown you get that subscribed threads dont give you.
Moreover, this should be a vB standard, but the devs won't agree with me on this one :(

Quote:

Off topic: Hey what image editor do you use for you screenshots? Love the ripped out look and other things.
Moodysoft 3x Bundle: http://www.moodysoft.com/ge/

Quote:

thanks for porting over to 3.5.0 Dark Visor.
No problem... I'd port this faster if anyone would ask.
But since nobody did, I only ported it for myself and shared it cause I felt like it :)

vibe 10-20-2005 01:12 AM

I got this error while testing "adding thread to Favorite"

PHP Code:

Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT 
                            
FROM favorites 
                            WHERE userid 
'6'
                            
AND entry_id '1480' 
                            
AND entry_type 'thread' 
                            
LIMIT 1;;

MySQL Error  You have an error in your SQL syntax near ';
    ' 
at line 6
Error Number 
1064 


rza733 10-20-2005 02:05 AM

Hello first off I would love to say what a great hack everything works great...

Except the only probem im having is my registered users cannot see this feature I have looked up and down and cannot find the option to enable registered user... please help..

thanks

The Realist 10-20-2005 09:30 AM

Installed and working 100%.

TygerTyger 10-20-2005 04:51 PM

Oops! This is a terrific mod, working well except for this error when the UserCP is viewed:

PHP Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

        
SELECT *
        
FROM vb_favorites
        WHERE entry_type 
'user' 
        
AND userid '1'
        
ORDER BY favorites.entry_title;

MySQL Error  Unknown table 'favorites' in order clause
Error Number 
1109
Date         
ThursdayOctober 20th 2005 06:49:52 PM
Script       
http://www.<snip!>.co.uk/usercp.php
Referrer     http://www.<snip!>.co.uk/index.php
IP Address   : <snip!>
Username     TygerTyger
Classname    
vb_database 


akanevsky 10-20-2005 05:49 PM

Wow... So vBulletin 3.5 automatically adds the semicolon at the end of query. Nice :)

A fix is coming up soon.

Lea Verou 10-20-2005 05:50 PM

Ohhh this is soooo great!!!!!
I hope my fellow admin likes it too and then I'll install!!!!
Also I'll wait till the db errors get sorted!
Thanks a lot for sharing!! :D

Lea Verou 10-20-2005 05:54 PM

Also, your instructions are great! I loved those checkboxes!
You rock!!! :D :D :D Thumbs up! Respect!

MrNase 10-20-2005 05:57 PM

Thanks for this great code modification and thanks for the manual, well done!! :)

I'll install it tomorrow evening.. There's an important exam tomorrow which I really need to pass :disappointed:

dreck 10-20-2005 06:14 PM

great hack!

I did have a small problem.
Look at the attachment picture & you will see what I mean.

I will see if i can get around this,

Thanks, dreck


*install*

aranthorn 10-20-2005 07:37 PM

Quote:

Originally Posted by Dark Visor
No problem... I'd port this faster if anyone would ask.
But since nobody did, I only ported it for myself and shared it cause I felt like it :)

Because you rock! I'm planning on installing tonight.

Lea Verou 10-20-2005 07:40 PM

I persuaded my fellow admin (hehe) so now I'll wait till those database errors get sorted out :)

nexialys 10-20-2005 09:19 PM

suggestion: make a choice to deactivate the navbar block... actually it is adding 3 queries on all pages browsed on the forum - amazingly!

or would be good to have something like a cache stored in the users table so there is no need to reload a query to display the links in the navbar...

akanevsky 10-20-2005 09:33 PM

A cache is a good idea - and sound like it can be done easily. I'll think about it :)

jesus likes pie 10-20-2005 10:57 PM

awesome. Is there a plan on making it a product/plugin?

akanevsky 10-20-2005 11:02 PM

A fixed version uploaded.
To upgrade:

- Overwrite the product XML
- Replace vbfavorites.php with the new file

The cache, however, will have to wait.

Quote:

Originally Posted by jesus likes pie
awesome. Is there a plan on making it a product/plugin?

It actually is. :)

jesus likes pie 10-21-2005 12:01 AM

O.K fine I didn't read anything....I just looked at the pictures. Are the file edits required?

akanevsky 10-21-2005 12:06 AM

Yes.

TTG 10-21-2005 12:32 AM

Getting sql error when trying to remove favorite from usercp :- just installed the latest update !

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

                        DELETE FROM favorites as favorites
                        WHERE userid='1'
                        AND entry_id='24822'
                        AND entry_type='post'
                        LIMIT 1;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid='1'
                        AND entry_id='24822'
                        AND entry_type='post'
                        LIMIT' at line 2
Error Number : 1064
Date        : Friday, October 21st 2005 @ 02:30:33 AM
Script      : http://<cut>/forum/usercp.php
Referrer    : http://<cut>/forum/usercp.php
IP Address  : 82.40.190.247
Username    : The Tech Guy
Classname    : vb_database


rza733 10-21-2005 12:38 AM

Quote:

Originally Posted by TTG
Getting sql error when trying to remove favorite from usercp :- just installed the latest update !

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

                        DELETE FROM favorites as favorites
                        WHERE userid='1'
                        AND entry_id='24822'
                        AND entry_type='post'
                        LIMIT 1;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid='1'
                        AND entry_id='24822'
                        AND entry_type='post'
                        LIMIT' at line 2
Error Number : 1064
Date        : Friday, October 21st 2005 @ 02:30:33 AM
Script      : http://<cut>/forum/usercp.php
Referrer    : http://<cut>/forum/usercp.php
IP Address  : 82.40.190.247
Username    : The Tech Guy
Classname    : vb_database


same thing with me

akanevsky 10-21-2005 12:43 AM

Sorry about that :) I just uploaded a fixed XML file. Overwrite your existing product with it.

rza733 10-21-2005 01:07 AM

Quote:

Originally Posted by Dark Visor
Sorry about that :) I just uploaded a fixed XML file. Overwrite your existing product with it.

Everything is working fine!!! Thanks

TygerTyger 10-21-2005 07:36 AM

Good job, the UserCP is back in working order, thank you.

One minor bug left, the vbfavorites_deleteselected button in UserCP reads as:

Array

[vbfavorites_deleteselected]

MrNase 10-21-2005 07:52 AM

Tried to install this Modification but I have some problems..

Me, logged in as an admin, can't access the file. I always get a 'permission denied' error. <- forget about this.. Now I see that usercp.php handels it, and vbfavorites.php just processes the entries :)

The manual refers to a file called favorites.php, your file is called vbfavorites.php.

gael11 10-21-2005 08:21 AM

no problem for installing it. Thanks very much to this excellent hack. My members will be happy :D
Quote:

The manual refers to a file called favorites.php, your file is called vbfavorites.php.
This is an example. You must upload the vbfavorites.php to your forum root ;)

MrNase 10-21-2005 08:26 AM

It is _not_ an example.. It tells me to upload the file favorites.php which doesn't exist :)
./favorites.php => ./favorites.php <- see?


Generally it would be a good idea to provide a list of the added phrases so that you don't have to search the templates first to get the variables to be able to find them in the phrase manager :)


All times are GMT. The time now is 04:46 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.01425 seconds
  • Memory Usage 1,838KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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