Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 23

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 10.08.2004, 03:02   #1 (permalink)
Baby Mamber
 
ACmonKey's Avatar
 
Join Date: Apr 2004
Location: Tenerife, Islas Canarias
Posts: 19
ACmonKey is on a distinguished road
Default Edit Newsflash template or design

Hello,

I've got a problem with the Newsflash on my site. It has probably a very easy solution but i just can't find it and have searched on the forum (yes really) and i don't get any further.

I want the Newsflash to display only on the frontpage and not on any other pages. So all of you would suggest editing the component in the backend to show only on the frontpage...

Cool that works, but i still have the tables and borders (like a container) where the Newsflash was supposed to be.
Is there any way to edit the way the newsflash renders or displays on the page?
Here is the code in index.php of the template:
Code:
<table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="1%"><img src="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_19.gif" width="15" height="26"></td>
                <td width="100%" background="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_20.gif"><font color="#FFFFFF">Newsflash</font></td>
                <td width="1%"><img src="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_22.gif" width="15" height="26"></td>
              </tr>
              <tr> 
                <td height="20" background="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_35.gif">&nbsp;</td>
                <td valign="top" bgcolor="#666666">
                  <?php mosLoadModules ( 'top' ); ?>
                </td>
                <td background="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_37.gif">&nbsp;</td>
              </tr>
              <tr> 
                <td height="14" valign="top"><img src="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_45.gif" width="15" height="14"></td>
                <td valign="top" background="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_47.gif">&nbsp;</td>
                <td><img src="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_48.gif" width="15" height="14"></td>
              </tr>
            </table>
So the <?php mosLoadModules ( 'top' ); ?> is the part which decides to display or not the content of the newsflash but the container appears always. I want to get rid of the container if the newsflash is set to off.

Any ideas?
ACmonKey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 10.08.2004, 06:49   #2 (permalink)
Mamber
 
ccdog's Avatar
 
Join Date: Apr 2004
Location: Texas, USA
Posts: 62
ccdog is on a distinguished road
Default Re: Edit Newsflash template or design

The following will cause your top module table only to display when there is a top module published.

Code:
<?php if (mosCountModules( "top" )) { ?>
            <table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="1%"><img src="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_19.gif" width="15" height="26"></td>
                <td width="100%" background="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_20.gif"><font color="#FFFFFF">Newsflash</font></td>
                <td width="1%"><img src="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_22.gif" width="15" height="26"></td>
              </tr>
              <tr> 
                <td height="20" background="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_35.gif">&nbsp;</td>
                <td valign="top" bgcolor="#666666">
                  <?php mosLoadModules ( 'top' ); ?>
                </td>
                <td background="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_37.gif">&nbsp;</td>
              </tr>
              <tr> 
                <td height="14" valign="top"><img src="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_45.gif" width="15" height="14"></td>
                <td valign="top" background="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_47.gif">&nbsp;</td>
                <td><img src="<?php echo $mosConfig_live_site;?>/templates/visualrave/images/visualrave_48.gif" width="15" height="14"></td>
              </tr>
            </table>
<?php } ?>
Let me know if this works. Good luck!
ccdog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11.08.2004, 00:08   #3 (permalink)
Baby Mamber
 
ACmonKey's Avatar
 
Join Date: Apr 2004
Location: Tenerife, Islas Canarias
Posts: 19
ACmonKey is on a distinguished road
Default Re: Edit Newsflash template or design

A Million Thanks!!!!
Worked exactly how i needed.
ACmonKey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use my own design/ template team1 Mambo 4.5 'How Do I' Questions 2 14.07.2004 12:47
Do I have to design *every* custom module position in my template? tamper Template Discussions 8 22.06.2004 16:47
Looking for a movies-related design template blokdijk Template Discussions 0 07.05.2004 03:00


All times are GMT +2. The time now is 03:44.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.