Announcement board

Guido

Avatar: Guido

2011-08-31 20:25

Hi,

Is it possible to add an announcement board on my website, which can be edited in admin? Example:

http://www.guidovanderleest.nl/announcement.jpg

Who can help me?

» Quick.Cms v3.x

boboo

Avatar: boboo

2011-09-01 08:44

Sehr gute Idee, und nichts leichter als das.
Look here: http://strzelectwo.kimla.de (announcement on banner about holidays).
Text input in admin-panel, with a switch 'on-off'. Formatting through css.

it-service.kimla.de

Guido

Avatar: Guido

2011-09-01 19:25

boboo, I don't see a banner with info about holidays...

What do I have to do, to get that script?

Guido

boboo

Avatar: boboo

2011-09-01 19:35

Uuups,
now is on.

it-service.kimla.de

boboo

Avatar: boboo

2011-09-01 20:17

1. create new items in config/lang_xx.php
$config['anons']="";
$config['bAnons']=true;
2. create new item in templates/plugins.css
#anons{padding:4px;font-weight:bold;width:390px;height:45px;top:74px;left:260px;position:absolute;border:#21c5f7 3px solid;z-index:2000;background:#eee;opacity:0.8;filter:alpha(opacity=80);text-align:left;}
3. create entry in templates/admin/settings.tpl over the row <tr class="end">

<tr class="l0"><th>Announcement &nbsp; <select name="bAnons">$sThrowAnonsSelect</select></th><td><textarea name="anons" value="$config[anons]" cols="100" rows="5">$sAnonsNoBR</textarea></td></tr>
4. create entries in actions_admin/settings.php uner the line: $sTextSizeSelect=...

$sThrowAnonsSelect=throwTrueFalseOrNullSelect($config['bAnons']);
$sAnonsNoBR=str_replace('<br/>',chr(13).chr(10),$config['anons']);
5. create entry in core/common-admin.php in the function saveVariables under the line: $sValue=stripslashes($sValue);

$sValue=str_replace(chr(13).chr(10),'<br/>',$sValue);
6. create entry in templates/themes/default.php under the "menu block"

if($config['bAnons']===false)
$sAnons='class="hide"';
else
$sAnnouncement=$config['anons'];

7. create entry in templates/container.tpl under <body> (in both blocks: BEGIN ORDER_BODY & BEGIN_BODY)

<div id="anons" $sAnons >$sAnnouncement</div>

I hope, i did not forget anything

it-service.kimla.de ---> qc plugins&tips

Guido

Avatar: Guido

2011-09-02 00:04

boboo, it's working... THANKS!

Guido

Avatar: Guido

2011-09-02 07:55

boboo, still a question for you..

I have placed it directly under a dropdown menu and near an image.
But when I click on the dropdown menu or image, the announcement-board is not fading away.

Where can I change this?

boboo

Avatar: boboo

2011-09-06 17:13

i set the z-index very high (2000), so it will be nearly all the time on the top.
try to change to smaller values (0, 1, 2)

it-service.kimla.de

Back to top
about us | contact