TinyPortal

Development => Support => Installation => Topic started by: vivid on June 22, 2007, 01:02:58 PM

Title: plz urgent help - I installed TP but I am feeling something not good happended
Post by: vivid on June 22, 2007, 01:02:58 PM
I installed TP through packages but I removed it very soon bcz the link Forum at the header is repeated 2 times (beside the link Home).

then I uploaded it again through (package) but in the uploading process the forum gave me server slow down msg .  and when I restart my forum, I found tinyportal is working but I am feeling something not good happended

1. the link Forum is repeated 4 times. (note - in first upload repeat 2 times).
2. the forum is from left to right. I need it to be from right to left, bcz I am using Arabic Language.
3. in the admin control panel when I click on the frontpage, the forum hangs. (note in the first upload it was working very good).
4. when I transfered hacks from the left column to the right column the frontpage still shrink in the middle . and I can not amend this from frontpage in contol pancel. bcz when I click it the forum hangs.
5. I tried to uninstalled tinyportal packaged. but it seem no packge concerning tinyportal.


plz help me

see my forum here
http://www.albahala.com/smf (http://www.albahala.com/smf)
Title: Re: plz urgent help - I installed TP but I am feeling something not good happended
Post by: IchBin on June 22, 2007, 01:11:21 PM
Feel free to use the search. This has been covered before.
http://www.tinyportal.net/index.php?topic=12834.10
Title: Re: plz urgent help - I installed TP but I am feeling something not good happended
Post by: vivid on June 22, 2007, 01:18:55 PM
Quote from: IchBinâ„¢ on June 22, 2007, 01:11:21 PM
Feel free to use the search. This has been covered before.
http://www.tinyportal.net/index.php?topic=12834.10

thank you sir,
I should follow your instruction.

but why when I go to frontpage  in admin cpanel the forum hangs?

in the first time it is working verygood!!!!
Title: Re: plz urgent help - I installed TP but I am feeling something not good happended
Post by: IchBin on June 22, 2007, 01:19:31 PM
probably because you have duplicate code that is causing problems like it says in that topic I pointed you to.
Title: Re: plz urgent help - I installed TP but I am feeling something not good happended
Post by: vivid on June 22, 2007, 01:25:55 PM
IchBin

I don't know how can I thank you. I should do what you advice me, and I will report you soon.
Title: Re: plz urgent help - I installed TP but I am feeling something not good happended
Post by: IchBin on June 22, 2007, 01:55:00 PM
No problem, if you still have problems post back.
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: vivid on June 23, 2007, 07:31:30 AM
hi Sir,

now I did remove the repeated forum buttons, but still hang when I click frontpage in admin cpanel. also if I click on any member to see his profile it gives me blank page.
another thing also, how can I change the tp direction from right to left bcz I used ArabicLanguage

plz urgent help I will be always online
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: Zetan on June 23, 2007, 08:12:30 AM
A link to your site? Nevermind.. Found it  ::)
Title: Re: plz urgent help - I installed TP but I am feeling something not good happended
Post by: vivid on June 23, 2007, 08:14:30 AM
Quote from: Zetan on June 23, 2007, 08:12:30 AM
A link to your site? Nevermind.. Found it  ::)

this is the link

http://www.albahala.com/smf

but it is in Arabic Language
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: Zetan on June 23, 2007, 08:16:27 AM
You still have duplicate code. You have 8 upshrink buttons, some seem to switch panels. Some cause other shrink buttons to change from - to +.
Title: Re: plz urgent help - I installed TP but I am feeling something not good happended
Post by: vivid on June 23, 2007, 08:19:05 AM
Quote from: Zetan on June 23, 2007, 08:16:27 AM
You still have duplicate code. You have 8 upshrink buttons, some seem to switch panels. Some cause other shrink buttons to change from - to +.

good sir,

how can I remove these duplicated shrink codes
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: vivid on June 23, 2007, 08:20:33 AM
should I attached the file of index.template.php?
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: IchBin on June 23, 2007, 08:20:50 AM
If you have no other mods installed, your best bet would be to replace your SMF files with new ones. Then install the mod once and only once. If you get an error or it doesn't install properly on that single try, come back for help.
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: vivid on June 23, 2007, 08:25:32 AM
Quote from: IchBinâ„¢ on June 23, 2007, 08:20:50 AM
If you have no other mods installed, your best bet would be to replace your SMF files with new ones. Then install the mod once and only once. If you get an error or it doesn't install properly on that single try, come back for help.

hi friend,

but if I make overwrite of smf files, it will not affect in tp?
I have database in smf more than 10gigbite
I am afried to loose some data
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: vivid on June 23, 2007, 09:10:34 AM
plz friends,

this is my index.template.php

remover the shrinks code

http://www.albahala.com/smf (http://www.albahala.com/smf)


Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: Zetan on June 23, 2007, 09:36:48 AM
You have duplicate instances all over the place:

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>';

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>';

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>';

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>';

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>';


and here:

// TinyPortal start
     if($context['TPortal']['fixed_width']!=0)
             echo '<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>';

// TinyPortal end


and here:

// TinyPortal
       }
//  end
echo '
';
// TinyPortal
       }
//  end
echo '
';
// TinyPortal
       }
//  end
echo '


It's pretty messed up. I would do what IchBin suggested to you before.
Make backups first.
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: vivid on June 23, 2007, 09:41:31 AM
hi Sir,

I have 30gigbite data I am afried some data loose
and if I decide to replace smf file. should I replace all with setting.php and database file?
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: G6Cad on June 23, 2007, 09:46:02 AM
If you look in the documentation section of this forum and read through the file modification part, you see what code the files should have.
No need to replace anything, just remove the duplicate code in the files.
Title: Re: plz urgent help - I installed TP but I am feeling something not good happended
Post by: vivid on June 23, 2007, 09:48:57 AM
Quote from: G6â„¢ on June 23, 2007, 09:46:02 AM
If you look in the documentation section of this forum and read through the file modification part, you see what code the files should have.
No need to replace anything, just remove the duplicate code in the files.

plz sir,

I already attached the index.template.php
plz help to remove and I should save a copy from the file
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: Zetan on June 23, 2007, 09:52:31 AM
Please do not PM me for support

Please refrain from using bold text, I understand you need help.. we have all been there in a state of panic. But don't panic.
Do what has been suggested to you.










Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: vivid on June 23, 2007, 10:10:24 AM
ok Zetan

I shoud never use bold font again

and I will try to make backup first
then replace all smf files except setting file

is that right?
Title: Re: plz urgent help - I installed TP but I am feeling something not good happended
Post by: IchBin on June 23, 2007, 02:16:44 PM
yes you are right. If you have something go wrong you can always restore from your backup. Once you replace all SMF files, you can then install TP again as I said.
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: vivid on June 23, 2007, 04:46:01 PM
hi friend,

I did it, at last I succeeded

now what do you advice me to upload it correctly?
note: the previous files of tiyportal are still there?
Title: Re: plz urgent help - I installed TP but I am feeling something not good happend
Post by: G6Cad on June 23, 2007, 05:02:25 PM
Read this
http://www.tinyportal.net/index.php?topic=6771