Fork me on GitHub

Need help with pn Variables  Bottom

  • 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.
  • alright so I got the top frame to change depending on what theme is currently being used using this code:

    Code

    // Include the Base API
    include 'includes/pnAPI.php' ;
    // Do the PN Init
    pnInit();
    // Get all the User Variables
    pnVarCleanFromInput() ;
    // Define $theme
    $theme = pnUserGetTheme();
    the only problem I'm running into now is It will not automatically refresh the top frame. any ideas?
  • Maybe check out the pnRedirect() API function? It's in /includes/pnAPI.php

    HTH
  • 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)
  • 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 like

    Code

    parent.top.location = parent.top.location;


    HTH

This list is based on users active over the last 60 minutes.