Pagina 1 din 1

o intrebare la at a glace

Scris: 25-Sep-2007, 15:59:44
de k3nz0r
cum fac ca acel tabel cu ultimile noutati etc sa fie ega departat .. ex cum e la phpbb.ro sa nutreaca mai sus de linia aia :| sa ramana la acel nivel cu forumul :|

Scris: 25-Sep-2007, 16:00:12
de k3nz0r
...

Scris: 25-Sep-2007, 16:33:33
de 53rg1u
nu mai fa double-post ;)...ca asta lai faqt chiar intentionat X(

Re: o intrebare la at a glace

Scris: 26-Sep-2007, 20:14:09
de sandman
k3nz0r scrie:cum fac ca acel tabel cu ultimile noutati etc sa fie ega departat .. ex cum e la phpbb.ro sa nutreaca mai sus de linia aia :| sa ramana la acel nivel cu forumul :|
Daca ai instalat cumva at a glance 2.3.5 atunci urmezi instructiunile din documentatie, ceva de genul:
# Open the next file to set your preferences.
#
glance_config.php

#
#-----[ COPY ]-----------------------------------
#
copy root/glance.php to phpbb_root_path/glance.php
copy root/glance_config.php to phpbb_root_path/glance_config.php
copy root/language/lang_english/lang_main_glance.php to phpbb_root_path/language/lang_english/lang_main_glance.php
copy root/templates/subSilver/glance_body.tpl to phpbb_root_path/templates/subSilver/glance_body.tpl
copy root/templates/subSilver/glance_body_big.tpl to phpbb_root_path/templates/subSilver/glance_body_big.tpl

#
#-----[ OPEN ]------------------------------
# Note -- Any page you want it on (.php).
# Note -- For example index.php
#
*.php

#
#-----[ FIND ]-----------------------------------
#
//
// Generate the page
//
$template->pparse('body');

#
#-----[ BEFORE, ADD ]-----------------------------------
#
include($phpbb_root_path . 'glance.'.$phpEx);

#
#-----[ OPEN ]------------------------------
# Note -- Corresponding template file (.tpl)
# Note -- For example index_body.tpl
#
index_body.tpl

#
#-----[ FIND ]-----------------------------------
# Note -- The code will be displayed before your recent news and/or topics.
# * is any code.
#
<table>
<tr>
<th>&nbsp;{L_FORUM}&nbsp;</th>
<th>&nbsp;{L_TOPICS}&nbsp;</th>
<th>&nbsp;{L_POSTS}&nbsp;</th>
<th>&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<BEGIN>
<tr>
<td><span><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td>&nbsp;</td>
</tr>
<BEGIN>
<tr>
<td><img></td>
<td><span> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br>
</span> <span>{catrow.forumrow.FORUM_DESC}<br>
</span><span>{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td><span>{catrow.forumrow.TOPICS}</span></td>
<td><span>{catrow.forumrow.POSTS}</span></td>
<td> <span>{catrow.forumrow.LAST_POST}</span></td>
</tr>
<END>
<END>
</table>

#
#-----[ BEAFORE, ADD ]-----------------------------------
# Note -- Anywhere you want the box.
#

<table>
<tr>
<td>

#
#-----[ AFTER, ADD ]-----------------------------------
# Note -- Anywhere you want the box.
#

</td>
<td>
<table>
<tr>
<td>
{GLANCE_OUTPUT}
</td>
</tr>
</table>
</td>
</tr>
</table>

#
#-----[ SAVE/CLOSE ALL FILES ]-----------------------------------
# EoM
Si daca ai urmat instructiunile corect, tabelul cu at a glance va fi la acelasi nivel cu forumul.