EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Site Forums > Site Help & Suggestions

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-19-2005, 02:06 AM
tonyis3l33t's Avatar
tonyis3l33t tonyis3l33t is offline
a hedgehog
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 854
Default 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.
__________________
Nagafen (Evil) - Climax, Goshawk
Reply With Quote
  #2  
Unread 03-19-2005, 05:54 AM
Dolby's Avatar
Dolby Dolby is online now
Bacon Eater
Premium Member
EQ2Interface Admin
This person is a EQ2Map developer.
 
Join Date: Feb 2004
Posts: 2,452
Default

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*
Reply With Quote
  #3  
Unread 03-19-2005, 06:24 AM
Dolby's Avatar
Dolby Dolby is online now
Bacon Eater
Premium Member
EQ2Interface Admin
This person is a EQ2Map developer.
 
Join Date: Feb 2004
Posts: 2,452
Default

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.

Last edited by Dolby : 03-19-2005 at 06:37 AM.
Reply With Quote
  #4  
Unread 03-19-2005, 08:09 PM
tonyis3l33t's Avatar
tonyis3l33t tonyis3l33t is offline
a hedgehog
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 854
Default

thanks dolby
__________________
Nagafen (Evil) - Climax, Goshawk
Reply With Quote
  #5  
Unread 04-08-2005, 03:56 AM
tonyis3l33t's Avatar
tonyis3l33t tonyis3l33t is offline
a hedgehog
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 854
Default

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...
__________________
Nagafen (Evil) - Climax, Goshawk
Reply With Quote
  #6  
Unread 04-08-2005, 06:07 AM
Dolby's Avatar
Dolby Dolby is online now
Bacon Eater
Premium Member
EQ2Interface Admin
This person is a EQ2Map developer.
 
Join Date: Feb 2004
Posts: 2,452
Default

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.
Reply With Quote
  #7  
Unread 04-08-2005, 11:48 AM
Laffs's Avatar
Laffs Laffs is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Runnyeye
Posts: 1,404
Default

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
__________________
Laffs UI Mods
I can only please one person per day. Today is not your day. Tomorrow doesn't look to good either !
(Wicann on Runnyeye)
Reply With Quote
  #8  
Unread 04-12-2005, 04:10 PM
Dolby's Avatar
Dolby Dolby is online now
Bacon Eater
Premium Member
EQ2Interface Admin
This person is a EQ2Map developer.
 
Join Date: Feb 2004
Posts: 2,452
Default

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>
Reply With Quote
  #9  
Unread 04-12-2005, 10:50 PM
tonyis3l33t's Avatar
tonyis3l33t tonyis3l33t is offline
a hedgehog
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 854
Default

thanks dolby!


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

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

it should refresh the page every 10 minutes.
__________________
Nagafen (Evil) - Climax, Goshawk
Reply With Quote
  #10  
Unread 04-16-2005, 09:22 PM
taco-man's Avatar
taco-man taco-man is offline
EQ2MAP Updater Author
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
Default

actually that would be every 16 minutes and 40 seconds content is the amount of time to wait in seconds.
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface
Reply With Quote
  #11  
Unread 04-27-2005, 11:48 AM
tonyis3l33t's Avatar
tonyis3l33t tonyis3l33t is offline
a hedgehog
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 854
Default

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

ahh i know, i posted at 0550 my time i was tired still lol
__________________
Nagafen (Evil) - Climax, Goshawk
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:59 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI