Fork me on GitHub

Where the heck is my Admin Message?  Bottom

  • I'm using postnuke to build a website for my company. In going through all the themes, (I downloaded the 3 packages from pnTHEMES), I found two interesting things: First, exactly half of them don't work at all. They either have "can't find include file" type errors, or they have a catastrophic error when looking for either the "translate()" function, or one of several SQL functions. The function errors seem to be unrecoverable and I have to reinstall postnuke. Having gotten past that by testing and eliminating all the broken themes, I ran into the second problem.

    I want to be able to use the Admin Message on the site. Problem is, it seems I'm limited to the native postnuke themes. None of the other themes, several of which are exactly the type of thing I'm looking for, display this message at all. The message is there, it's activated, and it shows fine and the postnuke themes, so I know it works. What do I have to do to get it to show up on these other themes? Can this be done? Or do I have to develop my own theme?

    Nick
  • Thanks, that's exactly what I needed.
  • No need to reinstall Postnuke every time just because you try an old dud theme.

    If you can't get back to change the theme from the browser, a handy tool to have is the postnuke Swiss Army Knife, a small emergency script to reset things like the theme to a default.:
    http://www.snowjournal.com/psak.html

    Or, to quote from elsewhere in this forum:

    Quote

    * Go to your themes folder.
    * Rename the folder 'VBlue' to something like 'VBlue_dead'
    * Copy the folder of a theme that you know works correctly - preferably a postnuke default theme like PostNukeBlue.
    * Paste that copy in the themes folder and rename the folder 'RecoveryTheme'.
    * Copy the 'RecoveryTheme' folder, and again paste that folder in the themes folder.
    * Rename 'copy of RecoveryTheme' to 'VBlue'.
    * Test the site to see if it works
    * If everything's fine, go back and delete the folder 'VBlue_dead'.
    * Leave the 'RecoveryTheme' folder for the next time you need to make a recovery

    Doesn't sound like you'd know how to access the database through something like phpMyAdmin, MySQL Control Centre (from www.mysql.com) or the commandline, but for anybody else, I've used this to restore a functioning theme when trying out old ones:

    Code

    Run an SQL query in mysql:                                                                  
    > UPDATE nuke_users                                                                         > SET pn_theme = "name-of-theme" where pn_uname = "your-user-name";                        

    Replace 'name-of-theme' and 'your-user-name' as appropriate.  Ending semicolon required.
  • Um, the greater-than > in the SQL query above represents the commandline prompt, and isn't entered, not is it essential to indent, nor have it on two lines. The semicolon at the and is probably only needed on the commandline, don't know about phpMyAdmin. It means 'execute command'.

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