vBulletin Modifications

Parse template in footer

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 07-28-2006, 03:43 PM   #1
vB Newbie
Join Date: Apr 2005
Kriminal is on a distinguished road

Default Parse template in footer

I added a right colum to my forums, as it's described here: http://www.vbulletin.org/forum/showthread.php?t=94495

But it's no neccesary you read the thread, it explains how to add a column to the footer, as a table cell.

It's works fine, and it's possible to add a custom template and parse it, as the others. So I put a $custom_template into de right column (the table cell in footer) and add static content... everything works well.
But I can't pass vars into the template, or include other templates ($custom_block1, $custom_block2, etc).
There is no a footer.php, so I can't find the way to add an eval before the output.
I tried to place an eval before
You must first be a registered member to view any code.
in global.php (line 514) but doesn't work.

So, the situation is the following:
- Added a column in footer template
- Create right_column template
- Added $right_column to globaltemplates array in config.php
- Create a plugin: eval('$right_column = "' . fetch_template('right_column') . '";'); with global_start hook (i tried also global_complete)
- Inside right_column template, I put the static text Hello
- Added after the var $world (so right column template is Hello $world)
- In index.php I add $world = "world";
- Only shows Hello in the right column.

Could you help me to do this?
Thanks in advance,




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you create a template you can call? kau vBulletin Modification Requests 4 07-05-2006 10:04 AM
Methodology for plugin template changes tgreer General vBulletin Support 25 04-07-2006 08:04 PM
allowing 3 styles to share 1 template set?? figure004 General vBulletin Support 2 02-08-2006 04:33 PM
bbcode parse nfo files as png tokenyank vBulletin Modification Requests 8 03-15-2005 10:19 PM
Index Template required Gary Bolton vBulletin Modification Requests 1 01-29-2005 08:45 AM


All times are GMT -3. The time now is 01:29 AM.


SEO by vBSEO 3.1.0 ©2007, Crawlability, Inc. (Patent Pending)