View Full Version : Personal Favorites
myluntan
04-22-2002, 10:00 PM
this is my fist hack
I cant find it anywhere,so I made it
I read some good post but next time I visit the forum ,I cant find it ,only i can do is seach ,it is terrible.
Use this hack ,users in your forum can add threads into their own Favorite folder ,they aslo can creat folders,move the threads from each other.
I enjoy you like it,install it is very simple ,i write a script ,the only thing is running it,then add 2 links in your template.it works great
on vb 22X.if you use vb 201 ,tell me ,I will write for you.version update to 2.5
all bug fixed ,add a new option:users can share their .
users can select if they share their Favoritein usercp
if they select yes ,other users can view their Favorite.
so good article can be gathered and shared. enjoy it
myluntan
04-23-2002, 06:50 AM
screenshot
SyS-Is-DowN
04-23-2002, 06:58 AM
niceeeee i will use it, keep up the good work ! :)
BigJohnson
04-23-2002, 09:25 AM
nice hack
Entourage
04-23-2002, 10:09 AM
Very nice hack easy to install!!! tnx. I made a NL install doc.
I also saw a little "bug" in your install doc if you wanne install it on vb2.2.5
You said to find code:
<smallfont><img src="images/printer.gif" border="0"> <a href="member2.php?s=&action=addsubscription&threadid=$threadid">Receive updates to this thread</a></smallfont>
But it has to be:
<a href="member2.php?s=$session[sessionhash]&action=addsubscription&threadid=$threadid">Subscribe to this Thread</a>
</smallfont>
Greets Entourage
myluntan
04-23-2002, 10:32 AM
sorry,make a mistake,thanx fix it
Chris M
04-23-2002, 07:36 PM
Sounds good...
I shall take a look...
Satan
Chris M
04-23-2002, 07:37 PM
I like :tup:
Nice first hack...
Satan
GOD-Dblade
04-23-2002, 08:18 PM
well i have everyting exactly how it says and it just shows a blank page...it can be found here. http://www.gods-network.com/forums/
GOD-Dblade
04-23-2002, 08:29 PM
hm....maybe its jsut the script....cause i unistall it then install it again and it goes threw.... Table success....Templates Success all of them are success then after the templates it just goes to a blank screen. This is on a vb2.2.5 board also
cditty
04-23-2002, 09:21 PM
Is this kinda like the "Install" feature used here? But only for threads?
Chris
I like this, but isn't it just like subscribing to a thread? I mean whats the difference? I'm not trying to be a [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth]. I mean it, what is the difference? when you subscribe to a thread, aren't your subscribed threads listed in the usercp?
rawnet
04-24-2002, 10:03 AM
This is excellent!! How strange - was walking to work this morning and thinking how useful it would be to be able to "bookmark" favourite threads.
In ways it's like subscribing, but without the email notification. It's also more intuitive for users who are used to the semantics of "bookmarking".
Brilliant.
I changed EVERY subscribe word to favorite on my forums, cuz nobody knows wants to "subscrible" to a thread! hahaha, but my users love adding threads to their favorites. I will HAVE to try this hack out a little later on today. Its 8:20am, SUCH a nice day, nobody home... time to skipp skool ;D
Lesane
04-24-2002, 03:26 PM
Originally posted by neo
Looks interesting.
There is already a hack like this, i thought by freddie. Neo, remember that thread where you asked me for that converted version? I lost the thread, but it's somewhere. :)
Anyway, great hack. Well done.
Freddie Bingham
04-24-2002, 03:58 PM
I wrote a favorites hack for vB v1.1.x but it never was updated for v2.x
v3.0 already has favorites in place. Favorites can be placed in folders and don't generate emails when new replies are made.
that is... when v3.0 is released. ;)
untill then, lets not dangle the cheese infront of the mouse, eh?
psico
04-25-2002, 09:50 AM
Not working for me...no matter what thread I add to favorites, It shows me ALWAYS the same thread... I added to favorites 5 diffrent threads and shows me 5 times a thread that I did not added...so strange...
WallStreat
04-25-2002, 11:33 AM
well done, i've installed at http://www.ezyinvest.com
bug found: favourites.php does not checked if user is logged in i.e. even guests can add to favourites, here's a quick fix:
In favourites.php, find the line at the top:
require("global.php");
and add after the line:
if (!$bbuserinfo[userid] or $bbuserinfo[userid] < 1 or $bbuserinfo[userid] =="") {
show_nopermission();
}
Entourage
04-25-2002, 11:34 AM
WallStreet tnx for the bug fix!! Gonna try that here also
WallStreat
04-25-2002, 11:45 AM
i replaced "new thread" button with "add to favourites" button in shwothread.php, hence "add to favourites" will be more prominent. here's my codew in showthread template
<td><a href="favorites.php?action=add&threadid=$threadid"><img src="images/add-to-fav.gif" border="0" alt="Add to Favourites"></a><!--<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"><img src="{newthreadimage}" border="0" alt="Post New Thread"></a>--></td>
<td><normalfont> </normalfont></td>
<td><a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a></td>
attached is the psd file for "add to favourites"
Lesane
04-25-2002, 06:47 PM
Originally posted by freddie
I wrote a favorites hack for vB v1.1.x but it never was updated for v2.x
v3.0 already has favorites in place. Favorites can be placed in folders and don't generate emails when new replies are made.
I've converted it. The hack is working great on my forum.
Psychdrone
04-25-2002, 06:57 PM
Originally posted by WallStreat
i replaced "new thread" button with "add to favourites" button in shwothread.php, hence "add to favourites" will be more prominent. here's my codew in showthread template
<td><a href="favorites.php?action=add&threadid=$threadid"><img src="images/add-to-fav.gif" border="0" alt="Add to Favourites"></a><!--<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/newthread.gif" border="0" alt="Post New Thread"></a>--></td>
<td><normalfont> </normalfont></td>
<td><a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a></td>
attached is the psd file for "add to favourites"
Nice...... can you give ezact instructions on how to do this?
THanks!
Erwin
04-26-2002, 01:52 AM
Nice one. Had to tidy up the templates quite a bit, and correct spelling errors, but the outcome looks great.
myluntan
04-26-2002, 07:36 AM
hack version update you can find the attchement in the firts post
Erwin
04-26-2002, 03:21 PM
The update seems to work okay, although sometimes for some reason the screen appears as a blank page. Shall let my members "beta" test it for me. :) Thanks.
Psychdrone
04-26-2002, 08:01 PM
can somone one release the code for what the guy said above
mADmAX`
04-27-2002, 04:39 PM
How would you go about adding a custom error message if you try to view someones favorites but they chose not to share them? Currently, you get the default no permission msg...
Okiewan
04-29-2002, 01:06 AM
Are the templates available? The installer won't create them :(
myluntan
04-29-2002, 11:52 AM
Originally posted by Okiewan
Are the templates available? The installer won't create them :(
yes ,but it only in the default templates.? The installer works great
Freddie Bingham
04-29-2002, 08:15 PM
Originally posted by Lesane
I've converted it. The hack is working great on my forum. Then you should release it, I wouldn't care at all.
Psychdrone
04-30-2002, 01:45 AM
hey where ezactly would I put the code to change the New post thing>>????
Birdie501
05-01-2002, 03:11 PM
hi,
i like this hack! Maybe you could add an improvement! Is it possible that if the user has not allowed to show his favorites to public, that the link in postbit to his favorites is not shown?
Because i think it is bad that if a user clicks on it, it only say some standard error that he has no rights to do that!
Then if i add a thread to my favorites, it only shows an empty redirection page??? Wonder why?
myluntan
05-01-2002, 03:27 PM
make sure the redirect_favaddthanks template is not empty ,the improvement i will write later.i am very glad to konw you like this hack.
myluntan
05-02-2002, 02:46 AM
The improvement:
open admin/functions.php
find
if ($post['receivepm'] and $enablepms==1) {eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}
under it add if($post[canviewfavdef]){
$fav_postbit="<a href ='favorites.php?action=view&userid=$post[userid]'>view fav </a>";
}else{$fav_postbit="";
}
modify template
postbit
replace the code
<BR><A HREF="favorites.php?action=view&userid=$post[userid]">view favorite</A>
with
$fav_postbit
thats all
enjoy it.^^
Lesane
05-02-2002, 07:15 PM
Originally posted by freddie
Then you should release it, I wouldn't care at all.
I will not release it as a new hack, i will post it in the appropriate thread. But can you remember that old thread of yours because i couldn't find it.
NTLDR
05-02-2002, 07:26 PM
Originally posted by Lesane
But can you remember that old thread of yours because i couldn't find it.
That thread is likly to be in the Old Hacks (https://vborg.vbsupport.ru/forumdisplay.php?s=&forumid=6) forum which is locked.
I would love to see a working version of this hack, this thread should be in the beta forum really.
Lesane
05-02-2002, 07:39 PM
Originally posted by NTLDR
That thread is likly to be in the Old Hacks (https://vborg.vbsupport.ru/forumdisplay.php?s=&forumid=6) forum which is locked.
I would love to see a working version of this hack, this thread should be in the beta forum really.
Found it :)
I will post a working version in the old thread soon. The version is compatible with Vb 2.2.*
https://vborg.vbsupport.ru/showthread.php?s=&threadid=4135
NTLDR
05-02-2002, 07:46 PM
Thanks Lesane, I look forward to installing it ;)
David Bott
06-12-2002, 06:02 PM
Yes...it would be good....Are you still going to release it?
Thanks!
Yeah I would like to see it ;)
Dynamic One
11-01-2002, 07:14 PM
Thanks m8. Will sure install this 1.
jeffj
01-14-2003, 01:57 AM
I installed this hack and it's working well. made a bunch of usual anal retentive changes, but I did find a bug in their php code that was not displaying additional page of "favorites" if the favorites were not in the "root" folder. It was because they were not passing the folder id in the 'next page' link...
Here's the new line of code that should be used to replace the link without the 'folderid' variable - you'll find the line in favorites.php
$pagenav = getpagenav($numoffav,"favorites.php?s=$session[sessionhash]&userid=$userid&folderid=$folderid&perpage=$perpage");
it's easy to install, but does require a lot of touch up work before deployment. I would still recommend it. my folks like it.
ps: you should also add these two lines in the header of the showfav template (because the page doesn't display the updated count of folder favorites:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
:)
LangTuDaTinh
03-10-2003, 05:25 PM
this hack is great.....
however, i would like to know if it's possible to create a new forum in forum index and put those favorite thead in that forum
Erwin
03-10-2003, 10:42 PM
Make a new forum, with the title of the Forum being:
</a><a href="favorites.php">Your Favorites</a>
Should work.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.