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)
-   -   Left/Right Column Hack with Include File Enabled (https://vborg.vbsupport.ru/showthread.php?t=114813)

theguywhoknowz 05-04-2006 10:00 PM

Left/Right Column Hack with Include File Enabled
 
First of all, this hack is modify from the original column mod by amykhar. I would assume you already have the original mod installed, if not, click here

As many people have asked but got no answer, the original mod did not let you to have include file or using vb include function. This little hack will help you. :banana:

Example here: http://www.Maternity.com

Hack by GameReviews.com Team

DeMiNe0 05-05-2006 03:02 PM

Here is a good question for ya... Alot of people use vbadvanced.... How would they use this to include a collumn from vbadvanced into there forums?

theguywhoknowz 05-05-2006 06:56 PM

I havent tried, but it seem just using the same method to work around, it should work.

pcoskat 05-06-2006 11:36 AM

Nifty!

Question: Can this be set to have the column ONLY appear on ShowThread & ForumDisplay, in specific forums? (ie: I only want the column to appear in one forum)

Thanks!

Webmist 05-07-2006 05:04 PM

Quote:

Originally Posted by pcoskat
Nifty!

Question: Can this be set to have the column ONLY appear on ShowThread & ForumDisplay, in specific forums? (ie: I only want the column to appear in one forum)

Thanks!

I did that with include statements in my forum header.
PHP Code:

<!-- Left Column Code  -->
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<if 
condition="in_array($foruminfo['forumid'], array(0,3,8,29,49,50,51,52,53,59,62))">
<
tr>
<
td width="15%" valign="top" align="left">$leftcolumn</td>
<
td valign="top">
<
table width="100%" cellpadding="0" cellspacing="0" border="0">
<
tr>
</if><
td valign="top">
<!-- 
End Left Column Code --> 

Just change the forum id's to the ones you want to show the left colum on. Leave the 0 though if you want the left column on non-forum pages like home or any pages you have added.

Snake 05-07-2006 05:54 PM

Thanks!

pcoskat 05-07-2006 08:09 PM

Quote:

Originally Posted by Webmist
I did that with include statements in my forum header.

Thanks, Webmist!! Much appreciated!:banana:

wdlove 05-09-2006 12:57 AM

For the users with vbadvanced and would like to include their columns througout the site:

http://www.vbadvanced.com/membersare...tid=4&pageid=6

theguywhoknowz 05-17-2006 07:38 AM

Quote:

Originally Posted by wdlove
For the users with vbadvanced and would like to include their columns througout the site:

http://www.vbadvanced.com/membersare...tid=4&pageid=6

awesome!

futuredood 06-20-2006 12:55 AM

can you be a little clearer with the instructions?

first, i added the new plugin.. which automatically lead to a automatic error that made my whole site inactive. i set the plugin to "active" because the instructions didn't say whether to leave it on/off.

also, the instructions said to go to your modified footer template to replace $leftcolumn with $testinclude. in amykhar's original instructions, it didn't say to include any $leftcolumn code..

thanks for the help, and great hack.

theguywhoknowz 06-20-2006 06:56 AM

Quote:

Originally Posted by futuredood
can you be a little clearer with the instructions?

first, i added the new plugin.. which automatically lead to a automatic error that made my whole site inactive. i set the plugin to "active" because the instructions didn't say whether to leave it on/off.

also, the instructions said to go to your modified footer template to replace $leftcolumn with $testinclude. in amykhar's original instructions, it didn't say to include any $leftcolumn code..

thanks for the help, and great hack.

Did you get it working finally?

futuredood 06-21-2006 04:02 AM

no, i didn't.. i was stuck at where i had left the message. i hope that wasn't a newbie question from me.. looking at the instructions for the original left column hack, there was no $leftcolumn code to replace. also, on the initial install, i made the plugin active which shut down my site.

futuredood 06-21-2006 04:07 AM

actually, don't reply i found it lol.. sorry about that, shall brb.

futuredood 06-22-2006 08:22 AM

k, now i have some more valid questions ;).

the problem i had was concerning the left column. your instructions said to look in the footer, but for left column it's only in header (i haven't checked right column). you might want to note that in the instructions.

also, here's the problem. in instructions, i noticed this code:

require('your file path.php');

is this the absolute path or relative path, and to what file?

thanks.

theguywhoknowz 06-22-2006 10:55 AM

Quote:

Originally Posted by futuredood
k, now i have some more valid questions ;).

the problem i had was concerning the left column. your instructions said to look in the footer, but for left column it's only in header (i haven't checked right column). you might want to note that in the instructions.

also, here's the problem. in instructions, i noticed this code:

require('your file path.php');

is this the absolute path or relative path, and to what file?

thanks.

I think I mean absolute path like, and the file is whatever file is you are including.

futuredood 06-22-2006 11:42 AM

Quote:

Originally Posted by theguywhoknowz
I think I mean absolute path like, and the file is whatever file is you are including.

ah, i see. i thought this was to allow code into your left column.. for example, welcome $post[musername] and also to show how many new private messages the user received.

theguywhoknowz 06-22-2006 12:50 PM

Quote:

Originally Posted by futuredood
ah, i see. i thought this was to allow code into your left column.. for example, welcome $post[musername] and also to show how many new private messages the user received.

In theory, you can, just make a custom file that do all that then include it in

futuredood 06-22-2006 08:02 PM

Quote:

Originally Posted by theguywhoknowz
In theory, you can, just make a custom file that do all that then include it in

hmm can you give me some pointers on how to? all i can think of is say a .txt file with code that says $post[fieldXX], but that is pretty much the same as placing in $post[fieldXX].

chewy 06-30-2006 01:08 PM

Ok, i have managed to get the side column to output some text via an include file but how do I allow vb to run $vbphrase's like below ???

$vbphrase[welcome_back_x]
$vbphrase[last_visited_x_at_y]

squall leonhart 07-04-2006 12:21 AM

Quote:

Originally Posted by chewy
Ok, i have managed to get the side column to output some text via an include file but how do I allow vb to run $vbphrase's like below ???

$vbphrase[welcome_back_x]
$vbphrase[last_visited_x_at_y]

Yeah! This is my problem with me too. I want to add the login form to the left column but when I added it & tried to login, the welcome was shown on the main navigation bar, not on the left column as I expected (I copied all of the code in navbar). How to do?

Bratz-Designs 07-20-2006 09:35 AM

Some more info would be nice on this hack :)

I am looking for what file to include for the stats to show up :)

asasi 10-05-2006 05:37 AM

Hi!
Can I add this column just show in "ForumHome" and "ForumDisplay" and not shown in SHOWTHREAD. You know that showthread is to slow!

thanks a lot!


All times are GMT. The time now is 04:59 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.01211 seconds
  • Memory Usage 1,773KB
  • 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
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete