![]() |
vbFavorites
/*================================================= =====================*\
|| vbFavorites || Author : Psionic Vision || Works on : vBulletin 3.0.7 \*================================================ ======================*/ Did you ever find a useful thread on a bb? Did you want to save it for reading later? Did you have to choosing between subscribing to the thread and clogging your mailbox or adding it to your browser favorites and never finding it afterwards? The problem has been solved! With this hack, you can create your own personalized favorites menu within the bulletin board itself. You can add both posts and threads to the favorites. You can access the favorites from your usercp homepage. You can also specify a custom name for your favorites entry. It will also display latest 5 threads and posts in the nabar... See screenshots for more. If you like it, do not forget to click INSTALL :) The hack is free, however if you like that hack, feel free to DONATE (paypal it using my email which is written on top of this post) :) |
Nice!! Thanks :)
I guess I get to be first to install this!!!!!!! Honored to be the first.. |
2nd .. very useful hack and works well on 3.0.6.
Clicked install |
question: in the custom name of the entry, is it working from a popup ?!... i don't like to overload my board with multiple pages for a single action... would be cool to have it in a popup forthe entire process, or even better, AJAX.. ;)
EDIT !:yes, the more i think of it, the more i think it can be easy to add a quick "add to favs" button working directly with AJAX, same way it "lock/unlock" threads... the complete "rename" page would be independant from the AJAX, but i think that the coming of AJAX is useful here... very useful! ANOTHER EDIT: you forgot the PHP Code:
EDIT 3: for the guys that built Links Systems, Articles or Albums systems, this Favorites can become your friend... check the code, it would be easy to add anyother kind of favorites to it... |
awsome hack.....i will wait to install make sure their aren't any bugs but i have a question......
to view you favorits are they in a pulldown menu from navbar or do you have to go into usercp? |
RichieBoy67, TTG
Thanks for positive feedback. nexialys, 1. I am not sure whether anybody needs AJAX here. 2. Wrong. Check twice before claiming an error. Favorites table does not use prefix regardless of the presence or absence of the prefix in other tables. 3. It does not come in a popup, it comes on a small separate page as shown in the screenshot. T_Montana, 1. You can be absolutely sure that there are no bugs. 2. You have to go to usercp. However, further modifications of this hack are not impossible (note that there can be a lot of favorites in one's list, so this is not likely to be of any use). |
Quote:
|
also how do i run a query?I have never had to this so have no idea what to do
|
Aha! Last 10 is a great idea. I will add that.
You run a query using either PhpMyAdmin in your hosting's cpanel or AdminCP => Maintenance => Run SQL Query in your vBulletin. |
good idea :)
|
Can't find this in my function-databuild file......
Code:
--------------------------------------------------------------------------------------------------------------------------- Code:
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "deletionlog WHERE primaryid = $postid AND type = 'post'"); |
What version do you have? of vB?
|
UPDATE: v1.01
By T Montana's request, this hack now also includes last 5 threads and posts in the navbar. Screenshot includes. Upgrade instructions also includes. |
3.0.7
|
In my 3.0.7, there is such a line. Try one of there (you can add the line after any of these):
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "editlog WHERE postid IN ($postids" . "0)"); $DB_site->query("DELETE FROM " . TABLE_PREFIX . "moderation WHERE postid IN ($postids" . "0)"); $DB_site->query("DELETE FROM " . TABLE_PREFIX . "reputation WHERE postid IN ($postids" . "0)"); $DB_site->query("DELETE FROM " . TABLE_PREFIX . "post_parsed WHERE postid IN ($postids" . "0)"); $DB_site->query("DELETE FROM " . TABLE_PREFIX . "post WHERE postid IN ($postids" . "0)"); |
Great hack...although there's a problem:
From 1.0.1 install text: Code:
CREATE TABLE `favorites` ( error number: 1064 error desc: 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 'dateline` int(100) unsigned NOT NULL default '0' )' at line 6 |
ehh a comma missing :nervous:
The right code: Code:
CREATE TABLE `favorites` ( |
Cool idea, I'm surprised this hasn't been done before.
You should always use TABLE_PREFIX though. You never know how people's databases are set up and they might rely on the prefix. |
Suggestions: When you click on "Complete List of Favorites" link in navbar, if there are none, can we say it, instead of looking at a page and wondering what that is supposed to be?
never mind, I forgot to put the conditionals |
overgrow.com is ran on vb2 and they have a hack like this.
|
A comma missing - will be fixed ASAP.
TABLE_PREFIX - ok, I will add that... overgrom.com - that is vb2. besides, I never heard of that board. Thanks for positive comments :) |
The favorites links in navbar do not display on vbadvanced pages. Can you tell us what the globals names are? We need to add them in vbadvanced settings.
Found them. Needed to add those in vbadvanced settings:ermm: lastfavpostbit lastfavthreadbit and for those with vbaLinks, you need to add those in your construct navbar function in includes/functions_links.php global $lastfavpostbit; global $lastfavthreadbit; and finally hardcode the showthread.php and showpost.php in the global.php |
this looks great ... I'll click INSTALL :up:
|
[B]Update to 1.02:[*] Fixed comma error in the table creation query[*] The hack now uses TABLE_PREFIX
Update is fairly easy, for the update instructions are included. |
Quote:
Ahh sorry to jump in the conversation like this.. overgrow.com been around since the first days of vB and they had a very similar hack, just like they had the karma hack since the early days of vb2.. although shebang(the owner) did not want to share it for free :P So, thanks a lot Dark Visor for sharing, great hack, great instructions.. Although I would prefere if the coders put comments before and after the code we have to change, add, or replace for easy detection if mistakes are made :) - Just a thought, don't take me serious :P Wow, I'm typing too fast, I think I had way too much coffee! Once again great hack, ahh! Dark do you think this would be possible to be intergrated using the AJAX system? this would get rid of the ADD ENTRY template and maybe others. |
when i edit global.php i get this.....
Code:
Database error in vBulletin 3.0.7: |
Quote:
|
T_Montana,
Read the upgrade instructions carefully. It tells you to run another query. About AJAX: Sorry, but I have no experience in making AJAX. I'll have to research the subject further before I can implement it in my hacks. |
I like the idea of a favorites hack but the subscriptions page make it all a little redundant. Why not just pull the thread subscriptions data and display as a drop down?
|
Because, M1th, as the hack description states, nobody wants to subscribe to a lot of topics and get flooded just because he wants to read it later. Besides, you cannot subscribe to posts.
|
Dark Visor take alook at the Favorites overgrow.com/edge use its very good :D
|
TheWebJunkie,
Screenshot please? :P |
Quote:
Can somebody help me out? |
Quote:
|
You need the code from global.php + the an appropriate template change for vbportal/vbadvanced/w/e.
|
Quote:
|
Alright. IN the hack instructions, it tells you to add certain code to global.php. You would need to add the same code to vbadvanced's global.php. Then, make the template change that has to do with vbadvanced's navbar (the top one)...
|
excellent job, thanks!
|
Quote:
Far as I can tell vBadvanced has no global.php of its own, nor does it have a special navbar. If it does I cannot locate them, or perhaps they are named differently. |
I don't have vBAdvanced installed, so the only way I could help you is by taking a look at what you have there.. PM me.
|
All times are GMT. The time now is 04:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|