Jump to content

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


davehardy

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Administrators

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Administrators

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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...