Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #31  
Old 09-15-2008, 05:37 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@scoyote:
Code:
<!-- 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 />$stylevar[titleimage]</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]
@nando99: The forum ID variable actually doesn't exist at the point where the template is called. You would have to create a plugin and bring $forum into focus.
Reply With Quote
  #32  
Old 09-15-2008, 11:49 AM
scoyote scoyote is offline
 
Join Date: Jul 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sigh......I'm not really sure what you just said.

I'm guessing that something is wrong with the way my logo is being called and I cannot show a different logo on one of the forums?
Reply With Quote
  #33  
Old 09-15-2008, 12:43 PM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just posted an edited version of your header template. Disregard what I'm saying to nando99.
Reply With Quote
  #34  
Old 09-15-2008, 02:39 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
@nando99: The forum ID variable actually doesn't exist at the point where the template is called. You would have to create a plugin and bring $forum into focus.
Yeah... I had to use $GLOBALS[forumid] and it worked fine. Thanks.
Reply With Quote
  #35  
Old 09-15-2008, 08:00 PM
scoyote scoyote is offline
 
Join Date: Jul 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dismounted.....thank you very much.
That is working perfectly.....!

I almost hate to ask this question....but....

Now, if I want to add another logo for forum ID 9

Do I need to enter that whole line again or add a comma and the other forum id????

if condition="$foruminfo['forumid'] == 11">images/misc/muskiecentral.png,
if condition="$foruminfo['forumid'] == 9">images/misc/ftm.png
<else />$stylevar[titleimage]</if>

Does it work like that?
Reply With Quote
  #36  
Old 09-16-2008, 04:59 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<!-- 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
  #37  
Old 01-29-2009, 02:28 PM
scoyote scoyote is offline
 
Join Date: Jul 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK....just never satisfied I guess ;-)

Now, my customer wants that logo to be linked to his website so he can click it to go directly there.

Can that logo be linked?

If so....can someone give me an example or is it just normal HTML code?
Reply With Quote
  #38  
Old 01-29-2009, 02:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Making a logo clickable is basic html - the basic structure:

HTML Code:
<a href="whatever.php"><img src="logo.jpg"></a>
Reply With Quote
  #39  
Old 01-29-2009, 03:58 PM
scoyote scoyote is offline
 
Join Date: Jul 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then I'm doing it wrong?

I tried that and it didn't work for me.

Here is where I'm trying to do it:

<img src="<if condition="$foruminfo['forumid'] == 11">images/misc/muskiecentral.png<else /><if condition="$foruminfo['forumid'] == 9">images/misc/ftm.png<else />

So...where do you put that code inside there?
Reply With Quote
  #40  
Old 01-30-2009, 03:46 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Before it, put:
Code:
<a href="whatever.php">
After it, put:
Code:
</a>
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 05:10 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.04553 seconds
  • Memory Usage 2,271KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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