Jump to content

I dont get it..........


Recommended Posts

Posted

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 :D

register.zip

Posted

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.

  • Administrators
Posted

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

Posted

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.

  • Administrators
Posted

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

  • Administrators
Posted

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');

Posted

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!

Posted

if people are still using monitors with 1024x768 or less then they dont deserve the internet! :D

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 :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...