EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Site Help & Suggestions (https://www.eq2interface.com/forums/forumdisplay.php?f=12)
-   -   Latest Posts (https://www.eq2interface.com/forums/showthread.php?t=1964)

tonyis3l33t 03-19-2005 02:06 AM

Latest Posts
 
I like the little tutorial on how to put the latest interfaces on a different website.

What i would like is the ability to put the latest POSTS on a different site. AND make it so i can check the latest post in an individual forum.

So on eq2map we could have a section in the forum page that shows latest posts in the eq2map forum.

Dolby 03-19-2005 05:54 AM

I can do this for eq2map however I dont know why any one would want to put a eq2i latest posts block on their own webpage. *shrug*

Dolby 03-19-2005 06:24 AM

This example will display the 15 latest posts.

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">
<head> 
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> 
<title>External EQ2Interface Latest Posts</title>
</head>
<body>
<script type="text/javascript" src="http://www.eq2interface.com/forums/external.php?type=js"></script>

<script type="text/javascript">
<!--
        for (var i = 0; i < threads.length; i++)
        {
                document.write('<a href="http://www.eq2interface.com/forums/showthread.php?t=' + threads[i]['threadid'] + '">' + threads[i]['title'] + '</a> <em>Posted on: ' + threads[i]['threaddate'] + ' by ' + threads[i]['poster'] + '</em><br />');
        }
//-->
</script>
</body>
</html>

I'll add a forum id and quanity var later.

tonyis3l33t 03-19-2005 08:09 PM

thanks dolby :)

tonyis3l33t 04-08-2005 03:56 AM

Quote:

Originally Posted by Dolby

I'll add a forum id and quanity var later.

every get that done? :)

is there a way to change how many last posts are shown? i dont see it in the code...

Dolby 04-08-2005 06:07 AM

Quote:

Originally Posted by tonyis3l33t
every get that done? :)

is there a way to change how many last posts are shown? i dont see it in the code...

Doh, so much to do this slipped my mind.

Laffs 04-08-2005 11:48 AM

Ah most usefull with a page reload on a timer on it, means I can just keep a little window up whilst working on other stuff and not have to keep opening the site up, To see if anyone replies to my rambling's thanks Dolby :)

Dolby 04-12-2005 04:10 PM

Here you go Tony...

qty=# //number of posts to show, please keep it under 20.
forumid=# //specifiy a forum id (34 is eq2map)
items=active //only show active threads, if none it shows nothing.


Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">
<head> 
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> 
<title>External EQ2Interface Latest Posts</title>
</head>
<body>
<script type="text/javascript" src="http://www.eq2interface.com/forums/eq2i_external.php?type=js&forumids=34&qty=5"></script>

<script type="text/javascript">
<!--
        for (var i = 0; i < threads.length; i++)
        {
                document.write('<a href="http://www.eq2interface.com/forums/showthread.php?t=' + threads[i]['threadid'] + '">' + threads[i]['title'] + '</a> <em>Posted on: ' + threads[i]['threaddate'] + ' by ' + threads[i]['poster'] + '</em><br />');
        }
//-->
</script>
</body>
</html>


tonyis3l33t 04-12-2005 10:50 PM

thanks dolby!


laffs put this in between <head> and </head>

<meta http-equiv="refresh" content= "1000">

it should refresh the page every 10 minutes.

taco-man 04-16-2005 09:22 PM

actually that would be every 16 minutes and 40 seconds ;) content is the amount of time to wait in seconds.

tonyis3l33t 04-27-2005 11:48 AM

yea...i dont know what i was thinkin lol

ahh i know, i posted at 0550 my time :) i was tired still lol


All times are GMT -5. The time now is 02:17 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI