i2-Services, Inc. Forums

Full Version: Getting design to work with forms
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does any one have a tutorial or and explanation of how to get the forms built in the admin gui to work with an existing design I created in Dreamweaver?

Thanks in advance,

razorack--

razorack Wrote:
Does any one have a tutorial or and explanation of how to get the forms built in the admin gui to work with an existing design I created in Dreamweaver?


The best way to do this is create a page with your design into the installation folder.

Lets call it "design.html"

Go to the URL of the "design.html" file within the installation folder and make sure it renders correctly, and all your links work as well.

Within the "design.html" is normally the content section of the page. This is where you want to split the page at the content section.

The top being the "header" section which is above the content area.

The bottomb eing the "footer" section which is below the content area.

Lets take /interface/user_login.php for an example template you want to customize.

Open that template file. Where the first / opening <table> tag is located is where the content of the template begins.

You want to place your header HTML above this line.

Make sure you preserve these two lines as well above that table tag:

Code:
<form action="{$SCRIPT_NAME}" Method="POST">
<input type="hidden" name="redirect" value="{$redirect}">


If you have any CSS or Javascript code / tags within the header you want to wrap them around a {literal} {/literal} tag.

Now for the footer. At the bottom of the template after the closing </table> tag & </form> tag place your footer HTML.

Save the file, upload if you did not edit it live on the server.

When you go to the control_panel.php file which then displays the "user_login.php" template it should have your site design.

Hope this helps. Any feedback welcomed.

Ok I designed a form page an copied the code into it and it does not seem to work correctly:

http://www.glbbqa.com/php_mm/index_sign_new.htm

IT goes to a page that has no design if they dont fill everything reuqired out.

Can you take a look,

Thanks,
razorack--
You're going about customizing a little backwards.

You do not take the output from "register.php"  and place the form into your page design.

Take the registration form out of your "index_sign_new.htm"  page.

Where the form is now just put content text in, such as:

Code:
content here content here content here content here content here content here content here content here content here content here content here content here content here content here content here content here


Then correct all your image calls and link references so they pull in the images, css, etc.

Edit ---> On second look your images are coming in just fine. Take the form code out of the page. Take a look at my first response and follow those steps, customizing the /interface/user_login.php page. Placing the header & footer in around the content within that template.

No matter what I do I cannot get the html to work with the interface pages, I have tried exactly what you have said to do but I either see the php code show up in the browser or I do not see my pages.

does anyone have an example page they have done that I can look at live on the web and also see the source?

Thanks,
razorack--
If possible post the URL to where we can look at your mod or submit a support ticket and we'll check out the edited template.
Ok this is really weird, yesterday I was getting pages just fineand working on pages and see them in the browser, now I get this error when I try to pull up pages:

Site error: the file /home/httpd/vhosts/glbbqa.com/httpdocs/mm2/mm2/admin.php requires the ionCube PHP Loader ioncube_loader_lin_4.4.so to be installed by the site administrator.

I could get into the admin site just fine up until this morning.

Also here is a URL of a page that does nto look right, I understand the graphics not coming up as I have not linked them, butI followed your instructions as to where to put the html code and css but this is what it looks like

http://www.glbbqa.com/mm2/mm2/interface/reg.php

razorack--
Once we get the ioncube error figured out (which I responded to your support ticket about) I can take a better look at the template.

If you name it "register.php" , from "reg.php" within the /interface/ folder then go to the main "register.php" program file (which is the .php file in the main install folder) it will display your updated template.
Looks like its back up - Did your host re-load the ioncube loaders?
Reference URL's