Welcome, Guest. Please Login or Register.
November 05, 2024, 01:55:26 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1]Userbrowsing Modification « previous next »
Pages: 1 2 [3] 4 Reply Ignore Print
Author Topic: [Done 1.4.1]Userbrowsing Modification  (Read 10858 times)
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.4.1]Userbrowsing Modification
« Reply #30 on: April 06, 2003, 05:55:48 PM »
Reply with quote

Please let us know when there's a version for 1.5.1 :D
Logged
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.4.1]Userbrowsing Modification
« Reply #31 on: April 13, 2003, 06:37:41 PM »
Reply with quote

No news for 1.5.1? :-\
I love this mod! :D also the members of my forum loves it too ;)
Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Done 1.4.1]Userbrowsing Modification
« Reply #32 on: April 14, 2003, 05:57:28 AM »
Reply with quote

I haven't had time to re-code this... Maybe I can get spiff to do it for me. I am busy with some major big ecommerce projects right now.
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.4.1]Userbrowsing Modification
« Reply #33 on: April 16, 2003, 10:50:50 PM »
Reply with quote

I really hope he can do it ;)
Good luck with your projects!
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1]Userbrowsing Modification
« Reply #34 on: April 16, 2003, 11:09:34 PM »
Reply with quote

i think someone else made a mod like this (Who's online), its a bit different, but shows where a user is and what he/she is doing
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.4.1]Userbrowsing Modification
« Reply #35 on: April 16, 2003, 11:22:31 PM »
Reply with quote

yes I saw it but the good thing of this mod is that the people that is inside each board can see who's there so they can start talking
Can you please re-code this mod? :)
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1]Userbrowsing Modification
« Reply #36 on: April 16, 2003, 11:38:56 PM »
Reply with quote

if nemesis dont mind, i still have some other mods in my to code list though
so i wont start right away...
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.4.1]Userbrowsing Modification
« Reply #37 on: April 27, 2003, 08:53:23 PM »
Reply with quote

Hi,
I tryed to do the changes for 1.5.2 but didn't had luck :'( :'( :'(
It isn't working :( can someone check it ans let me know what's wrong? :-\

Quote<id>
Where are my members at? Modification
</id>

<version>
1.0
</version>

<mod info>
This mod will show you where your members are at on your forum. To see a sample of this please visit my site at http://www.gamerzalliance.com Note: I removed moderators listing and topic listing on my board, so yours may look slightly diffrent then mine. I wanted a cleaner look per my layout. If you want I can post codes so you can do the same. Please post any problems you are having in the proper board at the YaBB.info site. I will not answere any emails/pm's for support. I will only support this on the proper board.

I coded this mod with 1.4.1 files. Please use Boardmod SE to install this modification. You can download Boardmod SE here: http://dns3.omnibit.it/mangaitalia/tmp/BoardMOD.zip If you like to manually install the modification. Just open the modification with wordpad, or similar text viewing program and follow the boardmod code scheme.

After modifying the files upload dbmod.php to your main yabbse directory then excute it from a browser. IE: http://www.yoursite.com/yabbse/dbmod.php

If you installed the old Vorapoap mod it use the same database query. You will not have to run the file. If you do run it, it will just give you an error cause database was already changed. If you feel more comfortable using phpadmin I posted the query below for you to run:
$result1 = mysql_query("ALTER TABLE yabbse_log_online ADD COLUMN board smallint;");

The mod updates four files:
english.lng
Sources/Boardindex.php
Sources/Messageindex.php
Sources/Display.php

Next version 2.0 plan:
Turn off and on thru modsettings
    *for each section or all at once?
Use MemberGroup set colors
    *You know Red for admins, etc..
Any other good suggestion?
</mod info>

<author>
Nemesis, with the help of Vorapoap codes. (I updated this to work with 1.4.1 and made some minor changes)
</author>

<homepage>
http://www.gamerzalliance.com
</homepage>

<edit file>
english.lng
</edit file>

<search for>
// End YaBBpak Center
</search for>

<add after>

// Whos on Mod
$txt['userbrowse']='<br><font color="#FF0000" size="1" face="Verdana">User browsing this board: </font>';
$txt['userbrowse1']='<font color="#000000" size="1" face="Verdana">User on this board: ';
$txt['userbrowse2']='<font color="#000000" size="1" face="Verdana">User on this thread: ';
// End Whos on Mod

</add after>

<edit file>
Sources\BoardIndex.php
</edit file>

<search for>
         $subject = str_replace (array('&quot;', '&#039;', '&amp;', '&lt;', '&gt;'),  array('"', "'", '&', '<', '>'),  $subject);
</search for>

<add before>
         // User browsing this forum
         $tmpusers = array();
         $Vrequest = mysql_query("SELECT identity,realName FROM {$db_prefix}log_online,{$db_prefix}members WHERE (board='$row_board[ID_BOARD]' AND identity=memberName) ORDER BY logTime DESC");
         while ($tmp = mysql_fetch_array($Vrequest))
         {
            $identity = $tmp[0];
            $euser=urlencode($identity);
            $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font size=\"1\">$tmp[1]</font></a>";
         }
         $users = implode(", ",$tmpusers);
         if (sizeof($tmpusers) > 0) $row_board[description] .= $txt['userbrowse'].$users;

</add before>

<edit file>
Sources\MessageIndex.php
</edit file>

<search for>
   // Print the header and board info.
   $yytitle = $boardname;
</search for>

<add before>
   // User browsing this forum
   $request = mysql_query("UPDATE {$db_prefix}log_online SET board=$currentboard WHERE identity='$username'");
   $tmpusers = array();
   $Vrequest = mysql_query("SELECT identity,realName FROM {$db_prefix}log_online,{$db_prefix}members WHERE (1 AND board='$currentboard' AND identity=memberName) ORDER BY logTime DESC");
   while ($tmp = mysql_fetch_array($Vrequest))
   {
      $identity = $tmp[0];
      $euser=urlencode($identity);
      $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\">$tmp[1]</a>";
   }
   $users = "<font size=1>".implode(", ",$tmpusers)."</font>";
   if (sizeof($tmpusers) > 0) $showmods = '<br>'.$showmods.'<br>('.$txt['userbrowse1'].$users.')<br>';
</add before>

<edit file>
Sources\Display.php
</edit file>

<search for>
   $curthreadurl = ($curposlinks ? '<a href="' . $cgi . ';action=display;threadid=' . $viewnum . '" class="nav">' . $msubthread . '</a>' : $msubthread);
</search for>

<add after>

   // User browsing this forum
   $request = mysql_query("UPDATE {$db_prefix}log_online SET board=$currentboard WHERE identity='$username'");
   $tmpusers = array();
   $Vrequest = mysql_query("SELECT identity,realName FROM {$db_prefix}log_online,{$db_prefix}members WHERE (1 AND board='$currentboard' AND identity=memberName) ORDER BY logTime DESC");
   while ($tmp = mysql_fetch_array($Vrequest))
   {
      $identity = $tmp[0];
      $euser=urlencode($identity);
      $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\">$tmp[1]</a>";
   }
   $users = "<font size=1>".implode(", ",$tmpusers)."</font>";
   if (sizeof($tmpusers) > 0) $showmods = $showmods.' ('.$txt['userbrowse2'].$users.')';

</add after>

<edit file>
Sources\Subs.php
</edit file>

<search for>
function WriteLog()
{
   global $REMOTE_ADDR, $username, $db_prefix, $ID_MEMBER;

   $logTime = time();

   if ($ID_MEMBER == -1 && !empty($REMOTE_ADDR) && ip2long($REMOTE_ADDR) != -1)
   {
      $request = mysql_query ("
         DELETE FROM {$db_prefix}log_online
         WHERE logTime < " . ($logTime - 900) . "
            OR identity=IFNULL(INET_ATON('$REMOTE_ADDR'), -1)") or database_error(__FILE__, __LINE__);
      $request = mysql_query ("
         REPLACE INTO {$db_prefix}log_online
            (identity, logTime)
         VALUES (IFNULL(INET_ATON('$REMOTE_ADDR'), -1), $logTime)") or database_error(__FILE__, __LINE__);
   }
</search for>

<replace>
function WriteLog()
{
   global $REMOTE_ADDR, $username, $db_prefix, $ID_MEMBER;

   $logTime = time();

   if ($ID_MEMBER == -1 && !empty($REMOTE_ADDR) && ip2long($REMOTE_ADDR) != -1)
   {
      $request = mysql_query ("
         DELETE FROM {$db_prefix}log_online
         WHERE logTime < " . ($logTime - 900) . "
            OR identity=IFNULL(INET_ATON('$REMOTE_ADDR'), -1)") or database_error(__FILE__, __LINE__);
if (empty($board))
      $request = mysql_query ("
         REPLACE INTO {$db_prefix}log_online
            (identity, logTime)
         VALUES (IFNULL(INET_ATON('$REMOTE_ADDR'), -1), $logTime,$board)") or database_error(__FILE__, __LINE__);
   }
</replace>

I am so sorry to boder you with it but my members really miss it and ask me to bring it back :-\
Thanks in advanced!
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1]Userbrowsing Modification
« Reply #38 on: April 27, 2003, 09:08:34 PM »
Reply with quote

Quote from: CokeCan on April 27, 2003, 08:53:23 PM
Hi,
I tryed to do the changes for 1.5.2 but didn't had luck :'( :'( :'(
It isn't working :( can someone check it ans let me know what's wrong? :-\
Please look after the "Who is online" mod - the new one.
Logged

CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.4.1]Userbrowsing Modification
« Reply #39 on: April 27, 2003, 09:25:09 PM »
Reply with quote

Thanks for you answer. I had instaled Who is online but it don't shows on every board who's online there :-\
Is there a new version that let us do it? :)
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1]Userbrowsing Modification
« Reply #40 on: April 27, 2003, 10:05:42 PM »
Reply with quote

i can update this if its okay with nemey
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.4.1]Userbrowsing Modification
« Reply #41 on: April 27, 2003, 10:16:12 PM »
Reply with quote

@Spaceman-Spiff, thanks! that would be great! :D :D :D

I think that it will be ok with him, just look ;)

Quote from: Nemesis on April 14, 2003, 05:57:28 AM
I haven't had time to re-code this... Maybe I can get spiff to do it for me. I am busy with some major big ecommerce projects right now.

THANKS!!!!
« Last Edit: April 27, 2003, 10:31:54 PM by CokeCan » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1]Userbrowsing Modification
« Reply #42 on: April 27, 2003, 10:52:18 PM »
Reply with quote

ok, i'll do it quickly, then go back doing my blog mod :P
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.4.1]Userbrowsing Modification
« Reply #43 on: April 27, 2003, 11:00:21 PM »
Reply with quote

THANKS!!!!! :D
Logged
Mavericb7
Noobie
*
Posts: 31


I'm a llama!

Re:[Done 1.4.1]Userbrowsing Modification
« Reply #44 on: June 13, 2003, 08:17:12 AM »
Reply with quote

*waits patiently*
Logged
Pages: 1 2 [3] 4 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1]Userbrowsing Modification « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.060 seconds with 20 queries.