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

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

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 General Talk

 
 
LinkBack Thread Tools Display Modes
Old 20.10.2004, 22:49   #1 (permalink)
Senior Mamber
 
vrajesh's Avatar
 
Join Date: Apr 2004
Posts: 181
vrajesh is on a distinguished road
Send a message via Yahoo to vrajesh
Smile Static Flash links and better way to handle

Dear Mambers,

Recently i had to work with a Mambo template with flash links. To my knowledge, i know that Mambo does not support Image or flash links unless we are doing some work arounds.

Flash has the ability to read the external file. So, people generally provide links as variables in a text file and the file will be called from the flash.

But here in my template , the links are in flash header. i.e., all 5 links in a single flash. So i decided to do one way to handle the links.

In flash actionscript i coded geturl("mylinks.php?link=1") for each button. The second button is coded as geturl("mylinks.php?link=2") and so.

In the mylinks.php file i wrote the code as follows.

<?php
//This is mylinks.php
$button1 = "index.php?option=com_content&task=view&id=30&Item id=51";
$button2 = "index.php?option=com_content&task=view&id=31&Item id=52";
$button3 = "index.php?option=com_content&task=view&id=32&Item id=53";

if ($link == 1)
{
header("Location: ".$button1);
}

if ($link == 2)
{
header("Location: ".$button2);
}

if ($link == 3)
{
header("Location: ".$button3);
}

?>

This is a simple code. When i click on the flash link button 1, "mylinks.php?link=1" will be called to browser. Then the mylinks.php file will process the things. As i have already defined, this link gets redirected to related link that is assigned.

I dont know whether it is a better way or bad way to handle static flash buttons. But , i really like to do this because, i dont need to recompile flash everytime the link is updated. Most of the sites with flash links generally are static. So for that purpose this type of code can be written.

Please post what you think on it. Thank you,

Regards,

Vrajesh

Last edited by vrajesh; 20.10.2004 at 23:57. Reason: Spelling
vrajesh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
 

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



All times are GMT +2. The time now is 05:22.

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.