Notifications
Clear all

Custom Pages with Templates

4 Posts
2 Users
0 Reactions
2,081 Views
(@YourFanfiction)
Posts: 0
 

URL to your eFiction: http://www.yourfanfiction.com/
Version of eFiction: 3.5.3
Have you bridged eFiction, if so with what?: SMF 1.1.16
Version of PHP: PHP 5.2.16
Version of MySQL: 5.1.52
Have you searched for your problem: yes
If so, what terms did you try: custom page, custom page template, custom template
Test Account: U/N: Test P/W: admin123
State the nature of your problem: When I create a custom page via the template, I was just wondering where I should put that within my efiction directories so that the site can link to it? I have a Forum.php that I created from a template, and it's in my main directory where the template is, but when I try to go to Yourfanfiction.com/Forum.php, I get an error.


 
Posted : 11/07/2012 2:38 pm
(@StarMemory)
Posts: 0
 

If you want it to show up at this link: Yourfanfiction.com/Forum.php
Usually, you'd need to  place that in your domain's main HTML folder , such as where you'd place your main index file.

Example:
Say you have the following files in your main directory of your domain:
Index.html
Forum.php
Template (a folder containing other files)

The link would be yoursitelink.com/forum.php

Say forum.php is moved into a sub-directory (ie. a folder) you'd have to point the domain to the file in the folder.
So the link would become: yoursitelink.com/template/forum.php

I hope that makes sense!


 
Posted : 11/07/2012 3:46 pm
(@YourFanfiction)
Posts: 0
 

That does make sense. If I create a custom page through efiction, then, where abouts in my folders would I find that page if I then wanted to edit it outside of efiction (in Dreamweaver for example)?


 
Posted : 18/07/2012 1:51 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

eFiction custom pages are dynamically generated, so you won't find them in your site's directory. The content is saved in the database and then dropped into your site when the call is made via the code in viewpage.php. That's why you find them at /viewpage.php?page=xxxxxx where xxxxxx = the name of the custom page.


 
Posted : 04/09/2012 10:56 pm
Share: