Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Put a Column on the Left Side of Every Forum Page Details »»
Put a Column on the Left Side of Every Forum Page
Version: 1.1, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 07-08-2005 Last Update: 08-16-2005 Installs: 338
Uses Plugins Template Edits
 
No support by the author.

This little PRODUCT will provide you with a template to put content in a column going down the left side of every forum page.

What you put there is limited only by your imagination.

This can easily be combined with the right column product to have a column on both sides.

To use this with the right column product , change the footer code to:
Code:
<!-- Right Column Code  -->
</td>
<td width="160" valign="top" align="left">$rightcolumn</td>
</tr>
</table>
</td></tr>
</table>
<!-- End Right Column Code -->
Changes in 1.1
Some very important changes were made to the header and footer template changes. Please modify your header and footer code to use the new version.

This is now a PRODUCT and not a plugin. Use the product manager to import it. If you are upgrading, copy the contents of your left_column template to notepad BEFORE you install the product. Then, replace the template contents with your backup.

This version now includes sample html in the left_column template. Thanks to iguanairs for that code.

Show Your Support

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

Comments
  #402  
Old 10-30-2006, 04:34 PM
hydn hydn is offline
 
Join Date: Oct 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whenever I load this hack it load SUPER SLOW on IE. Anyway around this?
Reply With Quote
  #403  
Old 10-30-2006, 09:56 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may have some errors in your code if it is running very slowly.
Reply With Quote
  #404  
Old 11-01-2006, 01:19 AM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have some glitches in IE7 when using this product, please have a look:

http://www.mcseboard.de/temp/skyscraper.gif

1) Table head of showthread doesn't fit (left side)
2) Right part of a post is cut, no matter if browser is maximized or not

Any ideas?

Gr8 hack btw, I really like it and hopefully the glitches can be fixed easily.

Thanks,
-Tom
Reply With Quote
  #405  
Old 11-02-2006, 03:43 PM
LaCN LaCN is offline
 
Join Date: Feb 2005
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I put this column under my navbar, which looks verry well

I also added a few conditionals to have it only show on some forums...

But..
In the leftcolumn template, I removed all code, and added a $variable from a plugin I made.
But it won't show
the plugin includes a php-page which has for example: $var = "test";
the leftcolumn template has: $var

It did show when I used peterska2's show left column on front page hack.
But I deinstaleld that one, and trying to use this one


Why doesn't it show a plugin variable ?



edit, even without the forum-conditionals it doesn't show anywhere, not even on the main page


btw, if someone also wants forum-conditionals, use this:
PHP Code:
<if condition="in_array($forumid, array(2,3,4,5))">
  
add ur html here
</if> 
Where 2, 3, 4, etc are forum-id's
Reply With Quote
  #406  
Old 11-02-2006, 09:33 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

variables will be required to be placed in the hook which is being used for the plugin to generate the template code in order to use them in the template.
Reply With Quote
  #407  
Old 11-03-2006, 11:28 AM
LaCN LaCN is offline
 
Join Date: Feb 2005
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I tried some area's out, and it works in cache_templates.
I dunno if that's the best one though o_0

I guess I think how it works..
level 1 is the main template. u can use global_start and prolly forum-home stuff here.
level 2 is the template within the template, which I'm in prolly now... and that doesn't work with level 1 hooks...

Is that correct ?
Reply With Quote
  #408  
Old 11-22-2006, 05:56 PM
oroo oroo is offline
 
Join Date: Apr 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need to show the category list which stored in database on the sidebar. I tried to write php code in a seperate file and add this php file as a plugin. which is like follows:

php file: forum_leftbar_plugin.php
PHP Code:
<?php
    
function display_categories() {
        
$sql "SELECT blablabla FROM blablabla";
        
$result mysql_query($sql);
        while(
$row mysql_fetch_row($result)) {
            
$categoryID $row[0];
            
$title $row[1];
            print(
"
                <div class='leftsidebutton'>
                    <a href='#' class='link'>
$title</a>
                </div>
            "
);
        }
    }
    
display_categories();
?>
and this is a plugin which I add into global_start of both Right Column and vBulletin product.

Code:
ob_start();
  include(path/to/file/forum_leftbar_plugin.php');
  $forum_leftbar_plugin = ob_get_contents();
ob_end_clean();
I actived either one of them at a time, but when I loaded page from ie browser, it gave me this error message: ('null' is null or not an object) And the left bar has been disappeared.

Please help me out here.
Reply With Quote
  #409  
Old 11-24-2006, 06:37 PM
oroo oroo is offline
 
Join Date: Apr 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please help!
Reply With Quote
  #410  
Old 11-27-2006, 03:06 PM
oroo oroo is offline
 
Join Date: Apr 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please~ Help!
Reply With Quote
  #411  
Old 12-08-2006, 06:30 PM
DannyMilner DannyMilner is offline
 
Join Date: Aug 2005
Location: Leeds, UK
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ;0 Need this
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 05:42 AM.


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.05075 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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