vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBFavorites v1.0 (https://vborg.vbsupport.ru/showthread.php?t=47124)

Mystis 12-31-2002 04:31 AM

Sure, just change

Code:

$query = $DB_site->query("SELECT forum.forumid as forumid, forum.* as foruminfo, COUNT(post.postid) as numposts FROM forum, thread, post WHERE forum.forumid=thread.forumid AND thread.threadid=post.threadid AND post.userid='".$bbuserinfo[userid]."' GROUP BY forumid ORDER BY numposts DESC LIMIT 0,".$max_forums);
to

Code:

$query = $DB_site->query("SELECT forum.forumid as forumid, forum.* as foruminfo, COUNT(post.postid) as numposts FROM forum, thread, post WHERE forum.forumid=thread.forumid AND thread.threadid=post.threadid AND post.userid='".$bbuserinfo[userid]."' AND forum.forumid!=9999 GROUP BY forumid ORDER BY numposts DESC LIMIT 0,".$max_forums);
Replace 9999 with the forumid of the forum you want excluded.

Velocd 12-31-2002 05:29 AM

lol, I had forgot that forum names were even inputted.. I must have been thinking it was hardcoded for some reason (been a while since I added a forum). :p

Anyway, to get the effect you requested Okiewan, find in index.php:
PHP Code:

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";"); 

And above it place:
PHP Code:

if($forum[forumid] == $favorites_id && $bbuserinfo[userid] <> 0){
                
$forum[title] = "$bbuserinfo[username]s? " $forum[title];
        } 

;)

Mystis 12-31-2002 08:45 PM

Nice velo, I was looking at it like it was much more complicated than that. I think I'm going to index all of the little code modifications on the first post.

Silenced Soul 12-31-2002 09:36 PM

nice hack. Got no use for it, on my site though...

Darth Cow 12-31-2002 10:56 PM

Awesome hack. I installed it last night in less than 5 minutes and my members have already made several dozen posts on the thread I made for feedback praising it :).

Mystis 01-01-2003 12:38 AM

That's great to hear DC :D That's on my agenda for v2, also, is making an editable list.

Freestyler 01-01-2003 03:27 AM

Is it possible to modify this hack so that you can have (in the style header), just below the main forum logo/buttons, little text links of just the three 'favorite' forums?

So that no matter where the user is in the forums (well, wherever the header is displayed), they can always just hit one of the three links to go to one of their top 3 forums?

If that's not possible, then is there any other hack which can do this :) ?

Mystis 01-01-2003 04:01 AM

Sure, it would take some heavy modification, but the SQL query is there, and that's what took me the bulk of the time developing this hack. I'll give it a shot and see what I can do :)

supreemball 01-02-2003 12:56 AM

sweeeeeet mystis.

SL will definitely enjoy this hack :D

Mithan 01-02-2003 01:31 AM

Great hack, but it would be cool if you could somehow modify this hack so that people could specifically add forums to the favorite list.


All times are GMT. The time now is 07:01 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
  • Page Generation 0.01187 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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