Easy Subforums

Discuţii legate de instalarea şi funcţionarea unor MODificări vechi sau noi ale forumului phpBB 2.0.x.
Închis
ZooMLess
Utilizator înregistrat
Mesaje: 476
Membru din: 29-Noi-2006, 19:24:07
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Easy Subforums

Mesaj de ZooMLess »

Deci... sa explix problema mea ! Am instalat mod-ul " Forum Icon With ACP control " manual fara easymod si acum vreau sa instalez " Easy Subforums " ! Ce trebuie sa fac pentru ca unele lini sunt inlocuite deci de exemlu la Easy Subforums imi zice sa inlocuisc linia **** cu linia **** dar in linia care trebuie inlocuita am adaugat si ceva de la " Forum Icon with ACP control " !

<b>Ce trebuie sa fac pentru a functiona ambele moduri ? </b>
Avatar utilizator
Etherfast
Fost coleg
Mesaje: 2634
Membru din: 19-Sep-2006, 10:33:41
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucharest, RO
Contact:

Mesaj de Etherfast »

Eu am ambele mod-uri instalate si nu-mi amintesc sa ma fi lovit de problema ta. Sigur nu ai gresit undeva?
etherfast.ro - Blog personal
ZooMLess
Utilizator înregistrat
Mesaje: 476
Membru din: 29-Noi-2006, 19:24:07
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Mesaj de ZooMLess »

Easy-Subforums zice asa : #
#-----[ FIND ]------------------------------------------------
#
<td><span>&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

#
#-----[ REPLACE WITH ]------------------------------------------------
#
<td><span>&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>

<BEGIN>
-> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
<END>
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
Dar aici -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td> eu am mai adaugat ceva de la forum icon !
ZooMLess
Utilizator înregistrat
Mesaje: 476
Membru din: 29-Noi-2006, 19:24:07
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Mesaj de ZooMLess »

Sau aici :
#
#-----[ FIND ]------------------------------------------------
#
$forumstatus = $row['forum_status'];

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Added by Easy Sub-Forums MOD

$forum_attached_id = $row['attached_forum_id'];
$sql = "SELECT * from ". FORUMS_TABLE. " WHERE attached_forum_id = $forum_id";
if( !$r = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't get list of children Forums", "", __LINE__, __FILE__, $sql);
}

if( $db->sql_numrows($r) > 0 )
{

$not_attachable=1;
$has_subforums=1;
$template->assign_block_vars('switch_attached_no', array());
if (intval($HTTP_POST_VARS['detach_enabled'])) $detach_enabled = "checked=\"checked\"";

}
else
{

// this forum is not a parent of any other forum
$sql = "SELECT * FROM ". FORUMS_TABLE. " WHERE attached_forum_id=-1 and cat_id= $cat_id and forum_id<>$forum_id ORDER BY forum_order";

if( !$result1 = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't get list of attachable Forums", "", __LINE__, __FILE__, $sql);
}
if( $db->sql_numrows($result1) > 0 )
{
$attachable_forums = '<option> NOT ATTACHED TO ANY FORUM </a>';
while( $row1 = $db->sql_fetchrow($result1) )
{
$s='';
if ($forum_attached_id == $row1['forum_id'])
{
$s = " selected=\"selected\"";
}
$attachable_forums .= '<option>' . $row1[forum_name] . '</option>\n';
}
}
else
{
$no_attachable_forums=1;
}

}
// End Added by Easy Sub-Forums MOD
asa.... aici dupa $forumstatus = $row['forum_status'] mai am
$forumicon = $row['forum_icon']; // Forum Icon MOD
adauga dupa sa inainte ?
Avatar utilizator
cip
Utilizator înregistrat
Mesaje: 203
Membru din: 01-Feb-2005, 14:04:43

Mesaj de cip »

ZooMLess scrie:
Easy-Subforums zice asa : #
#-----[ FIND ]------------------------------------------------
#
<td><span>&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

#
#-----[ REPLACE WITH ]------------------------------------------------
#
<td><span>&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>

<BEGIN>
-> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
<END>
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
Dar aici -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td> eu am mai adaugat ceva de la forum icon !

atunci ce trebuie sa faci se transforma in:
Easy-Subforums zice asa : #
#-----[ FIND ]------------------------------------------------
#
<td><span>&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>

#
#-----[ REPLACE WITH ]------------------------------------------------
#
<td><span>&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>

<BEGIN>
-> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
<END>
ps: cand mai postezi secvente de cod html (cum este cea pe care ai scris-o mai devreme) bifeaza Dezactivează codul HTML în acest mesaj inainte sa trimiti mesajul.. pt vizualizarea corecta a codului.


l.e.
ZooMLess scrie:asa.... aici dupa $forumstatus = $row['forum_status'] mai am
$forumicon = $row['forum_icon']; // Forum Icon MOD
adauga dupa sa inainte ?
adaugi codul dupa:
$forumstatus = $row['forum_status'];
$forumicon = $row['forum_icon']; // Forum Icon MOD
sorelsorel
Utilizator înregistrat
Mesaje: 490
Membru din: 08-Iun-2006, 21:26:52
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Hateg
Contact:

Mesaj de sorelsorel »

Da, dar se va lovi de o problema in index_body.tpl, si pentru asta trebuie sa faca si manual...
ZooMLess
Utilizator înregistrat
Mesaje: 476
Membru din: 29-Noi-2006, 19:24:07
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Mesaj de ZooMLess »

Deci sa iti explic problema mea am instalat pana la urma Simple SubForums merge bine nici o problema si acum vreau sa instalez Forum Icon With ACP control am facut totul bine pana la index_body.tpl acolo ma incurc si nu mai stiu ce sa fac deoarece sunt modificate unele chestii de catre Simple Subforum !

<b> Daca are cineva bunatatea sa ma ajute sa ma contacteze la id de yahoo : alyn_wanted </b>

Multumesc anticipat !

<a href="http://www15.rapidupload.com/d.php?file ... path=12376 ">Aici este index_body.tpl al meu</a>
Avatar utilizator
Aliniuz
Fost coleg
Mesaje: 3629
Membru din: 19-Mai-2006, 08:06:42
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Galati
Contact:

Mesaj de Aliniuz »

Nu-ti mai lasa datele de contact ca oricum nu te va ajuta nimeni pe privat .

Inlocuieste

Cod: Selectaţi tot

<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
	<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
	  </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
<!-- IF catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /></span><!-- ENDIF -->
	  <!-- BEGIN sub --><!-- DEFINE $HAS_SUB = 1 --><!-- IF catrow.forumrow.sub.NUM > 0 -->, <!-- ELSE --><span class="genmed">{L_SUBFORUMS}: <!-- ENDIF -->{catrow.forumrow.sub.LAST_POST_SUB} <a href="{catrow.forumrow.sub.U_VIEWFORUM}" <!-- IF catrow.forumrow.sub.UNREAD -->class="topic-new"<!-- ENDIF --> title="{catrow.forumrow.sub.FORUM_DESC_HTML}">{catrow.forumrow.sub.FORUM_NAME}</a><!-- END sub -->
	  <!-- IF $HAS_SUB --></span><!-- UNDEFINE $HAS_SUB --><!-- ENDIF -->
	</td>
cu

Cod: Selectaţi tot

<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
	<td class="row1" width="100%" height="50"><table width="100%" cellpadding="2" cellspacing="0" border="0">
		<tr><td><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_ICON_IMG}</a></td>
		<td width="100%"><span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
	  </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
<!-- IF catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /></span><!-- ENDIF -->
	  <!-- BEGIN sub --><!-- DEFINE $HAS_SUB = 1 --><!-- IF catrow.forumrow.sub.NUM > 0 -->, <!-- ELSE --><span class="genmed">{L_SUBFORUMS}: <!-- ENDIF -->{catrow.forumrow.sub.LAST_POST_SUB} <a href="{catrow.forumrow.sub.U_VIEWFORUM}" <!-- IF catrow.forumrow.sub.UNREAD -->class="topic-new"<!-- ENDIF --> title="{catrow.forumrow.sub.FORUM_DESC_HTML}">{catrow.forumrow.sub.FORUM_NAME}</a><!-- END sub -->
	  <!-- IF $HAS_SUB --></span><!-- UNDEFINE $HAS_SUB --><!-- ENDIF -->
	</td>
  		</tr>
  	</table>
	</td>
ZooMLess
Utilizator înregistrat
Mesaje: 476
Membru din: 29-Noi-2006, 19:24:07
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Mesaj de ZooMLess »

Ok Mersi Mult !
Î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