Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» Captive Portal» captive portal w/ images and css
Username:
Password:
 
 

Pages: [1]   Go Down
  Print  
Author Topic: captive portal w/ images and css  (Read 825 times)
0 Members and 1 Guest are viewing this topic.
Heitor Lessa
Full Member
***
Offline Offline

Posts: 150



View Profile
« on: March 09, 2010, 08:33:51 am »

Morning Dears,


 I´d like to if someone have a customized login page of CP w/ images (logo and more images) ?

 I´ve already seen some threads on forum but not so clearly information, I´ve already tried to put images on /var/db/cpelements, tried to making symbol link from /var/etc -> /var/db/cpelements to and not works.

 Thanks ^^.
Logged
Briantist
Full Member
***
Offline Offline

Posts: 115


The professor does not approve of your post.


View Profile WWW
« Reply #1 on: March 09, 2010, 12:56:34 pm »

You simply need to upload your files in the file manager section of Captive Portal in the web interface. It will automatically prepend "captiveportal-" to the file name, so if you upload "default.css" and "logo.png" you will have to refer to "captiveportal-default.css" and "captiveportal-logo.png" in your HTML page. The login page needs to be uploaded on the standard settings screen, and you cannot dictate the file name for it. There is no need to manually edit any files in the file system on pfSense, or do anything in the shell.
Logged
Heitor Lessa
Full Member
***
Offline Offline

Posts: 150



View Profile
« Reply #2 on: March 09, 2010, 02:49:35 pm »

You simply need to upload your files in the file manager section of Captive Portal in the web interface. It will automatically prepend "captiveportal-" to the file name, so if you upload "default.css" and "logo.png" you will have to refer to "captiveportal-default.css" and "captiveportal-logo.png" in your HTML page. The login page needs to be uploaded on the standard settings screen, and you cannot dictate the file name for it. There is no need to manually edit any files in the file system on pfSense, or do anything in the shell.

I tried to rename archives as figures and anothers, in other threads was said that .png isn´t allowed and others said that you need to convert pgn to JPG.
 
 Where can I put the images? When i upload my html file the pfSense automatically rename my archive (index.html) to captiveportal.html, and my file go to /var/etc, some threads said to put images on /var/db/cpelements or make a symbol link, but not works both methods.
 
 Can I see your html code.. seeing your references (img src) and where you put your images files?

Thanks for reply.

Logged
Briantist
Full Member
***
Offline Offline

Posts: 115


The professor does not approve of your post.


View Profile WWW
« Reply #3 on: March 09, 2010, 04:36:13 pm »

I'm really not sure where you're confused here. Go to Services -> Captive Portal and then click on the File Manager tab. I've attached a screenshot. There is no restriction on file type as far as I know. There are even instructions on the bottom of that page that tell you how to refer to the files you upload there in your HTML.
Logged
Heitor Lessa
Full Member
***
Offline Offline

Posts: 150



View Profile
« Reply #4 on: March 10, 2010, 04:25:54 pm »

I'm really not sure where you're confused here. Go to Services -> Captive Portal and then click on the File Manager tab. I've attached a screenshot. There is no restriction on file type as far as I know. There are even instructions on the bottom of that page that tell you how to refer to the files you upload there in your HTML.

Hi buddy,

 I wasnt inserting files w/ this option, just SCP, now i´m having some trouble w/ firewall rules and after resolve it I´ll try again w/ this option.

 If wasnt ask so much, can you post your html code plz? Just to reference.

Thanks again.
Logged
Briantist
Full Member
***
Offline Offline

Posts: 115


The professor does not approve of your post.


View Profile WWW
« Reply #5 on: March 11, 2010, 05:03:22 pm »

I don't have it in front of me at the moment but the examples given in the pfSense page itself are really all you need (look at both the main configuration page for CP and at the file upload page).
Logged
Heitor Lessa
Full Member
***
Offline Offline

Posts: 150



View Profile
« Reply #6 on: March 13, 2010, 08:34:05 am »

Dear Briantist,

 I´m so thankfully .. maybe I forgot this option "File Manager", such as the same thing that I tried before.

 File Manager input files in /var/cb/cpelements, but when I tried to refresh login page simply Images aren´t work.

 But finally everything works =) really really thanks.

 Now CP works w/ images and css.

Closed case.

Regards,
Heitor Lessa

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.35 seconds with 20 queries.