The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2007, 11:25 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default TOC template for a specific type

Hi Geek,

I would like to put the TOC above header for a special type because the sub pages breaks names are long. However this template is set at 150 px and that does not help. I can't remove the 150 px because that affects other types.

in mods/toc.php is there an if condition i could put?

like

PHP Code:
if (type==xx)
{
eval(
'$output.="' fetch_template('GARS_full_mod_container') . '";');
} else {
eval(
'$output.="' fetch_template('GARS_mod_container') . '";');


Last edited by Lionel; 04-27-2007 at 08:11 PM..
Reply With Quote
  #2  
Old 04-25-2007, 01:12 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Make a new template that is a copy of GARS_mod_container, but set up how you want. Then change the last line in geek/gars/mods/display/toc.php to use the new one.

HTHs!
Reply With Quote
  #3  
Old 04-25-2007, 01:18 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

hummmm, what about the other types using that module? Should I duplicate the module too?
Reply With Quote
  #4  
Old 04-25-2007, 08:12 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

ahhh, I see. Yes, that is how I would do it. Copy TOC.php to TOC2.php and make the edit. Then register TOC2.php using the new template in the templates to cache setting.

You will also want to make a copy the toc.php files in the other mods folder (you just wont have to change them)
Reply With Quote
  #5  
Old 04-27-2007, 08:09 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

Works perfect, thanks
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC for tutorials without BREAK tag Icehawk002 Geek Article and Review System 2 06-05-2008 04:45 PM
Adding Post Reference to TOC Links for Anchoring to Text Start Dr. Bantham Geek Article and Review System 8 05-24-2007 12:24 AM
Suggestions for TOC module KirbyDE Geek Article and Review System 13 03-09-2007 01:27 PM
TOC and Break tags not working keithxtreme Geek Article and Review System 0 02-02-2006 03:45 AM
Specific Image Sizes for specific display zatsu Geek Advertising Banner System 3 01-13-2006 09:45 PM


All times are GMT. The time now is 11:34 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.