ok...so i'm trying to make my site have frames and make one frame change only with the theme change. or of course load the default. now i need to know where i can get the variable data from the users table in the DB and put it into the code of my "other" frame. can anyone help me?
site:
www.sideshowmafia.com
the top frame is now gonna be in PHP along with the bottom frame (which we took the header off of) i just don't want to load a flash movie every time they click a link....but i want it to change when someone changes a theme.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Need help with pn Variables
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Feb 07, 2008
- Posts: 16
alright so I got the top frame to change depending on what theme is currently being used using this code:the only problem I'm running into now is It will not automatically refresh the top frame. any ideas?Code
// Include the Base API
include 'includes/pnAPI.php' ;
// Do the PN Init
pnInit();
// Get all the User Variables
pnVarCleanFromInput() ;
// Define $theme
$theme = pnUserGetTheme(); -
- Rank: Helper
- Registered: Jan 29, 2004
- Last visit: Oct 21, 2009
- Posts: 852
Maybe check out the pnRedirect() API function? It's in /includes/pnAPI.php
HTH -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Feb 07, 2008
- Posts: 16
so...I looked into the pnRedirect() API func. but I'm still stumped...
The main problem is that in the top frame there's a flash movie, but for each theme, there's a diff. flash movie. I'm hopin to have it work like this.
you go to the site, and it loads the default theme in index.php (bottom frame)
it also loads the default flash movie in top.php (top frame)
you sign in to your profile and it loads your preferred theme in index.php
then loads your preferred theme's flash movie in top.php
you can log in at
http://www.sideshowmafia.com
username : test
password : blank
after it logs you in, notice how the top frame did not change, however if you refresh the page....it changes the top frame to the flash movie associated with the selected theme
any ideaz on how I can get the top frame to automatically refresh whenever the current theme is switched to another theme?
(sorry it'z so long, jus wanted to give yall as much info as possible) -
- Rank: Helper
- Registered: Jan 29, 2004
- Last visit: Oct 21, 2009
- Posts: 852
I guess you'll have to do a refresh of the upper page that's triggered from the lower page. You could use some javascript function on the page that says "logging you in" Do something likeCode
parent.top.location = parent.top.location;
HTH
- Moderated by:
- Support
