The vB Geek

Go Back   The vB Geek > vB Geek Modifications > Add-ons

Add-ons Modifications and add-ons for vB Geek stuff.

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

Comment
 
Release Tools Display Modes
 
Old 09-03-2006, 01:54 PM
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 Template Module

Ever wanted to use a template as a module is GARS? Well, your answer is here.

This module can be assigned to any module set. It is important that after you assign it to a module set...

Last edited by The Geek; 02-18-2007 at 05:29 PM..
Reply With Quote
  #30  
By mac27 on 02-16-2007, 06:48 PM
Default

OK it has been posted. Now to just figure out how to make the box not show up when no info is in it. Thanks for any help.
Reply With Quote
  #31  
By mac27 on 02-18-2007, 10:39 AM
Default

So any idea on how to make the box not show up when no info is in it? I know that other boxes can do this now. Just wondering how to make this one do it?
Reply With Quote
  #32  
By The Geek on 02-18-2007, 05:30 PM
Default

I just updated this package to prevent anything from displaying if the template ends up empty which is what I think you are after. Give it a go and let me know.

HTHs
Reply With Quote
  #33  
By mac27 on 02-18-2007, 10:32 PM
Default

Thanks for the update Geek. It still doesn't work for me. I think it may be how I am using the block.

Users enter info in the userCP under options. If they do enter this info then the template that the template mod is calling will show that info in it. If they don't enter any info then the template mod doesn't show any info in it. So there is just an empty block sitting there.
Reply With Quote
  #34  
By The Geek on 02-19-2007, 05:27 PM
Default

Huh. Its working on my dev system. If the template it is calling has no output, then nothing will show. Are you certain you downloaded the latest version and uploaded accordingly?

If so, can you post the contents of:
geek/gars/mods/display/template.php

Thanks!
Reply With Quote
  #35  
By mac27 on 02-19-2007, 05:36 PM
Default

Yes I followed the installation. Here is what is in that php file.

PHP Code:
<?php

        
if ($settings['template'])
        {
                eval(
'$bits = "' fetch_template($settings['template']) . '";');
                if (
$bits)
                {
                if (
$settings['container'])
                {
                        
$title $settings['title'];
                        eval(
'$output .= "' fetch_template('GARS_mod_container') . '";');
                }
                else
                {
                        
$output .= $bits;
                }
                }
        }

?>
Let me know if I messed up. Thanks man.
Reply With Quote
  #36  
By The Geek on 02-19-2007, 05:54 PM
Default

Nope, thats right. Can you look at a page where it is appearing (and shouldnt) and look at the source to see if any HTML characters are appearing?

basically, that code above fetches your template into $bits.
The next line says "if there is something in $bits, then continue. Otherwise, skip it"
Reply With Quote
  #37  
By mac27 on 02-20-2007, 05:59 AM
Default

I compared 2 source files one with the template with something in it and one without. The only thing showing up is a <br /> tag in the emtpy one and nothing else.
Reply With Quote
  #38  
By The Geek on 02-20-2007, 10:13 AM
Default

Make sure your paypal template doesnt have a trailing space or anything after your </if> conditional. It is spitting out the <br /> tag and therefore will have output.

The only other thing you can try is to edit the template.php above to say:

PHP Code:
if ($bits!="<br />"
Reply With Quote
  #39  
By mac27 on 02-20-2007, 05:49 PM
Default

OK I tried both there are no spaces. Tried the <br /> tag added and still no luck. I will play some more later tonight when I get a chance. I appreciate the help so far to.

Thanks
Reply With Quote
Comment

Release 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
Release Release Starter Category Comments Last Post
GAB ads in GARS template-module? pixie Geek Advertising Banner System 3 02-24-2008 02:04 PM
A template question... how do I? convergent Geek Article and Review System 3 05-11-2007 05:07 PM
Taking the contents of the rating module out of the module? Chief Corn Geek Article and Review System 3 12-01-2006 06:40 PM
Template change to ratings module waltercat Geek Article and Review System 3 06-21-2006 06:38 PM
Does anyone have a GARS module that allows an image to be loaded in the module... FRAiD Geek Article and Review System 6 02-11-2006 10:57 AM


All times are GMT. The time now is 12:15 PM.


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

Release powered by GARS 2.1.9 ©2005-2006