Details of how to do this are shown below and the news is customisable to your own design needs!
How to Add News to your Website or Forum
To add news to your website or forum, simply use the following HTML code in your page to show the default news look.
<iframe src ="http://smacktalks.org/news/your_news.php" width="100%" height="500"></iframe>
Which will show as...
Customizing The Design
In order to customize the look of the news to suit your own website, you can change the background color, font type, size, color. To do this, all you need to do is amend the url of the page to include any of the variable shown below.
bgcolor Changes the pages background color (Default = 000000).
headlinecolor Changes the color of the news headlines (Default = 2E6AB1).
headlinesize Changes the size of the news headlines (Default = 18).
font Changes the font throughout the page (Default = Arial).
storycolor Changes the color of the news text (Default = FFFFFF).
storyfontsize Changes the font size of the news text (Default = 12).
storylinkcolor Changes the color of the links in the news text (Default = 2E6AB1).
spacercolor Changs the color of the spacer bar after each news item (Default = 2E6AB1).
Example:
To change the background color to red you would change the page url to include ?bgcolor=F70000
Eg. http://smacktalks.or...?bgcolor=F70000
To add more variables, such as the headline color you would add & to the end of the url, followed by the headline color variable and the color you want it to be.
Eg. http://smacktalks.or...inecolor=000000
Again to add more, simply add & to the end of the page url, followed by the variable you want to change.
Here's an example of everything changed using the url below with all variables entered.
http://smacktalks.org/news/your_news.php?bgcolor=ffffff&headlinecolor=f70000&storylinkcolor=f70000&font=arial&storycolor=000000&headlinesize=20
&storyfontsize=14&spacercolor=f70000&storylinkcolor=768595
If anyone has any problems using this, please reply with any problems you have and i'll be happy to help you out.
Regards,
Paul.




Reply to this topic











