The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
This hack lets users select the forums that they want to read.Please feel free to use this hack,and help me find some unknown bugs.Thanks!
http://home.keyciti.com/Godfather/myfavorite.zip Show Your Support
|
Comments |
#2
|
|||
|
|||
ah, I saw this hack for the UBB a while ago
Nice to see it ported to vB |
#3
|
|||
|
|||
Can we see a demo of this hack in action?
Parker |
#4
|
|||
|
|||
Damned thing works! Pretty nicely, too.
I think there's no demo up from the author because his site and message boards are in Chinese. [Edited by Dave Baker on 09-05-2000 at 09:39 PM] |
#5
|
|||
|
|||
hrmm I missed this hack. It seems nice but you force certain forums to always be shown?
|
#6
|
|||
|
|||
cool anothe hack... i haven't installed it but need to ask, how do you undo a site from your favourites ?
|
#7
|
|||
|
|||
The idea is that a registered user only sees those forums that have been marked as favorites (once the registered user has gone through a screen http://yourdomain.com/favorite.php3 to put a check next to his or her favorites), which is nice for a 60+ forum site like mine.
The preferences can be reset by going through that page again (though the registered user must be logged in), and unchecking or checking different checkboxes. I modified Godfather's forumselection template to be more clear about the need to be registered in order to use the feature: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <HTML> <HEAD><TITLE>Specify Favorite Message Boards</title> $cssinclude </head> <body> $header <form name="form1" action="favorite.php3" method="POST"> <input type="hidden" name="action" value="complete"> <table border="0" width="95%"><tr> <td valign="top" align="left"><a href="index.php3"><img src="$titleimage" border="0"></a></td> <table cellpadding="0" border="0" width="100%"><TR> <td valign="top" align="left"> <smallfont>$logincode</smallfont> </td> </tr></table> <hr> <table border="0" width="100%" cellpadding="2"> <tr><td width="100%" valign="bottom"> <normalfont><b>Instructions:</b> Use this page if would like to see only your "favorite" message boards each time you visit the home page for $bbtitle.<OL><LI>This feature requires you to be a registered user. <LI>Registered users, please log in now if you see boxes above asking for your username and password.<LI>Check one or more boxes below to select your favorite message boards.<LI>Then click the "Register Favorites" button at the bottom of this page.<LI>$bbtitle thereafter will display only your favorite message boards when you visit the home page, if you are logged in at that time (i.e., this feature won't work if you visit $bbtitle as a guest from another computer, if you have told $bbtitle to quit tracking your visits, or you have disabled the use of cookies on your Web browser).<LI>To change your favorites, just visit this page again. </OL></normalfont> </td></tr></table> <!-- jel --> <table width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0"><tr> <td width="100% bgcolor="#000000"> <!-- /jel --> <table cellpadding=4 cellspacing=1 border=0 width="100%"> <tr bgcolor="#113274"> <TD> </TD> <td valign=bottom> <smallfont COLOR="#FFFFFF"><B>Forum</B></smallfont> </td> <td NOWRAP valign=bottom align=center> <b><smallfont COLOR="#FFFFFF">Posts</smallfont></B> </td> <td NOWRAP valign=bottom align=center> <b><smallfont COLOR="#FFFFFF">Topics</smallfont></B> </td> <td NOWRAP valign=bottom align=center> <smallfont COLOR="#FFFFFF"><B>Last Post</B></smallfont> </td> <td valign=bottom align=center> <smallfont COLOR="#FFFFFF"><B>Moderators</B></smallfont> </td></tr> $forumbits </tr></tr></table> <!-- jel --> </td></tr></table> <!-- /jel --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <TR><TD valign="middle" align="left"> <smallfont>All times are $timezone</normalfont></td> <td valign="middle" align="middle"> <input type="submit" name="Submit" value="Register Favorites"></td></tr></table> </form> $footer </body> </html> --------------------- Ideally, that whole screen would become part of the profile page, which seems to be the best place for it (rather than a standalone favorite.php3 script). My logincode template is a bit different from the standard distribution, too -- here it is (needed in order for the "if you see boxes above asking for your username and password" to make sense): <table border="0" cellpadding="0" cellspacing="0"> <tr><td><smallfont><b>Optional log-in</b> if you have <a href="http://benefitsboards.net/member.php3?action=signup">registered (free)</a>:<br>(provides the option of viewing messages that are new since your last visit, and the option of viewing only "favorite" message boards)</smallfont></td></tr> <tr> <td nowrap align="LEFT"><form action="index.php3" method="post"> <table><tr><td><smallfont>Username:</td><td><INPUT TYPE="TEXT" NAME="username" SIZE="15" MAXLENGTH="25"> </smallfont></td></tr> <tr><td>Password:</td><td><smallfont><INPUT TYPE="PASSWORD" NAME="password" SIZE="15" MAXLENGTH="13"></smallfont> <smallfont><input type="hidden" name="action" value="login"> <input type="submit" value="Log In (Optional)"></smallfont> </TD></TR> <TR><TD colspan="2"><A HREF="member.php3?action=lostpw">(Click here if you've forgotten your username or password)</A></TD></TR></TABLE> </td></tr> </form> </table> ------------------------------ I've added this line as the first table row in my modifyprofile template (after the $parentemail line), as a way for registered users to get to favorite.php3: <tr bgcolor="#EFEFEF"> <td><normalfont><b><a href="favorite.php3">Click to create or change list of your favorite message boards (forums)</a></b></TD><TD><normalfont>By creating a list of favorite message boards, only your favorite message boards will be displayed each time you visit the home page; others will be hidden.</normalfont></td> </td></tr> [Edited by Dave Baker on 09-05-2000 at 09:40 PM] |
#8
|
|||
|
|||
Did you know a hack where the users can add are thread in a forum to his favorites and then he see it over the other forums or by site who ever come back to the forum?
Fine Day. Thanks for the help and sorry for my bad english. |
#9
|
|||
|
|||
Dave:
The instructions ask you to add a column using phpMyAdmin. Did you use this program to do this? How did you go about adding a new column in the user group? Thanks, Parker [Edited by Parker Clack on 07-17-2000 at 11:49 PM] |
#10
|
|||
|
|||
Sure did. phpMyAdmin 2.0.5 was wickedly easy to use (got it at http://phpwizard.net/projects/phpMyAdmin/index.html ), even for a php/mySQL newbie like me. I clicked on "add field" after I'd gotten to the "user" table for my vBulletin database, and did what Godfather's readme.txt said to do re the parameters of the new field (called selforum). There was one ambiguity; he specifies that "null" should be set to "yes"; I clicked the "null" option from the "null" and "not null" options presented to me by phpMyAdmin for the new field's "Null" parameter.
[Edited by Dave Baker on 07-18-2000 at 12:09 AM] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|