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


All times are GMT. The time now is 12:41 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.01585 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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