[ABD]X users viewing forums

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: [BETA]X users viewing forums

Post by tommekemc »

some people had the SEO mod installed, this mod has got a bug so it doesn't post the forum-id to the sessions page, I use this.
When users are browsing a page in a forum, it's just like they're watching the index for my mod.
here's a fix (you will have 1 extra querry, so consider it!)

in includes/session.php find:

Code: Select all

					if (!$session_expired)
					{
						// Only update session DB a minute or so after last update or if page changes
add after:

Code: Select all

//x_users_viewing fix
						if(!isset($_REQUEST['f']) && isset($_REQUEST['t'])){
							$sql="SELECT forum_id FROM ".TOPICS_TABLE." WHERE topic_id=".$_REQUEST['t']." LIMIT 1";
							$x_users_result=$db->sql_query($sql);
							$this->page['forum']=$db->sql_fetchfield('forum_id');
						}elseif(!isset($_REQUEST['f']) && isset($_REQUEST['p'])){
							$sql="SELECT forum_id FROM ".POSTS_TABLE." WHERE post_id=".$_REQUEST['p']." LIMIT 1";
							$x_users_result=$db->sql_query($sql);
							$this->page['forum']=$db->sql_fetchfield('forum_id');
						}
//end x_users_viewing fix
ok, you don't have the problem anymore!
my sig
my projects

images deleted because of the 6kb (wtf?) rule...
asntv
Registered User
Posts: 13
Joined: Fri Nov 21, 2008 12:30 pm

Re: [BETA]X users viewing forums

Post by asntv »

damn i followed and downloaded th latest version but still not working for me.


Image
Image

I got no errors while using the xml file.what is it not showing the number of viewers.please help
tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: [BETA]X users viewing forums

Post by tommekemc »

do you always get 0 users viewing?
or don't you see any change on your forum?

in case 2: send me your forumlist_body.html
I'll have a look at it and send you the optimized code back.
my sig
my projects

images deleted because of the 6kb (wtf?) rule...
asntv
Registered User
Posts: 13
Joined: Fri Nov 21, 2008 12:30 pm

Re: [BETA]X users viewing forums

Post by asntv »

tommekemc wrote:do you always get 0 users viewing?
or don't you see any change on your forum?

in case 2: send me your forumlist_body.html
I'll have a look at it and send you the optimized code back.
I dont get anything.here is my forumlist_body.html.

<!-- BEGIN forumrow -->
<!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT -->
</ul>

<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->

<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW or forumrow.S_NO_CAT -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt><!-- IF forumrow.S_IS_CAT --><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a><!-- ELSE -->{L_FORUM}<!-- ENDIF --></dt>
<dd class="topics">{L_TOPICS}</dd>
<dd class="posts">{L_POSTS}</dd>
<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<!-- ENDIF -->

<!-- IF not forumrow.S_IS_CAT -->
<li class="row">
<dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
<dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">
<!-- IF forumrow.FORUM_IMAGE --><span class="forum-image">{forumrow.FORUM_IMAGE}</span><!-- ENDIF -->
<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a><br />
{forumrow.FORUM_DESC}
<!-- IF forumrow.MODERATORS -->
<br /><strong>{forumrow.L_MODERATOR_STR}:</strong> {forumrow.MODERATORS}
<!-- ENDIF -->
<!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS --><br /><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}<!-- ENDIF -->
</dt>
<!-- IF forumrow.CLICKS -->
<dd class="redirect"><span>{L_REDIRECTS}: {forumrow.CLICKS}</span></dd>
<!-- ELSEIF not forumrow.S_IS_LINK -->
<dd class="topics">{forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>
<dd class="posts">{forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>
<dd class="lastpost"><span>
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}
<a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br />{L_POSTED_ON_DATE} {forumrow.LAST_POST_TIME}<!-- ELSE -->{L_NO_POSTS}<!-- ENDIF --></span>
</dd>
<!-- ENDIF -->
</dl>
</li>
<!-- ENDIF -->

<!-- IF forumrow.S_LAST_ROW -->
</ul>

<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->

<!-- BEGINELSE -->
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<strong>{L_NO_FORUMS}</strong>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- END forumrow -->


I just followed the instructions of 0.1.1 version.Btw you got PM.
thanks in advance
tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: [BETA]X users viewing forums

Post by tommekemc »

your template was not adjusted, it's a fault of mine, forgot to update the template files in my installer to the newest version.
If you download it again, check the 'template' dir, there are the instructions.
I've done the edits on your server though :)
it's saved in your database so you might want to consider editing your own template (it's just 1 paste).
btw, next time add your code inside [ code ] tags ;)
my sig
my projects

images deleted because of the 6kb (wtf?) rule...
asntv
Registered User
Posts: 13
Joined: Fri Nov 21, 2008 12:30 pm

Re: [BETA]X users viewing forums

Post by asntv »

please I want the mod to work with my vistax template.my forumlist_body.html is:

Code: Select all

<div id="forumbar">
<table width="100%" cellspacing="1" border="0">
<tr>
	<td align="left"><!-- IF not S_IS_BOT and U_MARK_FORUMS --><span class="gensmall"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></span><!-- ENDIF --></td>
</tr>
</table>
</div>

<!-- BEGIN forumrow -->
<!-- IF not forumrow.S_IS_CAT and forumrow.S_FIRST_ROW -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="7" height="7"><img src="{T_THEME_PATH}/images/tl.gif" width="7" height="7" alt="" /></td>
    <td height="7" style="background:url('{T_THEME_PATH}/images/tm.gif');"></td>
    <td width="7" height="7"><img src="{T_THEME_PATH}/images/tr.gif" width="7" height="7" alt="" /></td>
  </tr>
  <tr>
    <td width="7" style="background:url('{T_THEME_PATH}/images/ml.gif');"></td>
    <td>
<table class="tablebg" cellspacing="1" width="100%">
<tr>
	<th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
	<th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50">&nbsp;{L_POSTS}&nbsp;</th>
	<th>&nbsp;{L_LAST_POST}&nbsp;</th>
</tr>
<!-- ENDIF -->
      <!-- IF forumrow.S_IS_CAT -->
      <!-- IF not forumrow.S_FIRST_ROW -->
</table>
</td>
    <td width="7" style="background:url('{T_THEME_PATH}/images/mr.gif');"></td>
  </tr>
  <tr>
    <td width="7" height="6" align="right"><img src="{T_THEME_PATH}/images/bl.gif" width="7" height="6" alt="" /></td>
    <td height="6" style="background:url('{T_THEME_PATH}/images/bm.gif');"></td>
    <td width="7" height="6"><img src="{T_THEME_PATH}/images/br.gif" width="7" height="6" alt="" /></td>
  </tr>
</table>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="7" height="7"><img src="{T_THEME_PATH}/images/tl.gif" width="7" height="7" alt="" /></td>
    <td height="7" style="background:url('{T_THEME_PATH}/images/tm.gif');"></td>
    <td width="7" height="7"><img src="{T_THEME_PATH}/images/tr.gif" width="7" height="7" alt="" /></td>
  </tr>
  <tr>
    <td width="7" style="background:url('{T_THEME_PATH}/images/ml.gif');"></td>
    <td>
<table class="tablebg" cellspacing="1" width="100%">
<!-- ELSE -->

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="7" height="7"><img src="{T_THEME_PATH}/images/tl.gif" width="7" height="7" alt="" /></td>
    <td height="7" style="background:url('{T_THEME_PATH}/images/tm.gif');"></td>
    <td width="7" height="7"><img src="{T_THEME_PATH}/images/tr.gif" width="7" height="7" alt="" /></td>
  </tr>
  <tr>
    <td width="7" style="background:url('{T_THEME_PATH}/images/ml.gif');"></td>
    <td>
<table class="tablebg" cellspacing="1" width="100%">
  <!-- ENDIF -->
      <tr>
              <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
              <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
              <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
              <th>&nbsp;{L_LAST_POST}&nbsp;</th>
      </tr>
<tr>
			<td colspan="5" align="left" class="row3"><h4><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a></h4></td>
  </tr>
	<!-- ELSEIF forumrow.S_IS_LINK -->
		<tr>
			<td class="row1" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
			<td class="row1">
				<!-- IF forumrow.FORUM_IMAGE -->
					<div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
				<!-- ENDIF -->
				<a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
				<p class="forumdesc">{forumrow.FORUM_DESC}</p>
				<!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
			</td>
			<!-- IF forumrow.CLICKS -->
				<td class="row2" colspan="3" align="center"><span class="genmed">{L_REDIRECTS}: {forumrow.CLICKS}</span></td>
			<!-- ELSE -->
				<td class="row2" colspan="3" align="center">&nbsp;</td>
			<!-- ENDIF -->
		</tr>
	<!-- ELSE -->
		<!-- IF forumrow.S_NO_CAT -->
			<tr>   
              <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
              <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
              <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
              <th>&nbsp;{L_LAST_POST}&nbsp;</th>
			</tr>
		<!-- ENDIF -->
		<tr>
			<td class="row1" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
			<td class="row1" width="100%">
				<!-- IF forumrow.FORUM_IMAGE -->
					<div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
				<!-- ENDIF -->
				<a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
				<!-- IF forumrow.FORUM_VIEWERS_GUESTS_SHOW -->
					<!-- IF forumrow.FORUM_VIEWERS_SHOW --> <b>(
						<!-- IF forumrow.FORUM_VIEWERS_NUMBERS_SHOW -->
							{forumrow.FORUM_VIEWERS} {L_VIEWING}
						<!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_BOTH_SHOW -->
							 : 
						<!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_NAMES_SHOW -->
							{forumrow.FORUM_VIEWERS_WHO}
							<!-- IF forumrow.FORUM_VIEWERS_GUESTS_VIEWING -->
								 {L_VIEWING_AND} {forumrow.FORUM_VIEWERS_GUESTS} 
								 <!-- IF forumrow.FORUM_VIEWERS_GUESTS_PLURAL -->
									{L_G_GUESTS}
								<!-- ELSE -->
									{L_GUEST}
								<!-- ENDIF -->
							<!-- ENDIF -->
						<!-- ENDIF -->
					)</b>
					<!-- ENDIF -->
				<!-- ELSE -->
					<!-- IF S_USER_LOGGED_IN -->
						<!-- IF not S_IS_BOT -->
							<!-- IF forumrow.FORUM_VIEWERS_SHOW --> <b>(
								<!-- IF forumrow.FORUM_VIEWERS_NUMBERS_SHOW -->
									{forumrow.FORUM_VIEWERS} {L_VIEWING}
								<!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_BOTH_SHOW -->
									 : 
								<!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_NAMES_SHOW -->
									{forumrow.FORUM_VIEWERS_WHO}
									<!-- IF forumrow.FORUM_VIEWERS_GUESTS_VIEWING -->
										 {L_VIEWING_AND} {forumrow.FORUM_VIEWERS_GUESTS} 
										<!-- IF forumrow.FORUM_VIEWERS_GUESTS_PLURAL -->
											{_G_GUESTS}
										<!-- ELSE -->
											{L_GUEST}
									<!-- ENDIF -->
									<!-- ENDIF -->
								<!-- ENDIF -->
							)</b>
							<!-- ENDIF -->
						<!-- ENDIF -->
					<!-- ENDIF -->
<!-- ENDIF -->
				<p class="forumdesc">{forumrow.FORUM_DESC}</p>
				<!-- IF forumrow.MODERATORS -->
					<p class="forumdesc"><strong>{forumrow.L_MODERATOR_STR}:</strong> {forumrow.MODERATORS}</p>
				<!-- ENDIF -->
				<!-- IF forumrow.SUBFORUMS -->
					<span class="gensmall"><strong>{forumrow.L_SUBFORUM_STR}</strong></span> <span class="genmed">{forumrow.SUBFORUMS}</span>
				<!-- ENDIF -->
				<!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
			</td>
			<td class="row2" align="center"><p class="topicdetails">{forumrow.TOPICS}</p></td>
			<td class="row2" align="center"><p class="topicdetails">{forumrow.POSTS}</p></td>
			<td class="row2" align="center" nowrap="nowrap">
				<!-- IF forumrow.LAST_POST_TIME -->
					<p class="topicdetails">{forumrow.LAST_POST_TIME}</p>
					<p class="topicdetails">{forumrow.LAST_POSTER_FULL}
						<a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a>
					</p>
				<!-- ELSE -->
					<p class="topicdetails">{L_NO_POSTS}</p>
				<!-- ENDIF -->
			</td>
		</tr>
	<!-- ENDIF -->
<!-- BEGINELSE -->
	<tr>
		<td class="row1" colspan="5" align="center"><p class="gensmall">{L_NO_FORUMS}</p></td>
	</tr>
<!-- END forumrow -->
</table>
</td>
    <td width="7" style="background:url('{T_THEME_PATH}/images/mr.gif');"></td>
  </tr>
  <tr>
    <td width="7" height="6" align="right"><img src="{T_THEME_PATH}/images/bl.gif" width="7" height="6" alt="" /></td>
    <td height="6" style="background:url('{T_THEME_PATH}/images/bm.gif');"></td>
    <td width="7" height="6"><img src="{T_THEME_PATH}/images/br.gif" width="7" height="6" alt="" /></td>
  </tr>
</table>

any help will be appreciated,thanks in advance
tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: [BETA]X users viewing forums

Post by tommekemc »

I currently get an error on your board...

this should be the correct code:

Code: Select all

    <div id="forumbar">
    <table width="100%" cellspacing="1" border="0">
    <tr>
       <td align="left"><!-- IF not S_IS_BOT and U_MARK_FORUMS --><span class="gensmall"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></span><!-- ENDIF --></td>
    </tr>
    </table>
    </div>

    <!-- BEGIN forumrow -->
    <!-- IF not forumrow.S_IS_CAT and forumrow.S_FIRST_ROW -->
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tl.gif" width="7" height="7" alt="" /></td>
        <td height="7" style="background:url('{T_THEME_PATH}/images/tm.gif');"></td>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tr.gif" width="7" height="7" alt="" /></td>
      </tr>
      <tr>
        <td width="7" style="background:url('{T_THEME_PATH}/images/ml.gif');"></td>
        <td>
    <table class="tablebg" cellspacing="1" width="100%">
    <tr>
       <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
       <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
       <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
       <th>&nbsp;{L_LAST_POST}&nbsp;</th>
    </tr>
    <!-- ENDIF -->
          <!-- IF forumrow.S_IS_CAT -->
          <!-- IF not forumrow.S_FIRST_ROW -->
    </table>
    </td>
        <td width="7" style="background:url('{T_THEME_PATH}/images/mr.gif');"></td>
      </tr>
      <tr>
        <td width="7" height="6" align="right"><img src="{T_THEME_PATH}/images/bl.gif" width="7" height="6" alt="" /></td>
        <td height="6" style="background:url('{T_THEME_PATH}/images/bm.gif');"></td>
        <td width="7" height="6"><img src="{T_THEME_PATH}/images/br.gif" width="7" height="6" alt="" /></td>
      </tr>
    </table>
    <br />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tl.gif" width="7" height="7" alt="" /></td>
        <td height="7" style="background:url('{T_THEME_PATH}/images/tm.gif');"></td>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tr.gif" width="7" height="7" alt="" /></td>
      </tr>
      <tr>
        <td width="7" style="background:url('{T_THEME_PATH}/images/ml.gif');"></td>
        <td>
    <table class="tablebg" cellspacing="1" width="100%">
    <!-- ELSE -->

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tl.gif" width="7" height="7" alt="" /></td>
        <td height="7" style="background:url('{T_THEME_PATH}/images/tm.gif');"></td>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tr.gif" width="7" height="7" alt="" /></td>
      </tr>
      <tr>
        <td width="7" style="background:url('{T_THEME_PATH}/images/ml.gif');"></td>
        <td>
    <table class="tablebg" cellspacing="1" width="100%">
      <!-- ENDIF -->
          <tr>
                  <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
                  <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
                  <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
                  <th>&nbsp;{L_LAST_POST}&nbsp;</th>
          </tr>
    <tr>
             <td colspan="5" align="left" class="row3"><h4><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a></h4></td>
      </tr>
       <!-- ELSEIF forumrow.S_IS_LINK -->
          <tr>
             <td class="row1" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
             <td class="row1">
                <!-- IF forumrow.FORUM_IMAGE -->
                   <div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
                <!-- ENDIF -->
                <a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
                <p class="forumdesc">{forumrow.FORUM_DESC}</p>
                <!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
             </td>
             <!-- IF forumrow.CLICKS -->
                <td class="row2" colspan="3" align="center"><span class="genmed">{L_REDIRECTS}: {forumrow.CLICKS}</span></td>
             <!-- ELSE -->
                <td class="row2" colspan="3" align="center">&nbsp;</td>
             <!-- ENDIF -->
          </tr>
       <!-- ELSE -->
          <!-- IF forumrow.S_NO_CAT -->
             <tr>   
                  <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
                  <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
                  <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
                  <th>&nbsp;{L_LAST_POST}&nbsp;</th>
             </tr>
          <!-- ENDIF -->
          <tr>
             <td class="row1" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
             <td class="row1" width="100%">
                <!-- IF forumrow.FORUM_IMAGE -->
                   <div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
                <!-- ENDIF -->
                <a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
                <!-- IF forumrow.FORUM_VIEWERS_GUESTS_SHOW -->
                   <!-- IF forumrow.FORUM_VIEWERS_SHOW --> <b>(
                      <!-- IF forumrow.FORUM_VIEWERS_NUMBERS_SHOW -->
                         {forumrow.FORUM_VIEWERS} {L_VIEWING}
                      <!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_BOTH_SHOW -->
                          :
                      <!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_NAMES_SHOW -->
                         {forumrow.FORUM_VIEWERS_WHO}
                         <!-- IF forumrow.FORUM_VIEWERS_GUESTS_VIEWING -->
                             {L_VIEWING_AND} {forumrow.FORUM_VIEWERS_GUESTS}
                             <!-- IF forumrow.FORUM_VIEWERS_GUESTS_PLURAL -->
                               {L_G_GUESTS}
                            <!-- ELSE -->
                               {L_GUEST}
                            <!-- ENDIF -->
                         <!-- ENDIF -->
                      <!-- ENDIF -->
                   )</b>
                   <!-- ENDIF -->
                <!-- ELSE -->
                   <!-- IF S_USER_LOGGED_IN -->
                      <!-- IF not S_IS_BOT -->
                         <!-- IF forumrow.FORUM_VIEWERS_SHOW --> <b>(
                            <!-- IF forumrow.FORUM_VIEWERS_NUMBERS_SHOW -->
                               {forumrow.FORUM_VIEWERS} {L_VIEWING}
                            <!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_BOTH_SHOW -->
                                :
                            <!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_NAMES_SHOW -->
                               {forumrow.FORUM_VIEWERS_WHO}
                               <!-- IF forumrow.FORUM_VIEWERS_GUESTS_VIEWING -->
                                   {L_VIEWING_AND} {forumrow.FORUM_VIEWERS_GUESTS}
                                  <!-- IF forumrow.FORUM_VIEWERS_GUESTS_PLURAL -->
                                     {_G_GUESTS}
                                  <!-- ELSE -->
                                     {L_GUEST}
                               <!-- ENDIF -->
                               <!-- ENDIF -->
                            <!-- ENDIF -->
                         )</b>
                         <!-- ENDIF -->
                      <!-- ENDIF -->
                   <!-- ENDIF -->
    <!-- ENDIF -->
                <p class="forumdesc">{forumrow.FORUM_DESC}</p>
                <!-- IF forumrow.MODERATORS -->
                   <p class="forumdesc"><strong>{forumrow.L_MODERATOR_STR}:</strong> {forumrow.MODERATORS}</p>
                <!-- ENDIF -->
                <!-- IF forumrow.SUBFORUMS -->
                   <span class="gensmall"><strong>{forumrow.L_SUBFORUM_STR}</strong></span> <span class="genmed">{forumrow.SUBFORUMS}</span>
                <!-- ENDIF -->
                <!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
             </td>
             <td class="row2" align="center"><p class="topicdetails">{forumrow.TOPICS}</p></td>
             <td class="row2" align="center"><p class="topicdetails">{forumrow.POSTS}</p></td>
             <td class="row2" align="center" nowrap="nowrap">
                <!-- IF forumrow.LAST_POST_TIME -->
                   <p class="topicdetails">{forumrow.LAST_POST_TIME}</p>
                   <p class="topicdetails">{forumrow.LAST_POSTER_FULL}
                      <a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a>
                   </p>
                <!-- ELSE -->
                   <p class="topicdetails">{L_NO_POSTS}</p>
                <!-- ENDIF -->
             </td>
          </tr>
       <!-- ENDIF -->
    <!-- BEGINELSE -->
       <tr>
          <td class="row1" colspan="5" align="center"><p class="gensmall">{L_NO_FORUMS}</p></td>
       </tr>
    <!-- END forumrow -->
    </table>
    </td>
        <td width="7" style="background:url('{T_THEME_PATH}/images/mr.gif');"></td>
      </tr>
      <tr>
        <td width="7" height="6" align="right"><img src="{T_THEME_PATH}/images/bl.gif" width="7" height="6" alt="" /></td>
        <td height="6" style="background:url('{T_THEME_PATH}/images/bm.gif');"></td>
        <td width="7" height="6"><img src="{T_THEME_PATH}/images/br.gif" width="7" height="6" alt="" /></td>
      </tr>
    </table>
this code should work :)
my sig
my projects

images deleted because of the 6kb (wtf?) rule...
asntv
Registered User
Posts: 13
Joined: Fri Nov 21, 2008 12:30 pm

Re: [BETA]X users viewing forums

Post by asntv »

tommekemc wrote:I currently get an error on your board...

this should be the correct code:

Code: Select all

    <div id="forumbar">
    <table width="100%" cellspacing="1" border="0">
    <tr>
       <td align="left"><!-- IF not S_IS_BOT and U_MARK_FORUMS --><span class="gensmall"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></span><!-- ENDIF --></td>
    </tr>
    </table>
    </div>

    <!-- BEGIN forumrow -->
    <!-- IF not forumrow.S_IS_CAT and forumrow.S_FIRST_ROW -->
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tl.gif" width="7" height="7" alt="" /></td>
        <td height="7" style="background:url('{T_THEME_PATH}/images/tm.gif');"></td>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tr.gif" width="7" height="7" alt="" /></td>
      </tr>
      <tr>
        <td width="7" style="background:url('{T_THEME_PATH}/images/ml.gif');"></td>
        <td>
    <table class="tablebg" cellspacing="1" width="100%">
    <tr>
       <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
       <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
       <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
       <th>&nbsp;{L_LAST_POST}&nbsp;</th>
    </tr>
    <!-- ENDIF -->
          <!-- IF forumrow.S_IS_CAT -->
          <!-- IF not forumrow.S_FIRST_ROW -->
    </table>
    </td>
        <td width="7" style="background:url('{T_THEME_PATH}/images/mr.gif');"></td>
      </tr>
      <tr>
        <td width="7" height="6" align="right"><img src="{T_THEME_PATH}/images/bl.gif" width="7" height="6" alt="" /></td>
        <td height="6" style="background:url('{T_THEME_PATH}/images/bm.gif');"></td>
        <td width="7" height="6"><img src="{T_THEME_PATH}/images/br.gif" width="7" height="6" alt="" /></td>
      </tr>
    </table>
    <br />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tl.gif" width="7" height="7" alt="" /></td>
        <td height="7" style="background:url('{T_THEME_PATH}/images/tm.gif');"></td>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tr.gif" width="7" height="7" alt="" /></td>
      </tr>
      <tr>
        <td width="7" style="background:url('{T_THEME_PATH}/images/ml.gif');"></td>
        <td>
    <table class="tablebg" cellspacing="1" width="100%">
    <!-- ELSE -->

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tl.gif" width="7" height="7" alt="" /></td>
        <td height="7" style="background:url('{T_THEME_PATH}/images/tm.gif');"></td>
        <td width="7" height="7"><img src="{T_THEME_PATH}/images/tr.gif" width="7" height="7" alt="" /></td>
      </tr>
      <tr>
        <td width="7" style="background:url('{T_THEME_PATH}/images/ml.gif');"></td>
        <td>
    <table class="tablebg" cellspacing="1" width="100%">
      <!-- ENDIF -->
          <tr>
                  <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
                  <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
                  <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
                  <th>&nbsp;{L_LAST_POST}&nbsp;</th>
          </tr>
    <tr>
             <td colspan="5" align="left" class="row3"><h4><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a></h4></td>
      </tr>
       <!-- ELSEIF forumrow.S_IS_LINK -->
          <tr>
             <td class="row1" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
             <td class="row1">
                <!-- IF forumrow.FORUM_IMAGE -->
                   <div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
                <!-- ENDIF -->
                <a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
                <p class="forumdesc">{forumrow.FORUM_DESC}</p>
                <!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
             </td>
             <!-- IF forumrow.CLICKS -->
                <td class="row2" colspan="3" align="center"><span class="genmed">{L_REDIRECTS}: {forumrow.CLICKS}</span></td>
             <!-- ELSE -->
                <td class="row2" colspan="3" align="center">&nbsp;</td>
             <!-- ENDIF -->
          </tr>
       <!-- ELSE -->
          <!-- IF forumrow.S_NO_CAT -->
             <tr>   
                  <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
                  <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
                  <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
                  <th>&nbsp;{L_LAST_POST}&nbsp;</th>
             </tr>
          <!-- ENDIF -->
          <tr>
             <td class="row1" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
             <td class="row1" width="100%">
                <!-- IF forumrow.FORUM_IMAGE -->
                   <div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
                <!-- ENDIF -->
                <a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
                <!-- IF forumrow.FORUM_VIEWERS_GUESTS_SHOW -->
                   <!-- IF forumrow.FORUM_VIEWERS_SHOW --> <b>(
                      <!-- IF forumrow.FORUM_VIEWERS_NUMBERS_SHOW -->
                         {forumrow.FORUM_VIEWERS} {L_VIEWING}
                      <!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_BOTH_SHOW -->
                          :
                      <!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_NAMES_SHOW -->
                         {forumrow.FORUM_VIEWERS_WHO}
                         <!-- IF forumrow.FORUM_VIEWERS_GUESTS_VIEWING -->
                             {L_VIEWING_AND} {forumrow.FORUM_VIEWERS_GUESTS}
                             <!-- IF forumrow.FORUM_VIEWERS_GUESTS_PLURAL -->
                               {L_G_GUESTS}
                            <!-- ELSE -->
                               {L_GUEST}
                            <!-- ENDIF -->
                         <!-- ENDIF -->
                      <!-- ENDIF -->
                   )</b>
                   <!-- ENDIF -->
                <!-- ELSE -->
                   <!-- IF S_USER_LOGGED_IN -->
                      <!-- IF not S_IS_BOT -->
                         <!-- IF forumrow.FORUM_VIEWERS_SHOW --> <b>(
                            <!-- IF forumrow.FORUM_VIEWERS_NUMBERS_SHOW -->
                               {forumrow.FORUM_VIEWERS} {L_VIEWING}
                            <!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_BOTH_SHOW -->
                                :
                            <!-- ENDIF --><!-- IF forumrow.FORUM_VIEWERS_NAMES_SHOW -->
                               {forumrow.FORUM_VIEWERS_WHO}
                               <!-- IF forumrow.FORUM_VIEWERS_GUESTS_VIEWING -->
                                   {L_VIEWING_AND} {forumrow.FORUM_VIEWERS_GUESTS}
                                  <!-- IF forumrow.FORUM_VIEWERS_GUESTS_PLURAL -->
                                     {_G_GUESTS}
                                  <!-- ELSE -->
                                     {L_GUEST}
                               <!-- ENDIF -->
                               <!-- ENDIF -->
                            <!-- ENDIF -->
                         )</b>
                         <!-- ENDIF -->
                      <!-- ENDIF -->
                   <!-- ENDIF -->
    <!-- ENDIF -->
                <p class="forumdesc">{forumrow.FORUM_DESC}</p>
                <!-- IF forumrow.MODERATORS -->
                   <p class="forumdesc"><strong>{forumrow.L_MODERATOR_STR}:</strong> {forumrow.MODERATORS}</p>
                <!-- ENDIF -->
                <!-- IF forumrow.SUBFORUMS -->
                   <span class="gensmall"><strong>{forumrow.L_SUBFORUM_STR}</strong></span> <span class="genmed">{forumrow.SUBFORUMS}</span>
                <!-- ENDIF -->
                <!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
             </td>
             <td class="row2" align="center"><p class="topicdetails">{forumrow.TOPICS}</p></td>
             <td class="row2" align="center"><p class="topicdetails">{forumrow.POSTS}</p></td>
             <td class="row2" align="center" nowrap="nowrap">
                <!-- IF forumrow.LAST_POST_TIME -->
                   <p class="topicdetails">{forumrow.LAST_POST_TIME}</p>
                   <p class="topicdetails">{forumrow.LAST_POSTER_FULL}
                      <a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a>
                   </p>
                <!-- ELSE -->
                   <p class="topicdetails">{L_NO_POSTS}</p>
                <!-- ENDIF -->
             </td>
          </tr>
       <!-- ENDIF -->
    <!-- BEGINELSE -->
       <tr>
          <td class="row1" colspan="5" align="center"><p class="gensmall">{L_NO_FORUMS}</p></td>
       </tr>
    <!-- END forumrow -->
    </table>
    </td>
        <td width="7" style="background:url('{T_THEME_PATH}/images/mr.gif');"></td>
      </tr>
      <tr>
        <td width="7" height="6" align="right"><img src="{T_THEME_PATH}/images/bl.gif" width="7" height="6" alt="" /></td>
        <td height="6" style="background:url('{T_THEME_PATH}/images/bm.gif');"></td>
        <td width="7" height="6"><img src="{T_THEME_PATH}/images/br.gif" width="7" height="6" alt="" /></td>
      </tr>
    </table>
this code should work :)

thank you.it is working now
satandream
Registered User
Posts: 383
Joined: Thu Mar 06, 2008 12:47 pm

Re: [BETA]X users viewing forums

Post by satandream »

What are the progress on sub/sub forums?
tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: [BETA]X users viewing forums

Post by tommekemc »

solved this issue :)
my sig
my projects

images deleted because of the 6kb (wtf?) rule...
cally6008
Registered User
Posts: 286
Joined: Wed Nov 26, 2008 10:18 pm

Re: [BETA]X users viewing forums

Post by cally6008 »

Does this work with 3.0.4 yet ?
User avatar
^[GS]^
Registered User
Posts: 274
Joined: Sun Aug 06, 2006 10:59 pm
Location: Argentina
Contact:

Re: [BETA]X users viewing forums

Post by ^[GS]^ »

I use 3.0.4 without problems :)
tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: [BETA]X users viewing forums

Post by tommekemc »

indeed, 3.0.4 didn't change anything :)
my sig
my projects

images deleted because of the 6kb (wtf?) rule...
User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: [BETA]X users viewing forums

Post by Lisbon »

kilateszone wrote:the MOD does not work in subsilver2
Same here :oops:

Tks for help
tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: [BETA]X users viewing forums

Post by tommekemc »

could you give me your forumlist_body.html?
I'll look into it.
If nothing shows (no errors, but there's hust nothing that changed), there's something wrong with the template install :)
my sig
my projects

images deleted because of the 6kb (wtf?) rule...
Locked

Return to “[3.0.x] Abandoned MODs”