vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Put a Column on the Left Side of Every Forum Page (https://vborg.vbsupport.ru/showthread.php?t=91888)

hydn 10-30-2006 04:34 PM

Whenever I load this hack it load SUPER SLOW on IE. Anyway around this?

peterska2 10-30-2006 09:56 PM

You may have some errors in your code if it is running very slowly.

Thomas P 11-01-2006 01:19 AM

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

LaCN 11-02-2006 03:43 PM

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 :confused:
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
:)

peterska2 11-02-2006 09:33 PM

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.

LaCN 11-03-2006 11:28 AM

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 ?

oroo 11-22-2006 05:56 PM

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.

oroo 11-24-2006 06:37 PM

Please help!

oroo 11-27-2006 03:06 PM

Please~ Help!

DannyMilner 12-08-2006 06:30 PM

Thanks ;0 Need this

StOOOsH 12-17-2006 12:44 AM

can you make it sit under the navbar or does it have to be beside it?

brhoom 12-17-2006 02:37 AM

thanx for hack

KipLarson 01-03-2007 06:16 PM

Does this work with all versions of vB 3.5x?

Also does it work for all versions of vB 3.6x?

sammeier 01-05-2007 10:44 PM

How do you edit whats inside the box?

peterska2 01-06-2007 01:17 PM

edit the template left_column

KipLarson 01-21-2007 07:07 AM

Does this work with vbadvanced modules? and 3.6?

peterska2 01-21-2007 11:57 AM

Yes, and yes. Although with vBAdvanced it will move everything to the right to make room for the column on the left.

King Liquid 01-22-2007 05:27 AM

Very sweet mod! Thankyou!

ryansmith 01-22-2007 05:01 PM

How do I add a gap between the two different tables? You can see here that they are stacked on top of each other, but I'd like there to be a space in the middle. In the left_column template there is a <br /> after the last </table> statement. Underneath that I copied the new <table> code. I tried adding a second <br /> between the two and it didn't change anything. What am I missing? As you can see in the screen shot, I'd like there to be a gap between the boxes like the gap between the categories. Here's a screen shot and the code.

Code:

<table align="left" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="95%">
<tr>
<td class="tcat"><span class="smallfont"><b>&raquo; Navigation</b></span></td>
</tr>
<!-- Begin custom code -->
<tr>
<td class="alt1"><a href="/library/index.shtml">Library</a></td>
</tr>
<tr>
<td class="alt1"><a href="/gallery/index.php">Media Gallery</a></td>
</tr>
<tr>
<td class="alt1"><a href="/auctions/index.php">Auctions</a></td></tr>
<tr>
<td class="alt1"><a href="/links.html">Links</a></td></tr>
<tr>
<td class="alt1"><a href="misc.php?do=flashchat">Chat Room</a></td>
</tr>
<tr>
<td class="alt1"><a href="/rules/index.html">Forum Rules</a></td>
</tr>
<tr>
<td class="alt1"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
</tr>
<tr>
<td class="alt1"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
</tr>
<tr>
<td class="alt1"><a href="billspaypal.php?">$vbphrase[billspp_donate]</a></td>
</tr>
<!-- End custom code -->

</td>
</tr>
</table>
<br />

<table align="left" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="95%">
<tr>
<td class="tcat"><span class="smallfont"><b>&raquo; What's New</b></span></td>
</tr>
<!-- Begin custom code -->
<tr>
<td class="alt1">Our new <a href="forumdisplay.php?f=106">Product and Livestock Reviews</a> section is now open!</td>
</tr>
<!-- End custom code -->

</td>
</tr>
</table>
<br />


KipLarson 01-23-2007 06:12 PM

ryan: couldn't you just ad a break?

Code:

<br> or <br />
?

Also, Kerry:

Is it possible to make it not show up on certain pages? i.e. showthread? usercp?

Would just some simple if conditionals work?

(and thanks for answering my previous question ;) )

ryansmith 01-23-2007 07:22 PM

There's already a <br /> there so I tried adding a second one, and nothing happened. On IE7 the second table isn't even under the first table, it's to the right of it... and it's overlapped by the other sections of the forum, such as the categories.

Ryan

KipLarson 01-24-2007 04:09 PM

Quote:

Originally Posted by ryansmith (Post 1165950)
There's already a <br /> there so I tried adding a second one, and nothing happened. On IE7 the second table isn't even under the first table, it's to the right of it... and it's overlapped by the other sections of the forum, such as the categories.

Ryan

Hmm, I don't know then, Hopefully Kerry-Anne will come back and help your question and mine too :)

KipLarson 01-29-2007 03:03 PM

Is it possible to make it not show up on certain pages? i.e. showthread? usercp?

Would just some simple if conditionals work?

(I asked this a week ago or so, but figured you might not have seen it, so I posted again. If anyone else knows the answer to the above question, let me know.)

:D

peterska2 01-29-2007 08:21 PM

Quote:

Originally Posted by ryansmith (Post 1165124)
How do I add a gap between the two different tables? You can see here that they are stacked on top of each other, but I'd like there to be a space in the middle. In the left_column template there is a <br /> after the last </table> statement. Underneath that I copied the new <table> code. I tried adding a second <br /> between the two and it didn't change anything. What am I missing? As you can see in the screen shot, I'd like there to be a gap between the boxes like the gap between the categories. Here's a screen shot and the code.

Code:

<table align="left" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="95%">
<tr>
<td class="tcat"><span class="smallfont"><b>&raquo; Navigation</b></span></td>
</tr>
<!-- Begin custom code -->
<tr>
<td class="alt1"><a href="/library/index.shtml">Library</a></td>
</tr>
<tr>
<td class="alt1"><a href="/gallery/index.php">Media Gallery</a></td>
</tr>
<tr>
<td class="alt1"><a href="/auctions/index.php">Auctions</a></td></tr>
<tr>
<td class="alt1"><a href="/links.html">Links</a></td></tr>
<tr>
<td class="alt1"><a href="misc.php?do=flashchat">Chat Room</a></td>
</tr>
<tr>
<td class="alt1"><a href="/rules/index.html">Forum Rules</a></td>
</tr>
<tr>
<td class="alt1"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
</tr>
<tr>
<td class="alt1"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
</tr>
<tr>
<td class="alt1"><a href="billspaypal.php?">$vbphrase[billspp_donate]</a></td>
</tr>
<!-- End custom code -->

</td>
</tr>
</table>
<br />

<table align="left" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="95%">
<tr>
<td class="tcat"><span class="smallfont"><b>&raquo; What's New</b></span></td>
</tr>
<!-- Begin custom code -->
<tr>
<td class="alt1">Our new <a href="forumdisplay.php?f=106">Product and Livestock Reviews</a> section is now open!</td>
</tr>
<!-- End custom code -->

</td>
</tr>
</table>
<br />




Quote:

Originally Posted by ryansmith (Post 1165950)
There's already a <br /> there so I tried adding a second one, and nothing happened. On IE7 the second table isn't even under the first table, it's to the right of it... and it's overlapped by the other sections of the forum, such as the categories.

Ryan

Ryan,

Double check your code. You have a malformed section here

Code:

<tr>
<td class="alt1"><a href="billspaypal.php?">$vbphrase[billspp_donate]</a></td>
</tr>
<!-- End custom code -->

</td>
</tr>
</table>

get rid of the </td></tr> above the </table> and you should be right as rain then.


Quote:

Originally Posted by KipLarson (Post 1165908)

Also, Kerry:

Is it possible to make it not show up on certain pages? i.e. showthread? usercp?

Would just some simple if conditionals work?

(and thanks for answering my previous question ;) )

Quote:

Originally Posted by KipLarson (Post 1166478)
Hmm, I don't know then, Hopefully Kerry-Anne will come back and help your question and mine too :)

Kip,

Yes you can use conditionals such as
Code:

<if condition="THIS_SCRIPT != showthread">
to stop if from appearing on other pages. You need to find the names for the scripts which are defined inside each file near the top. This conditional will need to be placed around the header and footer template edits.

KipLarson 01-29-2007 09:04 PM

Thanks Kerry-Anne. I think the only spot I won't have it on is my user cp and perhaps threads. What do you recommend? Or do you think it should be done on every page of the site?

I suppose it depends, but just trying to get an idea.

Thanks again.

twells22 01-30-2007 04:49 PM

Ok, maybe I'm an idiot but I can't find where to edit the information in the new column? It works with 3.6.4 right?

wolf32 02-05-2007 12:30 AM

I'm sure somebody has already asked this, but I just can't find it. I tried to make is show up only on the forumhome but came up empty-handed, so where do you go to alter the coding for it to show up only on the forumhome and no other pages? Thanks in advance.

Staxed 02-05-2007 12:32 AM

Quote:

Originally Posted by wolf32 (Post 1174852)
I'm sure somebody has already asked this, but I just can't find it. I tried to make is show up only on the forumhome but came up empty-handed, so where do you go to alter the coding for it to show up only on the forumhome and no other pages? Thanks in advance.

https://vborg.vbsupport.ru/showthread.php?t=112704 use this mod instead

jeffcoll 02-06-2007 05:04 PM

Just downloaded it and will try it tomorrow. It must be great to be a guru on this stuff.

peterska2 02-06-2007 11:09 PM

Quote:

Originally Posted by KipLarson (Post 1170056)
Thanks Kerry-Anne. I think the only spot I won't have it on is my user cp and perhaps threads. What do you recommend? Or do you think it should be done on every page of the site?

I suppose it depends, but just trying to get an idea.

Thanks again.

You can stop it from showing in the usercp and threads by using this conditional around your header and footer template edits.

Code:

<if condition="(THIS_SCRIPT != 'showthread') AND (THIS_SCRIPT != 'profile') AND (THIS_SCRIPT != 'usercp')">
Template edit for this modification here
</if>

Quote:

Originally Posted by twells22 (Post 1170679)
Ok, maybe I'm an idiot but I can't find where to edit the information in the new column? It works with 3.6.4 right?

There is a new template called left_column in your style manager.

Quote:

Originally Posted by jeffcoll (Post 1176106)
Just downloaded it and will try it tomorrow. It must be great to be a guru on this stuff.

Guru? Where? Point them out to me if you see one ;)

jeffcoll 02-07-2007 02:18 PM

I have added the google code but it doesn't show up. Any help would be great.

http://www.discountorlandovacation.com/forum/

Above is the forum.

Thanks

KipLarson 02-09-2007 02:10 AM

Is it ok if I use the navbar to put the code in instead of the header? It looks better on my site using it like that. And it's ok if I change the width of the column in the navbar template to something other than 160?

One other thing:

I found the "<" there was an extra one in the intial leftcolumn.txt (if you ever get a chance you should remove that.

Code:

<<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
And I have one last question:

Is there a way to drop down the side column to be level with the threads in the forum header? (So they line up? But only on the forum display?)

Because it looks good on the forum home... but as soon as I look at forum display it doesn't look that good.

Thanks

Thanks for the help thus far. Great mod.

beebs 02-11-2007 04:35 AM

Quick (likely stupid) question.. is there a way to have a left side bar as well as the top navbar? If so, how would one go about doing this?

KipLarson 02-13-2007 06:04 PM

Quote:

Originally Posted by KipLarson (Post 1178032)
Is it ok if I use the navbar to put the code in instead of the header? It looks better on my site using it like that. And it's ok if I change the width of the column in the navbar template to something other than 160?

One other thing:

I found the "<" there was an extra one in the intial leftcolumn.txt (if you ever get a chance you should remove that.

Code:

<<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
And I have one last question:

Is there a way to drop down the side column to be level with the threads in the forum header? (So they line up? But only on the forum display?)

Because it looks good on the forum home... but as soon as I look at forum display it doesn't look that good.

Thanks

Thanks for the help thus far. Great mod.

Anyone know how to drop it down on forum display or do you all think it doesn't look that bad?

KipLarson 02-17-2007 06:26 PM

Is there any way to add breaks between boxes? Because I put them in, but nothing happens.

KipLarson 03-03-2007 02:57 AM

Quote:

Originally Posted by Irisfire (Post 1174854)

I can't access this thread for some reason... I saw it earlier today and even posted in it, but now it's gone. I really want to use the mod that only displays on the forum home... Any ideas? Where is the mod?

johnstires 03-10-2007 06:55 PM

This hack has a template conflict in IE under to following conditions:

http://www.prenatalyogacenter.com/fo...ead.php?t=2061

If you have a fixed width forum
Are trying to post images in a GARS forum

This is complicated and I do not know how to fix it.

Here's the deal.

left column hack works fine for most pages on fixed width boards. The only page it doesn't work with is the post view. If order to make it work you need to change your spaceropen template from:

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" style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
<else />
<div align="center">
        <div class="page" style="width:$stylevar[outerdivwidth]; text-align:$stylevar[left]">
                <div style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
</if>

to the following:

Code:

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

That makes the post view look fine. However when you convert the forum to a GARS forum and then add images, the entire thing breaks. and the width gets all jacked up.

There is some conflict between the left column, the spaceropen template and GARS.

But I have no clue what. All I know is that when I remove the left column and revert the spaceropen template, the GARS forum looks fine. And when I remove the GARS forum but leave the left column and the spaceropen (with the width change above) everything is fine.

I just can't have both.

Davey-UK 03-11-2007 12:28 PM

Before you answer with do a search, i have!
I am trauling thro thousands of pages as we speak.
Would this work with 3.6.4??
Thanks

aramik 03-12-2007 01:05 PM

this is a excellent mod, but ive got 2 problems after getting everything working so great.


#1 - http://www.animeseat.com/news-announ....html#post9941

it's not aligning to the correct width...


#2 - http://www.animeseat.com/news-announcements/

these bars just seem to pop out of no where :(



pleaseeeeeeeeee help

Vierie 03-13-2007 07:56 PM

Quote:

Originally Posted by Davey-UK (Post 1200766)
Before you answer with do a search, i have!
I am trauling thro thousands of pages as we speak.
Would this work with 3.6.4??
Thanks

Yes, it does.


All times are GMT. The time now is 01:37 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.01601 seconds
  • Memory Usage 1,866KB
  • 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
  • (11)bbcode_code_printable
  • (2)bbcode_php_printable
  • (12)bbcode_quote_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
  • (40)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