[Aphrodite] Last Visit 1.2.10 em

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

[Aphrodite] Last Visit 1.2.10 em

Postby estorado on Thu Aug 10, 2006 11:05 pm

Hello,

i found a nice solution for the last visit mod.

Example:

Image


requirement:

- phpBB: 2.0.21
- Last Visit 1.2.10 EM ( http://www.phpbbhacks.com )
- ca_aphrodite

Tested with

phpBB: 2.0.21

installed mods:
- eXtreme Styles mod 2.3.1 ( http://www.phpbbstyles.com )
- simple sub forum 1.0.1 ( http://www.phpbbstyles.com )
- Last Visist 1.2.9 beta 311 updatet to Last Visit 1.2.10 EM ( http://www.phpbbhacks.com )
- Title Categorie / Prefix to Title 1.1.2 ( http://www.talun.de )
- Simpel Admin User List ( http://www.s2b-project.de/mods/admin_userlist )



Please Backup the template files, which you edit



Instruction:

open index.php

Find:

Code: Select all
$l_today_users .= sprintf($l_today_r_user_s, $logged_visible_today);
$l_today_users .= sprintf($l_today_h_user_s, $logged_hidden_today);
$l_today_users .= sprintf($l_today_g_user_s, $guests_today);


Replace with:

Code: Select all
$ll_today_users = sprintf($l_today_r_user_s, $logged_visible_today);
$ll_today_users .= sprintf($l_today_h_user_s, $logged_hidden_today);
$ll_today_users .= sprintf($l_today_g_user_s, $guests_today);



Find:

Code: Select all
'L_USERS_TODAY' =>$l_today_users,



Add, after:

Code: Select all
'L_USERS_TODAY2' =>$ll_today_users,



open index_body.tpl

Find:

Code: Select all
<div class="forumline">
   <p class="row-header"><span><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></span></p>
   <p class="row1 gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</p>
   <p class="row1 gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{L_ONLINE_EXPLAIN}</p>
</div>


Add, after:

Code: Select all
<!-- Start add - Last visit MOD -->
<div class="forumline">
   <p class="row-header"><span>{L_USERS_TODAY}</span></p>
   <p class="row1 gensmall">{L_USERS_TODAY2}{L_USERS_LASTHOUR}</p>
   <p class="row1 gensmall">{USERS_TODAY_LIST}</p>
   </div>
<!-- Start add - Last visit MOD -->




Hope you like it, please give me feedback for this little change :)

Big thanks to roger! ( from phpbb2.de )

for live demo visit my board: http://et.michaelschatz.de (german)

greetings

estorado

P.S. sorry for bad english
User avatar
estorado
Registered User
Registered User
 
Posts: 10
Joined: Sat Jun 17, 2006 2:48 pm
Location: Regensburg, Germany

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 1 guest

cron