Fork me on GitHub

Help with admin messages  Bottom

  • I just downloaded a non-autotheme that is having an interesting issue with not being able to show the admin messages. I was wondering how I should go about adding them back in (I use the admin messages as a welcome-to-my-site kinda thing that always shows on the home page). I've worked with the PHP files before, but never in this context (mostly modding colors or slight text changes or even removing/adding of links. If I'm not mistaken, it's a section in the theme.php file, but I'm not quite sure where to add it and what to add to make them visable... can anyone help me, please? I'll post the text of the theme upon request so as to not clutter up this forum.
  • I'd recommend using the basic idea that PostNuke and PHP-Nuke were built on: borrow ideas and code from others, the GPL software license allows and encourages it. icon_smile

    Seriously, you have to make a modification to the themesidebox function, among other things. What I'd recommend is to grab a theme that's already working -- ExtraLite is a good one since it isn't cluttered up with a lot of routines, though it might be useful to find one that's close to your theme's coding style -- and compare it to your own theme.php. I'm betting you'll spot the differences.

    If you're like me, then it's just a matter of trial-and-error wading through a dozen or more syntax errors. Just use a text editor that makes backup files so you can hit reverse quickly. icon_smile
  • Thank you... I'll give that a try in the morning (it's too late to think right now) :)
  • I was putzing around with it and just caused all sorts of visual glitches... are you sure it's the themesidebox function that controls the viewing of the admin messages? Is anyone else able to help me?
  • Anyone know the answer to this? I'm still, after reading through 4 different themes, confused as to how to add admin block functionality to a theme that doesn't support it.

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