Pagina 1 din 1

Easy Subforums

Scris: 03-Ian-2007, 02:22:12
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>

Scris: 03-Ian-2007, 02:24:47
de Etherfast
Eu am ambele mod-uri instalate si nu-mi amintesc sa ma fi lovit de problema ta. Sigur nu ai gresit undeva?

Scris: 03-Ian-2007, 09:31:57
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 !

Scris: 03-Ian-2007, 09:42:09
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 ?

Scris: 03-Ian-2007, 09:49:59
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

Scris: 03-Ian-2007, 13:14:53
de sorelsorel
Da, dar se va lovi de o problema in index_body.tpl, si pentru asta trebuie sa faca si manual...

Scris: 03-Ian-2007, 13:58:46
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>

Scris: 03-Ian-2007, 14:12:11
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>

Scris: 03-Ian-2007, 14:12:53
de ZooMLess
Ok Mersi Mult !