Da li forum mogu da prebacim u stariju verziju, konkretno iz 1.1.11 u 1.1.10
-razlog sto ocu da forum prebacim u stariju verziju je taj, sto anti-spam bot MOD "You Are Human/BOT ?" neradi na verziji 1.1.11, a to mi je najednostavniji anti-spam MOD
da li onda postoji bilo kakvo resenje?
Radi taj mod i na 1.1.11 verziji.
Moraš ga samo ručno instlirati sa upustvima za 1.1.10 verziju, i radiće.
Uopste nije pametno da forum vracas na staru verziju, jos manje je pametno da to radis zbog JEDNE modifikacije, inace koristim pomenuti mod, rucno sam ga instalirao na 1.1.11 i sasvim dobro radi.
Mod radi i na 1.1.11
Ne možeš vratiti noviju verziju foruma u stariju verziju, dok obrnuto radi 100%. Jedina mogućnost je da imaš sačuvan bekap starije verzije pa nakon instalacije 1.1.10 verzije da ubaciš taj bekap.
Prilikom nadogradnje menja se i baza podataka, a ona je različita za svaku verziju foruma.
A da li ima negde uputstvo kako se MOD ubacuje rucno?
Taj deo bas neznem.. :-[
http://www.simplemachines.org/community/index.php?topic=356859.0 (http://www.simplemachines.org/community/index.php?topic=356859.0)
Lainaus käyttäjältä: MungosProdigy - toukokuu 08, 2010, 06:58:22 IP
A da li ima negde uputstvo kako se MOD ubacuje rucno?
Taj deo bas neznem.. :-[
KOju temu koristis ? Ako koristis default onda pokusaj podignut mod preko AdminCP-a i pokusaj ga instalirat automatski. Ako ti nejavi niti jednu gresku prije instalacije onda ga sao instaliras automatski ,a ako ti javi gresku onda se zagledaj gdje ti je javlja i tu samo rucno ubacis kodove.
Kako se instalira rucno pokazao ti je link User Ox (jedan post povise mene).
Tamo gdje se nalazi mod kojeg zelis instalirat na tvoj SMF imas opciju "PARSE" izaberi verziju SMF-a ,a tvoja je 1.1.11 i pretisni dugme "PARSE" , tada ti izadje kako se mod instalira rucno.
P.S.
Nezaboravi napravit BackUp od fajlova sa foruma i baze podataka prije nego prckas po modovima rucno itd.. ako si novi user na SMF -u
Lainaus käyttäjältä: MungosProdigy - toukokuu 07, 2010, 07:02:06 AP
Da li forum mogu da prebacim u stariju verziju, konkretno iz 1.1.11 u 1.1.10
To i nije baš preporučljivo, a i izvedivost je upitna.
Porbao sam par puta rucno da instaliram, vise puta mi se desila greska, a par puta "nije bilo nicega" kao da mod nisam instalirao :'(
Evo ovo je instal fajl
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<name>Are You Human? Anti-Bot Registration Check</name>
<id>karlbenson:areyouhuman</id>
<version>1.3</version>
<homepage>http://www.youposted.com</homepage>
<file name="$sourcedir/Register.php">
<operation>
<search position="after"><![CDATA[// Are they under age, and under age users are banned?]]></search>
<add><![CDATA[
// Start of Are You Human? mod
// Old way - spammers should be the only one trying this
if (isset($_POST['areyouhuman']))
fatal_lang_error('are_you_bot_yes', false);
if (isset($_SESSION['areyouhuman']) && isset($_POST[$_SESSION['areyouhuman']]))
{
// Cast as integer
$_POST[$_SESSION['areyouhuman']] = (int) $_POST[$_SESSION['areyouhuman']];
if($_POST[$_SESSION['areyouhuman']] == 2)
fatal_lang_error('are_you_bot_unsure', false);
elseif($_POST[$_SESSION['areyouhuman']] != 3)
fatal_lang_error('are_you_bot_yes', false);
// Else == 3, its valid so proceed with registration
}
else
fatal_lang_error('are_you_bot_yes', false);
// End of Are You Human? mod
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
// Under age restrictions?
if (!empty($modSettings['coppaAge']))
{
$context['show_coppa'] = true;
$context['coppa_desc'] = sprintf($txt['register_age_confirmation'], $modSettings['coppaAge']);
}
]]></search>
<add><![CDATA[
// Start of Are You Human? mod
if(empty($_SESSION['areyouhuman']))
{
// Generate Random field name
// Create array with letters selection
$range = range('a', 'z');
//Must start with a letter not a digit
$field = $range[array_rand($range)];
// Over 8 characters in length
$rand = rand(8,12);
// Build the string using alphabetical and numerical ranges
for($i=0;$i<=$rand;$i++)
$field .= (rand(0, 1) == 0) ? $range[array_rand($range)] : rand(0, 9) ;
// Store the field name for later
$_SESSION['areyouhuman'] = $field ;
// Tidy up
unset($range, $field, $rand);
}
// End of Are You Human? mod
]]></add>
</operation>
</file>
<file name="$themedir/Register.template.php">
<operation>
<search position="after"><![CDATA[
// Are there age restrictions in place?
if (!empty($modSettings['coppaAge']))
]]></search>
<add><![CDATA[
// Start of Are You Human? mod
echo '<tr valign="top">
<td width="40%" valign="top">
<b>', $txt['are_you_human'], ':</b>
<div class="smalltext">', $txt['are_you_human_desc'], '</div>
</td>
<td>
<select name="',$_SESSION['areyouhuman'],'" tabindex="', $context['tabindex']++, '" class="select">
<option value="1">', $txt['are_you_human_no'], '</option>
<option value="2">', $txt['are_you_human_unsure'], '</option>
<option value="3">', $txt['are_you_human_yes'], '</option>
</select>
</td>
</tr>';
// End of Are You Human? mod
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['are_you_human'] = 'Are You Human?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_no'] = 'No';
$txt['are_you_human_yes'] = 'Yes';
$txt['are_you_human_unsure'] = 'Unsure';
$txt['are_you_bot_unsure'] = 'Please confirm that you are human in order to proceed with registration';
$txt['are_you_bot_yes'] = 'Bots are not allowed to register. Please confirm that you are human in order to register';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.english-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['are_you_human'] = 'Are You Human?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_no'] = 'No';
$txt['are_you_human_yes'] = 'Yes';
$txt['are_you_human_unsure'] = 'Unsure';
$txt['are_you_bot_unsure'] = 'Please confirm that you are human in order to proceed with registration';
$txt['are_you_bot_yes'] = 'Bots are not allowed to register. Please confirm that you are human in order to register';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.english_british.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['are_you_human'] = 'Are You Human?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_no'] = 'No';
$txt['are_you_human_yes'] = 'Yes';
$txt['are_you_human_unsure'] = 'Unsure';
$txt['are_you_bot_unsure'] = 'Please confirm that you are human in order to proceed with registration';
$txt['are_you_bot_yes'] = 'Bots are not allowed to register. Please confirm that you are human in order to register';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.english_british-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['are_you_human'] = 'Are You Human?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_no'] = 'No';
$txt['are_you_human_yes'] = 'Yes';
$txt['are_you_human_unsure'] = 'Unsure';
$txt['are_you_bot_unsure'] = 'Please confirm that you are human in order to proceed with registration';
$txt['are_you_bot_yes'] = 'Bots are not allowed to register. Please confirm that you are human in order to register';
]]></add>
</operation>
</file>
</modification>
izmenjivao sam tri fajla
-Register.php
-Modifications.english.php
-Register.Template.php
NPR. u Modification.engilsh.php ovo sam ubacio:
<operation>
<search position="end" />
<add><![CDATA[
$txt['are_you_human'] = 'Are You Human?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_no'] = 'No';
$txt['are_you_human_yes'] = 'Yes';
$txt['are_you_human_unsure'] = 'Unsure';
$txt['are_you_bot_unsure'] = 'Please confirm that you are human in order to proceed with registration';
$txt['are_you_bot_yes'] = 'Bots are not allowed to register. Please confirm that you are human in order to register';
]]></add>
</operation>
netrazi da mi niko to uradi nego samo malo objasni kako sam da uradim nisam lenj ali nekontam u cemu je problem :'(
Očigledno nisi pročitao upustvo za ručno instliranje modova.
Nisi dobro ubacio kodove onda.
Kodovi koje treba da ubaciš su ovde:
http://custom.simplemachines.org/mods/index.php?action=parse;mod=999;attach=100476;smf_version=1.1.10
Dakle bez xml kodova koje si ti ubacivao...
Takodje, potrebno je ubaciti i kodove u fajlove custom teme ili custom jezika ako koristiš takve.
Ubacio sam fajl "install1.php" u root foruma.
E sad je problem u tome kako se pokrece taj fajl ? :'(
Ne znam kako nemaš...
Koju si verziju moda skinuo?
Evo u prilogu taj fajl iz poslednje verzije moda - 2.3
Kako, kako se pokrece? Oo
Jedini nacin je http://www.TvojSajt.Nesto/ForumiLiStaVec/install1.php
Pa u upststvu pise da fajl treba da se pokrene kad se upload-uje. Ja sam ga upload-ovo i sad preko cPanela valjda treba nekako a ga pokrenem, ali kako ?
Kao što je Marley rekao, samo uploaduj fajl u root foruma, i pokreni ga sa browserom tako što ćeš učitati url www.tvojsajt.com/forum/install1.php
To sam odradio i izbacilo mi je ovo:
Fatal error: Call to undefined function db_query() in /home/fightcsi/public_html/install1.php on line 10
Problem do problema
Dodaj db_prefix...