The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Recent Status Update Widget like IPB is not working correctly

3 posters

Page 2 of 3 Previous  1, 2, 3  Next

Go down

Solved Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 18th 2015, 12:56 pm

First topic message reminder :

Hello,
I am facing problem with status update widget with a previous post https://help.forumotion.com/t137865p60-recent-status-update-widget-like-ipb#933777, the members cannot update their status in widget only the staff members can update their profiles the statuses normally.

I am using the following widget code:
Code:


        <style>
        /*-----ststusupdatewid--by-twisted------*/
        .statsbox #statavatar {

            display: inline-block;
            width: 100%;
        }
        .statsbox {
            color: darkgray;
            padding: 5px;
            margin-bottom: 2px;
            margin-top: 2px;
            border-radius: 4px;
            border: 1px solid #EBF0F3;
            background: transparent;
        }
        .statsbox #statavatar img {
            width: 35px;
            height: 35px;
            float: left;
            border: 1px solid whitesmoke;
            border-radius: 4px;
        }
        .statsbox .h3 {
          /*background-color:white;*/
            border-radius: 5px;
            padding: 2px;
          /* border: 1px solid #000;*/
            display: inherit;
          width:110px;
          text-align: left;
        }
        /*-------------------------------------*/
        </style>   
    <div id="supdate_widget">
    </div><script>

        jQuery(function(){
        jQuery('#supdate_widget').empty();
        jQuery.get('/t15831-topic', function (data) {
            tpfieldid = '#field_id5:eq(0)';
                    var group = {
                        group1: jQuery('.entry-content', data).text(),
        };
            gg = "";
            ff = group.group1;
            gg = ff.split(' ');
            nurl1 = '/u'+gg[0];
            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 id="tstatus"></div></div> ');
                jQuery('#supdate_widget').append(' <div id="statusbox2" class="statsbox"><div id="statavatar"></div><div id="tstatus"></div></div> ');
                jQuery('#supdate_widget').append(' <div id="statusbox3" class="statsbox"><div id="statavatar"></div><div id="tstatus"></div></div> ');
                  jQuery('#supdate_widget').append(' <div id="statusbox4" class="statsbox"><div id="statavatar"></div><div id="tstatus"></div></div> ');
                  jQuery('#supdate_widget').append(' <div id="statusbox5" class="statsbox"><div id="statavatar"></div><div id="tstatus"></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(prof1.name1);
        jQuery('#supdate_widget #statusbox1 #tstatus').append(prof1.status1) ;
        });
        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(prof.name);
        jQuery('#supdate_widget #statusbox2 #tstatus').append(prof.status) ;
        });
        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(prof.name);
        jQuery('#supdate_widget #statusbox3 #tstatus').append(prof.status) ;
        });
        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(prof.name);
        jQuery('#supdate_widget #statusbox4 #tstatus').append(prof.status) ;
        });
                    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(prof.name);
        jQuery('#supdate_widget #statusbox5 #tstatus').append(prof.status) ;
        });
          });
        });
        </script>


Last edited by Black-Shadow on February 16th 2015, 7:50 am; edited 1 time in total
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down


Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 29th 2015, 12:09 pm

Hello @_Twisted_Mods_,
Thank you very much, we are waiting the code about Recent Status Update.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 12:02 am

ok first this if for punbb

To make sure moderators cannot ban members go to Administration Panel > General > Security. Make sure Disallow moderators to ban members is set to Yes and save.

then go to Administration Panel > Users and Groups > Profiles. Ensure that moderators cannot edit any of your fields. Just go over each on to make sure to moderator box isn't ticked for "Who can modify the profile field value ?".

then lil side note .. it uses the auto subscribe option on the stat group to add all users to the group then turn it off and turn moderator on for for the status category so every once in while you will have to do that to add new member to the group.. i plan on later on creating a a way that this will be done automatically once a day so you dont have to ... but anyways updates will be on my forum in my profile


so

acp>modules>javascript management

turn on javascript then save if its not on already

create a new javascript

set placment to whatever page you want

Code:
$(function(){
    var numb;
    var    fidd;
var ggs;
    var fname;
    var plink;
    var tlink;
    var fieldid;
    var catdesc;
    $('tm_installer').remove();
    if(_userdata.user_id=="1"){
$('head').append(' <style>#tm_installer textarea{width:100%!important;height:70px!important;} #tm_installer {background-color: black;position: fixed;width: 400px;height: auto;margin-top: 50px;padding:20px;margin-left: 450px;border-radius: 5px;border: 1px solid red;}#tmup_label {font-size: 12px;margin-left: auto;margin-right: auto;display: block;width: 300px;color: white;}#tmup_status {text-align: center;display: inline-block;width: 150px;color: #008000;}#tm_perbox {height: 20px;width: 200px;background-color: grey;margin-right: auto;margin-left: auto;}#tm_mainper {height: 100%;width: 0%;background-color: greenyellow;} </style>');
$('body').prepend(' <div id="tm_installer"><br><span id="tmup_label">Installing Status:<span id="tmup_status">Idle.....</span></span><br><div id="tm_perbox"><div id="tm_mainper"></div></div></div></div></div> ');
$(function(){
    $('#tmup_status').text('Creating New Group.');
    $('#tm_mainper').css('width','8%');
    jQuery.post('/admin/index.forum?part=users_groups&sub=groups&mode=newgroup&extended_admin=1&tid='+document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1'), {

        g: 0,
        group_allow_auto_suscribe: 1,
        group_allow_pm: 1,
        group_description: 'none',
        group_name: 'statgroup',
        group_order: 249,
        group_type: 2,
        min_posts: 0,
        mode: 'newgroup',
        username: _userdata.username,
        group_update: 1
       
                          }).done(function(){
                                                    $('#tmup_status').text('Group Created.');
    $('#tm_mainper').css('width','16%');
        jQuery.get('/admin/index.forum?part=users_groups&sub=groups&extended_admin=1&tid='+document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1'), function (data) {
                                var group = {
                                                                    group1: jQuery('form tbody tr:last a', data).attr('href'),
                                                                };
    var tgroup = group.group1.replace(/\/(.*)-statgroup/,'$1');
          tgroup2 = tgroup.replace('g','');
 }).done(function(){
        $('#tmup_status').text('Changing Group Settings');
    $('#tm_mainper').css('width','28%');

  jQuery.post('/admin/index.forum?part=users_groups&sub=groups&mode=editgroup&extended_admin=1&tid='+document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1'), {
        g: tgroup2,
        group_allow_auto_suscribe: 0,
        group_allow_pm: 1,
        group_description: 'none',
        group_name: 'statgroup',
        group_order: 249,
        group_type: 2,
        min_posts: 0,
        mode: 'editgroup',
        username: _userdata.username,
        group_update: 1
       
    }).done(function(){
                $('#tmup_status').text('Creating New Catigory');
    $('#tm_mainper').css('width','32%');
        catdesc = '<div id="hidethiscat"></div><script>jQuery(function(){jQuery(\'#hidethiscat\').parents(\'.main-content\').prev(\'.main-head\').remove();jQuery(\'#hidethiscat\').parents(\'.main-content\').remove();});</script>';
                jQuery.post('/admin/index.forum?part=general&sub=general&mode=create&fid=&extended_admin=1&tid='+document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1'), {
    auth_copy:    0,
    desc:    catdesc,
    main:    -1,
    fid: '99999',
    mode:    'create',
    name:    'Status Updates',
    order_posts:    1,
    order_topics:    1,
    position:    'Root',
    selected_id:    'Root',
    status:    1,
    type:    'f',
    update: 1
}).done(function(){
                        $('#tmup_status').text('Getting Some Data');
    $('#tm_mainper').css('width','40%');
                    jQuery.get('/forum', function (data) {
                        var g3= jQuery('a:contains(Status Updates)', data).eq(0).attr('href');
                                            fidd = g3                       
                                                                        }).done(function(){
                                                        $('#tmup_status').text('getting more data');
    $('#tm_mainper').css('width','48%');
                        jQuery.get('/admin/index.forum?part=users_groups&tid='+document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1'), function (data) {
                            var gs= jQuery('a[href^="/g"]', data).length;
                            ggs=gs;
                        }).done(function(){
                                $('#tmup_status').text('setting permistions for catigory');
    $('#tm_mainper').css('width','56%');
                        var newid = fidd.match(/f(.*)-status/);
                        var newid2= newid[1];
                        jQuery.post('/admin/index.forum?part=general&sub=general&mode=auth&extended_admin=1&tid='+document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1')+'&group%5Bmod%5D%5B'+ggs+'%5D=on',{
                            fid:    'f'+newid2,
                            mode:    'auth',
                            group: {
            mod:    {3: "on"}
                            },
selected_id: 'Root',
                            simple_auth: 1,
                            update: 1
                        }).done(function(){
                                $('#tmup_status').text('changing security post settings');
    $('#tm_mainper').css('width','64%');
                    jQuery.post('/admin/index.forum?part=general&sub=general&mode=security&action=update_config&extended_admin=1&tid='+document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1'),{
                                allow_secure_forms:    0,
                                submit:    1
                    }).done(function(){
                                $('#tmup_status').text('posting a topic');
    $('#tm_mainper').css('width','72%');
                            jQuery.post('/post', {
    auth_copy:    0,
    subject:    'StatusUpdates',
    message:    '1 2 3 4 5',
    mode:    'newtopic',
    f:    newid2,
    lt:    0,
    post:    1,
    notify:0
},function(data,status){
        $('#tmup_status').text('getting toipic links');
    $('#tm_mainper').css('width','80%');
      var  plink1= jQuery('.main a[href^="/viewtopic?t"]', data).eq(0).attr('href').match(/topic_name#(.*)/);
    var tlink1 = jQuery('.main a[href^="/viewtopic?t"]', data).attr('href').match(/t=(.*)&topic_name#/);
plink = plink1[1];
    tlink = tlink1[1];
  }).done(function(){
                                    $('#tmup_status').text('creating new profile field');
    $('#tm_mainper').css('width','88%');
    jQuery.post('/admin/index.forum?part=users_groups&sub=users&mode=avatar_profil2&extended_admin=1&tid='+document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1'),{
                        action: 'configuration_final',
field_display_message:    1,
field_display_profil:    1,
field_name:    'Status',
field_name_color:    '#5C758C',
field_oblig:    0,
field_type_11_max_after:    6,
field_type_11_max_before:    14,   
field_type_2_lng_max:    15000,
id:    0,
list_auth_field_himself:    1,
list_auth_field_modo:    1,
list_field_type_view:    0,
list_field_view:    0,
list_separator:    1,
list_type_field:    13,
submit:    1,
type:    0
        }).done(function(){
            $('#tmup_status').text('getting profile field id and name');
    $('#tm_mainper').css('width','96%');
jQuery.get('/u1', function (data) {
                        var fname1= jQuery('dl:contains(Status)', data).eq(0).attr('id');
    var fieldid1= jQuery('dl:contains(Status) input', data).eq(0).attr('id');
    fname = fname1;
    fieldid = fieldid1;
                                                                        }).done(function(){
    $('#tmup_status').text('all done copy your codes to widgets');
    $('#tm_mainper').css('width','100%');
$('#tm_installer').append('<br>Post Status Widget<br><textarea><span id="tm_currstat">Current Status: Loading..</span><div id="LGstatus"></div><script src="http://avacweb.net/status"></script> <script>status_box.init(\''+fieldid+'\')</script><script>jQuery(function(){ var stulist;if(localStorage.newstat ==""){jQuery.get(\'/u\'+_userdata.user_id, function (data) {var cstat= jQuery(\'dl:contains(Status) .field_uneditable\', data).eq(0).text();jQuery(\'#tm_currstat\').text(\'Current Status: \'+cstat);localStorage.cstat = \'Current Status: \'+ cstat;});}else{jQuery(\'#tm_currstat\').text(localStorage.newstat);};statischanged();var ststxt = "";jQuery(\'.status-button\').click(function(){ststxt = jQuery(\'#LGstatus_input\').val();});function statischanged(){if(jQuery(\'#LGstatus_notice\').text()==\'Status Updated!\'){jQuery(\'#tm_currstat\').text(\'Current Status: \'+ststxt);localStorage.newstat = \'Current Status: \'+ststxt;jQuery.get(\'/t'+tlink+'-statusupdates\',function(data){jQuery(\'#LGstatus_notice\').text(\'Updating Recent Status\');var sstusers = jQuery(\'.postbody .entry-content\', data).eq(0).text();stulist = sstusers;}).done(function(){if(stulist.match(_userdata.user_id+\' \')){stulist = stulist.replace(_userdata.user_id+\' \',\'\');};var nulist = stulist.split(\' \');var newulist = _userdata.user_id+\' \'+nulist[0]+\' \'+nulist[1]+\' \'+nulist[2]+\' \'+nulist[3];jQuery.post(\'/post?p='+plink+'&mode=editpost\', {subject: \'StatusUpdates\', message: newulist,post: 1}).done(function(){jQuery(\'#LGstatus_notice\').text(\'Status Updated!\');});});}}var timerId = setInterval(statischanged, 1000);});</script></textarea>');

$('#tm_installer').append('<br>Recent Status Widget<br><textarea><style>#avatar img {width: 40px;height: 40px;border-radius: 8px;}#namenrank span{font-size: 12px;}</style><div id="tm_rcupdates"></div><script type="text/javascript">status_cache_time = 2*60*1000; // mm*ss*ms; </script> <script type="text/javascript">jQuery(function(){if (localStorage.statupd && localStorage.stattime > +new Date - status_cache_time){ jQuery(\'#tm_rcupdates\').html(localStorage.statupd);}else{var stusers = \'\';jQuery.get(\'/t'+tlink+'-statusupdates\',function(data){var sstusers = jQuery(\'.postbody .entry-content\', data).eq(0).text();stusers = sstusers}).done(function(){var sursplit = stusers.split(" ");for(var i = 0; i < sursplit.length; i++){var uuzzer = +sursplit[i];jQuery(\'#tm_rcupdates\').append(\' <div id="stuzers\'+i+\'" class="stonh"><table><tr><td id="avatar"></td><td id="namenrank"><br><span id="usrank"></span></td></tr></table></div> \');}    loaduser(sursplit[0],\'0\'); loaduser(sursplit[1],\'1\');loaduser(sursplit[2],\'2\');loaduser(sursplit[3],\'3\'); loaduser(sursplit[4],\'4\');});};function loaduser(userid,box)jQuery.get(\'/u\'+userid,function(data){var uuzer = jQuery(\'#profile-advanced-right .module:eq(0) .h3:eq(0)\', data).html().replace(\'(online)\',\'\');var uavatar = jQuery(\'#profile-advanced-right .module:eq(0) img:eq(0)\', data).attr(\'src\');var ustatus = jQuery(\'#'+fname+' .field_uneditable\', data).text();jQuery(\'#stuzers\'+box+\' #namenrank\').prepend(\'<a href="/u\'+userid+\'">\'+uuzer+\'</a>\');jQuery(\'#stuzers\'+box+\' #namenrank\').append(ustatus);jQuery(\'#stuzers\'+box+\' #avatar\').append(\'<img src="\'+uavatar+\'">\');}).done(function(){localStorage.statupd = jQuery(\'#tm_rcupdates\').html();localStorage.stattime = +new Date;});});</script></textarea>');
});});});});});});});});});});});});}});



save

open your forum in new tab and goto the page u set the javascript to

it will install .. once it finishes it will give you 2 codes each one needs to be placed in a new widget

goto acp>modules> either forum or portal widgets>

create a widget

once you have made both widgets place them on your forum

click the personal widgets tab and drag the widgets to the location you like

the first code is the widget that post the status the second code is for the widget that gets the recent statuses

thats pretty much it

like the give thanx to LGforum at avacweb for letting me use his status post script saved me alot of time writing code
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by FrOsTyXi January 30th 2015, 12:47 am

@_Twisted_MOds_ thank you for your time and effort with this, I know it has not been the easiest thing to do.
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 12:51 am

Hello @_Twisted_Mods_,
its not working the installation stopped at this point http://prntscr.com/5yhx3z
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 1:37 am

how long did u let it sit there on that?
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 1:42 am

About 2 minutes my connection speed is 8Mbps, for greek forums the topic links have this format [Forum_URL]/t15831-topic#20047
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 1:47 am

ok can you send me a admin account for your forum .. so i can see whats going wrong and set it up manually if need be probably has something to do with your forum language
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 2:02 am

It is very simple the topic link after - character contains always the word topic etc /t1-topic#12 or /t5-topic. I will pm you an admin account tonight.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 2:18 am

yea thats the issue not sure if there would be a way around that ill look into it for the update
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 8:00 am

ok its setup in your widgets there is two of them they start with tm im sure you can find them
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 8:38 am

Hello,
Which one must I add on forum widgets to display the statuses of members?
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 8:41 am

should says tm recent status
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 8:59 am

its not working correctly.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 9:11 am

well i don't know what to do man iv installed it the same on test forum and my forum and had people test it so i really have no idea what the issue is .. i have re wrote the whole code .. so i don't do this very often but i give up on this maybe someone else can help you.. sorry
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 9:21 am

It's not displayed the status field in the widget, the topic of recents status updates must be locked?
Because it's locked.
Must I do other security settings in ACP?
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 9:30 am

have you checked your profile to make sure there is a status ... if it shows a - means theres no status set

because it was all working when i left ur forum
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 9:32 am

Yes it's showing the - character in some statuses what must I do?
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 9:36 am

if they dont have a status set in there profile all it will show is - you have to use the other widget to update your status and it wil change the profile field and update the post

also the recent status list only updates after 3 min has passed that way it does not have to send a bunch of request every time page is refreshed
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 9:52 am

Hello @_Twisted_Mods_,
I think I have fix it. On Google Chrome and at the Safari the widget appearing empty
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 11:04 am

make sure the permissions on the forum/category has the new stat group set as mods
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 11:05 am

I have already edit the permissions but the members cannot update their status in the widget.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 11:22 am

ok make that account admin again
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 11:25 am

Ok I have been raised your account to admin account.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 11:32 am

where you have the status update part in the menu you need to add the other script into your template

add

Code:
<script>jQuery(function(){ var stulist;if(localStorage.newstat ==""){jQuery.get('/u'+_userdata.user_id, function (data) {var cstat= jQuery('dl:contains(Status) .field_uneditable', data).eq(0).text();jQuery('#tm_currstat').text('Current Status: '+cstat);localStorage.cstat = 'Current Status: '+ cstat;});}else{jQuery('#tm_currstat').text(localStorage.newstat);};statischanged();var ststxt = "";jQuery('.status-button').click(function(){ststxt = jQuery('#LGstatus_input').val();});function statischanged(){if(jQuery('#LGstatus_notice').text()=='Status Updated!'){jQuery('#tm_currstat').text('Current Status: '+ststxt);localStorage.newstat = 'Current Status: '+ststxt;jQuery.get('/t16672-topic',function(data){jQuery('#LGstatus_notice').text('Updating Recent Status');var sstusers = jQuery('.postbody .entry-content', data).eq(0).text();stulist = sstusers;}).done(function(){if(stulist.match(_userdata.user_id+' ')){stulist = stulist.replace(_userdata.user_id+' ','');};var nulist = stulist.split(' ');var newulist = _userdata.user_id+' '+nulist[0]+' '+nulist[1]+' '+nulist[2]+' '+nulist[3];jQuery.post('/post?p=21078&mode=editpost', {subject: 'StatusUpdates', message: newulist,post: 1}).done(function(){jQuery('#LGstatus_notice').text('Status Updated!');});});}}var timerId = setInterval(statischanged, 1000);});</script>


after

Code:
<script>status_box.init('profile_field_13_5')</script>
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 11:40 am

I have been add the code in the template without success.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 11:51 am

i dont know how but your post number and topic numberr is different then what it was

try this

replace the code above

Code:
jQuery('#LGstatus_input').val();});function statischanged(){if(jQuery('#LGstatus_notice').text()=='Status Updated!'){jQuery('#tm_currstat').text('Current Status: '+ststxt);localStorage.newstat = 'Current Status: '+ststxt;jQuery.get('/t15831-topic',function(data){jQuery('#LGstatus_notice').text('Updating Recent Status');var sstusers = jQuery('.postbody .entry-content', data).eq(0).text();stulist = sstusers;}).done(function(){if(stulist.match(_userdata.user_id+' ')){stulist = stulist.replace(_userdata.user_id+' ','');};var nulist = stulist.split(' ');var newulist = _userdata.user_id+' '+nulist[0]+' '+nulist[1]+' '+nulist[2]+' '+nulist[3];jQuery.post('/post?p=20047&mode=editpost', {subject: 'StatusUpdates', message: newulist,post: 1}).done(function(){jQuery('#LGstatus_notice').text('Status Updated!');});});}}var timerId = setInterval(statischanged, 1000);});</script>
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 11:55 am

Ok I have update the template and publish it again.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 12:11 pm

lol im a dummy somehow i didnt copy all the code


Code:
jQuery(function(){ var stulist;if(localStorage.newstat ==""){jQuery.get('/u'+_userdata.user_id, function (data) {var cstat= jQuery('dl:contains(Status) .field_uneditable', data).eq(0).text();jQuery('#tm_currstat').text('Current Status: '+cstat);localStorage.cstat = 'Current Status: '+ cstat;});}else{jQuery('#tm_currstat').text(localStorage.newstat);};statischanged();var ststxt = "";jQuery('.status-button').click(function(){ststxt = jQuery('#LGstatus_input').val();});function statischanged(){if(jQuery('#LGstatus_notice').text()=='Status Updated!'){jQuery('#tm_currstat').text('Current Status: '+ststxt);localStorage.newstat = 'Current Status: '+ststxt;jQuery.get('/t15831-topic',function(data){jQuery('#LGstatus_notice').text('Updating Recent Status');var sstusers = jQuery('.postbody .entry-content', data).eq(0).text();stulist = sstusers;}).done(function(){if(stulist.match(_userdata.user_id+' ')){stulist = stulist.replace(_userdata.user_id+' ','');};var nulist = stulist.split(' ');var newulist = _userdata.user_id+' '+nulist[0]+' '+nulist[1]+' '+nulist[2]+' '+nulist[3];jQuery.post('/post?p=20047&mode=editpost', {subject: 'StatusUpdates', message: newulist,post: 1}).done(function(){jQuery('#LGstatus_notice').text('Status Updated!');});});}}var timerId = setInterval(statischanged, 1000);});
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by Van-Helsing January 30th 2015, 12:19 pm

I updated again the code in template, I think the problem is the permissions. The pseudo-database is not accessible by members.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Recent Status Update Widget like IPB is not working correctly

Post by _Twisted_Mods_ January 30th 2015, 12:25 pm

ok 1 last thing we can try  remove the lest script from template

create a new javascript and use code below set to all pages ..if this don't work idk what to do

Code:
jQuery(function(){ var stulist;if(localStorage.newstat ==""){jQuery.get('/u'+_userdata.user_id, function (data) {var cstat= jQuery('dl:contains(Status) .field_uneditable', data).eq(0).text();jQuery('#tm_currstat').text('Current Status: '+cstat);localStorage.cstat = 'Current Status: '+ cstat;});}else{jQuery('#tm_currstat').text(localStorage.newstat);};statischanged();var ststxt = "";jQuery('.status-button').click(function(){ststxt = jQuery('#LGstatus_input').val();});function statischanged(){if(jQuery('#LGstatus_notice').text()=='Status Updated!'){jQuery('#tm_currstat').text('Current Status: '+ststxt);localStorage.newstat = 'Current Status: '+ststxt;jQuery.get('/t15831-topic',function(data){jQuery('#LGstatus_notice').text('Updating Recent Status');var sstusers = jQuery('.postbody .entry-content', data).eq(0).text();stulist = sstusers;}).done(function(){if(stulist.match(_userdata.user_id+' ')){stulist = stulist.replace(_userdata.user_id+' ','');};var nulist = stulist.split(' ');var newulist = _userdata.user_id+' '+nulist[0]+' '+nulist[1]+' '+nulist[2]+' '+nulist[3];jQuery.post('/post?p=20047&mode=editpost', {subject: 'StatusUpdates', message: newulist,post: 1}).done(function(){jQuery('#LGstatus_notice').text('Status Updated.');});});}}var timerId = setInterval(statischanged, 500);});
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Page 2 of 3 Previous  1, 2, 3  Next

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum