Frequently Asked Questions: page: 4
Page 4 of 21 · <1 ... 3 4 5 ... 21 >
-
1
Is it possible to do a count of the total number of members in different fanlistings if they are on different web domains?
Yes, please see this forum thread.
June 3, 2004 |
By Sasha |
Filed under FAQ, PHPFanBase: Customize, Scripts
-
2
How can I add a field to the join form, and make it a required field?
That is explained in this forum thread.
June 3, 2004 |
By Sasha |
Filed under FAQ, PHPFanBase: Customize, Scripts
-
3
Script for total and pending members?
Where can I find the script snippet that displays the Total and Pending Member Counts for my fanlisting?
You can find that in the README file included in the zip file.
Total Members:
<?php include("config.php"); $query = "SELECT * FROM $table WHERE apr='y'"; $result = mysql_query($query); $num = mysql_num_rows($result); ?> <p>We have a total of <strong><?php echo $num; ?></strong> members!</p>Pending Members:
<?php include("config.php"); $query2 = "SELECT * FROM $table WHERE apr!='y'"; $result2 = mysql_query($query2); $num2 = mysql_num_rows($result2); ?> <p>We have a total of <strong><?php echo $num2; ?></strong> pending <?php if ($num2 == "1"){ ?>member<?php } else { ?>members<?php } ?>!</p>You only need to include config.php once, so if you’re using both of these snippets, make sure to delete the line that includes config.php in the second one.

June 3, 2004 |
By Sasha |
Filed under FAQ, PHPFanBase: Customize, Scripts
-
4
What are headers and footers, and how to I make them?
Lets say, you’ve got a big site with many pages. On every page you have the html, head, title and title tags, header image and the sidebar, and they all look identical on all the pages. When you change your layout, you have to change all the html pages to the new layouts html, with different images, colors and style.
With header and footer pages and php enabled on your server, you’ll only have to change the header and footer files to the new layout, and all the other pages will change automatically!
-
5
When I upload a PHP file to my free host, it doesn’t show up or wants me to save it! Why doesn’t it work?
Unfortunately, most free hosts do NOT support PHP. Typically, the most you can get out of them are HTML files. If you are hosted for free by a friend’s domain, they might support PHP - e-mail them to find out.
Below is a list of commonly-used free web hosts that DO NOT support PHP:
- Geocities
- Angelfire
- Tripod (although some accounts may offer limited PHP support)
- Freewebs
- Brinkster
If you are currently on one of these free hosts and REALLY want to use a PHP script, you might ask around to see where you could find free hosting on someone’s domain.
Get-what-you-give.com is a good place to find a host.
If you’re still in need, try looking at the Webhosting and Domains forum (please note that offers here may not be free).