100 Web Space

phpbb mod problem: "topics anywhere" mod
Page 1 of 1

Author:  tar&feathered [ Fri Dec 30, 2005 9:29 pm ]
Post subject:  phpbb mod problem: "topics anywhere" mod

hi everyone. I was wondering if you could help me.
I'm hosting a phpbb2 forum on a freeownhost account and wanted to use this mod on my front page (website) to display the latest posts.

The mod generates a javascript which you put into your html/php. The problem is that it doesn't seem to display anything on the page though I've checked, the code does do what it's suppose to but it just won't display it on the page.

I've looked quite extensively on the net and came across this thread:


This guy was having the same problem but it looks like he gave up. The support guy (2nd post from last) suggested it was because the guy needed to log in.

I have no idea what he's on about but perhaps a starting point to get this issue resolved?

thx for your time. ps. I didn't want to open a trouble ticket since I was hoping someone here ran into the same/similar problem. :oops:

Author:  Oliver [ Fri Dec 30, 2005 10:33 pm ]
Post subject: 

Can you show us the code of the page that loads a blank page? i think this is the right place to start.

Author:  tar&feathered [ Fri Dec 30, 2005 11:47 pm ]
Post subject: 

Here is the generated jscript:

<script language="JavaScript" type="text/javascript" src="http://svrman.freeownhost.com/phpBB2/topics_anywhere.php?mode=show&f=a&n=15&r=y&a=y&so=d&b=squ&lpb=0&lpd=0&lpi=y&br=y&ch=22&chw=e">

on this page:


using this mod on my phpbb2 forum:


Thanks support4 for the quick response.

Author:  Oliver [ Fri Dec 30, 2005 11:55 pm ]
Post subject: 

<script language="JavaScript" type="text/javascript" runat="server" src="http://svrman.freeownhost.com/phpBB2/topics_anywhere.php?mode=show&f=a&n=15&r=y&a=y&so=d&b=squ&lpb=0&lpd=0&lpi=y&br=y&ch=22&chw=e"></script>

This is what I see in the code of your page. Try removing

Author:  tar&feathered [ Sat Dec 31, 2005 12:02 am ]
Post subject: 

that's odd, i thought I removed that already. Oh well it's gone now but still not working.

Earlier today whilst scanning the phpbb.com forums, there had been alot of talk about freehost's ad policies interrupting the script causing it to fail. Is this most likely the reason?

If it is then it's okay, I'll try a different method.
thanks again support4.

Author:  Oliver [ Sat Dec 31, 2005 2:16 am ]
Post subject: 

Could you be more concrete about what you have read (about freehosts policy causing this problem)? At this time I don't think that this is a server side problem, it looks like a matter of misconfiguration. I hope taht we will be able to find a solution.

Author:  tar&feathered [ Sat Dec 31, 2005 12:10 pm ]
Post subject: 

well i couldn't give you the exact post I read since the thread is a 100 pages long, but I do recall it refering to the free hosts inserting ads into every page. Sorry I can't expand on this since I'm not even a novice when it comes to stuff like this.. I am a complete noobie! :roll:

I've tried pasting the src link from the aforementioned javascript into the address bar and I do get the latest forum topics but with the 100webspace ad code as well.

Try it here!

So at least I know it works.
I've tried different "latest posts" modules but this one by far is the simplest and fastest I've seen, it's just a shame I couldn't get it to work.

I think the simpliest solution would be to get paid hosting :D :wink:
Anyway here's wishing you all a Happy New Year!

Author:  rm249 [ Sat Dec 31, 2005 6:44 pm ]
Post subject: 

The reason that his happens is because the server adds the Advertisements to ALL PHP files, it can not decide whether it is a PHP file used as a page, or a PHP file used to generate a javascript.

Author:  tar&feathered [ Sat Dec 31, 2005 7:46 pm ]
Post subject: 

Ah then it is as I expected.. thanks for clearing that up.

Author:  rm249 [ Sat Dec 31, 2005 11:35 pm ]
Post subject: 

No problem, if you know PHP, you could use the script to create a JS file that has that in it at a timed interval and then read that JS file.... that is a possibility :)

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group