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)

amykhar 07-08-2005 10:00 PM

Put a Column on the Left Side of Every Forum Page
 
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.

albarq 07-09-2005 08:50 PM

great

lazorde 07-09-2005 08:52 PM

thanx for hack

waza 07-09-2005 09:14 PM

i really need this for 3.0.7
Can you also do this for my version,
thx!

amykhar 07-09-2005 09:32 PM

It's been done for 3.0.7. Just do a search. :)

Amy

chanhlinh 07-10-2005 04:39 AM

I have a small question that How to creat the rightside Navigation?

Thanks in advanced!
Chanhlinh

amykhar 07-10-2005 05:02 AM

Quote:

Originally Posted by chanhlinh
I have a small question that How to creat the rightside Navigation?

Thanks in advanced!
Chanhlinh

It's the same thing, but you change the html in the header and footer templates.

Brandon Sheley 07-10-2005 05:04 AM

very nice, i'll use this when i make the big switch to 3.5
thank you

DR?@M W?@V?R 07-10-2005 06:06 AM

Some information to make and what to put in the left_column template would be good, as it seems to be over looked.

shiva 07-14-2005 08:31 AM

Sorry, can't read xml files, but is this able to restrict viewing to certain membergroups?

amykhar 07-14-2005 02:04 PM

Quote:

Originally Posted by shiva
Sorry, can't read xml files, but is this able to restrict viewing to certain membergroups?

No. But you could use template conditionals to do it.

shiva 07-15-2005 05:50 AM

Okay, not sure how to do that or where to put it though.

Could I ask for some hand holding here. :)

amykhar 07-15-2005 12:40 PM

Quote:

Originally Posted by shiva
Okay, not sure how to do that or where to put it though.

Could I ask for some hand holding here. :)

It depends on what you want to do. If you only want the column to show for some groups, you wrap the header and footer code in conditionals to make sure it is only displayed to the groups you choose.

If you want to restrict the content that some groups see, you wrap the content in your left column template in the conditionals.

shiva 07-15-2005 10:19 PM

Quote:

Originally Posted by amykhar
It depends on what you want to do. If you only want the column to show for some groups, you wrap the header and footer code in conditionals to make sure it is only displayed to the groups you choose.

Thanks for writing back, this is where I need help. Not to sure about what code would be needed, and where it should be placed

Quote:

If you want to restrict the content that some groups see, you wrap the content in your left column template in the conditionals.
Worry about one thing at a time. :)

amykhar 07-15-2005 10:31 PM

Header
Code:

<if condition="(in_array($vbulletin->userinfo['usergroupid'], array(6,27)))">
<!-- Left Column Code  -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="left">
<tr>
<td width="160" valign="top" align="left">$leftcolumn</td>
<td valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<!-- End Left Column Code -->
</if>

Footer
Code:

<if condition="(in_array($vbulletin->userinfo['usergroupid'], array(6,27)))">
<!-- Left Column Code  -->
</td></tr>
</table>
</td></tr>
</table>
<!-- End Left Column Code -->
</if>

This example would only show the column to the people in usergroups 6 and 27

shiva 07-15-2005 11:04 PM

Thanks, I will give this a shot then, once my server starts working again.

grrrr

Cyricx 07-19-2005 05:03 PM

Small note :)

In the template edit for the header you have $left_column

In the xml you have $leftcolumn

Hhehe, I just changed the header template edit to $leftcolumn and it works for me now :)

Thanks for the hack Amy :)

Sovereign 07-19-2005 05:33 PM

Yay, I can put my PHP-Nuke menu in without exposing vB to Nuke's security holes (and having to do major hacking!)

cmiller1014 07-20-2005 10:15 AM

This is great but what does the USER CP look like since it already has 2 columns?

shiva 07-20-2005 10:27 AM

Beat me to it Cyricx :)

Thing is, I would like it so the navbit is above the left column, so would adding the table code directly in the navbit template work?

Also, this doesn't look good on certain themes as well, I added my vb table code and fixed the html a bit, so the left column matches the theme design with the tables the theme uses (It's pretty standard code easy enough to find)

amykhar 07-20-2005 01:07 PM

I modified my usercp to put the column on the right hand side.

Shiva, if you look at my site, you will see that I have the navbar above the column. Just add the html that should be in the header to the bottom of the navbar. You may have to do some html tweaking though.

Cyricx 07-20-2005 03:42 PM

moved your usercp column to the right side? or the sidebar to the right?

Very curious on how you moved the usercpl, if that's what you did :)

amykhar 07-20-2005 05:53 PM

I moved the usercp one. Go register at my site and take a peek if you'd like. That way, you'll know how it looks before you tinker with yours. Moving it is easy. It's just a matter of modifiying the usercp shell template.

Cyricx 07-20-2005 07:38 PM

Yep, MGM over at vbulletin.com showed me how. I kept trying to mess with aligns hehe.

It looks awesome with the usercp on the right too :)

Thanks for the hack Amy! :)

shiva 07-20-2005 10:33 PM

Thanks as well.

I just ordered my new server, so that info will come in handy.

cmiller1014 07-22-2005 09:06 AM

Quote:

Originally Posted by amykhar
It's been done for 3.0.7. Just do a search. :)

Amy

Can you link us to this? I was unable to find it....

cmiller1014 07-22-2005 10:04 AM

This doesnt work at all for me unless I am doing something wrong. I am supposed to upload the XML file under Download / Upload plugins in the admin cp right?

cmiller1014 07-22-2005 10:06 AM

this friggin sucks. Can you provide some more info please? How about a template we can use to make it look like the rest of VB? :(

steven s 07-25-2005 11:16 AM

Quote:

Originally Posted by cmiller1014
This doesnt work at all for me unless I am doing something wrong. I am supposed to upload the XML file under Download / Upload plugins in the admin cp right?

That's what I did also. I edited the header and footer. I edited the left_column template with some text. Plugins are set to yes. Still a blank column. Running vB 3.0.5 b4

I was hoping to have the latest threads and a nav block in the column.

Edit: Now rereading the entire thread up until this point,
see https://vborg.vbsupport.ru/showpost....5&postcount=17
The code (left_column) in the header needs to match the plugin.

amykhar 07-25-2005 07:19 PM

I fixed the zip file.

cmiller1014 07-27-2005 04:57 AM

Sigh, what ever happened to the old hacks database that only included bug free, ready to use hacks? Everything I have installed lately has a million problems. I am left with about 5 hacks that *almost* work. :(

amykhar 07-27-2005 12:59 PM

ALL 3.5 hacks are in beta right now. It takes a bit of time to work out the kinks in install directions and such.

Amy

Dez_U 07-28-2005 07:59 PM

sorry, I put this in and it threw everything to one side.
My forum is centered, is that the problem? Also I am running a CMS

web site is www.refrigeration-engineer.com/forums

I took the footer code out to stop it being thrown over

amykhar 07-28-2005 07:59 PM

You may need to tinker with the html to fit your specific style.

Dez_U 07-28-2005 08:21 PM

OK, getting there :)

How do I stop this left colmn showing up on the index? when I have a CMS?

thanks

amykhar 07-28-2005 08:43 PM

Use conditionals, sort of like the stuff posted above to make it show for different usergroups. But, this one needs to check the value of THIS_SCRIPT.

cmiller1014 07-30-2005 02:42 AM

can you just post a basic template that will work with all styles? I am unable to make the column look like anything. its a mess :(

Blootix 07-31-2005 05:01 AM

Quote:

Originally Posted by cmiller1014
can you just post a basic template that will work with all styles? I am unable to make the column look like anything. its a mess :(

This won't work with RC1... There's a bunch of "emptiness" when I installed it. Look at the screenshot for further info.

Hold on... posting screenshot now...

cmiller1014 07-31-2005 05:04 AM

There is a bunch of emptiness on any version. You need to come up with the content, tables, etc. It wont look anything like the author posted, you have to do that on your own.

Blootix 07-31-2005 05:06 AM

Quote:

Originally Posted by cmiller1014
There is a bunch of emptiness on any version. You need to come up with the content, tables, etc. It wont show up looking like the author posted, you have to do that on your own.

Ack I can't do that!

To the author: Can you post a template that's nice for all styles? Because I'm not very good at HTML coding...


All times are GMT. The time now is 04:52 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.01462 seconds
  • Memory Usage 1,818KB
  • 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
  • (3)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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