vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Left side column on forum home and forum display (https://vborg.vbsupport.ru/showthread.php?t=230111)

Seven Skins 12-12-2009 10:00 PM

Left side column on forum home and forum display
 
1 Attachment(s)
Left side column on forum home and forum display

As the title says this mod simply puts a column on forumhome and forumdisplay pages.

Installation:
Download the attached XML file.
Import the product.
Edit navbar and footer templates. (See below)


Find in navbar template:
HTML Code:

<div class="body_wrapper">
Add below:
HTML Code:

{vb:raw ss_leftcolumn_start}




Add the code below to the first line of footer template:
HTML Code:

{vb:raw ss_leftcolumn_end}


Footer template after adding the code:
Code:

{vb:raw ss_leftcolumn_end}

<vb:if condition="!empty($ad_location['ad_footer_start']) or !empty($ad_location['global_above_footer'])">
<div style="clear: {vb:stylevar left}">
  {vb:raw ad_location.ad_footer_start}
  {vb:raw ad_location.global_above_footer}
</div>
</vb:if>

......



Once you have installed the modification edit "SevenSkins - Templates > ss_leftcolumn_contents to put your advert or contents in the side column.


Finally don't forget to click install.


Thanks to Lynne for additional css plugin code which I used in this modification.


PS. Do not use my side column mods together use only one.

================================================== ==

Code:

If you want to enable or disable this hack on different pages of the forum ..
Edit the ss_leftcolumn_start and ss_leftcolumn_end templates:
 
Find:
<vb:if condition="THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay'">
 
 
Edit it to ... for home page:
<vb:if condition="THIS_SCRIPT == 'index'">
 
Edit it to ... for homepage, forumdisplay and showthread:
<vb:if condition="THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread'">

================================================== ==


Updates:
15 Jan 10: Updated
- Save the code from "ss_leftcolumn_contents" template. (Code for ads, etc)
- Revert template belonging to this product.
- Then import the product over writting the existing installation.
- Put your ad code in the "ss_leftcolumn_contents" template.


15 Jan 10: Updated for vBulletin 4.0.1
2 templates has been changed.
- Save the code from "ss_leftcolumn_contents" template. (Code for ads, etc)
- Revert template belonging to this product.
- Then import the product over writting the existing installation.
- Put your ad code in the "ss_leftcolumn_contents" template.


22 Dec 09: Working with vBulletin 4.0.0 (Gold)


.

RamisK 12-13-2009 03:24 PM

very usefull. thanks

g00gl3r 12-13-2009 04:53 PM

Reserved. I need this. :)

Thanks. :D

tafreeh 12-13-2009 06:27 PM

this feature is now default by Vb, unless you have got something extra in it... do you ?

HMBeaty 12-13-2009 06:38 PM

Quote:

Originally Posted by tafreeh (Post 1930079)
this feature is now default by Vb, unless you have got something extra in it... do you ?

IMO, it looks better than the default and the default one is too wide for some people (as stated in the other thread)

bluidkiti 12-13-2009 07:12 PM

I definitely like this better than the default one! And it doesn't bounce when you go to the index page. :-)

HMBeaty 12-13-2009 07:15 PM

Quote:

Originally Posted by bluidkiti (Post 1930101)
How would you do this if you just want it to show on FORUMHOME page?

I definitely like this better than the default one!

You COULD edit the XML file and change:
HTML Code:

<vb:if condition="THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay'">
to
HTML Code:

<vb:if condition="THIS_SCRIPT == 'index'">
and re-import

bluidkiti 12-13-2009 07:39 PM

1 Attachment(s)
When I add a third section the white background for doc_background shrinks. Noted in images below:

Attachment 107502

Attachment 107503

I would really love to be able to add more sections to the column.

bluidkiti 12-13-2009 07:44 PM

Fixed it! :-)

Alecsmith 12-14-2009 06:01 AM

Install working fine :)

Thanks


All times are GMT. The time now is 07:21 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.01648 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete