1
ViperSBT
Templates not working
  • 2006/7/25 14:40

  • ViperSBT

  • Just popping in

  • Posts: 88

  • Since: 2004/9/27


After recovering my site from a huge problem, I have almost everything working except for the templates. Everything in the Admin section is working normally except for Templates. When I go to the templates page I get the following on the screen:

Quote:
// // You may not change or alter any portion of this comment or credits // // of supporting developers from this source code or any supporting // // source code which is considered copyrighted (c) material of the // // original comment or credit authors. // // // // 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. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // // Author: Kazumi Ono (AKA onokazu) // // URL: http://www.myweb.ne.jp/, https://xoops.org/, http://www.xoopscube.jp/ // // Project: The XOOPS Project // // ------------------------------------------------------------------------- // if ( !is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) ) { exit("Access Denied"); } else { $op = 'list'; if (isset($_POST)) { foreach ( $_POST as $k => $v ) { ${$k} = $v; } } if (isset($_GET['op'])) { $op = trim($_GET['op']); $id = $moddir = $file = $type = $tplset = null; if (isset($_GET['id'])) { $id = intval($_GET['id']); } if (isset($_GET['moddir'])) { $moddir = trim($_GET['moddir']); } if (isset($_GET['file'])) { $file = trim($_GET['file']); } if (isset($_GET['type'])) { $type = trim($_GET['type']); } if (isset($_GET['tplset'])) { $tplset = trim($_GET['tplset']); } } if ($op == 'edittpl_go') { if (isset($previewtpl)) { $op = 'previewtpl'; } } switch ($op) { case 'list': $tplset_handler =& xoops_gethandler('tplset'); $tplsets =& $tplset_handler->getObjects(); xoops_cp_header(); echo '
'._MD_TPLMAIN.'
'; $installed = array(); $tpltpl_handler =& xoops_gethandler('tplfile'); $installed_mods = $tpltpl_handler->getModuleTplCount('default'); $tcount = count($tplsets); echo ''; $class = 'even'; for ($i = 0; $i < $tcount; $i++) { $tplsetname = $tplsets[$i]->getVar('tplset_name'); $installed_themes[] = $tplsetname; $class = ($class == 'even') ? 'odd' : 'even'; echo ''; if ($tplsetname == $xoopsConfig['template_set']) { echo ''; } else { echo ''; } echo ''; } echo '


This goes on, and on, and on... Basically the page doesn't seem to be getting rendered. Any ideas?
Brett M. Williams
Co-Founder, The United Flyball League International
http://www.u-fli.com

2
Bender
Re: Templates not working
  • 2006/7/25 19:07

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Check if the file [size=x-small]\modules\system\admin\tplsets\main.php [/size] is ok. Maybe reupload that one from the XOOPS version you are using currently.

Might have open tags at the beginning or end or be messed up in some other way.
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

Login

Who's Online

263 user(s) are online (163 user(s) are browsing Support Forums)


Members: 0


Guests: 263


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits