You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 63 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Pls help me with flash made header for PHP-Nuke 7.7! [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
l3revv
Nuke Cadet
Nuke Cadet


Joined: Jun 26, 2005
Posts: 3


PostPosted: Sat Jun 25, 2005 9:37 pm Reply with quoteBack to top

Crying or Very sad Ok now heres my problem ..... u know the script in themes/(selected theme name)/header.html .. well i was going to take, "<td nowrap><font class="content">$theuser</font></td>", which displays the "Create an account" if user not logged in and also shows "Welcome ($theuser)" if user is logged in, and get a function exactly like that in flash is there any way to do this? to sum it up i want a tutorial on how to make a text on a flash header that displays "Create an account" when user isnt logged in which when clicked brings user to "modules.php?name=Your_Account&op=new_user" and also displays "Welcome (theuser)!" message when user is logged in thx for help in advance and please some1 help me Crying or Very sad .... now im not sure wut "<td nowrap><font class="content">$theuser</font></td>" does in html pages but it seems to me this is the script that is doing, wut i want done in flash, in the html version of the header. pls help mE Rolling Eyes
Find all posts by l3revvView user's profileSend private message
shrek_rock
Captain
Captain


Joined: Nov 24, 2003
Posts: 709


PostPosted: Tue Jun 28, 2005 4:47 pm Reply with quoteBack to top

Hi, I am a little busy right now so I can't give you a more detailed example but I will point you in the right way. First you need to create a php file and place in your root folder(same folder where nuke is installed). Now what you need to do is to create a variable that flash can read into a dynamic text box. The variable will print the user name or create account link. Open your theme.php for the theme you are using and look inside the header function, you will see how they get the username. Copy that if statement to the phpfile. Now the variable you are interested in is the $username or whatever they use to display the username or the create account link. Now you need to print that variable. We now have our php set, now it's time for flash. Create a dynamic text field in flash and give it the same instance name as the variable from the php file. If you are using flashmx you use instance and not the variable box. Convert that text box to a symbol and place the following action script.

Code:
onClipEvent (load) {
loader = new LoadVars() // this is the new FlashMX way to load variables
loader.path = _root.vars; // this is the level on which your movie is.
loader.onLoad = function(success) {
if(success) {
trace(this.thename) // as you can see we use thename to load the variable.
this.path.text = this.thename;
}
}
loader.load('http://localhost/test.php'); // this is the link to the php file, in this case i have mine on my local computer.
}


Change http://localhost/test.php to the location of your php file on your server.

Use the tutorial below as a guide for php and flash..Hope this helps..

http://www.westernstudios.net/web/tut-flash-to-php.html

_________________
Image

Image
Find all posts by shrek_rockView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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 vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.170 Seconds - 195 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::