Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 



       myfreeforum.org Forum Index -> Portal components
admin (no pm's please)

A VISITS example

To achieve the look at the bottom of the index page of this forum.


In the owner control panel options tab.
Code:


[VISITS]
count=100
title=Users online in the last 24hours


count needs to be higher than you are going to get.


in cms_visits.tpl replace all that is currently there with:

Code:

<span class="gensmall">
<!--BEGIN switch_visits_title -->     
   <b>{VISITS_TOTAL}</b>&nbsp;{VISITS_TITLE}:
<!--END switch_visits_title -->          
  <!-- BEGIN visits -->
 
   <a href="{VISITS.U_PROFILE}" class="gensmall">{visits.NAME}</a>&nbsp;
  <!-- END visits -->
</span>



The in index_body.tpl I added :

Code:

<br/>{MYFF.VISITS}


This was added after the logged in users.
Bravo

are the /code prefixes what we are supposed to put into the forums or do you need to edit your post to correct the /code usage?

I am attempting this.
Bravo

Ach nvm I don't have a cms_visits.tpl on my template
admin (no pm's please)

You must do, look at the bototm of the edit screen that is where the cms files are.
Bravo

I edited all the above but it doesn't work.

Could you be more specific on where to locate the actual code? I had to guess (ie before xxxx but after xxxx)
admin (no pm's please)

What have you put in index_body.tpl?

{MYFF.VISITS} would have to have some effect!
Bravo

admin wrote:
What have you put in index_body.tpl?

{MYFF.VISITS} would have to have some effect!


Code:
<br/>{MYFF.VISITS}


I put that in index_body.tpl
admin (no pm's please)

link?
Symon

Seem to have a problem with this as well

Site http://theghosthousegang.myfreeforum.org

template myff_theghosthousegang3/

Problem Only seems to display 1 name at a time for example two of us were on line only one name appeared when demon logged out his name went form the list and mine appeared insted

Codes and tags used

Forum login options

Code:
[VISITS]
count=100
title=Users online in the last 24hours


myff_theghosthousegang3/cms_visits.tpl

Code:
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_visits_title -->     
   <tr>
        <th colspan="2"  class="thCornerL" nowrap="nowrap">{VISITS_TITLE}</th>
     </tr>
<!--END switch_visits_title -->          
  <!-- BEGIN visits -->
  <tr>
   <td class="row2"><span class="topictitle"><a href="{VISITS.U_PROFILE}" class="topictitle">{visits.NAME}</a></span></td>
   <td class="row2"><span class="topictitle">{visits.LASTVISIT}</a></span></td>
  </tr>
<span class="genmsall">
           
  <!-- BEGIN visits -->
 
   <a href="{VISITS.U_PROFILE}" class="gensmall">{visits.NAME}</a>&nbsp;
  <!-- END visits -->
</span>
  <!-- END visits -->
</table>


Note i edited it a little as didnt want the title

myff_theghosthousegang3/index_body.tpl

Code:
<tr>
<td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ <strong>{L_WHOSONLINE_ADMIN}</strong>
] &nbsp; [ <strong>{L_WHOSONLINE_MOD}</strong> ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}</span></td>
</tr>

<tr>
<td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
{MYFF.VISITS}
<!-- BEGIN switch_user_logged_out -->
<br />
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat">{L_LOGIN_LOGOUT}</td>
admin (no pm's please)

I see two BEGIN VISTS and END VISITS in cms_visits.tpl which seems a bit odd.

my cms_visits.tpl has simply:

Code:

<span class="genmsall">
<!--BEGIN switch_visits_title -->     
   <b>{VISITS_TOTAL}</b>&nbsp;{VISITS_TITLE}:
<!--END switch_visits_title -->         
  <!-- BEGIN visits -->
 
   <a href="{VISITS.U_PROFILE}" class="gensmall">{visits.NAME}</a>&nbsp;
  <!-- END visits -->
</span>


nothing else
Viper

symon wrote:
myff_theghosthousegang3/index_body.tpl

Code:
<tr>
<td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ <strong>{L_WHOSONLINE_ADMIN}</strong>
] &nbsp; [ <strong>{L_WHOSONLINE_MOD}</strong> ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}</span></td>
</tr>

<tr>
<td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
{MYFF.VISITS}
<!-- BEGIN switch_user_logged_out -->
<br />
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat">{L_LOGIN_LOGOUT}</td>


The '{MYFF.VISITS}' is in the wrong place. It needs to go after '{LOGGED_IN_USER_LIST}'. Corrected it here:

Code:
<tr>
<td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ <strong>{L_WHOSONLINE_ADMIN}</strong>
] &nbsp; [ <strong>{L_WHOSONLINE_MOD}</strong> ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}<br/>{MYFF.VISITS} </span></td>
</tr>

<tr>
<td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
<!-- BEGIN switch_user_logged_out -->
<br />
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat">{L_LOGIN_LOGOUT}</td>
Viper

...That's if you want it as on this forum...
Symon

I have only this in cms vists now

Code:
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_visits_title -->     
   <tr>
        <th colspan="2"  class="thCornerL" nowrap="nowrap">{VISITS_TITLE}</th>
     </tr>
<!--END switch_visits_title -->          
  <!-- BEGIN visits -->
  <tr>
   <td class="row2"><span class="topictitle"><a href="{VISITS.U_PROFILE}" class="topictitle">{visits.NAME}</a></span></td>
   <td class="row2"><span class="topictitle">{visits.LASTVISIT}</a></span></td>
  </tr>
<span class="genmsall">
           
 
  <!-- END visits -->
</table>


have taken out the

Code:
<span class="genmsall">
<!--BEGIN switch_visits_title -->     
   <b>{VISITS_TOTAL}</b>&nbsp;{VISITS_TITLE}:
<!--END switch_visits_title -->           
  <!-- BEGIN visits -->
 
   <a href="{VISITS.U_PROFILE}" class="gensmall">{visits.NAME}</a>&nbsp;
  <!-- END visits -->
</span>


And it now works the way i have it also gives the time they logged in at
Bravo

admin wrote:
link?


My Psycho Ducks forum is the one I tried it on.
Symon

Viper even if i add it like you say it still comes up with the list the same way

also all the links lead just back to main index
admin (no pm's please)

It seems there to me, except you hae the information twice, as I expect you have just added the way I format things to the cms_vists.tpl file and hence still see the default formating as well.
Symon

admin wrote:
It seems there to me, except you hae the information twice, as I expect you have just added the way I format things to the cms_vists.tpl file and hence still see the default formating as well.


I have taken it out of cms visits that template is now the standard one
admin (no pm's please)

I was replying to Bravo!
Symon

admin wrote:
I was replying to Bravo!


Sorry seems we crossed posted.

Ok i have taken it out of cms vists which now looks like this

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_visits_title -->
<tr>
<th colspan="2" class="thCornerL" nowrap="nowrap">{VISITS_TITLE}</th>
</tr>
<!--END switch_visits_title -->
<!-- BEGIN visits -->
<tr>
<td class="row2"><span class="topictitle"><a href="{VISITS.U_PROFILE}" class="topictitle">{visits.NAME}</a></span></td>
<td class="row2"><span class="topictitle">{visits.LASTVISIT}</a></span></td>
</tr>
<!-- END visits -->
</table>


Which now gives me a long list including times??
Bravo

admin wrote:
It seems there to me, except you hae the information twice, as I expect you have just added the way I format things to the cms_vists.tpl file and hence still see the default formating as well.


So, in addition to adding what you posted I should have taken something off also?

Or am I off track again?

Did I put them in the right place?
Symon

I have it working now but i had to overwrite the whole of cms_visits and replace it with admins copy posted a few posts up
Bravo

Bravo wrote:
admin wrote:
It seems there to me, except you hae the information twice, as I expect you have just added the way I format things to the cms_vists.tpl file and hence still see the default formating as well.


So, in addition to adding what you posted I should have taken something off also?

Or am I off track again?

Did I put them in the right place?
admin (no pm's please)

I am not sure how many more ways it can be said, what I posted for cms_visits.tpl is the complete cms_visits.tpl that you need.
Andrew(AP)

i know a way that you guys haven't said i think
ok mine works to check it out

http://techland.myfreeforum.org

what i did

was

goto your index_body.tpl

then if you scroll down to the bottom kinda you will see

Code:
   <td class="row" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{L_ONLINE_EXPLAIN}<br/></span></td>


then where you see

<br/></span> add this code between them

Code:
<span class="genmsall">
<!--BEGIN switch_visits_title -->     
   <b>{VISITS_TOTAL}</b>&nbsp;{VISITS_TITLE}:
<!--END switch_visits_title -->           
  <!-- BEGIN visits -->
 
   <a href="{VISITS.U_PROFILE}" class="gensmall">{visits.NAME}</a>&nbsp;
  <!-- END visits -->
</span>



then you get it took work
Bravo

I replaced the entire file with the code you posted, still doesn't show up. Thought I'd make a concerted effort with this one, as it is something I would really like
Andrew(AP)

umm did it show up as a : at the bottom ?
Bravo

coke17 wrote:
umm did it show up as a : at the bottom ?


No, I was replying to admin mate.

Tried yours just now and that didnt work either.

Nothing at all is showing up in either case
Andrew(AP)

oh umm did yiu try adding the thing between the <br/> and the </span>


then added {MYFF.VISITS} to your overall_header.tpl with the rest of the components
Bravo

coke17 wrote:
oh umm did yiu try adding the thing between the <br/> and the </span>


then added {MYFF.VISITS} to your overall_header.tpl with the rest of the components


Yes, done all that. Asked for clarification on where to put the {MYFF.VISITS}, none given.

*Gives up*
Andrew(AP)

dont give up!!! here give me the link to your forum i might b able to see whats wrong
admin (no pm's please)

Bravo wrote:
coke17 wrote:
umm did it show up as a : at the bottom ?


No, I was replying to admin mate.

Tried yours just now and that didnt work either.

Nothing at all is showing up in either case


I'm sure I saw it on your forum at one point.
Andrew(AP)

hey admin is mine right cuz i think it is but i want to check

http://techland.myfreeforum.org ?
Bravo

coke17 wrote:
dont give up!!! here give me the link to your forum i might b able to see whats wrong


Thanks for the offer mate, though I just reset everything to back how it was. Far too complicated for me. Been on it all day having to keep notepad files etc in case of buggering up. The whole portal thing imo is far too complicated to be of any use to users not wanting to research for days on end just to add a small component to their forum. Best left to the experts, forum is fine without it tbh
Andrew(AP)

ok well you could do it

i got mine done in like 10 min of just messing around with it
admin (no pm's please)

coke17 wrote:
hey admin is mine right cuz i think it is but i want to check

http://techland.myfreeforum.org ?


Looks fine I really can't see what is hard about this one
Andrew(AP)

i know
Viper

If you want it as seen Here, then replace ALL of your code in cms_visits.tpl to:

Code:
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_visits_title -->     
   <tr>
        <th colspan="2"  class="thCornerL" nowrap="nowrap">{VISITS_TITLE}</th>
     </tr>
<!--END switch_visits_title -->          
  <!-- BEGIN visits -->
  <tr>
   <td class="row2"><span class="topictitle"><a href="{VISITS.U_PROFILE}" class="topictitle">{visits.NAME}</a></span></td>
   <td class="row2"><span class="topictitle">{visits.LASTVISIT}</a></span></td>
  </tr>
  <!-- END visits -->
</table>


And make sure <br/>{MYFF.VISITS} is here in index_body.tpl:

Code:
<tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
   <td align="left" valign="top"><p><span class="gensmall">{L_ONLINE_EXPLAIN}</span>
<br/>{MYFF.VISITS}
      <span class="gensmall">
Bravo

Viper wrote:
If you want it as seen Here, then replace ALL of your code in cms_visits.tpl to:

etc...


That one worked viper, thank you for the clear explanation
sumatra

Viper wrote:
If you want it as seen Here, then replace ALL of your code in cms_visits.tpl to:

Code:
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_visits_title -->     
   <tr>
        <th colspan="2"  class="thCornerL" nowrap="nowrap">{VISITS_TITLE}</th>
     </tr>
<!--END switch_visits_title -->          
  <!-- BEGIN visits -->
  <tr>
   <td class="row2"><span class="topictitle"><a href="{VISITS.U_PROFILE}" class="topictitle">{visits.NAME}</a></span></td>
   <td class="row2"><span class="topictitle">{visits.LASTVISIT}</a></span></td>
  </tr>
  <!-- END visits -->
</table>


And make sure <br/>{MYFF.VISITS} is here in index_body.tpl:

Code:
<tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
   <td align="left" valign="top"><p><span class="gensmall">{L_ONLINE_EXPLAIN}</span>
<br/>{MYFF.VISITS}
      <span class="gensmall">


Admin says he cant see what is so hard about this, if you are used to coding in pbpbb forums of course it is not hard, I am used to coding in Proboards forums so this is very complicated to me. Exactly where are there areas to be found as it still does not give A-Z explanations for the layman where this is found for example this (replace ALL of your code in cms_visits.tpl to:) where are these things found this cms etc et al.
Viper

You can find them by quite simply going to 'Edit Templates/Logos'. Using the drop down arrow, select which file you want to edit. It's not rocket science.
sumatra

Look at the bloody mess I have made can someone look at the forum and see what the hell happened

I edited the first one and then in the second the index one I used this part in bold and I left the rest as there was not insturctions to say where to place it or if to delete the other part

http://trinimaccohouse.myfreeforum.org/


<br/>{MYFF.VISITS}<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
[ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td align="left" valign="top"><p><span class="gensmall">{L_ONLINE_EXPLAIN}</span>
<br/>{MYFF.VISITS}
<span class="gensmall">


<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
<td align="right" valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right">&nbsp;</td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50">{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 />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
<tr>
<td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" rowspan="2">{L_WHO_IS_ONLINE}</td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>

<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
<input class="post" type="text" name="username" size="10" />
&nbsp;&nbsp;&nbsp;{L_PASSWORD}:
<input class="post" type="password" name="password" size="10" maxlength="32" />
&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
&nbsp;&nbsp;&nbsp;
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span> </td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->

<br clear="all" />

<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center">{L_NEW_POSTS}</td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td>&nbsp;&nbsp;</td>
<td width="20" align="center">{L_NO_NEW_POSTS}</td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td>&nbsp;&nbsp;</td>
<td width="20" align="center">{L_FORUM_LOCKED}</td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
Viper

sumatra wrote:
Look at the bloody mess I have made can someone look at the forum and see what the hell happened

I edited the first one and then in the second the index one I used this part in bold and I left the rest as there was not insturctions to say where to place it or if to delete the other part

http://trinimaccohouse.myfreeforum.org/


<br/>{MYFF.VISITS}<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
[ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td align="left" valign="top"><p><span class="gensmall">{L_ONLINE_EXPLAIN}</span>
<br/>{MYFF.VISITS}
<span class="gensmall">


Why have you put 2 '<br/>{MYFF.VISITS}' in there?

You have added the code in the wrong place. You need to go back to index_body.tpl scroll down and find the bit which matches the code which I posted a few posts ago, then add '<br/>{MYFF.VISITS}', where i have.
Viper

All you have done is copy and paste the code which I posted, into the top of your index_body.tpl. Read the instructions.
sumatra

Viper wrote:
All you have done is copy and paste the code which I posted, into the top of your index_body.tpl. Read the instructions.


You gave basic one liners that makes no sense to the LAYMAN hence my reason for asking I get the feeling that this forum does not offer members the ability to ask questions, I have worked with other support forums in the past and they were so wonderful and helpful, it seems asking for help or making mistakes here is not allowed. I simply ask a question I get talked down to why is this? If I dont know I ask.

I still dont understnad I have removed the <br/>{MYFF.VISITS} but where does it go in the body, dont you think color coding the area to be edited will be more helpful to members who do not know? Sure I copied the code what else am I to do? Am I suppose to find a way to do the script myself? If so, I do not know how to java script. Can someone tell me why this code is messed up and exactly word for word in a patient and understanding manner where or what i have done wrong.
sumatra

Now the whole forum is screwed up totally and I cant get back my original code so what do I do now the whole thing is screwed up see the link above and oyu will see you dont seem to understand I have never done things this way and it is my first time, coders in thepast usually color code exactly where the code is to be edited, with java or any html one slight slip and you are screwed. So now how can I get help to fix this mess
Viper

sumatra wrote:
Viper wrote:
All you have done is copy and paste the code which I posted, into the top of your index_body.tpl. Read the instructions.


You gave basic one liners that makes no sense to the LAYMAN hence my reason for asking I get the feeling that this forum does not offer members the ability to ask questions, I have worked with other support forums in the past and they were so wonderful and helpful, it seems asking for help or making mistakes here is not allowed. I simply ask a question I get talked down to why is this? If I dont know I ask.

I still dont understnad I have removed the <br/>{MYFF.VISITS} but where does it go in the body, dont you think color coding the area to be edited will be more helpful to members who do not know? Sure I copied the code what else am I to do? Am I suppose to find a way to do the script myself? If so, I do not know how to java script. Can someone tell me why this code is messed up and exactly word for word in a patient and understanding manner where or what i have done wrong.


I am going to ignore the first paragraph of your post because I have not talked you down in any way.

Anyhow...

The instructions below are in Layman as you like to refer to it. Please follow them carefully.

Cms_visits.tpl:

Replace ALL of your code in cms_visits.tpl (this can be found in the 'Edit Templates/Logos' section of the admin panel. Click on the drop down menu which says cms_announce.tpl, scroll to the bottom and click on cms_visits.tpl) to:


Code:
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_visits_title -->     
   <tr>
        <th colspan="2"  class="thCornerL" nowrap="nowrap">{VISITS_TITLE}</th>
     </tr>
<!--END switch_visits_title -->         
  <!-- BEGIN visits -->
  <tr>
   <td class="row2"><span class="topictitle"><a href="{VISITS.U_PROFILE}" class="topictitle">{visits.NAME}</a></span></td>
   <td class="row2"><span class="topictitle">{visits.LASTVISIT}</a></span></td>
  </tr>
  <!-- END visits -->
</table>


Click Submit.

Index_body.tpl:

Then click on the drop down menu which says agreement.tpl and click on index_body.tpl. Scroll down about 3/4 of the way, to find the code:

Code:
<tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
   <td align="left" valign="top"><p><span class="gensmall">{L_ONLINE_EXPLAIN}</span>
      <span class="gensmall">


When you have found this code, insert the code below:

Code:
<br/>{MYFF.VISITS}


As seen here:

Code:
<tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
   <td align="left" valign="top"><p><span class="gensmall">{L_ONLINE_EXPLAIN}</span>
<br/>{MYFF.VISITS}
      <span class="gensmall">


DO NOT copy and paste any chunk of code into index_body.tpl. Only copy and paste '<br/>{MYFF.VISITS}', into the code as seen above. The '<br/>{MYFF.VISITS}' needs to be exactly where it is above.

If you have any questions, do not hesitate to ask.
sumatra

Well THANKS viper now I understand it . Now how do I fix the mess as I have actually copied the whole thing and replaced it with the default code but now your instructions are CLEAR as the day
Viper

sumatra wrote:
Well THANKS viper now I understand it . Now how do I fix the mess as I have actually copied the whole thing and replaced it with the default code but now your instructions are CLEAR as the day


I don't know whether you are being sarcastic because I can't really tell, but I can't help you with that because I don't know what code you have in index_body.tpl.
sumatra

Viper wrote:
sumatra wrote:
Well THANKS viper now I understand it . Now how do I fix the mess as I have actually copied the whole thing and replaced it with the default code but now your instructions are CLEAR as the day


I don't know whether you are being sarcastic because I can't really tell, but I can't help you with that because I don't know what code you have in index_body.tpl.


I am being NICE as I am always nice, I said thanks and I meant it. Do you wnat me to copy my whole code so you can see the mess i made , in any event here it it below



Code:
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr>
   <td align="left" valign="bottom"><span class="gensmall">
   <!-- BEGIN switch_user_logged_in -->
   {LAST_VISIT_DATE}<br />
   <!-- END switch_user_logged_in -->
   {CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
   <td align="right" valign="bottom" class="gensmall">
      <!-- BEGIN switch_user_logged_in -->
      <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
      <!-- END switch_user_logged_in -->
      <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>
</table>

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr>
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
   <th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN catrow -->
  <tr>
   <td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
   <td class="rowpic" colspan="3" align="right">&nbsp;</td>
  </tr>
  <!-- BEGIN forumrow -->
  <tr>
   <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 />
     </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
  <!-- END catrow -->
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
  <tr>
   <td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
   <td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
  </tr>
</table>

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
   <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr>
   <td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/myff_trinimaccohouse1/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
   <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
   </td>
  </tr>
  <tr>
   <tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
   <td align="left" valign="top"><p><span class="gensmall">{L_ONLINE_EXPLAIN}</span>
<br/>{MYFF.VISITS}
      <span class="gensmall">
</tr>
</table>

<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
   <tr>
     <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
   </tr>
   <tr>
     <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
      <input class="post" type="text" name="username" size="10" />
      &nbsp;&nbsp;&nbsp;{L_PASSWORD}:
      <input class="post" type="password" name="password" size="10" maxlength="32" />
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
      <input class="text" type="checkbox" name="autologin" />
      &nbsp;&nbsp;&nbsp;
      <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
      </span> </td>
   </tr>
  </table>
</form>
<!-- END switch_user_logged_out -->

<br clear="all" />

<table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr>
   <td width="20" align="center"><img src="templates/myff_trinimaccohouse1/images/folder_new.gif" alt="{L_NEW_POSTS}"/></td>
   <td><span class="gensmall">{L_NEW_POSTS}</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="templates/myff_trinimaccohouse1/images/folder.gif" alt="{L_NO_NEW_POSTS}" /></td>
   <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="templates/myff_trinimaccohouse1/images/folder_lock.gif" alt="{L_FORUM_LOCKED}" /></td>
   <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>
Viper

sumatra wrote:
I am being NICE as I am always nice, I said thanks and I meant it. Do you wnat me to copy my whole code so you can see the mess i made , in any event here it it below

Code:
<tr>
   <td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/myff_trinimaccohouse1/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
   <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
   </td>
  </tr>
  <tr>
  <tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>


This code here. Can you see the 2 <tr> tags together? Delete one of them. See what happens then.
sumatra

Viper wrote:
sumatra wrote:
I am being NICE as I am always nice, I said thanks and I meant it. Do you wnat me to copy my whole code so you can see the mess i made , in any event here it it below

Code:
<tr>
   <td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/myff_trinimaccohouse1/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
   <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
   </td>
  </tr>
  <tr>
  <tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>


This code here. Can you see the 2 <tr> tags together? Delete one of them. See what happens then.


Yes, let me give it a shot hold on please
sumatra

Ok check it now, it is still not right. the white box is gone now, but the names of members who were online in hte past 24 hours are in a table below and looks funky that is not how it should be

http://trinimaccohouse.myfreeforum.org/
Viper

Well, how do you want it?
sumatra

Viper wrote:
Well, how do you want it?


To look like the bottom of this support forum incorporated below the names that are currently online exactly like it is here.
Viper

Right then.

Replace ALL of your code in cms_visits.tpl to:

Code:
<span class="genmsall">
<!--BEGIN switch_visits_title -->     
   <b>{VISITS_TOTAL}</b>&nbsp;{VISITS_TITLE}:
<!--END switch_visits_title -->         
  <!-- BEGIN visits -->
 
   <a href="{VISITS.U_PROFILE}" class="gensmall">{visits.NAME}</a>&nbsp;
  <!-- END visits -->
</span>


Then move '<br/>{MYFF.VISITS}', in index_body.tpl to here:

Code:
<tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}<br/>{MYFF.VISITS}</span></td>
  </tr>
</table>
sumatra

Quote:
Then move '<br/>{MYFF.VISITS}', in index_body.tpl to here:

Code:
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
[ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}<br/>{MYFF.VISITS}</span></td>
</tr>
</table>


This part I do not clearly understand, what do you mean move '<br/>{MYFF.VISITS}', in index_body.tpl to here: and then you put a partial code, I simply dont understand that part, move it and do what? copy it and replace it with something? if so what? or is it possible you put the part in my code above and then recopy it below and I can copy it and put it in my code panel? Because this is going right over my head
sumatra

Oh wait I think I see it hold on let me try
Viper

Delete <br/>{MFF.VISITS} where you have it now in index_body.tpl.

Then find this code in index_body.tpl:

Code:
<tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}<br/>{MYFF.VISITS}</span></td>
  </tr>
</table>


And then add <br/>{MFF.VISITS} as seen here:

Code:
<tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}<br/>{MYFF.VISITS}</span></td>
  </tr>
</table>
sumatra

Ok viper it worked but it didnt have the same wording as here below: see the underlined part that is what I want

28 Users online in the last 24hours: sumatra Viper Bravo admin symon the_punisher_kid INEEDHELP Pariah MrsK 456Sm Codyt07 Amelia Shadow_Dan mbarry6 ensslin Dial It Up sports_arena_admin BabesnPets Mike dragon123 Sunz Ziddy1232 sharpe1983 coke17 izzystradlin963 different-forums-admin gooneylooney fruity5



This is my forum panel, I want it to show Users onine in the last 24 hours.


10 Recently online: EDITOR Fussy Abdoolah BiteMe redplum agrippa clayfairy OUTLAW solachica YadiDiTriniEmpress



And is it at all possible to move the members who are currently online to a bit higher up as not to conflict with those wehre were online recently
Viper

Ok, now you have to go to the Myfreeforum Control Panel. And insert this:

Code:
[VISITS]
count=100
title=Users online in the last 24hours


Under the Options Tab.
Viper

Viper wrote:
Code:
<tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}<br/>{MYFF.VISITS}</span></td>
  </tr>
</table>


And for your other point, of moving it down a bit. You will need to add another <br/>, as seen below:

Code:
<tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
       [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />
     {RECORD_USERS}<br />
     {LOGGED_IN_USER_LIST}<br/><br/>{MYFF.VISITS}</span></td>
  </tr>
</table>
sumatra

I did the spacing but it still does not show this below from this forum

28 Users online in the last 24hours: sumatra Viper Bravo pinkbunny admin symon the_punisher_kid INEEDHELP Pariah MrsK 456Sm Codyt07 Amelia Shadow_Dan mbarry6 ensslin Dial It Up sports_arena_admin BabesnPets Mike dragon123 Sunz Ziddy1232 sharpe1983 coke17 izzystradlin963 different-forums-admin gooneylooney

Instead is thows this:

10 Recently online: Fussy EDITOR Werewolf clayfairy empressNuk Abdoolah BiteMe redplum agrippa YadiDiTriniEmpress

Again, HOW CAN I CHANGE this part 10 Recently online: to read this as on this forum 28 Users online in the last 24hours: OF COURSE I know the numbers will be different it is the wording I need changed
Viper

I have already told you how. Look on the previous page.
sumatra

got it thanks
vanadess

ok Thanks
But Where i should add " <br/>{MYFF.VISITS} " in my index.tpl
i try more times but it didn't put in the last table

thise is my tpl plz fix

Code:
<table width="96%" cellspacing="0" cellpadding="2" border="0" align="center">

<tr>
<marquee scrollamount=5 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=5"><a href=http://egyptmobile.myfreeforum.org/forum28.php" title="اضغط هنا لدخول قسم تحميل الافلام العربيه"><img src="http://www.picturetrunk.com/2006/07292006/ca4743e7e0.jpg" width="1200" height="126"> </a></marquee>
</tr>
 <tr>
   <td align="left" valign="bottom"><span class="gensmall">
   <!-- BEGIN switch_user_logged_in -->
   {LAST_VISIT_DATE}<br />
   <!-- END switch_user_logged_in -->
   {CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
   <td align="right" valign="bottom" class="gensmall">
      <!-- BEGIN switch_user_logged_in -->
      <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
      <!-- END switch_user_logged_in -->
      <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>

</table>

<table width="96%" cellpadding="2" cellspacing="1" border="0" class="forumline">
   <tr>
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
   <th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN catrow -->
  <tr>
   <td class="catLeft" colspan="5" height="38"><span class="cattitle">&nbsp; <a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
  </tr>
  <!-- BEGIN forumrow -->
  <tr>
   <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" onmouseover="this.style.backgroundColor='{CELL1_OVER}';" onmouseout="this.style.backgroundColor='{CELL1}';" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><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 />
     </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
  <!-- END catrow -->
</table>

<table width="96%" cellspacing="0" border="0" align="center" cellpadding="2">
  <tr>
   <td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
   <td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
  </tr>
</table>

<table width="96%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
   <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">&nbsp;{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr>
   <td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/myff_egyptmobile1/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
   <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
   </td>
  </tr>
  <tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>
<table width="96%" cellpadding="1" cellspacing="1" border="0">
<tr>
   <td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>

<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
  <table width="96%" cellpadding="3" cellspacing="1" border="0" class="forumline">
   <tr>
     <td class="catHead" height="28"><a name="login"></a><span class="cattitle">&nbsp;{L_LOGIN_LOGOUT}</span></td>
   </tr>
   <tr>
     <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
      <input class="post" type="text" name="username" size="10" />
      &nbsp;&nbsp;&nbsp;{L_PASSWORD}:
      <input class="post" type="password" name="password" size="10" maxlength="32" />
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
      <input class="text" type="checkbox" name="autologin" />
      &nbsp;&nbsp;&nbsp;
      <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
   </span> </td>
   </tr>

</table>
</form>
<!-- END switch_user_logged_out -->

<br clear="all" />

<table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr>
   <td width="20" align="center"><img src="templates/myff_egyptmobile1/images/folder_new.gif" alt="{L_NEW_POSTS}"/></td>
   <td><span class="gensmall">{L_NEW_POSTS}</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="templates/myff_egyptmobile1/images/folder.gif" alt="{L_NO_NEW_POSTS}" /></td>
   <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="templates/myff_egyptmobile1/images/folder_lock.gif" alt="{L_FORUM_LOCKED}" /></td>
   <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>
admin (no pm's please)

<br />{LOGGED_IN_USER_LIST}

is the logged in user list, so just aftet that is the place for me.
VBoy336

hey admin, i'd did it, but the list of names is not under "WHO IS ONLINE" topic,

it's in white space, below that

link: http://traitimviet.myfastforum.org/

i want it to look like how this forum look right now, can anyone show ?
Viper

You need to put

Code:
<br/>{MFF.VISITS}


After:

Code:
<br />{LOGGED_IN_USER_LIST}


In index_body.tpl
admin (no pm's please)

I do find it quite odd the way people struggle with this, the way they plonk the code at the top or bottom of a file with some quite clear positions in it, e.g. {LOGGED_IN_USER_LIST} and expect it to appear in the right place
Symon

admin wrote:
I do find it quite odd the way people struggle with this, the way they plonk the code at the top or bottom of a file with some quite clear positions in it, e.g. {LOGGED_IN_USER_LIST} and expect it to appear in the right place


I have added a walkthough on both howtodoit sites

http://howtodoit.myfreeforum.org/...component=content&topicid=598

or

http://howtodoit.myfastforum.org/sutra383.php#383
admin (no pm's please)

In both examples you say "after {ONLINEEXPLAIN}" whereas it should be before to do it like ti is on the support forum.
vanadess

Yes Very Thankss it works well with me

But how we can solve the problem of Admin and moderators Color
Symon

admin wrote:
In both examples you say "after {ONLINEEXPLAIN}" whereas it should be before to do it like ti is on the support forum.


My mistake put the wrong code in meant to say after {LOGGED_IN_USER_LIST} for this look
Houndoom<3

i don't think i even have cmsvisits.tpl......
Viper

Houndoom<3 wrote:
i don't think i even have cmsvisits.tpl......


In Edit Templates/Logos, under; "Choose Portal template File to Edit". In the same drop down menu as cms_announce.tpl
Houndoom<3

ohh gotcha
Houndoom<3

whoaa, did you just change it form "users in 24hours" to "recently visited"?
Viper

Have you done the bit in the Control Panel bit, as stated in the first post of this thread?
vanadess

What about admin , moderators Colors ???
Viper

vanadess wrote:
What about admin , moderators Colors ???


What about them?
CodyT07

i think she means for mods and admins to have their colors (e.g. green) on the visits list.
Highspirit

Re: A VISITS example

admin wrote:
To achieve the look at the bottom of the index page of this forum.


In the owner control panel options tab.
Code:


[VISITS]
count=100
title=Users online in the last 24hours


count needs to be higher than you are going to get.


in cms_visits.tpl replace all that is currently there with:

Code:

<span class="genmsall">
<!--BEGIN switch_visits_title -->     
   <b>{VISITS_TOTAL}</b>&nbsp;{VISITS_TITLE}:
<!--END switch_visits_title -->          
  <!-- BEGIN visits -->
 
   <a href="{VISITS.U_PROFILE}" class="gensmall">{visits.NAME}</a>&nbsp;
  <!-- END visits -->
</span>



The in index_body.tpl I added :

Code:

<br/>{MYFF.VISITS}


This was added after the logged in users.


I done all that and it seems to work fine on my forum, but for some reason it doesn't show all the users from the last 24 hours. I know some members have been on but they dont show up on the list
admin (no pm's please)