ajutor ca mor

Discuţii legate de instalarea şi funcţionarea unor MODificări vechi sau noi ale forumului phpBB 2.0.x.
Închis
Avatar utilizator
invo4u
Utilizator înregistrat
Mesaje: 370
Membru din: 01-Ian-2007, 17:45:30

ajutor ca mor

Mesaj de invo4u »

repede repede
am un forum si am bagat modu quick reply dar nu l-am terminat ..

am deschis viewtopic si am bagat

Cod: Selectaţi tot

// 
// Quick Reply Mod 
// 
if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) ) 
{ 
   $quick_reply_form = ""; 
} 
else 
{ 
   if ( $can_watch_topic && $is_watching_topic ) 
   { 
      $notify = 1; 
   } 
   else 
   { 
      $notify = $userdata['user_notify']; 
   } 
   $bbcode_uid = $postrow[$total_posts - 1]['bbcode_uid']; 
   $last_poster = $postrow[$total_posts - 1]['username']; 
   $last_msg = $postrow[$total_posts - 1]['post_text']; 
   $last_msg = str_replace(":1:$bbcode_uid", "", $last_msg); 
   $last_msg = str_replace(":u:$bbcode_uid", "", $last_msg); 
   $last_msg = str_replace(":o:$bbcode_uid", "", $last_msg); 
   $last_msg = str_replace(":$bbcode_uid", "", $last_msg); 
   $last_msg = str_replace("'", "'", $last_msg); 
   $last_msg = "[QUOTE=\"$last_poster\"]" . $last_msg . "[/QUOTE]"; 
   $quick_reply_form = " 
   <script> 
<!-- 
// bbCode control by 
// subBlue design 
// www.subBlue.com 

// Startup variables 
var imageTag = false; 
var theSelection = false; 

// Check for Browser & Platform for PC & IE specific bits 
// More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html 
var clientPC = navigator.userAgent.toLowerCase(); // Get client info 
var clientVer = parseInt(navigator.appVersion); // Get browser version 

var is_ie = ((clientPC.indexOf(\"msie\") != -1) && (clientPC.indexOf(\"opera\") == -1)); 
var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) 
                && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) 
                && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); 
var is_moz = 0; 

var is_win = ((clientPC.indexOf(\"win\")!=-1) || (clientPC.indexOf(\"16bit\") != -1)); 
var is_mac = (clientPC.indexOf(\"mac\")!=-1); 

// Helpline messages 
b_help = \"Bold text: [b]text[/b] (alt+b)\"; 
i_help = \"Italic text: [i]text[/i] (alt+i)\"; 
u_help = \"Underline text: [u]text[/u] (alt+u)\"; 
q_help = \"Quote text: [quote]text[/quote] (alt+q)\"; 
c_help = \"Code display: [code]code
alt+c)\";
l_help = \"List:
  • text
(alt+l)\";
o_help = \"Ordered list:
  • text
(alt+o)\";
p_help = \"Image: [img]http://imageurl[/img] (alt+p)\";
w_help = \"URL: http://url or Text (alt+w)\";
a_help = \"Close all open bbCode tags\";
s_help = \"Font color: text Tip: you can also use color=#FF0000\";
f_help = \"Font size: [size=x-small]small text[/size]\";

// Define the bbCode tags
bbcode = new Array();
bbtags = new Array('','','','','','','[quote]','[/quote]','','
  • ','
','
  • ','
','[img]','[/img]','','');
imageTag = false;

// Shows the help messages in the helpline window
function helpline(help) {
document.post.helpbox.value = eval(help + \"_help\");
}


// Replacement for arrayname.length property
function getarraysize(thearray) {
for (i = 0; i < thearray.length; i++) {
if ((thearray == \"undefined\") || (thearray == \"\") || (thearray == null))
return i;
}
return thearray.length;
}

// Replacement for arrayname.push(value) not implemented in IE until version 5.5
// Appends element to the array
function arraypush(thearray,value) {
thearray[ getarraysize(thearray) ] = value;
}

// Replacement for arrayname.pop() not implemented in IE until version 5.5
// Removes and returns the last element of an array
function arraypop(thearray) {
thearraysize = getarraysize(thearray);
retval = thearray[thearraysize - 1];
delete thearray[thearraysize - 1];
return retval;
}


function checkForm() {
formErrors = false;
document.post.message.value = '';
if (document.post.input.value.length <2>= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text; // Get text selection
if (theSelection) {
// Add tags around selection
document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];
txtarea.focus();
theSelection = '';
return;
}
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]);
return;
}

// Find last occurance of an open tag the same as the one just clicked
for (i = 0; i <bbcode>
</script>
<form>
<span><b>".$lang["Quick_Reply"].":</b><br>\n
<input>&nbsp;\n
<input>&nbsp;\n
<input>&nbsp;\n
<input>&nbsp;\n
<input>&nbsp;\n
<input>&nbsp;\n
<input><br></span>\n
<span><input></span><br><span>";

if (!$userdata['session_logged_in'])
{
$quick_reply_form .= $lang['Username'] . ":&nbsp;<input><br>";
}

$quick_reply_form .= "<textarea name='input' rows='10' cols='50' wrap='virtual' class='post''></textarea><br>
<input>".$lang["Quick_quote"]."<br>
<input>".$lang["Attach_signature"]."<br>
<input>
<input>
<input>
<input>
<input>
<input>
<input>&nbsp;
<input>
</form></span>";
}

$template->assign_vars(array(
'QUICK_REPLY_FORM' => $quick_reply_form)
);
//
// END Quick Reply Mod
//[/code]

si dupaia
phpBB : Critical Error

Could not connect to the database

ziceti-mi ce sa fac va rog
Shara
Fost coleg
Mesaje: 818
Membru din: 14-Mai-2007, 01:30:15
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucureşti
Contact:

Mesaj de Shara »

Nu se poate conecta la baza de date.

Spune-mi te rog, tie iti place sa verifici ce face modul doar pe jumate instalat ?

Reia pasii inversi instalarii.

Este posibil ca tu sa nu fi adaugat corect ce ti sa cerut, sau chiar sa fi facut mult mai multe greseli la instalarea MODului.

Esti de atata tp aici pe forum, ar trebui sa sti ca este ncesar un backup si sa instalezi MODifiarile pe un forum test pana le intelegi. Spune-mi te rog, backup ai facut ?
Avatar utilizator
lsdcrew
Utilizator înregistrat
Mesaje: 726
Membru din: 08-Apr-2007, 08:18:00
Versiune: -
Ext: Da
Server: Windows
Nivel phpBB: Mediu
Localitate: Otopeni, România
Contact:

Mesaj de lsdcrew »

daca ai fişierul viewtopic original fără niciun cod bagă-l pe acela în timp ce tu lucrezi la ăsta
Închis

Înapoi la “2.0.x Suport pentru MODificări”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 4 vizitatori