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: 12-10-2000 Last Update: Never Installs: 0
 
No support by the author.

How can I make it so it call us up the right $onoff when I specifically want it to look at a specific forum Id. I am creating drop down menus to access some forums and want to be able to add my on.gif to the list when there is a new post for the user.

Show Your Support

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

Comments
  #2  
Old 12-11-2000, 01:14 PM
Guest
 
Posts: n/a
Default

any ideas?
Reply With Quote
  #3  
Old 12-11-2000, 02:46 PM
Guest
 
Posts: n/a
Default

Make on and off gifs for each forum you want special images displayed on. Name them on1.gif, off1.gif, on2.gif, off2.gif where the number is the forum id.

Then change your template to say:
$onoff$forumid.gif
Reply With Quote
  #4  
Old 12-11-2000, 05:00 PM
Guest
 
Posts: n/a
Default

I guess I didnt describe that very well - what you described I know how to do with out a prob

If you look at http://tuffsports.com/forum - I have drop down menus at the top of the page that lead to new forums that I am working on setting up

As you would see that is way to many forums to list on one page, and I like having them at easy access in the drop down menu.

What I want to be able to do is make it say "New" (my on.gif) next to forums that have a new post in them, and I want to be able to do this with in the actual menu.

What I dont know how to do is call up the script that checks the users cookie based on a specific forum id and then kick out the proper result for $onoff.
Reply With Quote
  #5  
Old 12-11-2000, 05:04 PM
Guest
 
Posts: n/a
Default

I will add that I have done extensive searching through here for the answer and could not find anything that helped me out (heck I sat here for about five hours one night and read just about every thread in this forum looking for the answer)

My gut feeling is that I will have write a specific script for each and every forum that I want to apply this to, but that is ok - My header template is already three pages long, and will get to be about ten by the time I am finished anyway.
Reply With Quote
  #6  
Old 12-11-2000, 09:17 PM
Guest
 
Posts: n/a
Default

OK inch by inch I am getting there - I just have one thing I am stumped on

this would be the basic code

if ($lastvisitdate=="Never") {

$xyz="on";

} else {

if ($bblastvisit<<b>$forum</b>[lastpost]) {

$xyz="on";

} else {

$xyz="off";

}

the $forum is where I am stumped - I know this is what $forum is

$forums=$DB_site->query("SELECT forumid,title,description,displayorder,lastpost,la stposter,replycount,threadcoun t,allowposting FROM forum WHERE active=1 AND displayorder<>0 AND categoryid=$categoryid ORDER BY displayorder");

while ($forum=$DB_site->fetch_array($forums))

Ok that is all good and well, but what the heck do I need to replace $forum with to get the specific forum that I want - I know it is not as simple as the forum id, tried that.
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 10:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04036 seconds
  • Memory Usage 2,230KB
  • Queries Executed 19 (?)
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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete