vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - vBFavorites (https://vborg.vbsupport.ru/showthread.php?t=132401)

akanevsky 11-24-2006 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

akanevsky 11-25-2006 12:06 AM

#######################

Translations

German (By W!cKeD)

#######################

TheBlackPoet 11-25-2006 12:32 AM

I'm installing RIGHT NOW!! i loved this when i had the old version.. but it didnt migrate with me... now.... i got it again!!... thanks..

efil 11-25-2006 03:02 AM

Hi,
Thank you , i use this mod and it is very useful.

What shell i do for upgrade ?

Do i need to erase all the Template Changes from the old version?

Thanks.

Shazz 11-25-2006 03:19 AM

Screen shots look nice
Im not using it but looks very cool :)

yahoooh 11-25-2006 03:41 AM

it will add at least 2 query through whole site and another more query in cp

and it is not new feature , because user can add thread by subscribe and by subscribe area can ake folder for favorite

only thing is new is add the reply as favorite and this is should be a feature in subscribe ervice that already in vbulletin

yoyoyoyo 11-25-2006 04:00 AM

this works great in 3.5.5

Veer 11-25-2006 06:00 AM

Very Nice Hack, Installed.

But my User CP In Not Working...
When Open: http://www.site.com/usercp.php

Getting Database Error:

Quote:

Database error in vBulletin 3.6.0:

Invalid SQL:

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

MySQL Error : Unknown column 'favorites.entry_title' in 'order clause'
Error Number : 1054
Date : Saturday, November 25th 2006 @ 02:55:51 AM
Script : http://www.site.com/usercp.php
Referrer : http://www.site.com/
IP Address :
Username :
Classname : vb_database
What to do now? :surprised:


=====================

2nd thing..

I have added a thread to favorite, after that i check it in Navbar Favorites Menu.. look this screenshot:
Attachment 56548
Fav Link also not working.....

=====================

When i disabled the hack, Database error is Stop and User CP Working Fine.

gbhedges 11-25-2006 08:03 AM

Installed! Excellent Hack

bang 11-25-2006 08:12 AM

very very nice indeed!

is there a way to bypass this page on addition of a new favorite?

gbhedges 11-25-2006 08:54 AM

Quote:

Originally Posted by Pehchaan (Post 1124656)
Very Nice Hack, Installed.

But my User CP In Not Working...
When Open: http://www.site.com/usercp.php

Getting Database Error:



What to do now? :surprised:


=====================

2nd thing..

I have added a thread to favorite, after that i check it in Navbar Favorites Menu.. look this screenshot:
Attachment 56548
Fav Link also not working.....

=====================

When i disabled the hack, Database error is Stop and User CP Working Fine.

Have you edited functions_databuild.php correctly ?

Veer 11-25-2006 09:57 AM

Quote:

Originally Posted by gbhedges (Post 1124708)
Have you edited functions_databuild.php correctly ?

Yes I did. (again) but still getting database error :(

akanevsky 11-25-2006 11:57 AM

Quote:

Originally Posted by efil (Post 1124602)
Hi,
Thank you , i use this mod and it is very useful.

What shell i do for upgrade ?

Do i need to erase all the Template Changes from the old version?


Thanks.

You need to erase template changes, yes.
Then you revert modified templates.
Then you re-upload vbfavorites.php.
Then upload the product XML.

Quote:

Originally Posted by yahoooh (Post 1124616)
it will add at least 2 query through whole site and another more query in cp

and it is not new feature , because user can add thread by subscribe and by subscribe area can ake folder for favorite

only thing is new is add the reply as favorite and this is should be a feature in subscribe ervice that already in vbulletin

Three queries, actually, but regardless of where you are. Same three queries are used in usercp and in the rest of the site, except in usercp, those queries are modified to return more information. That said... It may be not useful to you, but it is definitely useful to some others. You are not obliged to use this hack if you do not want to.

Quote:

this works great in 3.5.5
I know. 3.5.0 is minimum version, but it is compatible with vBulletin up through 3.6.4.

Quote:

Originally Posted by Pehchaan (Post 1124656)
Very Nice Hack, Installed.

But my User CP In Not Working...
When Open: http://www.site.com/usercp.php

Getting Database Error:



What to do now? :surprised:


=====================

2nd thing..

I have added a thread to favorite, after that i check it in Navbar Favorites Menu.. look this screenshot:
Attachment 56548
Fav Link also not working.....

=====================

When i disabled the hack, Database error is Stop and User CP Working Fine.

Have you uninstalled the previous version of this hack?
Have you reverted all templates?
Please double-check, the hack works fine on my installation.

Quote:

Originally Posted by bang (Post 1124693)
very very nice indeed!

is there a way to bypass this page on addition of a new favorite?

How would you want to bypass it for posts with no title?

Veer 11-25-2006 12:24 PM

Quote:

Originally Posted by Psionic Vision (Post 1124774)
Have you uninstalled the previous version of this hack?
Have you reverted all templates?
Please double-check, the hack works fine on my installation.

Sir I installed it very 1st time, and also checked many times :(
Any chance to fix this problem? :surprised:

akanevsky 11-25-2006 12:30 PM

Release 2.0.1: Corrected Navbar Dropdown Bug.
Please overwrite the product xml.

Yes, the problem of the sql was also fixed.

Veer 11-25-2006 02:37 PM

Quote:

Originally Posted by Psionic Vision (Post 1124798)
Release 2.0.1: Corrected Navbar Dropdown Bug.
Please overwrite the product xml.

Yes, the problem of the sql was also fixed.

Thanks a lot :)
The problem has been fixed now, hack working fine :)

soletrader 11-25-2006 05:36 PM

I have trouble finding this line twice like mentioned in your instructions:

$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "thread WHERE threadid = $threadid");

Are you sure this is in the php file twice?

mauro1947 11-29-2006 07:38 PM

Hi!
This mod works on vBulletin 3.6.4???
Thanks!
Bye!

akanevsky 11-29-2006 08:22 PM

Quote:

Originally Posted by mauro1947 (Post 1128253)
Hi!
This mod works on vBulletin 3.6.4???
Thanks!
Bye!

Yes...

mauro1947 12-01-2006 06:28 PM

Hi!
I installed (and upgrade to 2.02) but i have this problem:
http://img175.imageshack.us/my.php?i...6172559wp6.jpg
Look at the left top.
The menu, appears in that position
How can i fix that???
Thanks!!!!

yui333 12-01-2006 06:30 PM

reserved.. thanks

akanevsky 12-01-2006 07:40 PM

Quote:

Originally Posted by mauro1947 (Post 1129545)
Hi!
I installed (and upgrade to 2.02) but i have this problem:
http://img175.imageshack.us/my.php?i...6172559wp6.jpg
Look at the left top.
The menu, appears in that position
How can i fix that???
Thanks!!!!

Your style does not correctly support dropdown menus, and there is nothing I can do to help you.

Quote:

reserved.. thanks
Reserved for what?

mauro1947 12-01-2006 07:45 PM

Hi!
Thanks for your answer.
Bye!

blogtorank 12-04-2006 08:30 PM

Another great hack by you again!

Greatly appreciated and Installed

akanevsky 12-04-2006 09:15 PM

Quote:

Originally Posted by blogtorank (Post 1131911)
Another great hack by you again!

Greatly appreciated and Installed

Status: Not Installed :D

pplc 12-05-2006 02:49 AM

awesome, installed really easy!

bang 12-18-2006 09:06 PM

Quote:

Originally Posted by Psionic Vision (Post 1124774)
How would you want to bypass it for posts with no title?

in that case, before I go ahead and install it, does that confirmation message appear when adding a thread or a user to favorites?

akanevsky 12-18-2006 10:41 PM

Quote:

Originally Posted by bang (Post 1141197)
in that case, before I go ahead and install it, does that confirmation message appear when adding a thread or a user to favorites?

Yes.

Ronak 12-19-2006 03:57 AM

Installed ;) :D 5 starz added :p

flanker 12-19-2006 03:55 PM

This looks very nice. Got a question. If the user has a long list of favorites, will it break it into multiple pages (say 20 links per page)? If not, is it possible to add that functionality? Thanks

akanevsky 12-20-2006 08:49 PM

Quote:

Originally Posted by flanker (Post 1141661)
This looks very nice. Got a question. If the user has a long list of favorites, will it break it into multiple pages (say 20 links per page)? If not, is it possible to add that functionality? Thanks

It won't break; feature is possible; but one should not have that many favorites, since those would not fit under the definition of favorites anymore.

soulface 01-06-2007 06:52 PM

another gr8 hack of Anthony. I want to install it but i just don't like to edit vb files. for test installed on my test forum. i just ignored those 3 new codes. i know its not the correct way. :S but so far its working fine without any problem. so im just curious to know that, what those 3 new codes actually do ? and is it possible to add them in a hook ?

akanevsky 01-06-2007 09:43 PM

Even on vBulletin 3.6, file edits, if any, are just as important for the correct functioning of a hack as file uploads and template edits. That is true for any hack. This particular hack (vB Favorites) will function almost correctly without its file edits, but: over time, your database will become noticeable larger (and slower) than it could have become if you had done these file edits. This is because these particular file edits ensure that any junk associated with this hack is removed from the database as soon as possible.

If there was a way to make those file edits into plugins, I would certainly do so and not specify any file edits. Unfortunately, however, it is not possible to create a plugin for everything.

Whether or not to do the file edits - up to you. But if you have a large forum, or you think it may become a large forum, then I strongly suggest that you make those edits.

EDIT:

93 posts per day is definitely a large forum. File edits strongly suggested.

soulface 01-07-2007 05:44 AM

Quote:

Originally Posted by Psionic Vision (Post 1152209)
Even on vBulletin 3.6, file edits, if any, are just as important for the correct functioning of a hack as file uploads and template edits. That is true for any hack. This particular hack (vB Favorites) will function almost correctly without its file edits, but: over time, your database will become noticeable larger (and slower) than it could have become if you had done these file edits. This is because these particular file edits ensure that any junk associated with this hack is removed from the database as soon as possible.

If there was a way to make those file edits into plugins, I would certainly do so and not specify any file edits. Unfortunately, however, it is not possible to create a plugin for everything.

Whether or not to do the file edits - up to you. But if you have a large forum, or you think it may become a large forum, then I strongly suggest that you make those edits.

EDIT:

93 posts per day is definitely a large forum. File edits strongly suggested.

Thx Anthony for the explanation. i'll install it on my live forum. btw 93 posts/day is on my forum ur talking about ? ;)

akanevsky 01-07-2007 03:18 PM

Quote:

Originally Posted by soulface (Post 1152417)
Thx Anthony for the explanation. i'll install it on my live forum. btw 93 posts/day is on my forum ur taling about ? ;)

The one you have a link to in your profile.

rrr 02-01-2007 04:46 PM

Great mod...thanks for this!

I'd like to add a way to encourage members to add threads to their favorites in the USERCP.

So I've moved the "Favorites" boxes to the top and what I'd like to do is add a conditional that shows up if a user doesn't have any favorites yet.

If a user doesn't have any favorites, I'd like to put some text like "I see you haven't marked any threads as your favorites yet! Click here to read more about how to save your favorite threads for later reading" (with a link to a page on my site that I've created explaining how to use the favorites.

Can you help me with the conditional I'd use to show that text if a user doesn't have any favorites created yet?

akulion 02-01-2007 05:00 PM

wow really nice gona install it now

and double wow at the torn edge screen shots! How did u do that its awesome?

akanevsky 02-01-2007 06:32 PM

Quote:

Originally Posted by rrr (Post 1172246)
Great mod...thanks for this!

I'd like to add a way to encourage members to add threads to their favorites in the USERCP.

So I've moved the "Favorites" boxes to the top and what I'd like to do is add a conditional that shows up if a user doesn't have any favorites yet.

If a user doesn't have any favorites, I'd like to put some text like "I see you haven't marked any threads as your favorites yet! Click here to read more about how to save your favorite threads for later reading" (with a link to a page on my site that I've created explaining how to use the favorites.

Can you help me with the conditional I'd use to show that text if a user doesn't have any favorites created yet?

That would be the same conditional as the one around the navbar link, just reverse that.

Quote:

Originally Posted by akulion (Post 1172273)
wow really nice gona install it now

and double wow at the torn edge screen shots! How did u do that its awesome?

Certain screenshot making software.

akulion 02-02-2007 12:01 AM

any names for it?
or do u wana keep it a secret?

akanevsky 02-02-2007 01:00 AM

Quote:

Originally Posted by akulion (Post 1172597)
any names for it?
or do u wana keep it a secret?

www.moodysoft.com


All times are GMT. The time now is 05:23 AM.

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.01670 seconds
  • Memory Usage 1,850KB
  • 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
  • (22)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