News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Profile Statuses

Started by oOo--STAR--oOo, January 28, 2011, 07:04:59 PM

Previous topic - Next topic

Caltan

Quote from: aljo1985 on October 06, 2011, 12:44:42 AM
Hmmm. Sounds like an al-right idea, it wouldn't be statuses then?

I dunno how that would work?
It would still be a status, it could just be set by someone else if they have the permission/ability to do so.  I run a RPGs on forums, and this would be really helpful for admins/DMs to set character status for the players to comment on.  Both Profile Comments and Ultimate Profile are way, WAY more intense than I need -- this works smoothly and beautifully and just the way I want, with the exception that there's no admin permission setting.

oOo--STAR--oOo

You mean like the facebook kinda thing?

You know it is an interesting idea for people to post on other peoples statuses..
But it would need a whole make over of the mod. maybe.

For instance.. It wouldn't be just statuses if everyone can post on your profile a new status..
I like the idea..

It would look a little like profile comments.
And how facebook operates..

I think it would involve a new name for the mod though..
Well I can't promise anything yet.. But I will look at updating the mod..
Possibly a good idea.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

david090366

There's a mod that already does something like that, make a facebook like wall, here http://custom.simplemachines.org/mods/index.php?mod=2407 The creator quit supporting it sometime around 2.0 RC3 and also posted the paid version in the mod's thread. It installs fine though if you emulate RC3 in the package manager. BTW thanks for the response about ultimate profile.

Caltan

Quote from: david090366 on October 10, 2011, 03:42:35 AM
There's a mod that already does something like that, make a facebook like wall, here http://custom.simplemachines.org/mods/index.php?mod=2407

Thanks for the suggestion, but after installing it and playing around with it that's not really what I'm looking for; Social Network is a giant full-featured suite that also requires a series of separate pages, so it's not really useful for my purposes.

What I like about Profile Statuses is that it's right on the profile screen, doesn't require any separate pages, and is quick, fast, and small.  It's awesome, and everything about it is perfect for what I need except that it only works for that one user on their one profile.  It's not like my RP will die without it or anything, this would just be a nicer way of doing things than making a million PMs or public posts.  :)

agent47

How do I get it to display an avatar before the users nick?

PortaMx is probably the best SMF portal!

evilservo

Is it competible with Ultimate profile and what do i do when it says
Test Failed Error in Installation

Biology Forums

Is there are chance this will become available for 1.x?

ibtkm

Is there any way to send private message to those who have commented on a status after that other people commented on that too?
I mean sth like editing the codes ...

sayl3r

Dears, we installed a mode named "profile statuses" on our web site. We want the system to show one's status instead of that person's signature. what we should change to make this happen? It will be great if you please help us faster! Would you please look for a solution for this following alternatives after solving that problem? 1. The statuses with extra large size, be shown in the normal size. 2. The ones in person's ignore list, could not post any comments for that person's status.
actually we want to replace signature with the last status of every one.
:|

WhiteEagle

Does anyone have the status.txt file? I need it so I can add profile statuses to my site's portal!

TIA!
Nathan P.
I fold for team 52482. Do you Fold@Home?
SMF powered sites: Leet Link LeetSpace.com

Dhayzon

#150
updated please status.txt ::) ::) ::)

sayl3r

is there any way to edit statuses?
and subscribe the statuses?
:|

Kitsuen-sha

Quote from: 9mmtylenol on August 21, 2011, 01:14:39 PM
Ugh I got an error XD

"Table 'ninetyle_fm.smf_members' doesn't exist
File: /home/ninetyle/public_html/forum/Sources/Profile-View.php
Line: 282"

I know the table is there, just don't know why that it won't pick it up. And I checked that line and it's just a curly bracket "{" and nothing more.

I am using a couple of mods that use member id's and my skin is Zone99 by dzinerstudio, hope that helps with solving the problem :)

-> Extract the package.
-> Open modification_2.xml
-> Find
      hxxp:g.id [nonactive]_group, hxxp:g.online [nonactive]_color
      FROM {db_prefix}log_statuses AS c
      LEFT JOIN smf_members AS m ON hxxp:m.id [nonactive]_member = hxxp:c.id [nonactive]_member
      LEFT JOIN smf_membergroups AS g ON hxxp:g.id [nonactive]_group = hxxp:m.id [nonactive]_group
      WHERE hxxp:c.id [nonactive]_member = {int:id_mem}
      ORDER BY post_date DESC
      LIMIT {int:start}, {int:limit}',
-> Replace smf_ to {db_prefix}
-> Save modification_2.xml
-> Repackage all files

Ready for installation :D

Motahhari

if you want to display status instead of signature edit Display.template.php

find show member siganture part and add befor it :




  // Show the member's status
$status_writer=$message['member']['id'];
       $statuses_result=mysql_query("SELECT * FROM `smf_log_statuses` WHERE id_status=( SELECT max(id_status) FROM `smf_log_statuses` WHERE id_member=$status_writer ) ") or die(mysql_error());

while($status = mysql_fetch_array( $statuses_result ))
{ $statuspost=parse_bbc_e($status['post']);
$statusdate=$status['post_date'];
                                                 settype($statusdate, "int");
                                                 
                                                 $currenttime=forum_time();
                                                 settype($currenttime, "int");
                                                 $subtraction=($currenttime-$statusdate);
if ($subtraction<168800){
echo "<div class='signature'>$statuspost</div>";}
                                                }




It shows latest status that is not older than two weeks.

N i g h t m a r e

What code would i use to put this in a PortaMx block to display as "Recent Statuses"?

Joshie

I would love to know the codes for status.txt for copy and paste or update the status.txt file because the link for status.txt file is no longer exists. I would greatly appreciate if anyone would post the code here or at least update the details in the modification page for this plugin with a new link for the status.txt file.

I have just installed this plugin and then to find that the link to status.txt (for portal block) is no longer exists makes me sad. :(

Greatly appreciated!

JerzyLS

It's working on 2.0.11?

Arantor


JerzyLS

At the moment I have no test forum, so I'm questioning.

I can install older modifications.

oOo--STAR--oOo

I am in the process of updating this mod to be more streamline and I will supply the status.txt file


// Define all Javacsript here for like button!
echo '<style type="text/css" media="screen">
#hwall .bbc_img
{
max-width: 150px;
max-height: 150px;
}
</style>
<script type="text/javascript">
function likeS(sesc,s){
$("span#num_likes" + s).html("<img src=\"http://www.uniquez-home.com/Themes/Uniquez/images/loading-small.gif\" alt=\"\" /></span>");
$.ajax({
type: "GET",
url: "/../Sources/Status_Like.php",
data: "sesc="+ sesc +"& s="+ s,
success: function(html){
$("span#num_likes" + s).fadeIn("slow").html("").append(" " + html + " ");
},
error: function(){
alert("Whoops, something went wrong.. Please try again!");
return false;
}
});
}
function likeC(sesc,reply){
$("span#num_likes" + reply).html("<img src=\"http://www.uniquez-home.com/Themes/Uniquez/images/loading-small.gif\" alt=\"\" /></span>");
$.ajax({
type: "GET",
url: "/../Sources/Status_Like-Comments.php",
data: "sesc="+ sesc +"& reply="+ reply,
success: function(html){
$("span#num_likes" + reply).fadeIn("slow").html("").append(" " + html + " ");
},
error: function(){
alert("Whoops, something went wrong.. Please try again!");
return false;
}
});
}
</script>
<div id="hwall">';
// Let's get this ball rolling...

//Set globals
global $settings, $scripturl, $smcFunc, $context, $user_info;

    //Do the Database Query for Statuses
$query = $smcFunc['db_query']('', 'SELECT
c.id_status, c.id_member, c.id_poster, c.reply_count, c.locked, c.post_date, c.post, c.likes,
m.id_member, m.id_group, real_name,
g.id_group, g.online_color
FROM smf_log_statuses AS c
LEFT JOIN smf_members AS m ON m.id_member = c.id_poster
LEFT JOIN smf_membergroups AS g ON g.id_group = m.id_group
WHERE c.id_member = c.id_poster
ORDER BY c.id_status DESC
LIMIT 8',
array(
)
);

$i = 0;

while ($info = $smcFunc['db_fetch_assoc']($query)) {
$statusc = $info['id_status'];

     //Do the Database Query for Comments
$query2 = $smcFunc['db_query']('', 'SELECT
c.id_reply, c.id_member, c.id_status, c.reply_date, c.reply, c.likes,
m.id_member, m.id_group, real_name,
g.id_group, g.online_color
FROM smf_log_status_replies AS c
LEFT JOIN smf_members AS m ON m.id_member = c.id_member
LEFT JOIN smf_membergroups AS g ON g.id_group = m.id_group
WHERE c.id_status = {int:id_stat}
ORDER BY c.id_reply DESC
LIMIT 3',
array(
'id_stat' => $statusc,
)
);

// Member Name
echo '<a href="' . $scripturl . '?action=profile;u=' . $info['id_poster'] . '" style="color:' . $info['online_color'] . ';">' . $info['real_name'] . '</a> <img src="' . $settings['default_theme_url'] . '/PortaMx/TitleIcons/star.png" style="display:inline-block;vertical-align: bottom; alt="" /><br />';
// Post Icon Locked - Unlocked
echo '' . ($info['locked'] > 0 ? '<img src="' . $settings['theme_url'] . '/images/topic/normal_post_locked.gif" style="display:inline-block;vertical-align: bottom; alt="" /> ' : '<img src="' . $settings['theme_url'] . '/images/topic/normal_post.gif" style="display:inline-block;vertical-align: bottom; alt="" /> ') . '';
// The Status its self.
echo parse_bbc($info['post']) . '<br /><br />';
// Status Time
echo timeformat($info['post_date']) . '<hr />';

// Set CSS and Javascript for Slide toggle for the comments section.
echo '
<style type="text/css" media="screen">

#comslid'.$i.' {
display:none; /* initial state */
padding:0px 0 0 0px;
}
#comslid'.$i.' .select {
position:relative;
display:inline;
bottom:0px;
}
</style>
<script type="text/javascript">
    jQuery.fx.off = false; // Global animations switch

$(document).ready(function(){

$(".comslid'.$i.'").click(function(){
$("#comslid'.$i.'").slideToggle("slow");
$(this).toggleClass("active"); return false;
});

});
</script>';

echo '<div align="center">';
// Status Likes
if(!$user_info['is_guest'])
echo '<a href="javascript:likeS(\''.$context['session_id'].'\',\''.$info['id_status'].'\');"><img src="' . $settings['theme_url'] . '/images/buttons/like_wall.png" style="vertical-align:bottom" alt="like"/><span class="smalltext"> Like</span>
</a>
<span id="num_likes' . $info['id_status'] . '" class="smalltext" style="background-color: #FFF; color:#000;"> ' . $info['likes'] . ' </span>     ';
//javascript botton for comments
echo '<a href="javascript:slideToggle(\'comslid'.$i.'\')" class="comslid'.$i.'" title="Expand"><span> Comments(' . $info['reply_count'] . ')</span></a></div><hr />';
//Javascript DIV content.
echo '<div id="comslid'.$i.'">';
// Comments fetch
while ($info2 = $smcFunc['db_fetch_assoc']($query2)) {
// Member Name
echo '<a href="' . $scripturl . '?action=profile;u=' . $info2['id_member'] . '" style="color:' . $info2['online_color'] . ';">' . $info2['real_name'] . '</a> <img src="' . $settings['default_theme_url'] . '/PortaMx/TitleIcons/comment.png" style="display:inline-block;vertical-align: bottom; alt="" /><br />';
// The comment limit of 3.
echo '<div class="smalltext" style="display:inline;">' . parse_bbc($info2['reply']) . '</div><br />';
// Reply Time
echo timeformat($info2['reply_date']) . '<hr />';
// Reply Likes
if(!$user_info['is_guest'])
echo '<div align="center"><a href="javascript:likeC(\''.$context['session_id'].'\',\''.$info2['id_reply'].'\');"><img src="' . $settings['theme_url'] . '/images/buttons/like_comm.png" style="vertical-align:bottom" alt="like"/><span class="smalltext" style="color:white"> Like</span>
</a>
<span id="num_likes' . $info2['id_reply'] . '" class="smalltext" style="background-color: #FFF; color:#000;"> ' . $info2['likes'] . ' </span></div><hr />';
}
$smcFunc['db_free_result']($query2);
// If more than 3 comments show a link to status!
if ($info['reply_count'] > 3)
echo '<a href="' . $scripturl . '?action=profile;area=showstatus;s=' . $info['id_status'] . '"><div align="center"><strong>View All</strong></div></a><hr />';
echo'</div>';
$i++;
}
$smcFunc['db_free_result']($query);
echo '</div>';
?>


This is all going to be cleaned up, as is only a rough for now extracted from my old design.

You can insert this into your portal block and view statuses.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Advertisement: