FAQ
How do I get rid of that pesky border around the images?
Why is it telling me that /home/username/public_html/phpfan/phpfanmore.php can’t be found?
How do I add file-based headers/footers to each Addon?
What is page caching? What is template caching? How does it make things faster?
How do I integrate phpFan into WordPress?
How do I get rid of that pesky border around the images?
In all my wisdom, to make things easier, I’d added a class for the images so that if parts of the layout were different one wouldn’t need to muck about in the code to make images display correctly. Since I’m sure that most people dump the phpfan css file (since it’s basically just to give a rundown of the classes you *can* use if needed the class for images is: .border
In your CSS file where necessary include:
img.border {
border: 0px
}
Why is it telling me that /home/username/public_html/phpfan/phpfanmore.php can’t be found?
The two main files included in phpFan are more like quick examples of how it can be used. You’re supposed to change the includes path to the one to the includes/phpfanmore.php file on your server if phpFan is being called outside of the main phpFan directory (i.e. where /includes and /admin is).
How do I integrate Enthusiast with phpFan Keep-In-Mind Addon or Listing Addon?
All you have to do is go into settings and change the dropdown to ‘Enthusiast’ where it says: Do you want to tie-in Enthusiast values such as owned listings with your phpFan - Addons? Choose Enthusiast. To go with regular phpFan values choose phpFan.
On the following setting input the full path to your main Enthusiast config.php file.
Done!
How do I add file-based headers/footers to each Addon?
Introduced in phpFan 3.3.1 file-based headers/footers is easy to do to integrate separate headers/footers for each Addon, even able to use your skinning code.
1. Upgrade to the latest version.
2. Use the exampleheader.php/examplefooter.php (rename!) in /includes/cache as a template for your header. You may even opt to put the coding for your skinning in there (as phpFan Addon - Keep-In-Mind will *not* work if you put any code before the Keep-In-Mind include.
3. Upload the custom header/footer files to /includes/cache.
4. Go to ‘Settings’ and then ‘Addon Settings’. Change the name the header/footer to the name of your own header/footer.
A link to changing the settings is also available from Templates.
What is page caching? What is template caching? How does it make things faster?
Page caching saves the html of page (i.e. a Joined category) to a file and instead of making calls to the database it outputs the saved files. The saved files will be deleted every X amount of days (this can be changed in ‘Settings’ -> ‘General Settings’. If you update your information in the admin control panel the cached pages will be deleted so old information will not be output.
Template caching is when templates are saved to a file and called from there instead of making a call to the database. It saves an extra mySQL query.
Page caching is probably not the best option if you’ve bridged Enthusiast and phpFan because updates made in Enthusiast will not delete cached pages in phpFan. You can also opt to delete the cache in phpFan after updates are made in Enthusiast by going to ‘Maintenance’ and clicking ‘Reset site cache? This will delete the cache files. Use especially if you’re using the Enthusiast bridge and updated through Enthusiast.’.
phpFan now makes caching of headers/footers optional so now using WordPress headers/footer or skins works. Set header/footer caching to ‘N’ in ‘Settings’ if using WordPress or skinning.
How do I integrate phpFan into WordPress?
Look at these links: