vb.org Archive

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

akanevsky 06-01-2009 10:00 PM

vBFavorites
 
1 Attachment(s)
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 06-02-2009 08:44 PM

~~~~~~~~~~~~~~~~
~~~~~ Translations ~~~~~
~~~~~~~~~~~~~~~~

German (DE) (By W!cKeD)
Russian (RU) (By TAIFUN_T)

HMBeaty 06-02-2009 08:45 PM

Pretty cool PV, might just use this later. Thanks :)

Daniel_HBK 06-02-2009 09:03 PM

very good hack!

thanks!

pein87 06-02-2009 09:11 PM

nice will test and install after I do a run to see if its all working right thanks for your hard work mate.

vithorius 06-02-2009 09:18 PM

Looks very useful!

TimberFloorAu 06-02-2009 10:32 PM

1 Attachment(s)
Excellent.

How can we solve this ?

Add Post To favourites, wraps onto 2 lines?

rob01 06-02-2009 11:24 PM

is possible to check if both users have each other in their favorite list and

if this is true to display something?

akanevsky 06-03-2009 12:07 AM

Quote:

Originally Posted by TimberFloorAu (Post 1822389)
Excellent.

How can we solve this ?

Add Post To favourites, wraps onto 2 lines?

I will check out the problem and get back to you.

Quote:

Originally Posted by rob01 (Post 1822409)
is possible to check if both users have each other in their favorite list and

if this is true to display something?

It is possible, but is not presently a feature of this hack. :)

rob01 06-03-2009 12:33 AM

are you planning in adding it :D or i should start working on it :D


thanks

nice release

W!cKeD 06-03-2009 02:13 AM

1 Attachment(s)
* Thank You *


======================
||٭Translation in German٭||
======================

Version History

v1.0
--● First Translation (Du-Version) [Works with 2.1.1]

Trip 06-03-2009 02:17 AM

Looks like a great modification.

xug 06-03-2009 03:01 AM

PV, outstanding job, jet simple, jet sooooooooo welcome, to me, mod of the month!

This is a mod that should become a standard option in vB ;)

Soliloquy 06-03-2009 04:20 AM

I have a science forum with a ton of categories, and have always wished my members could move their favorite categories to the top or keep them together in a list. Please consider that for any future versions :)

dartho 06-03-2009 08:10 AM

Excellent - had this some time back, but had an issue (can't rememebr what now) after an upgrade.

Thanks!

baghdad4ever 06-03-2009 09:23 AM

thanks

Strike3ForumsMH 06-03-2009 10:15 AM

Thanks for updating this. Literally last week I was looking at the old release and planning to run it on my test forum to see if it would work with 3.8x.

I haven't yet installed this, but I did once use your product so I did have one suggestion that I had from the last time I used it:

Allow for an option to display favorite threads/posts/users on a separate page from the user CP (like /forum/favorites.php) I feel like if a user used this hack fully, it can get pretty cluttered in the User CP main page, especially if a forum has another hack that uses that space.

Thanks again for bringing this back. I hope to have some feedback in the future when I do add this to my forum.

akanevsky 06-03-2009 02:19 PM

Released Version 2.1.1, which fixes the bugs that have been mentioned in 2.1.0.
To upgrade, overwrite the product and the files.

Leo Brazil 06-03-2009 02:39 PM

Looks a great idea. I'm tagging this for future use for sure.

Quick question: Threads, Posts and users can be added to favorites but how about forums ? This would be great as my board has tons of forums and subforums and my users always ask for a better way to jump to what they use most.

THX

akanevsky 06-03-2009 03:53 PM

Quote:

Originally Posted by Leo Brazil (Post 1822762)
Looks a great idea. I'm tagging this for future use for sure.

Quick question: Threads, Posts and users can be added to favorites but how about forums ? This would be great as my board has tons of forums and subforums and my users always ask for a better way to jump to what they use most.

THX

It's not a feature at this time. Might be implemented in the future. :)

Mark.B 06-03-2009 05:26 PM

I'm just getting a blank page on submitting the favorite...I realise this is a modified template issue as it works in the default but I wouldn't know where to start looking for what's actually causing that...it doesn't seem to make sense as that part of the mod uses custom templates anyway. I can only assume it's something in header or headinclude as all the templates for this mod are in place ok and unmodified. Uninstalling sadly for now, I'll try again some other time and see if I can figure it out.

akanevsky 06-03-2009 05:55 PM

The hack has a few auto-modifications for existing templates. It is possible that one of those auto-modifications does not work on your custom skin. However, I have no way of telling unless I see it.

TimberFloorAu 06-03-2009 11:00 PM

Just bloody brilliant mate, again another superb Hack

Chadi 06-04-2009 12:06 AM

The navbar menu does not appear in my skin.

Could you please explain how to manually edit the template?

I did already add a favorite thread for testing.

akanevsky 06-04-2009 12:37 AM

Quote:

Originally Posted by Chadi (Post 1823043)
The navbar menu does not appear in my skin.

Could you please explain how to manually edit the template?

I did already add a favorite thread for testing.

Since you are running vBulletin 3.8.x, the best solution for you is:

Find a plugin whose title is 'vBFavorites: Initialize', it is located under 'global_start'. You do that using the plugin manager. Find the following code:

Code:

$find_string = compile_template('<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>');
Replace it with the following code:

Code:

$find_string = '$template_hook[navbar_buttons_left]';
I think it should work for you unless your style does not have the template hook.

Chadi 06-04-2009 12:42 AM

Thanks, but unfortunately that did not work.

MacHack 06-04-2009 02:09 AM

Mine too did not add a link to the navbar.

Curious as to what the link would be so I could add it to the quick links dropdown menu.

Thank you for this hack, I was just asked for something like this, great work!!

MacHack 06-04-2009 02:23 AM

Quote:

Originally Posted by MacHack (Post 1823087)
Mine too did not add a link to the navbar.

Curious as to what the link would be so I could add it to the quick links dropdown menu.

Thank you for this hack, I was just asked for something like this, great work!!


I did the previously mentioned fix and now it is working.

I guess my question I asked is pointless, I was thinking there was another page that displayed the info and you could make choices there that I could add a link to in my site navigation, sorry. Great Hack! It will be put to good use, thanks.

Julie 06-04-2009 02:29 PM

Awesome product!

I was wondering though if it was possible to add in user permissions to this? I want only my paying members to be able to use this :)

Also a suggestion, on the Add Favorites Entry screen, is it really necessary to have the Entry Type:field? Seeing as the field is disabled (at least on the thread entry type), it will only confuse users, which lowers the usability of the product :)

Thanks!

akanevsky 06-04-2009 05:17 PM

Quote:

Originally Posted by Chadi (Post 1823056)
Thanks, but unfortunately that did not work.

The link that needs to be added to navbar is as follows (for the default style, don't know if it will work on yours):

Code:

<td class="vbmenu_control" id="vbfavorites"><a href="usercp.php$session[sessionurl_q]">$vbphrase[vbfavorites_favorites]</a> <script type="text/javascript"> vbmenu_register("vbfavorites"); </script> </td>

DobieGillis? 06-04-2009 05:25 PM

killed Live Topic. Had to uninstall.

akanevsky 06-04-2009 07:20 PM

Quote:

Originally Posted by DobieGillis? (Post 1823447)
killed Live Topic. Had to uninstall.

How did it kill your topic?

DobieGillis? 06-04-2009 07:21 PM

Quote:

Originally Posted by Psionic Vision (Post 1823519)
How did it kill your topic?

Live Topic, it's another mod.

kmohamed 06-05-2009 02:10 AM

this mod is great i really luv the idea so much..
there is one problem only
i can't view my users profile
this message occur
Quote:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 188115 bytes) in /xx/home/html/vb/member.php(515) : eval()'d code on line 260
i really want this mod to be better to the benefit of everyone..
1- if u can see the user's fav subject and post in his/her profile
2 - if u can add ur fav without transferring to another page for e.g. when u tag a mod or reputation

i will be happy if u get a chance to edit those two things

i am waiting for ur response

thanks for ur hard work

imedic 06-06-2009 07:25 AM

I have also tried (v good idea of mod) but unfortunately automatic template edit did not work. I have manually inserted Favorite link in navbar as instructed but then it didn't work (clicking will not do a thing)
I then realize maybe I need a bookmark so after first bookmark clicking has shown pull down menu with favorites. :)

Suggestion: when no favorites saved at all (in the beginning) the pull down menu should appear but saying Find your favorite Threads, messages or users here (for example)

The link has 2 triangles next to it (and I suppose it should be only one)

Suggestions/bugs:

- put the manual edit for link insertion in navbar in instructions and on first page too. Apparently in 3.8.2 it is not working automatically
- Favorite link is appearing if you are not logged in (and it should not appear)
- If you have no favorites than navbar link does not show a thing. It can show for example: Add here a favorite thread, post, user ...

I have 3.8.2
Great and useful mod :) Thx

Infopro 06-06-2009 12:08 PM

Quote:

Originally Posted by Leo Brazil (Post 1822762)
Looks a great idea. I'm tagging this for future use for sure.

Quick question: Threads, Posts and users can be added to favorites but how about forums ? This would be great as my board has tons of forums and subforums and my users always ask for a better way to jump to what they use most.

THX


Yep, this would be great I agree.

inciarco 06-06-2009 03:29 PM

Great Mod Psionic Vision, thank you for Sharing it. :up:

(Nominated for MOTM).

Idea: For Future Updates it'd be nice to be able to Select the Usergroups that can Use this Mod. ;)

Idea 2: It'd also be nice that on UserCP the Favorites could have it's own Page, in case the List of Favorites is too long it wont affect the View of the User Control Panel Page. ;)

A Little Bug (at least for vB37x).

On Template vbfavorites_favpostbit

p=$post[entry_id]#$post[entry_id]

should be

p=$post[entry_id]#post$post[entry_id]

Adding the post after the #

If not then you'll Browse to the Thread and not to the Post.

My Best Regards.

:)

TAIFUN_T 06-07-2009 07:59 AM

1 Attachment(s)
Thanks, Psionic Vision :)
===
Russian version

smirkley 06-09-2009 10:45 PM

Love this add-on, and installed.

I would like to recommend that the 'view all' link should go to a seperate 'favorites' page instead of user cp, gets kinda cluttered in there lol.

But it works great.

akanevsky 06-10-2009 12:57 AM

Quote:

Originally Posted by smirkley (Post 1826713)
Love this add-on, and installed.

I would like to recommend that the 'view all' link should go to a seperate 'favorites' page instead of user cp, gets kinda cluttered in there lol.

But it works great.

Thank you for the suggestion, it has already been said by someone else and is now being considered for the next release.


All times are GMT. The time now is 06:18 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.02061 seconds
  • Memory Usage 1,832KB
  • 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
  • (3)bbcode_code_printable
  • (11)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