Profile friend list

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: Profile friend list

Post by superj707 »

the memberlist_view.html I think ws designed in IE 7 because it looks perfect in IE 7 but it doesn't look right in FF .. THIS IS A MOD TO djrikyx's MOD of IANS MOD..

Essentially this is a mod of a mod. (D'oh)


here are some small fixes to make it look GREAT

memberlist.php

find:

Code: Select all

if($fri_age == 0-0-0)
				{
replace with

Code: Select all

if (!ereg('^[[:digit:]]{2}$',$fri_age)) {
find:

Code: Select all

'USERNAME'   => $row_av['username'],
replace with

Code: Select all

'USERNAME'   => str_replace(' ','',$row_av['username']),



use this as your memberlist_view.html entry

Code: Select all

<div class="panel bg1">
	<div class="inner"><span class="corners-top"><span></span></span>

		<h3>{L_FRIEND_LIST}</h3>
		<!-- BEGIN fri -->
<div title="{fri.USERNAME} | {fri.FRI_GENDER} | {fri.FRI_AGE} {fri.FRI_YEARS}" onmouseover="this.style.cursor='pointer';" onclick="location.href='{fri.AV_LINK}';"  class="friend-box">
<div class="friend-bg" style="background:url({T_THEME_PATH}/images/friend_{fri.FRI_GENDER}.png) no-repeat;">
<div class="friend-avatar">{fri.FRI_AV_THUMB}</div>

<div class="friend-username"><b style="color:#000;">{fri.USERNAME}</b></div>
<div class="friend-age"><font color="#000">{fri.FRI_AGE}</font></div>
<div class="friend-clearer"></div>
</div>

</div>
<!-- END fri -->
<div class="friend-clearer"></div>
<ul class="linklist">
    <li class="rightside pagination">{TOTAL_FRIENDS} &bull; <!-- IF FRINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER_F}</a> &bull; <span>{FRINATION}</span><!-- ELSE -->{PAGE_NUMBER_F}<!-- ENDIF --></li>
</ul>

<span class="corners-bottom"><span></span></span></div>
</div>
that does it. Firefox and all other modern browser approved.
User avatar
djrikyx
Registered User
Posts: 17
Joined: Tue Dec 16, 2008 8:49 pm

Re: Profile friend list

Post by djrikyx »

I have tryed in FFx IE7 Crome and work perfectly.. I dont know why you got this 'error', but thx anyway for this fix! :)

Ill add this fix to the download files.

(there is a thread open of my costumisation, please post there this fix :)
Sorry for my bad english, I'm Italian
User avatar
ekawaii
Registered User
Posts: 14
Joined: Sat Jul 04, 2009 2:32 pm
Location: Canada

Re: Profile friend list

Post by ekawaii »

I know that this isn't a mod feature, but is there a way to show if your friend is currently online or offline? I've tried a few methods but I can't get their online status to show on my profile.
Bogey
Registered User
Posts: 419
Joined: Wed Sep 19, 2007 2:31 am

Re: Profile friend list

Post by Bogey »

ekawaii wrote:I know that this isn't a mod feature, but is there a way to show if your friend is currently online or offline? I've tried a few methods but I can't get their online status to show on my profile.
It took me a day to figure this out... I will share it here:

Code: Select all

<?php
$user_id = "The ID of the user you want to check if s/he is online";
// Checking if the user is online
if ($config['load_onlinetrack'])
{
    $session_sql = 'SELECT MAX(session_time) AS session_time, MIN(session_viewonline) AS session_viewonline
        FROM ' . SESSIONS_TABLE . "
        WHERE session_user_id = $user_id";
    $session_result = $db->sql_query($session_sql);
    $session_row = $db->sql_fetchrow($session_result);

    $member['session_time'] = (isset($session_row['session_time'])) ? $session_row['session_time'] : 0;
    $member['session_viewonline'] = (isset($session_row['session_viewonline'])) ? $session_row['session_viewonline'] :    0;

    $update_time = $config['load_online_time'] * 60;
    $online = (time() - $update_time < $member['session_time'] && ((isset($member['session_viewonline']) && $member['session_viewonline']) || $auth->acl_get('u_viewonline'))) ? true : false;
}
else
{
    $online = false;
}

// And wherever you define the variables for those users:
'USER_IS_ONLINE'        => ($config['load_onlinetrack'] && $online) ? true : false,
?>
Hope you can figure it out...
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: Profile friend list

Post by woipi90 »

time for a new update of the mod?!


grz woipi
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: Profile friend list

Post by platinum_2007 »

I plan to have an update with more features such as the online indicator, separate friends page and some more.
CemetaryMan
Registered User
Posts: 59
Joined: Sat Jun 21, 2008 2:29 pm
Contact:

Re: Profile friend list

Post by CemetaryMan »

platinum_2007 wrote:I plan to have an update with more features such as the online indicator, separate friends page and some more.

Cool, looking forward to it. :twisted:
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: Profile friend list

Post by platinum_2007 »

SUBSILVER2 INSTRUCTIONS

in style/subsilver2/template/memberlist_view.html

FIND

Code: Select all

	<!-- IF SIGNATURE -->
BEFORE-ADD

Code: Select all

 <tr>
             <td class="cat" colspan="2" align="center"><h4>{L_FRIEND_LIST}</h4></td>
         </tr>
          <tr>
             <td class="row1" colspan="2"><div class="postbody" style="padding: 10px;">
             	<!-- BEGIN fri -->
                    <a class="thumbnail" href="{fri.AV_LINK}" style="text-decoration:none">
                        <span>
                    <!-- IF fri.USER_COLOR --><b style="color:#{fri.USER_COLOR}"> <!-- ELSE --><b style="color:#000;"><!-- ENDIF -->{fri.USERNAME}</b><br /><!-- IF fri.FRI_AV -->{fri.FRI_AV}</span>{fri.FRI_AV_THUMB} <!-- ELSE --> <img src="images/no_avatar.gif" alt="noavatar" /></span><img src="images/no_avatar.gif" alt="noavatar"  width="{fri.WIDTH}" /><!-- ENDIF -->
                    </a>
                    <!-- END fri -->
                </div>
                <ul class="linklist">
   {TOTAL_FRIENDS} &bull; <!-- IF FRINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER_F}</a> &bull; <span>{FRINATION}</span><!-- ELSE -->{PAGE_NUMBER_F}<!-- ENDIF -->

                </td>
              </tr>
in styles/subsilver2/theme/stylesheet.caa

FIND

Code: Select all

.username-coloured {
	font-weight: bold;
}
AFTER-ADD

Code: Select all

/**
 * @package styles
 * @version $Id: memberlist_avatar.css 45 2007-09-10 04:49:51Z Highway of Life $
 * @copyright (c) 2007 David Lewis (Highway of Life) - http://startrekguide.com
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 ---------------------------------------- */
.thumbnail {
	z-index: 0;
	position:relative;
}

a.thumbnail:hover {
	background-color: transparent;
	z-index: 50;
}

.thumbnail span {
	position: absolute;
	background: #e0e5e9 url("./images/cellpic1.gif") repeat-x;
	padding: 4px;
	border: 1px solid #a9b8c2;
	left: 0px;
	display: none;
	color: #FFF;
	text-decoration: none;
}

.thumbnail span img {
	border-width: 0;
	padding: 2px;
}

a.thumbnail:hover span {
	position:absolute;
	display:block;
	top: 20px;
	left: 7px;
}
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: Profile friend list

Post by platinum_2007 »

I have the online indicator working for the next release.
User avatar
ekawaii
Registered User
Posts: 14
Joined: Sat Jul 04, 2009 2:32 pm
Location: Canada

Re: Profile friend list

Post by ekawaii »

Bogey wrote:
ekawaii wrote:I know that this isn't a mod feature, but is there a way to show if your friend is currently online or offline? I've tried a few methods but I can't get their online status to show on my profile.
It took me a day to figure this out... I will share it here:

Code: Select all

<?php
$user_id = "The ID of the user you want to check if s/he is online";
// Checking if the user is online
if ($config['load_onlinetrack'])
{
    $session_sql = 'SELECT MAX(session_time) AS session_time, MIN(session_viewonline) AS session_viewonline
        FROM ' . SESSIONS_TABLE . "
        WHERE session_user_id = $user_id";
    $session_result = $db->sql_query($session_sql);
    $session_row = $db->sql_fetchrow($session_result);

    $member['session_time'] = (isset($session_row['session_time'])) ? $session_row['session_time'] : 0;
    $member['session_viewonline'] = (isset($session_row['session_viewonline'])) ? $session_row['session_viewonline'] :    0;

    $update_time = $config['load_online_time'] * 60;
    $online = (time() - $update_time < $member['session_time'] && ((isset($member['session_viewonline']) && $member['session_viewonline']) || $auth->acl_get('u_viewonline'))) ? true : false;
}
else
{
    $online = false;
}

// And wherever you define the variables for those users:
'USER_IS_ONLINE'        => ($config['load_onlinetrack'] && $online) ? true : false,
?>
Hope you can figure it out...
I'm not really sure where to apply the php code you provided, if you could explain a bit better that would be very helpful ^_^ I'd really like to use this feature~
User avatar
ekawaii
Registered User
Posts: 14
Joined: Sat Jul 04, 2009 2:32 pm
Location: Canada

Re: Profile friend list

Post by ekawaii »

platinum_2007 wrote:I have the online indicator working for the next release.
Didn't see this until I posted a reply to the other person. That's great ^_^! Any estimated time of when it will be released? Just curious thats all. Keep up the great work~
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: Profile friend list

Post by platinum_2007 »

No ETA but probably later today i should have something for you.

this will also be included

http://itmods.com/friend_list.php?u=2
superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: Profile friend list

Post by superj707 »

that would be a view all friend list ?
NICE

Can't wait to see what all this is and how it works . Great work as always ian.
User avatar
ekawaii
Registered User
Posts: 14
Joined: Sat Jul 04, 2009 2:32 pm
Location: Canada

Re: Profile friend list

Post by ekawaii »

platinum_2007 wrote:No ETA but probably later today i should have something for you.

this will also be included

http://itmods.com/friend_list.php?u=2
O_O <333 I can't wait, thank you so much for further developing this mod! These will be amazing additional features~
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: Profile friend list

Post by platinum_2007 »

superj707 wrote:that would be a view all friend list ?
NICE

Can't wait to see what all this is and how it works . Great work as always ian.
Yes its a view all friends list that can be sorted by username first character for people with tons of friends.
Locked

Return to “[3.0.x] MOD Database Releases”