Temporary forum to obtain support for MODs/Styles while phpbb.com is down
sathsara
Registered User
Posts: 16 Joined: Sat Feb 07, 2009 9:57 am
Post
by sathsara » Sun Feb 08, 2009 6:20 am
Sir
Im having a lot of trouble installing a modification to my phpbb site. Im gonna some coding help,
This is my index_body.html and I wanna add the Activity Stats MOD I tied my best
Code: Select all
<!-- INCLUDE overall_header.html -->
<!-- IF S_DISPLAY_SEARCH -->
<p class="searchbar">
<!-- IF S_USER_LOGGED_IN -->
<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
<!-- ENDIF -->
<span><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
</p>
<!-- ENDIF -->
<br clear="all" />
<!-- INCLUDE forumlist_body.html -->
<br clear="all" />
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat" colspan="2"><h4><!-- IF S_DISPLAY_ONLINE_LIST --><!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a><!-- ELSE -->{L_WHO_IS_ONLINE}<!-- ENDIF --> -<!-- ENDIF --> {L_STATISTICS}</h4></td>
</tr>
<tr>
<td class="row1" width="100%">
<span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span>
<!-- IF S_DISPLAY_ONLINE_LIST --><!-- IF LEGEND --><br /><b class="gensmall">{L_LEGEND} :: {LEGEND}</b><br /><br /><!-- ENDIF --><!-- ENDIF -->
<p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p>
</td>
</tr>
</table>
<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
<br clear="all" />
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat"><h4>{L_BIRTHDAYS}</h4></td>
</tr>
<tr>
<td class="row1" width="100%"><p class="genmed"><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <b>{BIRTHDAY_LIST}</b><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p></td>
</tr>
</table>
<!-- ENDIF -->
<br clear="all" />
<table class="legend">
<tr>
<td width="20" align="center">{FORUM_NEW_IMG}</td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center">{FORUM_IMG}</td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center">{FORUM_LOCKED_IMG}</td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
<!-- INCLUDE overall_footer.html -->
Where do I have to add this code?
Code: Select all
<!-- IF not S_IS_BOT -->
<tr>
<td class="row1">{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit --></td>
</tr>
<!-- ENDIF -->
jage
Registered User
Posts: 19 Joined: Fri Feb 06, 2009 6:47 pm
Post
by jage » Sun Feb 08, 2009 6:39 am
Above where you got that code it should say something like "Find" or "Find this may be partial" and then "Add After"* or "Add Before", then the code you are asking where to add.
If you can find and include that additional information someone can help you understand where to add it. Without having to find the MOD you are trying to install.
*(edit: "Add After" might be other instructions like "Replace with")
sathsara
Registered User
Posts: 16 Joined: Sat Feb 07, 2009 9:57 am
Post
by sathsara » Sun Feb 08, 2009 6:53 am
I have to find the
Code: Select all
<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
But its not in the index_body.html, Its based on subsilver theme I tried adding the code in various places.
COD3M4ST3R-X
Registered User
Posts: 228 Joined: Wed Nov 05, 2008 7:52 am
Location: Lahore,Pakistan
Contact:
Post
by COD3M4ST3R-X » Sun Feb 08, 2009 7:31 am
sathsara wrote: I have to find the
Code: Select all
<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
But its not in the index_body.html, Its based on subsilver theme I tried adding the code in various places.
Use this Index_body.html i edited it for you.Dont forget to Refresh your style.
Code: Select all
<!-- INCLUDE overall_header.html -->
<!-- IF S_DISPLAY_SEARCH -->
<p class="searchbar">
<!-- IF S_USER_LOGGED_IN -->
<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
<!-- ENDIF -->
<span><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
</p>
<!-- ENDIF -->
<br clear="all" />
<!-- INCLUDE forumlist_body.html -->
<br clear="all" />
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat" colspan="2"><h4><!-- IF S_DISPLAY_ONLINE_LIST --><!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a><!-- ELSE -->{L_WHO_IS_ONLINE}<!-- ENDIF --> -<!-- ENDIF --> {L_STATISTICS}</h4></td>
</tr>
<tr>
<td class="row1" width="100%">
<span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span>
<!-- IF S_DISPLAY_ONLINE_LIST --><!-- IF LEGEND --><br /><b class="gensmall">{L_LEGEND} :: {LEGEND}</b><br /><br /><!-- ENDIF --><!-- ENDIF -->
<p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p>
</td>
</tr>
<!-- IF not S_IS_BOT -->
<tr>
<td class="row1">{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit --></td>
</tr>
<!-- ENDIF -->
</table>
<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
<br clear="all" />
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat"><h4>{L_BIRTHDAYS}</h4></td>
</tr>
<tr>
<td class="row1" width="100%"><p class="genmed"><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <b>{BIRTHDAY_LIST}</b><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p></td>
</tr>
</table>
<!-- ENDIF -->
<br clear="all" />
<table class="legend">
<tr>
<td width="20" align="center">{FORUM_NEW_IMG}</td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center">{FORUM_IMG}</td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center">{FORUM_LOCKED_IMG}</td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
<!-- INCLUDE overall_footer.html -->
Long Live PhpBB!
sathsara
Registered User
Posts: 16 Joined: Sat Feb 07, 2009 9:57 am
Post
by sathsara » Sun Feb 08, 2009 7:42 am
Thanks a load!