Follow Us:
Tricked Out Mods: Forums

Best Hosting
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RavenNuke 2.50.00 - Block - User Info
 
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> User questions
View previous topic :: View next topic  
Author Message
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 127
Location: Washington, DC

PostPosted: Wed Jun 13, 2012 6:45 pm 
Post subject: RavenNuke 2.50.00 - Block - User Info
Reply with quote

Bobby:

I have assumed that in the User Info Block, under Last Seen shows the last four users who signed out.

Is my assumption correct?

If so, can I choose how many Last Seen users to display?

Thank you.
_________________
Open-source software has been changing lives since 1998.
  

Last edited by Mike63740 on Thu Jun 14, 2012 1:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
spasticdonkey
Super Dev Donkey
Super Dev Donkey


Joined: May 08, 2009
Posts: 76


PostPosted: Wed Jun 13, 2012 7:29 pm 
Post subject:
Reply with quote

There is a setting hard-coded at the top of the block. Note that there is a second set of settings that just applies (and overrides) when in the center position, and you can set a different value for anony/users/admins.

For the most part if memory serves me correctly, it displays the most recent visitors that are not currently online. Unless you disable the online now section, which then I think it just lists most recent users regardless of online status... But I haven't looked to deep at it in awhile Smile
  
Back to top
View user's profile Send private message Visit poster's website
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 127
Location: Washington, DC

PostPosted: Wed Jun 13, 2012 8:24 pm 
Post subject:
Reply with quote

spasticdonkey,
It's done. Smile

blocks/block-User_Info.php

Line 38 /* LAST SEEN MEMBER SECTION */
Line 39 $lastseen_user_view = 0; // LAST SEEN MEMBER SECTION: Who can view? 0=everyone 1=user-only 2=admin-only 3=disable
Line 40 $lastseen_count = 2; // how many last seen members to show to all
Line 41 $lastseen_count_user = 4; // how many last seen members to show to users
Line 42 $lastseen_count_admn = 6; // how many last seen members to show to admins

Thank you.
_________________
Open-source software has been changing lives since 1998.
  
Back to top
View user's profile Send private message
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 127
Location: Washington, DC

PostPosted: Wed Jun 13, 2012 10:58 pm 
Post subject:
Reply with quote

I want to remove the Server Info.

Could I simply delete these lines?

php Code:
Line 502 // SERVER DATE/TIME

Line 503 $content .= '<div class="IBinfosection" id="IBsection9">'.PHP_EOL;
Line 504 $content .= '<div><img src="' . $IBtran . '" class="' . $IBicon . ' IBserver' . $IBadjust . '" alt="' . _INFOBOX_SERVERINFO . '" /><span class="IBtextpad thick">' . _INFOBOX_SERVERINFO . '</span></div>'.PHP_EOL;
Line 505 $content .= '<ul class="rninfobox">'.PHP_EOL;
Line 506 $content .= '<li class="' . $rnIBicon . ' IBserdate" title="' . _SERDT . '">' . date('M d, Y') . '</li>'.PHP_EOL;
Line 507 $content .= '<li class="' . $rnIBicon . ' IBtime" title="' . _SERDT . '">' . date('h:i a T') . '</li>'.PHP_EOL;
Line 508 if ((is_admin($admin)) and (defined('RAVENNUKE_VERSION_FRIENDLY'))) {
Line 509 $content .= '<li class="' . $rnIBicon . ' IBglobe" title="RN ' . RAVENNUKE_VERSION_FRIENDLY . '">RN ' . RAVENNUKE_VERSION_FRIENDLY . '</li>'.PHP_EOL;
Line 510 }
Line 511 $content .= '</ul>'.PHP_EOL;
Line 512 $content .= '</div>'.PHP_EOL;
Line 513 $content .= '</div></div>'.PHP_EOL;

Thanks.
_________________
Open-source software has been changing lives since 1998.
  
Back to top
View user's profile Send private message
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 127
Location: Washington, DC

PostPosted: Wed Jun 13, 2012 11:12 pm 
Post subject:
Reply with quote

The last section I want to remove from the User Info block is:
Anonymous
IP
Register
Login

_________________
Open-source software has been changing lives since 1998.
  
Back to top
View user's profile Send private message
spasticdonkey
Super Dev Donkey
Super Dev Donkey


Joined: May 08, 2009
Posts: 76


PostPosted: Thu Jun 14, 2012 10:54 am 
Post subject:
Reply with quote

There are a ton of settings to disable certain sections of the block and looks like you picked the only 2 sections which can't be disabled by default.

The section of code you posted above has 2 more closing DIV tags than opening tags, so removing that would break the block. You can try removing all except the last line you posted.

For your second request you could find
Code:
} else {

   $content .= '<div class="IBinfosection" id="IBsection3">'.PHP_EOL;
   $content .= '<div><a href="account.html" title="' . _FSIYOURACCOUNT . '" class="IBglobe' . $IBadjust . '"><img src="' . $IBtran . '" class="' . $IBicon . ' IBglobe' . $IBadjust . '" alt="' . $anonymous . '" /><span class="IBtextpad">' . $anonymous . '</span></a></div>'.PHP_EOL;
   $content .= '<ul class="rninfobox">'.PHP_EOL;
   $content .= '<li class="' . $rnIBicon . ' IByourip IBguestip" title="' . _YOURIP . ' ' . $_SERVER['REMOTE_ADDR'] . '"><span class="thick">' . $_SERVER['REMOTE_ADDR'] . '</span></li>'.PHP_EOL;
   $content .= '<li class="' . $rnIBicon . ' IByourposts" title="' . _BREG . '"><a href="account.html?amp;op=new_user">' . _BREG . '</a></li>'.PHP_EOL;
   if (is_active('nukeNAV') and is_active('Search') and $UseSearchPopUp) $content .= '<li class="' . $rnIBicon . ' IBsearch" title="' . _SEARCH . '"><a href="modules.php?name=nukeNAV&amp;op=search" class="colorbox" title="">' . _SEARCH . '</a></li>'.PHP_EOL;
   if ($UsemodalLogin){
      $content .= '<li class="' . $rnIBicon . ' IBlogout" title="' . _LOGIN . '"><a href="modules.php?name=nukeNAV&amp;op=login" class="colorbox">' . _LOGIN . '</a></li>'.PHP_EOL;
   } else {
      $content .= '<li class="' . $rnIBicon . ' IBlogout" title="' . _LOGIN . '"><a href="account.html">' . _LOGIN . '</a></li>'.PHP_EOL;
   }
   if ($display_lost_pass) {
      $adjustment = strlen(html_entity_decode(_PASSWORDLOST));
      if ($adjustment>=$langMaxLength){$getsmall = ' smaller';} else {$getsmall = '';}
      $content .= '<li class="' . $rnIBicon . ' IBonlineguest' . $getsmall . '" title="' . _PASSWORDLOST . '"><a href="account.html?amp;op=pass_lost">' . _PASSWORDLOST . '</a></li>'.PHP_EOL;
   }
   $content .= '</ul>'.PHP_EOL;
   $content .= '</div>'.PHP_EOL; 
}

and change to
Code:
}
  
Back to top
View user's profile Send private message Visit poster's website
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 127
Location: Washington, DC

PostPosted: Thu Jun 14, 2012 1:21 pm 
Post subject:
Reply with quote

spasticdonkey,
All done. Smile

Just What The Doctor Ordered

Thanks again. Woot
_________________
Open-source software has been changing lives since 1998.
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> User questions All times are GMT - 5 Hours
 
 Page 1 of 1
 
 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©