Pedey
New Member
Posts: 5
inherit
39174
0
Oct 6, 2005 12:55:26 GMT -8
Pedey
5
March 2005
pedey
|
Post by Pedey on Jul 2, 2005 13:31:36 GMT -8
Hey, this is probably the wrong board for this, if it is, please move. Is there a code which you can put on your home page of the website which picks up the most recent/hot topics on the probaords forum. Like, say, if the most recent topic on your board is "I WON THE LOTTERY", is there a code so that that will appear on the home page of your site as most recent topic? I'm not sure if there's one around for Proboards, so any help is appreciated.
|
|
inherit
The Jedi Master of Proboards PBS Oscars: Most Unique
6777
0
Nov 19, 2012 0:15:08 GMT -8
Tommy Huynh
Coffee isn't my cup of tea.
19,374
January 2003
swg2
|
Post by Tommy Huynh on Jul 2, 2005 19:08:42 GMT -8
Nope, not allowed.
It's possible though.
|
|
registrar
inherit
-148718
0
Dec 2, 2024 6:00:36 GMT -8
registrar
0
January 1970
GUEST
|
Post by registrar on Jul 2, 2005 20:05:52 GMT -8
If you use ProBoards then it's not allowed.
If you don't use ProBoards then you can do it all you want. (I mean if it's not a remotely hosted forum system. If you host it yourself you can do it)
|
|
inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Jul 2, 2005 21:39:19 GMT -8
Nope, not allowed. It's possible though. No it isn't...
|
|
Pedey
New Member
Posts: 5
inherit
39174
0
Oct 6, 2005 12:55:26 GMT -8
Pedey
5
March 2005
pedey
|
Post by Pedey on Jul 3, 2005 1:37:53 GMT -8
Alright then. Thanks guys for the help
|
|
sixpackman6
inherit
-148721
0
Dec 2, 2024 6:00:36 GMT -8
sixpackman6
0
January 1970
GUEST
|
Post by sixpackman6 on Jul 3, 2005 5:10:27 GMT -8
why isn't it allowed?
|
|
squalleh
inherit
-148722
0
Dec 2, 2024 6:00:36 GMT -8
squalleh
0
January 1970
GUEST
|
Post by squalleh on Jul 3, 2005 9:44:16 GMT -8
Nope, not allowed. It's possible though. No it isn't... Oh yes it is. Run a JS script on the forum which gets the latest updated topic, then send that to a PHP script. Have the PHP script log it in a database. Then from the website run a PHP script that queries the database and gets that latest topic. It's not dynamic in the sense that you need somebody to view the forum for it to update. But it's still very much possible.
To have it update dynamically wouldn't be allowed. That would require processing the PB page without the ads being properly displayed (so the advertisers on PB lose out). It would be allowed if you used the method I described above.
|
|
inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Jul 6, 2005 10:55:06 GMT -8
What I was referring to was this method:
It isn't possible in PBv4. Using an iframe to grab the information would redirect the homepage to the ProBoard because of this block of coding Pat has added:
if(self.location != top.location) top.location = self.location;
At the top of every page.
|
|
squalleh
inherit
-148724
0
Dec 2, 2024 6:00:36 GMT -8
squalleh
0
January 1970
GUEST
|
Post by squalleh on Jul 6, 2005 12:49:18 GMT -8
What I was referring to was this method: It isn't possible in PBv4. Using an iframe to grab the information would redirect the homepage to the ProBoard because of this block of coding Pat has added: if(self.location != top.location) top.location = self.location; At the top of every page. PHP doesn't need an iFrame to grab information from another page Something as simple as: file_get_contents ('http://support.proboards.com/index.cgi'); in PHP would get you the HTML of the index page. From there you process it and pick out the information you want. It's illegal though, as it still counts as a page view.
|
|
inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Jul 6, 2005 18:33:27 GMT -8
Well, if you were going to use PHP, why not submit the information (subject, poster and time) to a database every time a post is made? That way, you could list as many of the most recent topics as you wanted instead of just the single most recent, it would be updated dynamically, and it would be allowed.
|
|