CRE Loaded Community

Banner


Board index » Web Design and Development » Development Discussions

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: SWF Video on Main Page Only
PostPosted: Sun Jun 27, 2010 4:07 am 
Offline
CRE Freak
User avatar

Joined: Wed Nov 18, 2009 10:24 am
Posts: 97
I have a sfw video that I use on my site above the right column infoBoxes. I have added it to the main_page.tpl.php and it works fine. However, it also loads on every other page as well.

How can I code it so it only loads on the main page and not any other pages?

Question #2 is probably not CRE Loaded relevant but any suggestion would be appreciated... the swf does have a preloader included with a play button so it does not play until the user clicks on it. However the swf does load in the browser upon opening the site (just doesn't play). Is there a way to use a link or another swf for the purpose of calling the sfw manually by the user externally so the main swf does not load upon opening the browser... slowing down the opening of the site? I hope this makes sense.


Top
 Profile  
 
 Post subject: Re: SWF Video on Main Page Only
PostPosted: Sun Jun 27, 2010 4:13 am 
Offline
CRE Talented

Joined: Sun Nov 29, 2009 10:57 am
Posts: 348
Peaces wrote:
I have a sfw video that I use on my site above the right column infoBoxes. I have added it to the main_page.tpl.php and it works fine. However, it also loads on every other page as well.

How can I code it so it only loads on the main page and not any other pages?


It doesn't, you have the swf on main index page and then some painting image on the rest!!

Or am I looking at a totally different site..?

_________________
CSS Store - http://mdjl40.mdjl-demo.co.uk -Work in Progress
YMM Filter Lists - http://mdjl-demo.co.uk/6-4-1a -Pagnation/Filter Lists


Top
 Profile  
 
 Post subject: Re: SWF Video on Main Page Only
PostPosted: Sun Jun 27, 2010 8:21 am 
Offline
CRE Freak
User avatar

Joined: Wed Nov 18, 2009 10:24 am
Posts: 97
http://guitarpeaces.com
http://productionpeaces.com
http://musicpeaces.com


Top
 Profile  
 
 Post subject: Re: SWF Video on Main Page Only
PostPosted: Mon Jun 28, 2010 3:42 pm 
Offline
CRE Freak
User avatar

Joined: Wed Nov 18, 2009 10:24 am
Posts: 97
TheLango

My apologies, sometimes I get the cart before the horse...

I have used the following to take care of replacing the swf with an image.

Code:
<?php
if ( ( strstr($PHP_SELF,'index.php')) && ! isset($_GET['cPath']) )  {
?>
...then the swf file here...
<?php } else {
echo '<img height="177" border="0" width="220" title=" New Items " alt="New Items" src="templates/OS03C00235/images/new_items.gif" name="new items">';
}?>


How do I write the last code to put in just a name with a link instead of an image such as:
<a href="http://productionpeaces.com" title="Production Peaces" target="_blank" style="color: #900; font-size: 16px;">ProductionPeaces.com</a>


Top
 Profile  
 
 Post subject: Re: SWF Video on Main Page Only
PostPosted: Mon Jun 28, 2010 3:45 pm 
Offline
CRE Freak
User avatar

Joined: Wed Nov 18, 2009 10:24 am
Posts: 97
Sorry for the bandwidth... figured it out.


Top
 Profile  
 
 Post subject: Re: SWF Video on Main Page Only
PostPosted: Sat Jul 03, 2010 7:10 pm 
Offline
CRE Talented
User avatar

Joined: Sat Apr 19, 2008 3:51 am
Posts: 431
Location: Tennessee
Share what you have figured out as it may assist someone else with the same or similar issue

Well that is if they use the search function!

_________________
Image
http://www.dragonstailmotorsports.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Board index » Web Design and Development » Development Discussions

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed Feb 08, 2012 7:22 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

Follow Us on Twitter

An error occurred

Oops, an error seems to have occurred. We're sorry for any inconvenience this might have caused. If the error persists, feel free to tell us about it.

CRE Loaded Community Chat hosted by CRE Loaded.

Join now


Chat about what's on your mind. More about public chats.


© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy