Forum Activity for @paul

paul
@paul
03/05/14 01:32:03AM
4,335 posts

.js file can't take more than 1 refresh call?


Design and Skin Customization

I have a JS function to periodically update a div. It gets called once in the footer template and then runs all the time the page is open. It uses an ajax call to get the data, and it only updates the div if the returned data is different from the previous returned data.
function jrSocialModuleAlerts(timeout) {

    var _html = new Array('','');
    var url = core_system_url + '/socialmodule/alerts/__ajax=1';
    timeout = timeout * 1000;

    setInterval(function() {
        $.ajax({
            type:'POST',
            url: url,
            data:{},
            dataType:'json',
            success:function (data) {
                if (data.OK == 1) {
                    // Update profile alerts
                    if (typeof data.alerts !== "undefined") {
                        _html[0] = data.alerts;
                        if (_html[0] != _html[1]) {
                            $("#alerts").fadeOut("slow").html("");
                            var interval = setInterval(function() {}, 500);
                            $("#alerts").fadeIn("slow").html(data.alerts);
                            _html[1] = data.alerts;
                        }
                    }
                    else {
                        $("#alerts").fadeOut("slow").html("None found");
                    }
                }
                else {
                    $("#alerts").html(data.error);
                }
            },
            error:function () {
                $("#alerts").html('an error was encountered - please try again');
            }

        });
    }, timeout);
}
hth
Pa
paul
@paul
03/04/14 11:56:24AM
4,335 posts

Randomize Ranking Call, No Desc or Asc


Design and Skin Customization

Try order_by="_profile_id random" in your jrCore_list call.
hth
Pa
paul
@paul
03/03/14 12:12:42AM
4,335 posts

Softpedia's two-year anniversary "Script of the day: Jamroom"


Off Topic

Cool. All good publicity for the world'd best CMS. Did they find and write about us, I wonder, or did you or someone else send them copy?
paul
@paul
03/02/14 06:12:00AM
4,335 posts

jrTags - Tagging Profiles


Design and Skin Customization

I think you must have a custom template in your cloned Nova skin for tags?
Show us that.
paul
@paul
03/02/14 05:24:22AM
4,335 posts

paCombiRank upgrade


Using Jamroom

A bug has been highlighted in the JR4 paCombiRank module that was stopping the ranking of comments.
This has been fixed and the module up revved to 1.0.2
Get it from http://archive.jamroom.net/Marketplace_Modules
Paul

updated by @paul: 12/29/14 09:14:37AM
paul
@paul
03/02/14 04:15:38AM
4,335 posts

jrTags - Tagging Profiles


Design and Skin Customization

Sorry - I thought that second code block was part of a template.
I'll take a look for you later - In the middle of something else atm.
paul
@paul
03/02/14 03:56:58AM
4,335 posts

jrTags - Tagging Profiles


Design and Skin Customization

Er - Just type it in?
The profile a tag is empty.
paul
@paul
03/01/14 04:19:28PM
4,335 posts

Scheduled Integrity check of YouTube, SoundCloud, Vimeo


Suggestions

Interesting idea. I'll look into it.
Thanks
paul
@paul
02/28/14 01:44:17PM
4,335 posts

jrAction ranking help please.


Design and Skin Customization

Yeah - I've been working with activity streams recently and the different types confused the hell out of me at first ;-)
paul
@paul
02/28/14 01:39:06PM
4,335 posts

jrAction ranking help please.


Design and Skin Customization

Take a look at the actions item_list.tpl
There are three types of action and their 'text' is stored differently.
Its likely that the majority of your actions are in the {$item.action_data} variable.
hth
Pa
updated by @paul: 02/28/14 01:39:19PM
  409