XMB Forum Software
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: **resolved** custom page help
gagf
Member
***




Posts: 38
Registered: 3-25-2012
Member Is Offline


[*] posted on 3-29-2012 at 09:13 PM
**resolved** custom page help


I have added a custom page to my forum. It was installed correctly and everything is fine but how do i add information to it? What file would i edit? I installed this strictly using th readme but now i don't know what part to edit to have the info i want. I am making a contact us page, is there another program i can use to create the page and then edit a file to insert what i create

I basically want a page that looks like my forum with the header and footer areas there, but everything between the header and footer i want to be able to edit
View user's profile View All Posts By User
Kellter
Member
***




Posts: 44
Registered: 5-5-2008
Member Is Offline

Mood: No Mood

[*] posted on 3-29-2012 at 09:25 PM


edit the template you made for the custom page and find

<!-- Download Links go Here -->

Replace above with whatever html/php you want for the page.
View user's profile Visit user's homepage View All Posts By User
gagf
Member
***




Posts: 38
Registered: 3-25-2012
Member Is Offline


[*] posted on 3-29-2012 at 10:34 PM


So anything i need to do can be done through admin panel? Do you know of any online website generator that would allow me to create the content like bolder/larger text i want on the page. I would like to have something like this. the advertiser content would use half the page and the supporter area would use the bottom half of page

advertiser area
content here (about half page for each)



Supporter area
content here
View user's profile View All Posts By User
gagf
Member
***




Posts: 38
Registered: 3-25-2012
Member Is Offline


[*] posted on 3-29-2012 at 10:51 PM


Quote: Originally posted by Kellter  
edit the template you made for the custom page and find

<!-- Download Links go Here -->

Replace above with whatever html/php you want for the page.


I tried that and that does not seem to work. icreated a page with some info using html and no luck . i replaced download links go here with the page i created and i get nothing
View user's profile View All Posts By User
kuba1
XMB Project Manager
*********




Posts: 161
Registered: 12-16-2007
Location: Here on this forum ;)
Member Is Offline

Mood: No Mood

[*] posted on 3-29-2012 at 11:16 PM


maybe you might post the actual template you created .... or give us a url? It might help if we had some idea of what you were doing to create the template.



Hit this link often (Part of the XMB forum marketing campaign):

http://www.forummatrix.org/show/XMB

Testing the Signature Changing Code
View user's profile Visit user's homepage View All Posts By User
gagf
Member
***




Posts: 38
Registered: 3-25-2012
Member Is Offline


[*] posted on 3-29-2012 at 11:40 PM




in the readme file it said to create new template (which i did) i created a template called contact.php. the install directions said to rename file and upload to server which i did

this is what is in my template

Code:
<table cellspacing="0" cellpadding="0" border="0" width="$tablewidth" align="center"> <tr> <td bgcolor="$bordercolor"> <table border="0" cellspacing="{$THEME['borderwidth']}" cellpadding="$tablespace" width="100%"> <tr> <td class="category"><font color="$cattext"><strong>Download</strong></font></td> </tr> <tr> <td class="tablerow" bgcolor="$altbg1"> download links go here </td> </tr> </table> </td> </tr> </table>


The file i renamed and uploaded is what appears as a page this is it

Code:
<?php // get required global info define('X_SCRIPT', 'contact.php'); require 'header.php'; // load navigation text nav('contact'); // load templates used loadtemplates('contact'); // load css eval('$css = "'.template('css').'";'); // load header eval('$header = "'.template('header').'";'); // load page you want here eval('$pagebody = "'.template('contact').'";'); // load footer stuff end_time(); // load footer eval('$footer = "'.template('footer').'";'); // transmit response entity echo $header.$pagebody.$footer; ?>


View user's profile View All Posts By User
kuba1
XMB Project Manager
*********




Posts: 161
Registered: 12-16-2007
Location: Here on this forum ;)
Member Is Offline

Mood: No Mood

[*] posted on 3-30-2012 at 12:19 AM



Quote:

i created a template called contact.php



I think you needed to create a template called "contact" NOT "contact.php"

PS: please enclose html and php code in a code bbcode ... I fixed your reply so you could see how to do it.



Hit this link often (Part of the XMB forum marketing campaign):

http://www.forummatrix.org/show/XMB

Testing the Signature Changing Code
View user's profile Visit user's homepage View All Posts By User
gagf
Member
***




Posts: 38
Registered: 3-25-2012
Member Is Offline


[*] posted on 3-30-2012 at 01:43 AM


this was the instructions

Instructions:

1. Rename download.php to the name you would like for the new page.

2. Edit download.php and replace all instances of the word "download" with the new name.

3. Upload the file to your server.

4. Go to Administration Panel -> Templates and create a New template with the same name.

5. Enter any custom HTML in the template. Ours looks like this:

Should my original download.php file and my template file be 2 different names?
View user's profile View All Posts By User
gagf
Member
***




Posts: 38
Registered: 3-25-2012
Member Is Offline


[*] posted on 3-30-2012 at 01:49 AM


got it thanks
View user's profile View All Posts By User
kuba1
XMB Project Manager
*********




Posts: 161
Registered: 12-16-2007
Location: Here on this forum ;)
Member Is Offline

Mood: No Mood

[*] posted on 3-30-2012 at 02:18 AM


so ... this is resolved, right??



Hit this link often (Part of the XMB forum marketing campaign):

http://www.forummatrix.org/show/XMB

Testing the Signature Changing Code
View user's profile Visit user's homepage View All Posts By User
gagf
Member
***




Posts: 38
Registered: 3-25-2012
Member Is Offline


[*] posted on 3-31-2012 at 12:16 AM


Quote: Originally posted by kuba1  
so ... this is resolved, right??


yea
View user's profile View All Posts By User

  Go To Top

Powered by XMB 1.9.12 (Debug Mode)
XMB Forum Software © 2001-2024 The XMB Group
[Queries: 16] [PHP: 24.2% - SQL: 75.8%]