Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Full width Forum logo Details »»
Full width Forum logo
Version: 1.00, by AURFSCAN AURFSCAN is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.x Rating:
Released: 07-01-2010 Last Update: Never Installs: 53
Template Edits
 
No support by the author.

For fixed width styles
Note: Only use this If not using header adverts



Find in 'header' template. It's at the start of the template

Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>


Replace it with

Code:
<!-- Full width Logo Code Start -->

<div><a href="http://www.yourforum.com./forum.php"><img src="images/logo.jpg" width="1000" height="120" alt="your forum name Forum" /></a></div>

<!-- Full width Logo Code End -->

black bold link to your forum
red bold location of your logo
blue bold set the width and height of your image to match your Image size
(the width of the Image being the same as your forum width)

- so If your Forum width is 1000px wide, make your logo 1000px wide

green bold your forums name

If you use it mark Installed thx

Screenshots

File Type: jpg fwbanner2.jpg (147.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Macgiber

Comments
  #42  
Old 05-27-2012, 11:06 PM
SᴩiDᴇЯ SᴩiDᴇЯ is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have my code like this in vb4.2.0
<vb:if condition="$stylevar['titleimage']"><a name="top" href="{vb:link forumhome}" id="logo"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></vb:if>

so how do i add this to it?
PHP Code:
<!-- Full width Logo Code Start -->

<
div><a href="http://www.topholdens.com./forum.php"><img src="images/styles/gametime_red/style/logo.png" width="1240" height="172" alt="Top Holdens" /></a></div>

<!-- 
Full width Logo Code End --> 
Please can you help me with this.
Reply With Quote
  #43  
Old 05-28-2012, 05:17 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SᴩiDᴇЯ View Post
I have my code like this in vb4.2.0
<vb:if condition="$stylevar['titleimage']"><a name="top" href="{vb:link forumhome}" id="logo"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></vb:if>

so how do i add this to it?
PHP Code:
<!-- Full width Logo Code Start -->

<
div><a href="http://www.topholdens.com./forum.php"><img src="images/styles/gametime_red/style/logo.png" width="1240" height="172" alt="Top Holdens" /></a></div>

<!-- 
Full width Logo Code End --> 
Please can you help me with this.

backup your template to wordpad etc.
you dont add the code, you replace it.

replace

PHP Code:
<vb:if condition="$stylevar['titleimage']"><a name="top" href="{vb:link forumhome}" id="logo"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></vb:if> 

with

PHP Code:
<!-- Full width Logo Code Start -->

<
div><a href="http://www.topholdens.com./forum.php"><img src="images/styles/gametime_red/style/logo.png" width="1240" height="172" alt="Top Holdens" /></a></div>

<!-- 
Full width Logo Code End --> 


do you intend to use another image, the one you currently have is gonna look kinda stretched at 1240px
Reply With Quote
  #44  
Old 05-29-2012, 10:01 PM
SᴩiDᴇЯ SᴩiDᴇЯ is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes thank you Aurfscan as you will see i have changed the image it is now 1785 x 175 and redone all the pics in PS, if you look at the logo through the PC it looks great, but if you look at the logo on a laptop the forum is within the screen but the logo stretches way beyond the screen size look: http://topholdens.com/forum.php
is there anyway i can fix this?
Reply With Quote
  #45  
Old 06-01-2012, 03:43 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the image has to be the same width as your forum width

- forum has to be fixed width

your image is 1800x200px ??
Attached Images
File Type: jpg top.jpg (63.4 KB, 0 views)
Reply With Quote
  #46  
Old 06-06-2012, 09:46 AM
SᴩiDᴇЯ SᴩiDᴇЯ is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AURFSCAN View Post
the image has to be the same width as your forum width

- forum has to be fixed width

your image is 1800x200px ??
Yes but when i go on my laptop my forum adjusts to the laptop width but not my logo, it over laps the forum by 2x the width on my laptop.
Reply With Quote
  #47  
Old 06-08-2012, 05:21 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you go to (in admin panel)

- Style Manager

- Style Variable Editor

- Global

whats the doc_minWidth?
whats the doc_maxwidth?
Reply With Quote
  #48  
Old 06-11-2012, 02:30 AM
Macgiber Macgiber is offline
 
Join Date: Apr 2009
Location: PR
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tremendous contribution thanks man
Reply With Quote
  #49  
Old 07-23-2012, 05:18 PM
ckelley's Avatar
ckelley ckelley is offline
 
Join Date: Apr 2010
Location: Galax, Virginia
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this code and used width and height variables at 100% and it works great. I do not use header ads in the first place, but I tested one and I get the ads, just not over top of the titleimage, they appear below the titleimage itself. No big deal really for me as I do not use them. But I also cannot speak for how things look on much larger or smaller resolution monitors, but for my desktop and laptop the image looks good in both FF, IE and Chrome so I am happy with it.

Thanks for the great mod coding!

use the link in my signature to see it...
Reply With Quote
  #50  
Old 07-23-2012, 05:52 PM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great to me ckelly.. at 1.5 meg might be a little big in size, can you photochop its quality
or make it a jpeg

cheers
Reply With Quote
  #51  
Old 11-14-2013, 12:27 PM
Harpo's Avatar
Harpo Harpo is offline
 
Join Date: Dec 2011
Location: Canada
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome. Does anyone know how I can rotate five banners/logos at every refresh of a page? I'd like to create a folder with my logos on my server and have those rotate on my forums.
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 11:29 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.08446 seconds
  • Memory Usage 2,350KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete