Adding images to captive portal
-
the image elements section of the captive portal looks great. BUT?????
seems that the images are being referanced from the redirected site.
for example my home page is set to google. so the images are being collected from http://www.google.ie/image.gifthis is even though the src is set to image.gif.
looked breifly on the monowall site for any simlar problems but did not see any.
this is using a build from today.regards
alan
-
The images are to be shown during auth. All redirections are forced to the local captive portal web server.
I just uploaded a image and its working fine:
ls -la /usr/local/captiveportal/ | grep oscar
lrwxr-xr-x 1 root wheel 28 Mar 27 22:36 oscar.jpg -> /var/db/cpelements/oscar.jpgAll requests for google.ie are redirected to the local server until the person auths. So it should serve the image out of the local server, not google.ie.
-
agreed the image uploads fine. yes there is a symbolic link in /usr/share/captiveportal for the image that is saved in /var/db/cpelements
that is all ok the issue seemed to be that when the captive portal comes up the page displays but all the images dont display and the placeholders show the src as http://www.google.ie/imagename.gif
are we talking about the same thing. i'm not worried i will use my old method again it worked fine.
-
Yes we are talking about the same thing.
I just tested this and noticed what the problem is.
The problem is the lighty rewrite string to force pages to index.php.
Guess I will need to exclude .jpg|.gif|.png.
if($captive_portal == true) {
$captiveportal = ","mod_rewrite"";
$captive_portal_rewrite = "url.rewrite-once = ( "(.*)" => "/index.php?redirurl=$1" )";
} -
Fixed. Run cvs_sync.sh releng_1
-
…..
The problem is the lighty rewrite string to force pages to index.php.
Guess I will need to exclude .jpg|.gif|.png.
if($captive_portal == true) {
$captiveportal = ","mod_rewrite"";
$captive_portal_rewrite = "url.rewrite-once = ( "(.*)" => "/index.php?redirurl=$1" )";
}If this is / was the solution : can't find these edits in my (Beta 4 on Mai 12) version.
None of the 2 index.php contains these lines …..
:'( want my images....
-
…..
The problem is the lighty rewrite string to force pages to index.php.
Guess I will need to exclude .jpg|.gif|.png.
if($captive_portal == true) {
$captiveportal = ","mod_rewrite"";
$captive_portal_rewrite = "url.rewrite-once = ( "(.*)" => "/index.php?redirurl=$1" )";
}If this is / was the solution : can't find these edits in my (Beta 4 on Mai 12) version.
None of the 2 index.php contains these lines …..
:'( want my images....
cat /etc/inc/system.inc | grep mod_rewrite
$captiveportal = ","mod_rewrite"";
# "mod_rewrite",I setup a virgin beta 4 system at work today, works perfectly with a jpg.
-
I agree - 'solved'. See other post concerning same mather.