Frequently Asked Questions: page: 3
Page 3 of 21 · <1 ... 2 3 4 ... 21 >
-
1
404 message with NL-ConvertToPHP?
How can I add a 404 message when using NL-ConvertToPHP?
If you’d like to display a message when someone has hit a dead link or a page that you haven’t yet created, simply add a final else statement at the end of your main index page, just before your footer tag. It should look something like this:
<? } elseif ($_SERVER['QUERY_STRING'] == "extra") { ?> //Paste here your HTML code on the Extra page (without the header and footer code, obviously). <? } else { ?> //Paste here any HTML code that you want on the 404 page (without the header and footer code, obviously - eg. <h2>Oh no! This is a 404 - page not found!!</h2> <? } include('footer.inc'); ?>
January 9, 2005 |
By Vixx |
Filed under FAQ, NL-ConvertToPHP, Scripts
-
2
How can I allow members to join more than once with the same email?
You must replace a bit of code in join.php, which is explained in this tutorial.
November 29, 2004 |
By Sasha |
Filed under FAQ, PHPFanBase: Customize, Scripts
-
3
If someone joins my list without a URL, and I approve them, a porn website appears in their URL section! No matter what I do, it’s still there! What’s going on?
Unfortunately, enough people have had this happen to them that we felt it necessary to add to the FAQ.
This porn links problem is most likely due to some spyware you’ve inadvertently downloaded. There are programs out there that insert porn websites into any URL form field they find, and it doesn’t stop until you get rid of the spyware.
Here are a few good spyware programs to try – each one tends to find different things, and each acts in its own way.
The only thing with Bazooka is that you have to remove the offending spyware manually, but they give thorough instructions and it’s usually quite simple.
September 6, 2004 |
By Kathryn |
Filed under FAQ, PHPFanBase: Troubles, Scripts
-
4
On my main page, the “leave a comment” link does not contain an id number. OR When I click the link to leave a comment, I get the error “Can’t select entries from table php_blog. SELECT * FROM php_blog WHERE id=”.”
Mark sure that you have added in the $id variable when you coded your comments link into the main page. Right below this line:
$entry = $row['entry'];
You should have this:
$id = $row['id'];
September 5, 2004 |
By Sasha |
Filed under Build A Blog, FAQ, Tutorials
-
5
When I view my single entry page at entry.php, I get this error: Can’t select entries from table php_blog. SELECT * FROM php_blog WHERE id=” OR I get this message: “Invalid ID specified”.
You cannot go directly to entry.php — you must view the page as entry.php?id=xxx (where xxx is the id number of one of your entries).
September 5, 2004 |
By Sasha |
Filed under Build A Blog, FAQ, Tutorials