![]() |
|
A random banner for wordpress - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: A random banner for wordpress (/thread-2531.html) |
A random banner for wordpress - pled - 2008-03-25 Hello, When I saw the first time the effervescence_simpleviewer theme, I found that the random banner, extracting only a piece of an image, was a really good idea : you get a totally new picture every reload, sometimes you do not recognize the one it is extracted from... Excellent, ` My question is : what is the easiest way to achieve that ? There is a plugin named ZENpressed with a random function. Could it be feasible to mix that random function and the one from the plugin ? I believe using plugin may help from a numbers of potential problems... Any suggestion would be nice. A random banner for wordpress - BertSimons - 2008-03-25 hi pled I intergrated wordpress ala ruzee's method as I decribed also in this thread: http://www.zenphoto.org/support/topic.php?id=2484#post-14802 just did a try out putting the effervescence heading in my wordpress sidebar and it did work. I did it this way. I made a php file called heading.php in which I put the effervescence code as written below and then ftp this file to my zenphoto current theme directory. `` and voila, a random effervescence heading image appeared on all the zenphoto pages in which I called the wp-sidebar. content of heading.php ` A random banner for wordpress - BertSimons - 2008-03-25 ps..thanks for the hint to a ubuntu counter on your site :-) A random banner for wordpress - pled - 2008-03-26 Hi Bert, Thanks a lot for your answer. The include works, but I get the following error : Fatal error: Call to undefined function checkforPassword() in /var/www/wordpress/zenphoto/themes/testing-dev/heading.php on line 4 When reading your post : does that mean I have to integrate Wordpress in zenphoto prior to do that ? A random banner for wordpress - acrylian - 2008-03-27 You get the error because the zenphoto functions are unknown if you just add the above posted code. There are several links within the thread Bert mentioned that explain how to do it. A random banner for wordpress - pled - 2008-03-27 Great thanks !! IT WORKS !! I started adding the following to my wordpress header : ` ` But I got exactly the same error... and yesterday, i did a 'grep' through all files for that checkforPassword function without success. So I am VERY happy, I can go further customizing my new wordpress theme. From all that and from what I read in this occasion, the idea to integrate either wordpress in Zenphoto or zenphoto into wordpress is something I discovered. There are so many things possible I should look at ! Thanks again for your support, Zenphoto is great ! |