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.

is there a recent topics with auto update Script

3 posters

Go down

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
Michael_vx
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
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 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

Back to top Go down

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

Back to top Go down

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 ?
Michael_vx
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
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 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
Michael_vx
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
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 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
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_ February 7th 2015, 3:47 am

the script might be different on other versions this is for phpbb3
_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: 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
Michael_vx
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
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 February 7th 2015, 5:35 am

Solved
thanks a lot
@_Twisted_Mods_
thank you so much
Michael_vx
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
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 February 7th 2015, 4:46 pm

okay i understand
thanks again for the info
i have marked the topic because its solved
^^
Michael_vx
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 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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51408
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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