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.
The forum of the forums
3 posters

    is there a recent topics with auto update Script

    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved is there a recent topics with auto update Script

    Post by Michael_vx January 30th 2015, 7:26 pm

    is there a recent topics with auto update Script because i recently being asked for a recent topics that auto update with out refresh the page
    i dont know if this could be done by java or what
    so if this a good project i hope someone like Ange think of doing a project like that Very Happy
    if only that possible
    and i apologize if im asking in the wrong place
    blackeye


    Last edited by Michael_vx on February 7th 2015, 4:45 pm; edited 1 time in total
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: is there a recent topics with auto update Script

    Post by _Twisted_Mods_ January 31st 2015, 3:26 pm

    current reset time is every 3 mins  
    Code:
    var time = 3*60*1000;
    mins*seconds*miliseconds


    just set the placement to whatever page the latest topic widget is on

    Code:

    $(function(){
       var time = 3*60*1000;
    setInterval(function(){
    $.get(location.href, function (data){
    var b   = $('#comments_scroll_div',data).parents('.module').html();                  
    $('#comments_scroll_div').parents('.module').html(b);
    $('#comments_scroll_div').parent().append('<script type="text/javascript">$(function(){div_marquee(\'comments_scroll_div\', \'comments_scroll_container\', \'up\', \'2\', \'90\', \'200\');});</script>');
    });}, time);
    });
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: is there a recent topics with auto update Script

    Post by Michael_vx January 31st 2015, 11:10 pm

    blackeye
    im not sure if is it working good but i have just seen this wierd thing
    is there a recent topics with auto update Script 11111110
    and the scroll speed is not good
    i think there is something missing
    blackeye
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: is there a recent topics with auto update Script

    Post by Michael_vx February 3rd 2015, 3:17 am

    hmmm
    up
    sorry
    any good news ?
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: is there a recent topics with auto update Script

    Post by Michael_vx February 4th 2015, 7:46 am

    should i give up on this or something ?
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: is there a recent topics with auto update Script

    Post by _Twisted_Mods_ February 7th 2015, 3:20 am

    \'up\', \'2\', \'90\', \'200\'


    direction, how many px it scrolls each time, speed of scroll in miliseconds, height of scroll box

    you will need to adjust height to your widget size thats why its cut off because its the end of the scroll box
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: is there a recent topics with auto update Script

    Post by Michael_vx February 7th 2015, 3:30 am

    sorry for delay
    somehow the shout box stop working
    is this what you asking for
    is there a recent topics with auto update Script Untitl10
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: is there a recent topics with auto update Script

    Post by _Twisted_Mods_ February 7th 2015, 3:35 am

    u asked what numbers in the script was .. the numbers in the script have to be same as those # else it wont be the same when it refreshes
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: is there a recent topics with auto update Script

    Post by Michael_vx February 7th 2015, 3:40 am

    that is kinda weird
    phpbb3 pun looks fine
    phpbb2 and invision
    no
    and the numbers looks same
    9 / 90 / 200
    am I right Mr. Green
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: is there a recent topics with auto update Script

    Post by _Twisted_Mods_ February 7th 2015, 3:47 am

    the script might be different on other versions this is for phpbb3
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: is there a recent topics with auto update Script

    Post by Michael_vx February 7th 2015, 3:50 am

    _Twisted_Mods_ wrote:the script might be different on other versions this is for phpbb3
    Shocked
    no wonder i got bugs on phpbb2
    i wish i can do it my self so i wont waste time from any one
    would mind make one for phpbb2
    most users are on phpbb2 for the H recent topics widget
    i think im gonna translate that to English soon Very Happy
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: is there a recent topics with auto update Script

    Post by _Twisted_Mods_ February 7th 2015, 5:05 am

    try this for phpbb2

    Code:
    $(function(){
     Â  var time = 3*60*1000;
    setInterval(function(){
    $.get(location.href, function (data){
    var b   = $('#comments_scroll_div',data).html();
    $('#comments_scroll_container').html(b);
    })}, time);
    });
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: is there a recent topics with auto update Script

    Post by Michael_vx February 7th 2015, 5:35 am

    Solved
    thanks a lot
    @_Twisted_Mods_
    thank you so much
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: is there a recent topics with auto update Script

    Post by _Twisted_Mods_ February 7th 2015, 5:39 am

    your welcome and that last code should work 4 all versions i haven't tested so not 100%
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: is there a recent topics with auto update Script

    Post by Michael_vx February 7th 2015, 4:46 pm

    okay i understand
    thanks again for the info
    i have marked the topic because its solved
    ^^
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: is there a recent topics with auto update Script

    Post by SLGray February 7th 2015, 7:43 pm

    Topic solved and archived



    is there a recent topics with auto update Script Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is September 23rd 2024, 12:32 am