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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2010, 08:21 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default different header per subforum

Hi...

I was upgrading a forum, and I needed to place an image or logo per each forum or subforum and I had a solution that doesn't work on vB4...

for starters, where can I find:

Quote:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
it was moved out from forumdisplay?

there's a new solution to use a different header for each subforum?
Reply With Quote
  #2  
Old 02-21-2010, 02:47 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The new style is based on divs, not tables, so you won't find that table line in the code any longer. A basic condition based on the forumid should still work in vB4. You may want to look in the vB4 articles forum and read some articles on the new syntax used in the templates.
Reply With Quote
  #3  
Old 02-21-2010, 03:35 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Missy Lynne (I will name my first baby-girl Lynne)

well this was the old solution for ForumDisplay:

Find:
Quote:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
Replace:
Quote:
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
And find:
Quote:
<td class="tcat" width="100%">$vbphrase[subforums]<span class="normal">
And replace:
Quote:
<td x width="100%" align="center"><span class="normal">
<if condition="in_array($foruminfo['forumid'], array(1,2,3,4,5))">
<img src="images/catalogs/$foruminfo[forumid].png" align="center" alt="IOGAMES" border="0" />
</if>
Can someone pinpoint the new solution?
Reply With Quote
  #4  
Old 02-21-2010, 07:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try just adding this code where you want it?
HTML Code:
<vb:if condition="in_array($forum['forumid'], array(1,2,3,4,5))">
        <img src="images/catalogs/{vb:raw forum.forumid}.png" align="center" alt="IOGAMES" border="0" />
</vb:if>
You didn't say what template, so I'm not sure the variable name is correct, but it would be something like that.
Reply With Quote
  #5  
Old 02-22-2010, 11:16 AM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ForumDisplay I use on vB 3.8.x

any?
Reply With Quote
  #6  
Old 02-22-2010, 10:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, so where did you try it in FORUMDISPLAY for vB4? You need to post your code and tell us what the result was in order for us to help.
Reply With Quote
  #7  
Old 02-22-2010, 11:02 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well Miss Lynne... I noticed that you're becoming a little tough as Moderator... allow me to send you a strawberry cake made by my Mom and a Cactus for your desktop...

First I sold my board, I was wrong about the scope of vB... second I'm helping someone... I pulled out the code from my HDD, tried to implement it and 'Voil?'... I couldn't find where to place it... so I've derailed 2 days from my work, which I love... and facing again the community indifference...

What about a vacation everything paid to Cancun?
Reply With Quote
  #8  
Old 02-23-2010, 12:51 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem is, even if you add that line into the template, most likely there will need to be some CSS written to make it look correct. That is why I was kinda hoping to see exactly what is being added and perhaps get a link to see it working. I really have no clear picture of what you are wanting to do. I could throw an image onto my test site somewhere, but it isn't necessarily where someone else would put it and so it's real hard to know what the end result would be. You haven't even posted an image to show what you are trying to achieve.

The stuff I posted is probably correct and you would add it into the same template you were adding it before.

There may even be a mod written to do whatever you want to do.
Reply With Quote
  #9  
Old 02-23-2010, 12:15 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let's say:

- an image 800px x 150px
- centered
- working as Header for the Subforum
- between forum navbits and 'new thread' button

Reply With Quote
  #10  
Old 02-23-2010, 08:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just add it below the navbar in the FORUMDISPLAY template. You actually have to use foruminfo, instead of forum:

HTML Code:
<vb:if condition="in_array($foruminfo['forumid'], array(1,2,3,4,5))">
<div align="center"><img src="images/catalogs/{vb:raw foruminfo.forumid}.png" align="center" alt="IOGAMES" border="0" width="800" height="150" /></div>
</vb:if>
And it isn't community indifference, it was lack of details given. Instead of talking about what used to be the code, it would have helped to just say what you wanted - give us an image of what you want.
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 02:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05807 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_html
  • (5)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
  • (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_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