>>  Site Map >>  Forums >>  Tips and Tricks

Forum module - topics in forum:



Tips and Tricks - Get the most from your PHP-NUKE website. Post things you have discovered and would like to share with others.



backend.php and backendforums.php how to????

I see you guys got the backend.php and backendforums.php on your site.

How the heck did you do it?!!

I haven't tried backend.php yet because I'm starting out with the backendforums.php first...to see if I can get it working...and what's happening is that backendforums.php is showing the website title (great) and the topic title (great) but the link to it comes out as http://mysite.com/postt11.html and when I click that, the page doesn't exit.

Shouldn't it be something like
Code: :
modules.php?name=Forums&file=viewtopic&t=11
?!!

I tried to replace
Code: :
echo "<link>$nukeurl/postt$topic_id.html</link>\n";


with

Code: :
            echo "<link>$nukeurl/modules.php?name=Forums&file=viewtopic&t=$topic_id</link>\n";


but all that did was screw it up...the site title disappeared and the topic titles disappeared.

Also, when I tried the default backendforums.php in IE7, it returned an error saying RSS feeds with DTD aren't allowed! LOL

How the heck you get this thing working?????????????? Thanks!!!!!!






"Leave them alone long enough and they will figure it out on their own"

Well, I figured it out. I decided to do the backend.php and it worked without a hitch, so thought..hm....why does that work and not what as in backendforums.php?

It's this: &amp;

Aparantly you can't have an ampersand (&) in the code for backendforums.php, so I replaced the ampersand in the URL (the one I replaced the original with), with &amp; and viola! Works beautifully.

So, if anybody else runs across this, that's how you fix it.






Oh and there's one other thing you need to do: add this to the header.php

Code: :
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Forums Feed\" href=\"backendforums.php\">\n";







Well, there must be something I'm missing. In IE I get an error about it not supporting feeds with DTD...how did you get your feeds to work????






Well, whatta ya know. Just today someone posted about this exact related issue with a completely different script I'm using and they said to replace some similar looking code with this:

Code: :
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">


So, I opened backendforums.php and backend.php and replaced all the "netscape" stuff with this:

Code: :

      echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
           echo "<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n";


No more IE7 "DTD" errors. Very Happy and no errors with FF either.

The "netscape" stuff that I replaced with the above code is this:

Code: :
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n";

echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n";

echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n";

echo "<rss version=\"0.91\">\n\n";







Wow, great code Smile sorry I missed this post.




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS