TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 321
  • Total: 321

please help!

Started by neary, April 01, 2008, 06:09:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dragooon


neary

#11
ok, i did everything like instruction but i still get this Parse error, don't know why?

www.sopheapneary.com/Forum/index.php

JPDeni

There's a problem in the Subs.php file. Attach the file to a post and someone will likely be able to find the problem.

neary

how do i attach the file here? sorry i'm new

Max


click "Additional Options..." browse for the Subs.php file and upload  ;)

neary

#15
oh ok, let me try

JPDeni

There's a whole series of errors in your file, starting with line 3264. I'm thinking that maybe you didn't use a plain text editor when you manually edited the file. Or something. Be that as it may... :)

Your TinyPortal section looks like this:


// TinyPortal
if (allowedTo(array('tp_settings', 'tp_blocks', 'tp_articles', 'tp_dlmanager', 'tp_gallery', 'tp_linkmanager', 'tp_teampage')))
{
$context['admin_areas']['tportal'] = array(
'title' => 'TinyPortal',
'areas' => array()
);
if (allowedTo('tp_settings')){
$context['admin_areas']['tportal']['areas']['tp_settings'] =&nbsp; '<a href="' . $scripturl . '?action=tpadmin;sa=settings">' . $txt['tp-admin2'] . '</a>';
}
if (allowedTo('tp_blocks')){
$context['admin_areas']['tportal']['areas']['tp_blocks'] =&nbsp; '<a href="' . $scripturl . '?action=tpadmin;sa=blocks">' . $txt['tp-admin5'] . '</a>';
}
if (allowedTo('tp_articles')){
$context['admin_areas']['tportal']['areas']['tp_articles'] =&nbsp; '<a href="' . $scripturl . '?action=tpadmin;sa=articles">' . $txt['tp-admin8'] . '</a>';
}
if (allowedTo('tp_dlmanager') && $context['TPortal']['show_download']){
$context['admin_areas']['tportal']['areas']['tp_dlmanager'] =&nbsp; '<a href="' . $scripturl . '?action=tpmod;dl=admin">' . $txt['tp-admin9'] . '</a>';
}
if (allowedTo('tp_linkmanager') && $context['TPortal']['show_linkmanager']){
$context['admin_areas']['tportal']['areas']['tp_linkmanager'] =&nbsp; '<a href="' . $scripturl . '?action=tpmod;link=admin">' . $txt['tp-admin13'] . '</a>';
}
if (allowedTo('tp_gallery') && $context['TPortal']['show_gallery']){
$context['admin_areas']['tportal']['areas']['tp_gallery'] =&nbsp; '<a href="' . $scripturl . '?action=tpmod;show=admin">' . $txt['tp-admin15'] . '</a>';
}
if (allowedTo('tp_teampage') && $context['TPortal']['show_teampage']){
$context['admin_areas']['tportal']['areas']['tp_teampage'] =&nbsp; '<a href="' . $scripturl . '?action=tpmod;team=admin">' . $txt['tp-admin17'] . '</a>';
}
}
// TinyPortal end


It should look like this:

// TinyPortal
if (allowedTo(array('tp_settings', 'tp_blocks', 'tp_articles', 'tp_dlmanager', 'tp_gallery', 'tp_linkmanager', 'tp_teampage')))
{
$context['admin_areas']['tportal'] = array(
'title' => 'TinyPortal',
'areas' => array()
);
if (allowedTo('tp_settings')){
$context['admin_areas']['tportal']['areas']['tp_settings'] =  '<a href="' . $scripturl . '?action=tpadmin;sa=settings">' . $txt['tp-admin2'] . '</a>';
}
if (allowedTo('tp_blocks')){
$context['admin_areas']['tportal']['areas']['tp_blocks'] =  '<a href="' . $scripturl . '?action=tpadmin;sa=blocks">' . $txt['tp-admin5'] . '</a>';
}
if (allowedTo('tp_articles')){
$context['admin_areas']['tportal']['areas']['tp_articles'] =  '<a href="' . $scripturl . '?action=tpadmin;sa=articles">' . $txt['tp-admin8'] . '</a>';
}
if (allowedTo('tp_dlmanager') && $context['TPortal']['show_download']){
$context['admin_areas']['tportal']['areas']['tp_dlmanager'] =  '<a href="' . $scripturl . '?action=tpmod;dl=admin">' . $txt['tp-admin9'] . '</a>';
}
if (allowedTo('tp_linkmanager') && $context['TPortal']['show_linkmanager']){
$context['admin_areas']['tportal']['areas']['tp_linkmanager'] =  '<a href="' . $scripturl . '?action=tpmod;link=admin">' . $txt['tp-admin13'] . '</a>';
}
if (allowedTo('tp_gallery') && $context['TPortal']['show_gallery']){
$context['admin_areas']['tportal']['areas']['tp_gallery'] =  '<a href="' . $scripturl . '?action=tpmod;show=admin">' . $txt['tp-admin15'] . '</a>';
}
if (allowedTo('tp_teampage') && $context['TPortal']['show_teampage']){
$context['admin_areas']['tportal']['areas']['tp_teampage'] =  '<a href="' . $scripturl . '?action=tpmod;team=admin">' . $txt['tp-admin17'] . '</a>';
}
}
// TinyPortal end


Somehow spaces got translated into


&nbsp;


All of those need to be changed, as I did above. Be sure that you use just a plain text editor to edit your files.

Ken.

I had to stop using Microsoft FrontPage on page edits for that very reason... it would add all kinds of extra code to a page which would then end up in my php files if a copy & paste was used to transfer the content of that page. The extra code would always include lots of those pesky "&nbsp;"

Use one of the free editors that are available, like NotePad++ because it can be set to the type of code that you are working on.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

neary

oh boy! i have to redo it all over again then. I looked at notepad but i don't see any number on there, should i just look for the codes instead then?

Smoky


This website is proudly hosted on Crocweb Cloud Website Hosting.