|
#1
|
||||
|
||||
|
Random Banner (gif, jpg) addon for Pixelpost
Version 1.0 Displays random banner (gif, jpg) on your site. Example here and here. download it! ================INSTALL========================= 1) UnZip archive 2) Copy your images in banner\ folder 3) Open banner\banner.txt file and edit it: [url]|[image path]|[description] for example Code:
http://photoblogonline.com|banner/photoblogonline.gif|Photos of the most beautiful places of a planet http://greatitaly.com|banner/italy.gif|Photos of Italy 5) Upload 'random_banner.php' in yor addons dir 6) Use <SHOW_BANNER> in your template.htm 7) Enjoy! Addon works (see example). But there is one mistake (it is visible in addons menu): Code:
Warning: file(banner/banner.txt): failed to open stream: No such file or directory in /var/www/vhosts/photoblogonline.com/httpdocs/addons/banner.php on line 19 Code:
line 19: $array_bann = file ('banner/banner.txt');
If it can correct somebody, write to me, I shall correct a code and re-upload this addonok, now addon work with no error message
__________________
I like France, Italy & Thailand photos. Random Banner (gif, jpg) addon for Pixelpost Last edited by Florid; 08-07-2006 at 01:39 AM. |
|
#2
|
||||
|
||||
|
Make some conditional statement for opening to use this file.
In 1.5 Final there should be global (for admin panel) variable $admin_panel set to 1 so it is enough to do it like that: PHP Code:
|
|
#3
|
||||
|
||||
|
Just replace this line? Has not helped :-(
__________________
I like France, Italy & Thailand photos. Random Banner (gif, jpg) addon for Pixelpost |
|
#4
|
||||
|
||||
|
Do you have PP 1.5 Final?
Oh and one more thing. If your addon is based on functions then you must add: PHP Code:
|
|
#5
|
||||
|
||||
|
Again 'Has not helped' :-(
if I use Code:
file ('../banner/banner.txt');
maybe need to use $siteurl in file() ... or something like this? ![]() On blog - OK, in admin addons - show error, not so it is terrible, but simply not beautifully looks :-)
__________________
I like France, Italy & Thailand photos. Random Banner (gif, jpg) addon for Pixelpost |
|
#6
|
||||
|
||||
|
I put '@' before 'file' and addon work with no error-massage
Code:
$array_bann = @file ('banner/banner.txt');
__________________
I like France, Italy & Thailand photos. Random Banner (gif, jpg) addon for Pixelpost |
| Post Reply |
| Thread Tools | |
|
|