Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2002, 04:13 AM
Seifer's Avatar
Seifer Seifer is offline
 
Join Date: Oct 2001
Location: Aurora, Colorado
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Image Based on Forum Id

PHP Code:
$forumimageid=$DB_site->query("SELECT forumid FROM forum");

        if (
$forumimageid == "2") {
          
$forumimage "<img src=\"http://www.plasmicgaming.com/forum/images/2.gif\">";
        } if (
$forumimageid == "3") {
          
$forumimage "<img src=\"http://www.plasmicgaming.com/forum/images/3.gif\">";
        } 
I know little about PHP, so I'm just going by what I've learned from looking at forumdisplay and some hacks, but this doesn't work. I place the forumimage variable in "navbar", so it shows up next to the navigation links, but all I got is blank space. What exactly am I doing wrong :angry: ?

Edit: This is in forumdisplay.php above // draw nav bar
Reply With Quote
  #2  
Old 08-15-2002, 06:55 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=39779" target="_blank">https://vborg.vbsupport.ru/showt...threadid=39779</a>
Reply With Quote
  #3  
Old 08-15-2002, 09:30 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

imm...this is pretty easy

Code:
<img src="{imagesfolder]/$forum[id].gif">
in iamges folder, make the iamges and name it 1, 2 3 etc
Atleast I think this is what you want.

Also put this in the navbar template somewhere.
Reply With Quote
  #4  
Old 08-15-2002, 09:45 PM
Seifer's Avatar
Seifer Seifer is offline
 
Join Date: Oct 2001
Location: Aurora, Colorado
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*dies*

I tried EVERY variable =P...I was like $forum[forumid] $forumid...$forum[id] doesn't work either =P

And that hack isn't what I'm looking for.
Reply With Quote
  #5  
Old 08-15-2002, 11:13 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well...try
$forum[name]...or something by the way I was guessing at the id lol.

Anyways, from wwhat I understand of ur post, something similar to my method in a template would work.
Reply With Quote
  #6  
Old 08-16-2002, 12:25 AM
Seifer's Avatar
Seifer Seifer is offline
 
Join Date: Oct 2001
Location: Aurora, Colorado
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I tried everything in the templates and nothing works. I just want to know why my php thing up there doesn't work...
Reply With Quote
  #7  
Old 08-16-2002, 01:06 AM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well explain to us what you want in full detail
Reply With Quote
  #8  
Old 08-16-2002, 01:16 AM
Seifer's Avatar
Seifer Seifer is offline
 
Join Date: Oct 2001
Location: Aurora, Colorado
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like, above all the forums, next to the navbar, I want an image to be displayed based on the forum ID. The image will be like, some kind of banner welcoming you to this forum. This is like, when you're looking at a forum (like, you're looking at General Hacking) but before you go into a thread.
Reply With Quote
  #9  
Old 08-16-2002, 01:19 AM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhh...the word like threw me off.

If this was inspired by some other site, mind getting us a screenshot?
Reply With Quote
  #10  
Old 08-16-2002, 03:53 AM
Seifer's Avatar
Seifer Seifer is offline
 
Join Date: Oct 2001
Location: Aurora, Colorado
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol, I just got back from a friend gathering when I posted that...when we're together everyone starts saying "Like"...sorry. I try to control my teen grammar, but you know, it sometimes gets the best of me .

And thanks for trying to help, I got it to work though =D. :banana:
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 01:12 PM.


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.08157 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • 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