Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #41  
Old 01-30-2009, 01:12 PM
scoyote scoyote is offline
 
Join Date: Jul 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, you are dealing with a computer dummy.

Is this what you mean?

<img src="<if condition="$foruminfo['forumid'] == 11">
<a href="http://www.muskiecentral.com">images/misc/muskiecentral.png</a>

<else /><if condition="$foruminfo['forumid'] == 9">
<a href="http://www.fishingthemidwest.com">images/misc/ftm.png</a>

<else />
Reply With Quote
  #42  
Old 01-31-2009, 02:25 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's more code than that, it looks like you've chopped off the end...
Reply With Quote
  #43  
Old 01-31-2009, 02:35 AM
scoyote scoyote is offline
 
Join Date: Jul 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, there is more code, I cut that out of the middle.

Here is the complete code, it's what you helped me with before ;-)

And...thanks for the help again.....it is very much appreciated.

-----------------------code below----------------------------------------

<!-- logo -->
<a name="top"></a>

<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" bgcolor="#FFFFFF" <!--background="images/misc/topback.png"-->

<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="<if condition="$foruminfo['forumid'] == 11">images/misc/muskiecentral.png<else /><if condition="$foruminfo['forumid'] == 9">images/misc/ftm.png<else />$stylevar[titleimage]</if></if>" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]
Reply With Quote
  #44  
Old 01-31-2009, 03:06 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find this:
Code:
<a href="$vboptions[forumhome].php$session[sessionurl_q]">
And change the URL to whatever.
Reply With Quote
  #45  
Old 01-31-2009, 03:34 AM
scoyote scoyote is offline
 
Join Date: Jul 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please excuse me if I'm asking dumb questions, but wont' that make all the logos go to one URL?

I'm trying to make each logo to to a specific URL.

I'm displaying 3 logos and each of them on different forums.

The main logo is no problem, I don't need it to go anywhere since that is already where they are.

But, I want to click the on the Muskie Central logo (images/misc/muskiecentral.png) to go to the Muskie Central website and click the Fishing The Midwest logo (images/misc/ftm.png) so it goes to that website.

Is that possible?
Reply With Quote
  #46  
Old 01-31-2009, 04:45 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find:
Code:
<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="<if condition="$foruminfo['forumid'] == 11">images/misc/muskiecentral.png<else /><if condition="$foruminfo['forumid'] == 9">images/misc/ftm.png<else />$stylevar[titleimage]</if></if>" border="0" alt="$vboptions[bbtitle]" /></a>
Replace With:
Code:
<if condition="$foruminfo['forumid'] == 11">
<a href="MUSIECENTRAL"><img src="images/misc/muskiecentral.png" border="0" alt="$vboptions[bbtitle]" />
<else /><if condition="$foruminfo['forumid'] == 9">
<a href="FTM"><img src="images/misc/ftm.png" border="0" alt="$vboptions[bbtitle]" />
<else />
<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
</if></if></a>
Reply With Quote
  #47  
Old 02-03-2009, 12:44 AM
scoyote scoyote is offline
 
Join Date: Jul 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! That works perfectly.

It still amazes me that people are willing to take time out of their day to help total strangers for free.

Thank you very much....all of you

It is appreciated.
Reply With Quote
  #48  
Old 03-30-2010, 11:23 AM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this thread here!

Is there a possibility to check an array of forum IDs? e.g.
Code:
<if condition="$foruminfo['forumid'] IN (4,7,9)">
It would be a great help too, if I could check not the forumid but the first breadcrumb (since I want different logos not for every subforum).

Possible?

Thanks for your help!
Bruno

Edit 1:
Just found this one (Vbulletin Conditionals)
Code:
<if condition="in_array($bbuserinfo[userid], array(X,Y,Z))">
... should work also here...

Edit 2:

For vB4 this solution does not work any more... I started a new thread: Different Logo for different Forums? (Solution for 3.8 does not work any more)
Reply With Quote
  #49  
Old 05-20-2010, 04:28 PM
kjsmith84 kjsmith84 is offline
 
Join Date: Sep 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I used the code but am wanting the logo to be in more then one forum ID.

there a possibility to check an array of forum IDs?

I have 6 different logos that each one has about 50 subforums each one needs to go in.


Code:
<!-- logo -->


<a name="top"></a>
<table border="0" height="118" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td align="$stylevar[left]"><a href="http://www.mysite.com/">
<img src="
<if condition="$foruminfo['forumid'] == 1,?,?,?,?,?">images/evid_blue/gradients/SXS411.PNG<else />
<if condition="$foruminfo['forumid'] == 2,?,?,?,?">images/evid_blue/gradients/Teryx411.PNG<else />
<if condition="$foruminfo['forumid'] == 3,?,?,?,?">images/evid_blue/gradients/RZR411.PNG<else />
<if condition="$foruminfo['forumid'] == 4,?,?,?,?">images/evid_blue/gradients/Prowler411.PNG<else />
<if condition="$foruminfo['forumid'] == 5,?,?,?,?">images/evid_blue/gradients/Commander411.PNG<else />
<if condition="$foruminfo['forumid'] == 6,?,?,?,?">images/evid_blue/gradients/BigRed411.PNG<else />
$stylevar[titleimage]</if></if>" border="0" alt="$vboptions[bbtitle]" /></a></td>
Reply With Quote
  #50  
Old 05-20-2010, 05:32 PM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

? Seen the last post before yours ?
Reply With Quote
Reply

Thread Tools
Display Modes

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:35 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.07911 seconds
  • Memory Usage 2,274KB
  • Queries Executed 12 (?)
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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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_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