vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Home Enhancements - Add Advert Sponsor Image to Category Strip (https://vborg.vbsupport.ru/showthread.php?t=147579)

LEAD_WEIGHT 05-18-2007 10:00 PM

Add Advert Sponsor Image to Category Strip
 
Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Forum Home Templates -> forumhome_forumbit_level1_nopost
# if no moderator column leave column span as-is
# if moderator column change column span to accommodate extra sapce
# single avert(s) on more than one category strip, change X,Y,Z to forum identification number.
# multiple avert(s), repeat conditional, change X,Y,Z to forum identification number.
# add sponcer .gif to image/misc folder

Code:

<tbody>
        <tr>
                <td class="tcat" colspan="2"
                        <if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
                <td class="tcat" colspan="3"                       
                        <if condition="in_array($forum[forumid], array(X,Y,Z))">style="background: url($stylevar[imgdir_misc]/sponcer.gif) no-repeat top left;" height="30" width="100%"</if>
                </td>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>

Preview
Attachment 64498
If this has been created... Oops! For default vbulletin style

LEAD_WEIGHT 05-19-2007 12:25 AM

Revserved

almightyone 05-28-2007 04:02 PM

you should have added center tags to center the image n the cell IMO it would look better

LEAD_WEIGHT 05-29-2007 03:51 PM

What I should of did was place the exact image size to fill space instead of slapping the first image I could find. ;) I will add image that fill space for a preview.

rapidphim 08-13-2007 06:30 PM

Can this hack put the sponsore images in thread title/description instead of forum title section?

croportal 11-29-2007 07:44 AM

do u know how can do this

thank you


All times are GMT. The time now is 03:50 PM.

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.01241 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete