Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-10-2000 Last Update: Never Installs: 0
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-10-2000, 07:35 PM
Guest
 
Posts: n/a
Default

ah, I saw this hack for the UBB a while ago
Nice to see it ported to vB
Reply With Quote
  #3  
Old 06-11-2000, 07:13 AM
Guest
 
Posts: n/a
Default

Can we see a demo of this hack in action?

Parker
Reply With Quote
  #4  
Old 07-16-2000, 04:20 AM
Guest
 
Posts: n/a
Default

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]
Reply With Quote
  #5  
Old 07-16-2000, 04:47 AM
Guest
 
Posts: n/a
Default

hrmm I missed this hack. It seems nice but you force certain forums to always be shown?
Reply With Quote
  #6  
Old 07-16-2000, 09:22 AM
Guest
 
Posts: n/a
Default

cool anothe hack... i haven't installed it but need to ask, how do you undo a site from your favourites ?
Reply With Quote
  #7  
Old 07-16-2000, 09:43 PM
Guest
 
Posts: n/a
Default

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>&nbsp;</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]
Reply With Quote
  #8  
Old 07-17-2000, 06:48 AM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #9  
Old 07-18-2000, 02:48 AM
Guest
 
Posts: n/a
Default

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]
Reply With Quote
  #10  
Old 07-18-2000, 03:00 AM
Guest
 
Posts: n/a
Default

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]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:49 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.04173 seconds
  • Memory Usage 2,294KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete