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
Partner/Advertising Box for Forumhome fashion Sidebar (CSS) Details »»
Partner/Advertising Box for Forumhome fashion Sidebar (CSS)
Version: 1.00, by Allan Allan is offline
Developer Last Online: Mar 2017 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.1 Rating:
Released: 02-08-2010 Last Update: Never Installs: 26
Template Edits
 
No support by the author.

This mod create a box fashion sidebar for forumhome (with sidebar CSS).
  • In the "FORUHOME" template, find:
PHP Code:
<vb:if condition="$show['sidebar']"
  • Add above:
PHP Code:
<!-- Block Partner Advertising -->
<
br />
<
div id="bloc_perso">
        <
ul>
            <
li>
    <
div class="block smaller">
        <
div class="blocksubhead">
             <
class="collapse" style="position : static" id="collapse_blocperso" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" border="0" /></a>
            <
img src="images/site_icons/event-alert.png" alt="" />
            <
span class="blocktitle">Partner Area</span>
        </
div>
        <
div id="blocperso" class="blockbody floatcontainer">
            <
ul class="blockrow">
                <
li class="avatarcontent floatcontainer">
                    <
div align="center">
                    <
a href="http://www.partner1.com">partner1</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner2.com">partner2</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner3.com">partner3</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner4.com">partner4</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner5.com">partner5</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner6.com">partner6</a>
                    </
div>
                                </
li>   
            </
ul>
        </
div>
    </
div>
    <
div class="underblock"></div>
</
li>
        </
ul>
    </
div>
<!-- 
Block Partner Advertising --> 
  • In the "forumhome.css" template, add to the end:
PHP Code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* BLOCK PARTNER OR ADVERTISING */
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#bloc_perso {
    
float:left;
    
width:{vb:stylevar forum_sidebar_width};
    
padding:17px 0;
    
margin-bottom:3em;

}
#bloc_perso .block {
    
margin-bottom:4px;
    
padding:6px;
    
background:{vb:stylevar forum_sidebar_background};
    -
moz-border-radius-top{vb:stylevar left}:{vb:stylevar border_radius};
    -
moz-border-radius-top{vb:stylevar right}:{vb:stylevar border_radius};
    -
webkit-border-top-left-radius: {vb:stylevar border_radius};
    -
webkit-border-top-right-radius: {vb:stylevar border_radius};
}
#bloc_perso .blockbody {
    
color: {vb:stylevar forum_sidebar_content_color};
    
background:{vb:stylevar forum_sidebar_content_background.backgroundColor};
    -
moz-border-radius:{vb:stylevar border_radius};
    -
webkit-border-radius: {vb:stylevar border_radius};
    
padding:0;
    
border:{vb:stylevar forum_sidebar_content_border};
}
#bloc_perso .blockrow {
    
border-top:1px solid {vb:stylevar forum_sidebar_content_background.backgroundColor}; /* makes the bevel look part of the background */
    
-moz-border-radius:{vb:stylevar border_radius};
    -
webkit-border-radius: {vb:stylevar border_radius};
    
background:{vb:stylevar forum_sidebar_content_background};
    
_background-imagenone;
}
#bloc_perso .underblock {
    
height:{vb:stylevar forum_sidebar_content_separator_height};
    
background:{vb:stylevar forum_sidebar_content_separator_background};
}

#bloc_perso .blockrow,
#bloc_perso .blocksubhead {
    
padding:10px 6px 10px 6px;
    
color: {vb:stylevar forum_sidebar_header_color};
}
#bloc_perso .blocksubhead {
    
background:transparent none;
    
height:{vb:math {vb:stylevar mid_fontSize}*{vb:stylevar line_height} + 2px };
    
padding5px 6px;
    
border:none;
    
outline:none;
    
font-weight:bold;
}
#bloc_perso > ul {
    
background-color:{vb:stylevar forum_sidebar_background.backgroundColor};
    
border:{vb:stylevar forum_sidebar_border};
    -
moz-border-radius:{vb:stylevar border_radius};
    -
webkit-border-radius: {vb:stylevar border_radius};
    -
moz-box-shadow:-2px 2px 2px {vb:stylevar shadow_color};
    
float:{vb:stylevar left};
    
width:100%;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* BLOCK PARTNER OR ADVERTISING */
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  • Upload this image "pucen.png" to "../images/misc/"
PS: Just change the links and names to Partner ou Advertising in my example.

Screenshots

File Type: jpg partner.jpg (31.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-07-2010, 08:24 AM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<vb:if condition="$show['sidebar']">

Can not find this code in v4.0.2 template, Any ideas ?

cheers

sorry my error search, all done an works great cheers
Reply With Quote
  #13  
Old 03-07-2010, 09:22 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by betts02 View Post
<vb:if condition="$show['sidebar']">

Can not find this code in v4.0.2 template, Any ideas ?

cheers

sorry my error search, all done an works great cheers
its all in FORUMHOME template
try to use Search in Templates

search the red code

(CODE HERE)

{vb:raw ad_location.board_below_whats_going_on}


or you can search and add here too

<!-- end what's going on box -->

(CODE HERE)

goodluck and best regards

Reply With Quote
  #14  
Old 10-04-2010, 09:47 PM
Gn_Snake Gn_Snake is offline
 
Join Date: Feb 2006
Location: Italy
Posts: 358
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to make this change in forumhome but not for any other section thread .. is that possible?
Reply With Quote
  #15  
Old 10-26-2010, 06:09 PM
MichaelDance MichaelDance is offline
 
Join Date: Dec 2009
Location: Warwickshire, UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found it better then you put
Code:
<!-- Block Partner / Advertising -->
<br />
<div id="bloc_perso">
        <ul>
            <li>
    <div class="block smaller">
        <div class="blocksubhead">
             <a class="collapse" style="position : static" id="collapse_blocperso" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" border="0" /></a>
            <img src="images/site_icons/event-alert.png" alt="" />
            <span class="blocktitle">Partner Area</span>
        </div>
        <div id="blocperso" class="blockbody floatcontainer">
            <ul class="blockrow">
                <li class="avatarcontent floatcontainer">
                    <div align="center">
                    <a href="http://www.partner1.com">partner1</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner2.com">partner2</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner3.com">partner3</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner4.com">partner4</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner5.com">partner5</a>&nbsp;&nbsp;<img src="images/misc/pucen.png" border="0" alt="" />&nbsp;&nbsp;<a href="http://www.partner6.com">partner6</a>
                    </div>
                                </li>   
            </ul>
        </div>
    </div>
    <div class="underblock"></div>
</li>
        </ul>
    </div>
<!-- Block Partner / Advertising -->
Under the

<body>

{vb:raw header}

{vb:raw navbar}
Reply With Quote
  #16  
Old 08-19-2011, 12:26 AM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work in 4.1.5?

and can this be added to the bottom somewhere? like after ''What's Going On?""?

thanks
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 06:58 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.04877 seconds
  • Memory Usage 2,337KB
  • Queries Executed 21 (?)
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)bbcode_code
  • (3)bbcode_php
  • (1)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
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_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