I don't know what happen, after i tried to manually intall the TP i got this message:
Parse error: syntax error, unexpected '&' in /home/sopheapn/public_html/Forum/index.php on line 172
www.sopheapneary.com/Forum/index.php
what did i do wrong?
Either post lines 333 - 353 here of your index.php or attach the index.php here.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi188.photobucket.com%2Falbums%2Fz184%2Fsopheapneary%2Fimage002-1.jpg&hash=5dc2864e6118cc9b7fd968c08bdcae5f72747a38)
Remove all those in the file.
now i get this: :(
Warning: main(/home/sopheapn/public_html/Forum/Sources/TPortal.php) [function.main]: failed to open stream: No such file or directory in /home/sopheapn/public_html/Forum/index.php on line 57
Fatal error: main() [function.require]: Failed opening required '/home/sopheapn/public_html/Forum/Sources/TPortal.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/sopheapn/public_html/Forum/index.php on line 57
Are you sure that you uploaded all the TPs files?
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi188.photobucket.com%2Falbums%2Fz184%2Fsopheapneary%2Fimage002-2.jpg&hash=5ee712586024c07a05145ec54f5a1e059faeeee2)
let me try again, and see what happen.
Quote from: Dragooon on April 01, 2008, 06:29:36 PM
Are you sure that you uploaded all the TPs files?
I NEVER asked to post what code you altered, have you UPLOADED TPs file found here (http://www.tinyportal.net/index.php?action=tpmod;dl=item744) according to the instructions?
i only did the index.php for now. do i have to do all of them b4 it work?
Do each and every step described in here:
http://www.tinyportal.net/index.php?topic=14230.0
ok, i did everything like instruction but i still get this Parse error, don't know why?
www.sopheapneary.com/Forum/index.php
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.
how do i attach the file here? sorry i'm new
click "Additional Options..." browse for the Subs.php file and upload ;)
oh ok, let me try
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'] = '<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
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
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.
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 " "
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.
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?
here is the download for notepad++ ;)
http://notepad-plus.sourceforge.net/uk/site.htm
Quoteshould i just look for the codes instead then?
Yes. It's better to have a text editor that has numbers, but, since we know what the code is, you can search for it.
thank you, i will try to do this codes things 1 more time the right way and see where it'll takes me. thanks for your help and i'll be back.
Hi, i'm back. I fixed some of the problem, but now I got this error again and i can't seem the find the mistake.
Parse error: syntax error, unexpected ';' in /home/sopheapn/public_html/Forum/Sources/Load.php on line 669
Load.php problems are really hard to find, because the problem usually isn't in that file. It's usually in some other file that got loaded. The only thing you can do is to go over all of your edits again. Slow and tedious process.
oh well, i guess i will have to keep on playing with it until i get it right. once again thanks for your help. I appreciated .
No problem. I really hate having to look for those things. Super pain. Best of luck. If we can help, just holler.
OK I am attaching a fixed up file.
@JPDeni, It is hard to find Load.php problems when it got eval inside it(Which can be disabled by adding a setting of disableTempEval in settings table), this time there wasn't any eval so it was a problem in the file.
Good job, Dragoon! I guess I was sleepy last night. :)
Thanks :)