PDA

View Full Version : Left/Right Column Hack with Include File Enabled


theguywhoknowz
05-04-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=91888&highlight=adsense)

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 (http://www.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
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.

<!-- 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
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/membersarea.php?do=viewusermanual&productid=4&pageid=6

theguywhoknowz
05-17-2006, 07:38 AM
For the users with vbadvanced and would like to include their columns througout the site:

http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=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
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
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
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
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
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
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!