by FrOsTyXi January 6th 2015, 1:21 am
@JScript here is all the code from this new system issues are once you make a update you can not make any more and the posting more than once fron each member so if they want to update status again the old update will be replaced also maybe a moderator function so if a member updates with rude or bad language it can be deleted without the editing of the topic
Code for the template
- Code:
<script src="http://avacweb.net/status"></script>
<div id="LGstatus">
</div><script>status_box.init('profile_field_13_2')</script> <em> Maximum amount of character is <strong>53</strong>. </em>
<div>
<em><strong><span style="color: rgb(255, 0, 0);">Note:</span></strong> Promoting your forum address in status is against rules.</em>
</div><script>
jQuery(function(){
jQuery('.status-button').click(function(){
jQuery.get('/t2011-status-updates', function (data) {
var groupz = {
group1z: jQuery('.entry-content', data).text(),
};
ff = groupz.group1z;
gg = ff.split(' ');
mm="";
for(var i = 0; i < 4; i++){
if(gg[i].match(_userdata.user_id)) return;
var hh = gg[i];
mm = mm + " "+ hh;
}
jjii = _userdata.user_id+mm;
jjii2 = jjii.replace('+-----','');
jQuery.post('/post?p=4986&mode=editpost', {
subject: 'nothing really',
message: jjii2,
post: 1
});
})
});
});</script>
Code for the recent status update widget
- Code:
<style>
/*-----ststusupdatewid--by-twisted------*/
.statsbox #statavatar {
width: 100%;
border: 1px solid #DBE4EF;
border-radius: 4px;
}
#tstatus {
font-size: 12px;
position: relative;
color: rgb(150, 150, 150);
}
.statsbox {
margin-bottom: 2px;
margin-top: 2px;
}
#statusbox5 {
border: none;
}
#tstatus {
margin-top: 10px;
}
.statsbox #statavatar img {
width: 35px;
float: left;
height: 35px;
border-radius: 5px;
margin-right: 4px;
}
.statsbox #statavatar img:hover {
-webkit-transform:rotate(360deg);
-moz-transform:rotate(360deg);
-o-transform:rotate(360deg);
box-shadow: 0 0 9px red;
border: 1px solid red;
}
.statsbox #statavatar img {
height: 35px;
-webkit-transition-duration: 0.8s;
-moz-transition-duration: 0.8s;
-o-transition-duration: 0.8s;
transition-duration: 0.8s;
-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
-o-transition-property: -o-transform;
transition-property: transform;
overflow:hidden;
box-shadow: 0 0 3px rgba(50,50,50,0.75);
}
/*-------------------------------------*/
</style>
<div id="supdate_widget">
</div><script>
jQuery(function(){
jQuery('#supdate_widget').empty();
jQuery.get('t2011-status-updates', function (data) {
tpfieldid = '#field_id2 .field_uneditable';
var group = {
group1: jQuery('.entry-content', data).text(),
};
gg = "";
ff = group.group1;
gg = ff.split(' ');
nurl1 = '/u'+gg[0].replace('+-----','');
nurl2 = '/u'+gg[1];
nurl3 = '/u'+gg[2];
nurl4 = '/u'+gg[3];
nurl5 = '/u'+gg[4];
jQuery('#supdate_widget').append(' <div id="statusbox1" class="statsbox"><div id="statavatar"></div></div> ');
jQuery('#supdate_widget').append(' <div id="statusbox2" class="statsbox"><div id="statavatar"></div></div> ');
jQuery('#supdate_widget').append(' <div id="statusbox3" class="statsbox"><div id="statavatar"></div></div> ');
jQuery('#supdate_widget').append(' <div id="statusbox4" class="statsbox"><div id="statavatar"></div></div> ');
jQuery('#supdate_widget').append(' <div id="statusbox5" class="statsbox"><div id="statavatar"></div></div> ');
jQuery.get(nurl1, function (data) {
var prof1 = {
name1: jQuery('#profile-advanced-right .h3:eq(0)', data).parent().html().replace(/\(online\)/g,''),
avatar1: jQuery('#profile-advanced-right img:eq(0)', data).attr('src'),
status1: jQuery(tpfieldid, data).text(),
};
jQuery('#supdate_widget #statusbox1 #statavatar').prepend('<img src="'+prof1.avatar1+'">');
jQuery('#supdate_widget #statusbox1 #statavatar').append('<a href="'+ nurl1+'">'+prof1.name1+'</a>');
jQuery('#supdate_widget #statusbox1 #statavatar').append('<div id="tstatus">'+prof1.status1+'</div>') ;
});
jQuery.get(nurl2, function (data) {
var prof = {
name: jQuery('#profile-advanced-right .h3:eq(0)', data).parent().html().replace(/\(online\)/g,''),
avatar: jQuery('#profile-advanced-right img:eq(0)', data).attr('src'),
status: jQuery(tpfieldid, data).text(),
};
jQuery('#supdate_widget #statusbox2 #statavatar').prepend('<img src="'+prof.avatar+'">');
jQuery('#supdate_widget #statusbox2 #statavatar').append('<a href="'+ nurl2+'">'+prof.name+'</a>');
jQuery('#supdate_widget #statusbox2 #statavatar').append('<div id="tstatus">'+prof.status+'</div>')
});
jQuery.get(nurl3, function (data) {
var prof = {
name: jQuery('#profile-advanced-right .h3:eq(0)', data).parent().html().replace(/\(online\)/g,''),
avatar: jQuery('#profile-advanced-right img:eq(0)', data).attr('src'),
status: jQuery(tpfieldid, data).text(),
}
jQuery('#supdate_widget #statusbox3 #statavatar').prepend('<img src="'+prof.avatar+'">');
jQuery('#supdate_widget #statusbox3 #statavatar').append('<a href="'+ nurl3+'">'+prof.name+'</a>');
jQuery('#supdate_widget #statusbox3 #statavatar').append('<div id="tstatus">'+prof.status+'</div>')
});
jQuery.get(nurl4, function (data) {
var prof = {
name: jQuery('#profile-advanced-right .h3:eq(0)', data).parent().html().replace(/\(online\)/g,''),
avatar: jQuery('#profile-advanced-right img:eq(0)', data).attr('src'),
status: jQuery(tpfieldid, data).text(),
}
jQuery('#supdate_widget #statusbox4 #statavatar').prepend('<img src="'+prof.avatar+'">');
jQuery('#supdate_widget #statusbox4 #statavatar').append('<a href="'+ nurl4+'">'+prof.name+'</a>');
jQuery('#supdate_widget #statusbox4 #statavatar').append('<div id="tstatus">'+prof.status+'</div>')
});
jQuery.get(nurl5, function (data) {
var prof = {
name: jQuery('#profile-advanced-right .h3:eq(0)', data).parent().html().replace(/\(online\)/g,''),
avatar: jQuery('#profile-advanced-right img:eq(0)', data).attr('src'),
status: jQuery(tpfieldid, data).text(),
}
jQuery('#supdate_widget #statusbox5 #statavatar').prepend('<img src="'+prof.avatar+'">');
jQuery('#supdate_widget #statusbox5 #statavatar').append('<a href="'+ nurl5+'">'+prof.name+'</a>');
jQuery('#supdate_widget #statusbox5 #statavatar').append('<div id="tstatus">'+prof.status+'</div>')
});
});
});
</script>
Really hope you can make sense of this if I need to give you a test account that will be provided thank you for your time.
Regards
FrOsTyXi