[SOLVED] BANNER mod PROBLEM with links

If you've problems with unsupported - non official ;-) - functionalities use this forum please.
Post Reply
User avatar
lady_witchcraft
Posts: 94
Joined: Sun 14. Nov 2004, 19:19
Location: Austria
Contact:

[SOLVED] BANNER mod PROBLEM with links

Post by lady_witchcraft »

hy guys and phpwcms-gurus :D

installed the BANNER MOD on my phpwcms v. 1.2.8 and it works fine BUT not the links of the banners?!

nekket helped me out with a hint for showing the correct path of the link, so this prob was solved by adding

Code: Select all

'http://' . $_SERVER['HTTP_HOST'] . 
before the $_server request_uri in the banner.func.php file ...
BUT when i or my visitor click on the banner, to reach the linked page the mod or the link misbehaves...

a new window opens BUT NOT with the needed url of the banner, but with an 404 error because of/showing the url i mentioned above (http://subdomain.mydomain.org/article.phtml&banner=1)... shoulden't the link changes to the right banner url when the browser opens the new window???

PLEASE help me, i don't know where the prob is or how to solve this misbehaviour!!

thx for any hints and solutions in advance!!! & greets from austria
claudia

just for info: using phpwcms 1.2.8, rewrite function = on, MOD ID unchanged (777) other MODs in use: calendar mod, grafical text mod and grafix mod....
Last edited by lady_witchcraft on Sun 3. Dec 2006, 18:48, edited 1 time in total.
... 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 »

THX a lot for your help andi/wingover!!! everythings works fine for my now!!

greets from austria - claudia
... it's not bad luck, it's a bug ...
Post Reply