davehardy Posted December 16, 2008 Report Share Posted December 16, 2008 Ive made my own html page for registrations using the register_mainpage.tpl code and it turns out like this.......... http://www.easternvirtualairways.com/register.html Any ideas how i can get this to work? I want a html front page and register page but phpvms main site. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 16, 2008 Administrators Report Share Posted December 16, 2008 Change it to .php, not .html, and include core/codon.config.php at the top of the file. Quote Link to comment Share on other sites More sharing options...
davehardy Posted December 16, 2008 Author Report Share Posted December 16, 2008 can you give me the exact code i need to add core/codon.config.php to it? im not a coder just a dreamweaver butcher after renaming to php nothing else edited = http://www.easternvirtualairways.com/register.php Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 17, 2008 Administrators Report Share Posted December 17, 2008 just do include 'core/codon.config.php'; Quote Link to comment Share on other sites More sharing options...
davehardy Posted December 17, 2008 Author Report Share Posted December 17, 2008 Thanks. That got it working, kinda i think im going to have to find someone who can code I just want a bespoke Index and Register page the rest of the site can run phpvms i just need to get this register page working them im done and i can open for business! Ive attached the register.php file if anyone wants to have a look at it? I will paint airline livieries in return register.zip Quote Link to comment Share on other sites More sharing options...
BBuchanan Posted December 17, 2008 Report Share Posted December 17, 2008 he actually has the info correct, its simply not doing what it's supposed to. Edited: Sometimes I'm an idiot. I understand the purpose of creating the custom skin folder and copying the files from /core/templates/ if you want to make your own skin. You can edit the .tpl files to have your style, this way the system already knows the core .tpl files that are already located in /core/templates/. Since you copy these files to your own skin and customize them (not their names), the program will simply call the pre-made but now customized files in your skin folder. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 17, 2008 Administrators Report Share Posted December 17, 2008 Yup, the names have to be the same, it checks the local skin folder first to see if it's there, otherwise it'll go to the default. I've seen some people make a custom .php page with stuff, but the problem is, it'll forward back to the one within the system. You can include the registration form like: Template::Show('registration_mainform.tpl') (I think that's what it's called... lol), instead of re-doing the entire form, so <head> <title><?php echo $title ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include 'core/codon.config.php'; Template::Show('core_htmlhead.tpl'); ?> </head> <?php Template::Show('core_htmlreq.tpl'); ?> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> .... <?php Template::Show('registration_mainform.tpl'); ?> ... Maybe that helps? I need my coffee Quote Link to comment Share on other sites More sharing options...
BBuchanan Posted December 17, 2008 Report Share Posted December 17, 2008 what he's done so far is copy and paste stuff over to a different file so he could run his own style and what not. Problem with this is, even though he's calling the codon.config or whatever, all the drop downs aren't working. Airline, hub, and location have nothing in them. So what I'm thinking, is just make a copy of all the core/template files, placing them into his own skin, modifing the header (so it doesn't go back to something else) and editing the styles from there. All this actually turned the light on in my head for doing my own airline stuff. Thank you Dave and Nabeel. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 17, 2008 Administrators Report Share Posted December 17, 2008 Ahh yeah, the dropdowns won't work, because the template variables need to be set. The reason I do that is because I may change stuff on the backend, etc. But if you want to know how to set those, It's 5/6 lines of copy/paste Quote Link to comment Share on other sites More sharing options...
davehardy Posted December 17, 2008 Author Report Share Posted December 17, 2008 yeah can i have that code and where to put it? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 17, 2008 Administrators Report Share Posted December 17, 2008 under the include 'core/codon.config.php'; Template::Set('extrafields', RegistrationData::GetCustomFields()); Template::Set('allairlines', OperationsData::GetAllAirlines(true)); Template::Set('allhubs', OperationsData::GetAllHubs()); Template::Set('countries', Countries::getAllCountries()); Then Template::Show('registration_mainform.tpl'); Quote Link to comment Share on other sites More sharing options...
davehardy Posted December 18, 2008 Author Report Share Posted December 18, 2008 Ok i clear all the other code out and just made i new php file with this. <head> <title>Register</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include 'core/codon.config.php'; Template::Set('extrafields', RegistrationData::GetCustomFields()); Template::Set('allairlines', OperationsData::GetAllAirlines(true)); Template::Set('allhubs', OperationsData::GetAllHubs()); Template::Set('countries', Countries::getAllCountries()); Template::Show('registration_mainform.tpl'); ?> http://www.easternvirtualairways.com/eva/register.php All fields work but when i hit Register it just takes me to the phpvms register page. Although i know know the the custom registration_mainform.tpl that i put in my skin folder works! Quote Link to comment Share on other sites More sharing options...
BBuchanan Posted December 18, 2008 Report Share Posted December 18, 2008 just gotta do that with all the others. Quote Link to comment Share on other sites More sharing options...
davehardy Posted December 18, 2008 Author Report Share Posted December 18, 2008 The penny has dropped.................going to test my new thoughts Quote Link to comment Share on other sites More sharing options...
davehardy Posted December 18, 2008 Author Report Share Posted December 18, 2008 yay got my 1st idea to work instead! http://www.easternvirtualairways.com/ Fill in your 1st and last name and hit register and it carries it over to the register page! Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 19, 2008 Administrators Report Share Posted December 19, 2008 Nice, faked the POST so it error'd... nice. BTW, your page overflows sideways, so I have to scroll over Quote Link to comment Share on other sites More sharing options...
davehardy Posted December 19, 2008 Author Report Share Posted December 19, 2008 the front page? yeah i know im down-sizing it to 1024pix width. i have a 22" widescreen and forgot lol Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 19, 2008 Administrators Report Share Posted December 19, 2008 Haha, I usually stick to 970 width, that's well for 1024 maximized. Quote Link to comment Share on other sites More sharing options...
davehardy Posted December 20, 2008 Author Report Share Posted December 20, 2008 if people are still using monitors with 1024x768 or less then they dont deserve the internet! Nearly all pc's come with high quality high resolution TFT/LCD monitors now so not much excuse in my opinion, i remember the days of 14" CRT 640x480 16bit color or less Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 21, 2008 Administrators Report Share Posted December 21, 2008 Hahaha.. yes, the good ol' days. I remember when you were king for having a 17" CRT. Needed a team to carry it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.