URL to your eFiction: http://fiction.spot-design.net
Version of eFiction: 3.0.2
Have you bridged eFiction, if so with what?: no
Version of PHP: 4.4.4
Version of MySQL: 4.0.25
Have you searched for your problem: yes
If so, what terms did you try: I browsed through all the 3.0 support, didn't find anything related to this problem.
Have you looked at the FAQs: There are no 3.0 FAQs
State the nature of your problem: When I had 2.0 I used iframes in Help (FAQ) so that I could use a FAQ script. Now with the custom pages I can not get iframes to work. I added the iframe code using the custom page html or turned off tinyMCE, but when I go back the code is gone. Is there a reason iframes don't work? Or can I use php includes? I had used that on another custom page in 2.0.
You can see the pages that are suppose to have iframes here:
http://fiction.spot-design.net/viewpage.php?page=help
http://fiction.spot-design.net/viewpage.php?page=fanlist
I just realized that it was a problem with inserting it into the database so I manually entered the info in and now it works.
But I am still wondering if you can use php include? It would work better if I could do that.
Iframes aren't in the allowed tags list probably.
Bump. Did you figure this out? If there's no reply in a week, we'll consider this issue closed.
I found a dirty way to fix this. I put the iframe info directly into the database. Is there a better was to intergrate a page that uses php? For example my FAQ script uses php but it is meant to be included into another php page, it's not really a standalone. I guess I could add the theme to the pages as a mod to the FAQ script but I have several themes and I know I have no idea how to intergrate theme changer into that. So I would rather intergrate the FAQ script into my efiction theme without having to use iframes.
Your FAQ's are cool. π
My suggestion for anyone else following the thread who haven't tried to create help pages yet is to just use html and create articles and link to them.
That's what I did here with custom pages.
http://www.potionsandsnitches.net/fanfiction/viewpage.php?page=help
You have to edit the whole page if there's a mistake, but I keep a copy on my comp that's easier to read. I just edit, copy the html, and paste into the page's edit plain text box.
Just make sure that you do not paste the wrong page's code into the wrong text box (done that). π
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
FAQ's may be a module we'll develop in the future. You can include php using the template.php file same as in previous versions. The custom pages are designed for those who don't want to have to touch the actual php. I may work on them further to see if I can get php working in them.
I made a copy of template.php and renamed it faq.php. I then changed the areas inside that needed to be changed and added the include:
<?php
// ----------------------------------------------------------------------
// Copyright (c) 2005 by Tammy Keefer
// Valid HTML 4.01 Transitional
// Based on eFiction 1.1
// Copyright (C) 2003 by Rebecca Smallwood.
// http://efiction.sourceforge.net/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
$current = "faq";
include ("header.php");
if(file_exists("$skindir/default.tpl")) $tpl = new TemplatePower( "$skindir/default.tpl" );
else $tpl = new TemplatePower(_BASEDIR."default_tpls/default.tpl");
$tpl->assignInclude( "header", "./$skindir/header.tpl" );
$tpl->assignInclude( "footer", "./$skindir/footer.tpl" );
//let TemplatePower do its thing, parsing etc.
$tpl->prepare();
include("includes/corefunctions.php");
include ("faq/index.php");
//Don't modify below this line
$tpl->assign("output", $output);
$tpl->printToScreen();
?>
But when I load my page the include info is at the top of the page. You can view what I mean at http://fiction.spot-design.net/faq.php. How do I get it to show in the output area? Do I need to make a faq.tpl?
You'd probably need to edit your faq script.
