Web Hosting Talk







View Full Version : Aaarrrggg. Question on re-skinning Cpanel - I'm STUCK:


knipper
05-28-2001, 10:40 AM
Hey folks...

I'm in the process of re-skinning my CPanel. Everything was going smoothly. However....I noticed something I can't figure out. (Iconic Theme) :mad:

Lets use the mail directory for example:
pops.html shows account, login, and then pulls any accounts from "listpoptables"
At the bottom there is a link to add an account and go back.

Everything was well and good...until I actually used it, and when you have mail accounts set-up the "listpoptable" adds options to the page...delete account, read web mail, autoconfigure outlook, etc.

I CAN"T FIND "listpoptable" to see/edit the code anywhere! I need to be able to change the links/images it calls when it loads on the pops.html page. :confused:

ANY help is greatly appreciated! Thanks in advance!!

thesmallguyshost
05-28-2001, 01:06 PM
I heard there is a replace for cpanel coming out in July or so.. maybe August.. but it's soon. And unless my info is incorrect it's a totally redesigned panel.. it's not even going to be called cpanel. So it's more than an upgrade.. it's a replacement. You might want to find out for sure if this info is correct before you spend too much time on this customization unless you don't want to upgrade when it's time. From what I'm told it will offer automatic signsups and more than likely billing built in.

Domenico
05-28-2001, 01:18 PM
Are you talking about the VDI or NOCSOFT version ???

;-)

Chicken
05-28-2001, 04:01 PM
I believe this applies to both.

onlyreal
05-28-2001, 04:06 PM
i am remembering that i read it in a thread in this forum

it say
it will be for

NOCSOFT version


and will be with a different name

bu i am not sure

Matt Lightner
05-28-2001, 04:07 PM
Originally posted by knipper
I CAN"T FIND "listpoptable" to see/edit the code anywhere! I need to be able to change the links/images it calls when it loads on the pops.html page. :confused:

ANY help is greatly appreciated! Thanks in advance!!
The reason you can't find it is because it's compiled into the main Cpanel binary. Cpanel is not an open-sourced product. The majority (probably 95%) of the code is compiled before being distributed to prevent it from being copied/stolen, etc. The only people with access to the source code are the program developers.

Hope that helps.

Best Regards,
Matt Lightner
mlightner@site5.com

knipper
05-28-2001, 05:31 PM
Thanks Matt,

But that doesn't make sense as I have seen several "versions" of CPanel with different skins. This even includes Demo versions, for a different "look and feel" of the site. (basically to match the exsisting site)

For an example of what I am refering to (if you have access the the "iconic" theme of "CPanel) I have been able to change all the mail pages...but when you add a new user the results of "listpoptable" populate a table cell within the exsisting page.

Unfortunately, it pulls the data including all the images and formating of the "iconic" theme into that table. for example the "delete, read web mail" etc, images which are part of the "iconic" theme.

I suppose I can just create new images called the same name, so at least it looks like the rest of the site. Hopefully it won't wack out the table layout (which I corrrected from their "rough" html style.

Thanks....any other tips?

Mark Vockler
05-29-2001, 03:08 AM
The table structure for the list of POP accounts is fixed, but if you replace the original images with your own (using the same filenames), they'll show up.

Mark Vockler
Aletia Hosting

ckizer
05-29-2001, 03:59 AM
Yeah it sorta poses a problem because the lists are generated in that huge helvetica font and it breaks up the tables, I tried to force it to change by putting span tags around it but it still stays the same... I was wondering where is the list generated from? Like is it a mySQL table? or is there a file it pulls all the mail accounts out of? I don't think it would be that hard to write a perl script to replace that pops.html page and have it be however you want....

knipper
05-29-2001, 06:53 AM
Luckily the images sizes are not hard coded into the script. SO, I just crated new smaller images with the same name. Now they still show up, but look like the rest of my site and don't break the tables (especially with long addresses) :D I wish I could change the size of the font though!

Knipper

ckizer
05-29-2001, 07:57 AM
I don't think cpanel was planned out very well. Like the fact that they switch between .gif and .jpg on the same mail table lists??? What's that about? You can't do transparency with .jpg.. And if you are gonna use .jpg then use it everywhere don't switch formats in the middle of a page... or when they use that huge helvetica font for the layout of the cells, but in the mime types they force times font. They need to leave all the fonts untouched so it is using "default" that way when people put font tags or css tags around any generated code they WILL return as the template specifies... Also the directory paths of images is all screwy, some like mail calls images out of the root 'images' folder while the web protect features calls all images out of a local images folder insite the "htaccess" folder. Another is the mail images called mainacct.jpg file, this images is also reused in the FTP accounts. Why they choose to use force us to put images in either of these two is beyond me, better still why not have to different images for ftp and the mail one? Cpanel is a great concept, but it needs a lot of polishing....

knipper
05-29-2001, 12:48 PM
I noticed when I copied the Iconic directory there were duplicate images everywhere!!

Here is an example. You know all the "image slices" they use (over 50 images) for the "look" of CPanel? I found duplicates in at least 3 places....

/images
/pics/
/final/images/

and I think there was even another one I can't recall now.

I also found serveral pages that must have been test pages when they were determining the layout. Text of the page included things like "Blah blah", and didn't include any cpanel tags/references, etc.

Oh well.....just kinda funny. :)

KDAWebServices
05-29-2001, 01:10 PM
It would be nice if the new version of the 'CPanel' had a template system like vBulletin or similar - it would make things so much more simple.

Elena
06-03-2001, 08:37 AM
If you would like to change the font that shows up in those tables.. try adding this to your style sheets:

td{color: #000000; font-family:verdana, sans-serif, arial; font-size: 12px}

of course, replacing those values with what you want your font to look like.. this will force a special font type in all your table cells.

also, while making my cpanel skins I found that the <pre> tag was spitting out the font at such a teenie tiny size that I had to change it with, again, the magic of css :stickout

pre {font-family:verdana, arial; text-decoration:none; FONT-SIZE: 11px;}

you can really change alot of the look for cpanel with just a style sheet sooo.. it isn't really bad in that aspect. what really annoys me is in the area for ftp, the pre-written code for the table is messed up, making it so that where it reads anonymous@domain.com the mainacct.jpg image shows up below it instead of beside it. bad html from the programmers there.. my bad for never reporting it as a tiny bug. :rolleyes:

Mark Vockler
06-03-2001, 09:16 AM
Great to see you around again, Elena!!

Mark Vockler
Aletia Hosting

CRego3D
06-03-2001, 09:20 AM
Originally posted by ckizer
I don't think cpanel was planned out very well. Like the fact that they switch between .gif and .jpg on the same mail table lists??? What's that about? You can't do transparency with .jpg.. And if you are gonna use .jpg then use it everywhere don't switch formats in the middle of a page... or when they use that huge helvetica font for the layout of the cells, but in the mime types they force times font. They need to leave all the fonts untouched so it is using "default" that way when people put font tags or css tags around any generated code they WILL return as the template specifies... Also the directory paths of images is all screwy, some like mail calls images out of the root 'images' folder while the web protect features calls all images out of a local images folder insite the "htaccess" folder. Another is the mail images called mainacct.jpg file, this images is also reused in the FTP accounts. Why they choose to use force us to put images in either of these two is beyond me, better still why not have to different images for ftp and the mail one? Cpanel is a great concept, but it needs a lot of polishing....
Everybody complains ... you should have taken a look at the previous skin before I created this one, and then you would give it it's true value

Those skins where created for my own personal use, good or bad, then in a moment of "DUMBNESS" I decided everybody would have it ... (real smart Carlos) .. Now everybody complains that it sucks .. I will look for the skin that you would be using and show it to you

cheers

CRego3D
06-03-2001, 09:26 AM
there you go

http://old:old@66.78.30.69:2082

take a look

Mark Vockler
06-03-2001, 09:37 AM
Originally posted by CRego3D
http://old:old@66.78.30.69:2082

LOL...man, that's really....!!! :D :D :D

Mark Vockler
Aletia Hosting