gagf
Member
Posts: 38
Registered: 3-25-2012
Member Is Offline
|
|
**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
|
|
Kellter
Member
Posts: 44
Registered: 5-5-2008
Member Is Offline
Mood: No Mood
|
|
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.
|
|
gagf
Member
Posts: 38
Registered: 3-25-2012
Member Is Offline
|
|
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
|
|
gagf
Member
Posts: 38
Registered: 3-25-2012
Member Is Offline
|
|
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
|
|
kuba1
XMB Project Manager
Posts: 161
Registered: 12-16-2007
Location: Here on this forum ;)
Member Is Offline
Mood: No Mood
|
|
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.
|
|
gagf
Member
Posts: 38
Registered: 3-25-2012
Member Is Offline
|
|
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;
?> |
|
|
kuba1
XMB Project Manager
Posts: 161
Registered: 12-16-2007
Location: Here on this forum ;)
Member Is Offline
Mood: No Mood
|
|
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.
|
|
gagf
Member
Posts: 38
Registered: 3-25-2012
Member Is Offline
|
|
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?
|
|
gagf
Member
Posts: 38
Registered: 3-25-2012
Member Is Offline
|
|
got it thanks
|
|
kuba1
XMB Project Manager
Posts: 161
Registered: 12-16-2007
Location: Here on this forum ;)
Member Is Offline
Mood: No Mood
|
|
so ... this is resolved, right??
|
|
gagf
Member
Posts: 38
Registered: 3-25-2012
Member Is Offline
|
|
|
|