The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

is there a recent topics with auto update Script

View previous topic View next topic Go down

Solved is there a recent topics with auto update Script

Post by Michael_vx on 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

Michael_vx
Forumember

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

Back to top Go down

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

Post by _Twisted_Mods_ on 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);
});

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

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

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

blackeye
im not sure if is it working good but i have just seen this wierd thing

and the scroll speed is not good
i think there is something missing
blackeye

Michael_vx
Forumember

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

Back to top Go down

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

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

hmmm
up
sorry
any good news ?

Michael_vx
Forumember

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

Back to top Go down

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

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

should i give up on this or something ?

Michael_vx
Forumember

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

Back to top Go down

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

Post by _Twisted_Mods_ on 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

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

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

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

sorry for delay
somehow the shout box stop working
is this what you asking for

Michael_vx
Forumember

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

Back to top Go down

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

Post by _Twisted_Mods_ on 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

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

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

Post by Michael_vx on 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

Michael_vx
Forumember

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

Back to top Go down

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

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

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

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

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

Post by Michael_vx on 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

Michael_vx
Forumember

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

Back to top Go down

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

Post by _Twisted_Mods_ on 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);
});

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

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

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

Solved
thanks a lot
@_Twisted_Mods_
thank you so much

Michael_vx
Forumember

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

Back to top Go down

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

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

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

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

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

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

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

Michael_vx
Forumember

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

Back to top Go down

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

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

Topic solved and archived


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


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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