FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Help with a centralized announcement system





Donutey
I would like to add a centralized system where I can have a headline or small announcment box to my website where I can type in html and have it show up on every page. Also, being search engine friendly would be nice.

Thanks.
LukeakaDanish
Im not entirely sure what you mean...

If what you mean is that you want to be able to include a bit of html in all your pages...use:

Code:

<?php
include("#file#");
?>


This will work with search engines nicely...

IF this isnt what you want, try to explain it more clearly.

Luke
Donutey
idk I guess I would like a system where I could show the most viewed articles pages... and exclude certain pages such as home etc...
kany
Well man are you using some kind of CMS system or what or is it just a phpBB forum. Question
sprinqles
Maybe on every single page that you'll add to your site, you could put an I-frame, and the page that will be shown in this frame would be where you'll put your CMS. At least, when you want to change or add a new message, you just need to change the old message with the new and it will appear on every single page that you want the CMS to appear. Smile
Donutey
I think i can get it working with the include function manually editing... after thinking about it. Rolling Eyes

Thanks.
sprinqles
No problem. I hope you could update us when you've got your CMS workin' on your website. Smile Goodluck! Smile
Donutey
I decided to go with the php includes... I haven't got the centralized announcement thing going, but I can easily add one in the future.

This is basically my layout right now.

Code:
<?php include("type.inc"); ?>
The Place for Technology Guides and Reviews
<?php include("menu.inc"); ?>
<h1>Welcome</h1>
<p>Welcome...
<br /><br />... site.
</p>

<h3>Site Updates</h3>
<p class="noindent">
<img src="images/computer.png" style="float: left;" alt="Picture of Computer" width="60" height="60" />
17/04 - Fixed IE compatibility issues<br />
16/04 - Updated logo, consistancy changes<br />
15/04 - Updates: <a href="buildcomputer7.php">Build Your Own Computer: 7</a>, <a href="search.php">Search</a>, <a href="socket.php">Socket Database</a><br />
<a href="siteupdates.php">Archives</a><br />
</p>

<div class="twoleft">
<h3>Daily Fool</h3><p class="noindent">

LOW SELF ESTEEM GROUP<br />
WILL MEET THURSDAY AT 7 P.M.<br />
PLEASE USE THE BACK DOOR.<br />
from a church bulletin <br /><br />
<a href="olddf.htm">Old DF</a>
</p></div>


<div class="tworight">
<h3>News</h3><p class="noindent">
<a href="http://www.feeddigest.com/">
            <img alt="Feed Digest" src="http://www.feeddigest.com/images/button3.gif" style="float: right;" /></a>
<?php include ("http://app.feeddigest.com/digest3/6UBHR7BEOA.html");
?>
</p> 
</div>


<?php include("footer.inc"); ?>
Related topics
Help on point system
system restarting
State your Political Philosophy! (1000 FRIH$ to the best!)
Virus Help _ Unwanted system lock
Linux distro comparison (Fedora vs. Mandriva vs. OpenSuse)
Linux distro comparison (Fedora vs. Mandriva vs. OpenSuse)
Windows Tips&tricks!
Cooling system
Window$ XP HIDDEN APPS>>>
check my site[Update]
xp speed problems
Windows XP hidden apps
Long Range Wireless
my windows problem
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.