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

Recent

Welcome to TinyPortal. Please login or sign up.

May 15, 2024, 06:53:27 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,188
  • Total Topics: 21,220
  • Online today: 149
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 114
  • Total: 114

plz urgent help - I installed TP but I am feeling something not good happended

Started by vivid, June 22, 2007, 01:02:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vivid

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

vivid


IchBin

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.

vivid

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

vivid


Zetan

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.

vivid

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?

G6Cad

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.

vivid

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

Zetan

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.