Easy Way to enhance aesthetics of your Phorums
Posted by Cameron Perry
Easy Way to enhance aesthetics of your Phorums August 23, 2003 09:44PM |
This is just a quick post to those of you who may not be very familiar with the whole PHP business and have been intimidated at trying to edit any of these files into your site template. Though I've just learned PHP a few weeks ago, I think this is simple enough that just about anyone can do. An introduction like this will probably be useful in future documentation.
All you need to know is one line of PHP and how to find your way through html. Simply rename the necessary files (i.e. index.php, list.php, etc.) to something similar file_phorum.php, or something like that. So what you will end up with, for example, would be files named index_phorum.php, list_phorum.php, etc. Next, you'll want to open the HTML file that you want to insert the phorum functionality into. Find your place in the HTML and insert the following code:
<? include("file_phorum.php"); ?>
This really works well if you have some sort of table set up so that the code can fit in one of the large cells and page formatting will be less likely to go down the tubes, so to speak.
finally rename the HTML file to file.php, corresponding to the name of the phorum file (file_phorum.php) that you included. Basically your HTML file becomes the name of the original phorum file before it got renamed. Make sure this goes in the root folder of your phorum.
Here's an example from start to finish:
1) rename index.php to "index_phorum.php"
2) Open your HTML file (say index.html) and insert the following code:
<? include ("index_phorum.php"); ?>
3) Save the HTML file and rename it to index.php
4) Repeat 1-3 for the rest of the files and you're done! Your phorum will now be in your custom pages. You'll probably want to change all the phorum text and table color settings through the admin control panel to better fit your site.
Hope this helps!
Cameron Perry
All you need to know is one line of PHP and how to find your way through html. Simply rename the necessary files (i.e. index.php, list.php, etc.) to something similar file_phorum.php, or something like that. So what you will end up with, for example, would be files named index_phorum.php, list_phorum.php, etc. Next, you'll want to open the HTML file that you want to insert the phorum functionality into. Find your place in the HTML and insert the following code:
<? include("file_phorum.php"); ?>
This really works well if you have some sort of table set up so that the code can fit in one of the large cells and page formatting will be less likely to go down the tubes, so to speak.
finally rename the HTML file to file.php, corresponding to the name of the phorum file (file_phorum.php) that you included. Basically your HTML file becomes the name of the original phorum file before it got renamed. Make sure this goes in the root folder of your phorum.
Here's an example from start to finish:
1) rename index.php to "index_phorum.php"
2) Open your HTML file (say index.html) and insert the following code:
<? include ("index_phorum.php"); ?>
3) Save the HTML file and rename it to index.php
4) Repeat 1-3 for the rest of the files and you're done! Your phorum will now be in your custom pages. You'll probably want to change all the phorum text and table color settings through the admin control panel to better fit your site.
Hope this helps!
Cameron Perry
Re: Easy Way to enhance aesthetics of your Phorums August 24, 2003 04:28AM |
Registered: 23 years ago Posts: 6,050 |
bbb
Re: Easy Way to enhance aesthetics of your Phorums October 22, 2003 12:52AM |
Re: Easy Way to enhance aesthetics of your Phorums August 23, 2004 07:50AM |
Re: Easy Way to enhance aesthetics of your Phorums January 06, 2005 03:07AM |
I have tried that header & footer thing. After so many hours on this thing I managed to get the table in the header only. This way nothing interferes.
When I try to put table with one column on the left and the phorum on the right column, I have to close the table in the footer. If you then try "search" or a few other functions, another table shows and messes up everything. If I could somehow disable the header and footer calls from all functions except index.php. Any ideas? Or maybe I don't know what I'm talking about... still a beginner here; I have to go trial and error way.
--tim
When I try to put table with one column on the left and the phorum on the right column, I have to close the table in the footer. If you then try "search" or a few other functions, another table shows and messes up everything. If I could somehow disable the header and footer calls from all functions except index.php. Any ideas? Or maybe I don't know what I'm talking about... still a beginner here; I have to go trial and error way.
--tim
Sorry, you do not have permission to post/reply in this forum.