Frequently Asked Questions: script questions: phpfanbase troubles: page: 2
-
1
On my country.php page, some countries are listed twice, but both pages have exact the same members! What’s going on?
If you view the source of the country.php page in your browser, you’ll see that the duplicates are because there’s a single space to the right of the country name. Just edit all members from the country this is happening to in your Admin Panel and delete any space after the country name.
If you have too many members in that country to go through, you can also go to the View All Members page, go to Edit > View Source in your browser, and check to see exactly which member has the extra space. The easiest way to do this would be by going to Edit > Find while viewing the source, and typing in “Country “, where country would be the country name (and without the quotation marks). This will lead you right to the members with the extra space, so you can directly type their member ID into your Admin Panel and fix it, instead of having to go through all members from that country.
May 21, 2004 |
By Sasha |
Filed under FAQ, PHPFanBase: Troubles, Scripts
-
2
Whenever I use an apostrophe (’) in the Email All Members function, it puts a slash (\) in front of it! How can I make it stop doing that?
PHP puts the slash in to escape the character, to make sure it doesn’t get parsed as actual PHP coding instead of just as the body of the email. The easiest way to stop it from doing that, is by simply not using contractions. Write “I am” instead of “I’m”.
There is a way to fix this though, but it involves editing your admin.php file. Find the line that looks like this:
mail($recipient, $subject, "$_POST[body]", "$mailheaders");
It should be around line 262. Then change it to this:
mail($recipient, stripslashes($subject), stripslashes($_POST[body]), "$mailheaders");
That should fix the problem!
May 21, 2004 |
By Sasha |
Filed under FAQ, PHPFanBase: Troubles, Scripts
-
3
Why is Korea not listed in the Country list?
It is, it’s listed as North Korea and South Korea.
May 21, 2004 |
By Sasha |
Filed under FAQ, PHPFanBase: Troubles, Scripts
-
4
I am not receiving emails when someone joins!
There could be several causes for this.
-
Open up config.php, and make sure line 31 looks like this:
$emailnotify ="Y";
-
Make sure you filled in a working email address on line 9:
$adminemail ="you@yourdomain.com";
-
Do not put anything else into that email address variable. It won’t work if you try to put a subject in it like this:
$adminemail ="you@domain.com?subject=New_Member";
This will cause the PHP coding to no longer work. It’s also unnessecary, as the email that gets sent to you already has a subject defined, with the name of your fanlisting in it (so you know which fanlisting it is for, in case you run several).
-
Your host may have disabled the sending of e-mails through PHP. Many hosts are doing this to stop spammers from abusing insecure or badly written scripts, and unfortunately there is nothing you can do about it other than asking them nicely to turn it back on for you. There is absolutely no guarantee that they will do this, however.
May 21, 2004 |
By Sasha |
Filed under FAQ, PHPFanBase: Troubles, Scripts
-
-
5
I get the following error when going to any of the .php pages: “Unable to select database.”
This means there is a problem with your database connection. Open up config.php and carefully re-check your database information. Make sure you have put in the right MySQL username, database name and password, and that you have added the MySQL user to the MySQL database with all permissions. If you are unsure about what your username, etc are, check your domain control panel. In cPanel, there will be a section for MySQL, that will list your MySQL usernames and database names. If you still can’t figure it out, please contact your host and ask them.
If the script used to work just fine, and it suddenly started giving this error without you touching any databases, it means there’s something wrong on your server. The SQL server could be temporarily down. If this problem does not go away, you should contact your host to ask them about this.
May 21, 2004 |
By Sasha |
Filed under FAQ, Flinx: Troubles, PHPCalendar, PHPCurrently, PHPFanBase: Troubles, PHPQuotes, Scripts