Frequently Asked Questions: page: 4
Page 4 of 21 · <1 ... 3 4 5 ... 21 >
-
1
When I view the archives page at archives.php, I get this error: “Can’t select from table in the database. SELECT timestamp, id, title FROM php_blog WHERE FROM_UNIXTIME( timestamp, ‘%Y’)= ORDER BY id DESC” OR I get this message: “Invalid year specified”.
You cannot go directly to archives.php — you must view the archives page by going to archives.php?year=xxxx (where xxxx is a year in which you have written blog entries).
September 5, 2004 |
By Sasha |
Filed under Build A Blog, FAQ, PHPCalendar, Tutorials
-
2
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
-
3
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
-
4
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
-
5
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!