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)
-   -   Miscellaneous Hacks - Create Leftside Rightside Column - includes Table(s) (https://vborg.vbsupport.ru/showthread.php?t=148902)

A|X 07-01-2007 06:13 PM

many thank for your respond.
waiting for your feedback.

LEAD_WEIGHT 07-01-2007 06:53 PM

-----------------
Amend post
-----------------
Note: [S]It does not work in IE 7. I have to go though it again to see what I can do to work with 'Separate Categories Mod'.[/S] I have fixed what was wrong in IE7. This is going to work for only forum index and if you want it to line up on other pages, then please post a request and I will give more information in how to achieve this.


# find in template: footer
# add <td> {Table Data Cell} with padding
# adjust padding 15=top 0=right 0=bottom 0=left
Code:

$spacer_close
<!-- /content area table -->


<!-- leftside column -->
        </td>
</tr>
</table>
<!-- / leftside column -->

<!-- rightside column -->
        </td>
        <td width="10px"></td>
        <td style="padding: 15px 0px 0px 0px" valign="top" width="175">
                <table class="tborder" border="0" cellspacing="1" cellpadding="6" width="100%" align="center">
<!-- rightbar_1 -->

# find in template: footer
# replace variable '$stylevar[outertablewidth]' with numerical percent
Note: This will correct footer and display it as Forum lenght.
Code:

<!-- / rightside column -->

<form action="$vboptions[forumhome].php" method="get">
       
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" class="page" align="center">
<tr>

# find in template: navbar
# adjust padding 15=top 10=right 0=bottom 0=left
Code:

<!-- / PAGENAV POPUP -->
</if>

<!-- leftside column -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td style="padding: 15px 10px 0px 0px" width="175" valign="top" class="page" style="0px;">
                <table class="tborder" border="0" cellspacing="1" cellpadding="6" width="100%" align="center">
<!-- leftsidebar_1 -->

http://img115.imageshack.us/img115/6...lumnrd1.th.gif

A|X 07-03-2007 05:01 AM

LEAD_WEIGHT , thank you very much for your help. All problem solve now :D

Ski-Whiz 07-03-2007 06:05 PM

Great mod..

Can you please post a conditional based on usergroups??

For example, do not display for usergroup X (paid membership) or vice versa....


Would I just wrap your code in this:

PHP Code:

<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7)">
            
</if> 


thanks for the nice mod!!

LEAD_WEIGHT 07-04-2007 08:46 AM

If you are using the other conditional in the instruction, you can combine like this. This will make it not show for these usergroup(s). You need ! to not display.

PHP Code:

<if condition="in_array(THIS_SCRIPT, array('index','forumdisplay','showthread')) AND !is_member_of($vbulletin->userinfo, array(5, 6, 7))">

</if> 


njoker555 07-04-2007 04:52 PM

ok im a pretty newbie at this and would like to know how the first image blindman put up was done - the codes for that and the settings, how would i set that up to be like that?

response is appreciated

njoker555 07-04-2007 09:08 PM

ok i kinda got it but it seems to look really really bad when u view a thread with more than one page - here is an example

http://www.gamers-forum.com/showthread.php?t=1019

help is appreciated - thanks!

edit: it only seems to be like that in ie7 :( and in firefox the bar on top is longer than the post box

LEAD_WEIGHT 07-04-2007 10:37 PM

njoker555 you need to click 'installed' for any more help. ;)

# find template: spacer_open
# replace all contents with below
Code:

<!-- open content container -->
<if condition="$show['old_explorer']">
        <table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center"><tr><td class="page" class="spacer-open">
<else />
<div align="center">
        <div class="page" style="width:$stylevar[outerdivwidth]; text-align:$stylevar[left]">
                <div class="spacer-open">
</if>

# Admin CP -> Styles & Templates -> Style Manager -> All Styles Options -> Go -> Additional CSS Definitions
# enter below into second input box

Code:

.spacer-open { padding: 0 25px; }
.spacer-open .spacer-open { padding: 0; }


njoker555 07-04-2007 10:59 PM

thanks a lot - marked as installed, thought i did it already but didnt :)

well anyway, your thing helped me fix it in FF but not in ie - in IE - check this following thread - the first page, the column is overlapping the text area and in the second page, it really really stretches

http://www.gamers-forum.com/showthread.php?t=56

help appreciated once again, thanks!

LEAD_WEIGHT 07-04-2007 11:05 PM

njoker555 you must of miss the last part of the instruction on fisrt post.
Admin CP > Styles & Templates > Style Manager > StyleVars {Drop Down Menu} > Sizes and Dimensions
  • Message Area Width (pixels): [440px]
    (This value allows you to specify the width in pixels of the text box used for all message posting in vBulletin)
  • Code Block Width (pixels): [440px]
    (This value controls the width of [code], [php] and [html] bbcode blocks. You may set this value to 'auto', but if you do, Internet Explorer will stretch the width of the block rather than inserting a scrollbar.)

Maintenance > Update Counters > Rebuild Post Cache

You also need to use postbit instead of postbit_legacy to utilize the most of message space.


All times are GMT. The time now is 01:07 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.01187 seconds
  • Memory Usage 1,751KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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