Is it at all possible to have a script to randomly choose which banner to display as the logo at the top of the PN site out of a possible, for example, 3 jpgs?
Also, is it possible to turn off the feature that makes the banner wrap and repeat itself if the page width exceeds the width of the banner?
I'm a total noob :p
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
Random banner at the top of the page?
-
**unknown user**
- Rank: Expert
- Registered: Mar 16, 2002
- Last visit: Apr 02, 2010
- Posts: 1208
You might try a search of the forum, I think InvalidResponse had offered a script for this very thing. Or maybe it was AlarConcepts... one of the two. Either way, you can't go wrong -- both of these guys are class acts.
I personally have done something similar to what you want to do. I used the banner module to setup multiple images that I wanted to randomly rotate each time a page within the PN site was visited. It works quite well, but you have to modify your theme to get the images where you want them. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 111
It's probably easier than that. Just assign the same "custom banner ID" aka "banner type" to different banners on the banner admin panel, and they will rotate in whatever block or template call is assigned that ID/type. If you install a banner block where you want the banners, there is no need to modify the templates.
Quote
Also, is it possible to turn off the feature that makes the banner wrap and repeat itself if the page width exceeds the width of the banner?
This might be a situation where a banner is called as a background image -- if that's the case, a "background-repeat:no-repeat" style element in the appropriate class or whatever should fix it.
- Moderated by:
- Support
