Banner MOD v.1.0

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

Hi wingover... is possible to have a version that supports flash files to?
ImagePackging design,labels, catalogs,postcards,
tellus
Posts: 94
Joined: Tue 17. Feb 2004, 18:53
Location: Sweden
Contact:

some problems...

Post by tellus »

I am using 1.2.8 and have installed the module. The problem is that it dosent appaer in the module menu, only the bullet. What have I done wrong and how do I fix it?

I have follow the instruktions as followed.

/Anders
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

check again the instructions ...you sure have forghet to edit some files
ImagePackging design,labels, catalogs,postcards,
jmansa
Posts: 11
Joined: Tue 11. Jul 2006, 22:48

Post by jmansa »

I have also installed it in 1.2.8 and I get the banner link under modules in backend, but when I click on it nothing happens??? No menu or nothing... Anu idea?!?
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Post by wingover »

Hallo,

I tried to install the Banner MOD in 1.2.8 and it`s working.
In the Version 1.2.8 some things changed in 'phpwcms.php' and 'content.func.inc.php', so you must insert the changes on the correct places.
I think, I must write new instructions for install...

The Flash-Support is in work. But at the moment, I have not enought time. I try to do that as soon as possible...


Grüzli - Andi
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Post by wingover »

Hi, I made some small changes:

- a javascript confirm-box ask you now, before you edit or delete

The download-link is the same...

Grüzli - Andi
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Post by wingover »

Hi,

I made some small changes on 12.11.2006.
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
User avatar
lady_witchcraft
Posts: 94
Joined: Sun 14. Nov 2004, 19:19
Location: Austria
Contact:

Post by lady_witchcraft »

very nice mod!!! istalled it on my phpwcms 1.2.8 and its running, everything is ok BUT the link doesn't work, maybe the mod is not ready to be used on a subdomain? or is the search engine friendly .phtml thing the cause for my problem? who can help me? any ideas of fixing my prob?

when i click or on mouse over the banners the statebar (is this the right english word? :oops:) shows (and in the new window an 404 error occures!)

Code: Select all

http://subdomain.mydomain.org/&banner=3
so i think the problem is the path of the elements of a link... any suggestions? thx in advance guys!!!
... it's not bad luck, it's a bug ...
User avatar
lady_witchcraft
Posts: 94
Joined: Sun 14. Nov 2004, 19:19
Location: Austria
Contact:

Post by lady_witchcraft »

no solution for my problem (above) yet??!!

as i searched the bann.func.inc.php for a solution i found something else missing, just a little change, 'cause the alt tag doesn't appear in firefox and safari...

so i added
title="' . $banner_conf['alt'] . '"
in line 83 after the alt="" code, so the alt tag is shown in every browser now :D i know you know :lol:

as i mentioned before, only a very little change, maybe someone else needs or likes the title tag :wink:
... it's not bad luck, it's a bug ...
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Post by wingover »

Hi lady_witchcraft,

you can try to change two lines in the 'banner.func.inc.php'.

Replace in line 79 and 83:

$_SERVER['REQUEST_URI']

with

'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']

You need the complete path in the link with all php-variables at the end.
You have something like 'index.php?menu_a' or 'index.php?id=1,2,3,4'.
If you click on a banner you need the complete path with the banner-number at the end. Something like 'index.php?menu_a&banner=3'

Not tested, but it could be a solution.
If not, I will fix it next week... (I try to fix it :wink:)

Grüzli - Andi
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
User avatar
lady_witchcraft
Posts: 94
Joined: Sun 14. Nov 2004, 19:19
Location: Austria
Contact:

Post by lady_witchcraft »

@wingover:

thx for your suggestion!!! :D i've changed the 2 lines and now the mod shows the correct path :lol:

BUT it only opens this path in a new window, seems that the mod does not work right (in my case) with the banner-urls...
just for info: i'm using phpwcms 1.2.8, rewrite url = on, and phpwcms is installed in a subdomain folder... testet in safari and firefox on a mac :D and when i embed the RT in the startpage the link shows
maybe the rewrite url function is the cause for the disfunction?!

thx for any further suggestions and hints in advance to solve this prob wingover!!!
... it's not bad luck, it's a bug ...
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Post by wingover »

Hi,

I turned the 'rewrite' on my local Server on to test your 'problem'.

I changed the rewrite-rule in the .htaccess and now it`s working.

RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ index.php?id=$1,$2,$3,$4,$5,$6
change to:
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml(.+)?$ index.php?id=$1,$2,$3,$4,$5,$6&$7

RewriteRule ^(.+)\.phtml$ index.php?$1
change to:
RewriteRule ^(.+)\.phtml(.+)?$ index.php?$1&$2

OR

RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ /mysubdir/index.php?id=$1,$2,$3,$4,$5,$6
change to:
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml(.+)?$ /phpwcms_test/index.php?id=$1,$2,$3,$4,$5,$6&$7

RewriteRule ^(.+)\.phtml$ /mysubdir/index.php?$1
change to:
RewriteRule ^(.+)\.phtml(.+)?$ /mysubdir/index.php?$1&$2


Grüzli - Andi
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
User avatar
lady_witchcraft
Posts: 94
Joined: Sun 14. Nov 2004, 19:19
Location: Austria
Contact:

Post by lady_witchcraft »

@ andi/wingover:

THX A LOT everything works fine now!!! well done my phpwcms hero :wink:
... it's not bad luck, it's a bug ...
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

@wingover:

I have been waiting for such functionnality inside PhpWCMS...
If I well read/understood this thread, your new Bannner Mod allows us to assign an URL to a clickable image :roll:

Is this is really it ? :wink:

Cheers,

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Post by wingover »

Hi Yves,

you can upload images, create groups and banners.
Each banner must be assigned to a group.
The groups you can place in your template or content with the reptag.


Grüzli - Andi
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
Post Reply