Home ¤ Register ¤ FAQ ¤ Search ¤ Active Topics ¤ Log In

UseBB Zone » Modifications » Forum Notice

Forum Notice

Page: 1

Author Post
Administrator
Registered: Jan 2006
Posts: 368
Location: Canada
Forum Notice
This file was submitted by the poster at the posted time

UseBB Version: v1.0.x
File Version:1.0
Demo:http://demo.usebbzone.com

This modification will place a small "announcement" notice at the top of your forum home page or globally on all pages. Within the ACP you can edit multiple areas to make it suit your forum look and colors. Choose the border size, border color, border type, background color, and more.

The announcement text supports BBCode, HTML, and forum smilies. You can also disable it if you don't want any message shown.

This adds one query to your home page if you do only the INDEX VIEW edit in sources/page_head.php. Else it will add an extra query on all pages.

Download This File
_______________
« Last edit by Gaia on Tue Jul 31, 2007 7:54 pm. »
Administrator
Registered: Jan 2006
Posts: 368
Location: Canada
Somehow the ID got messed up. I replied and it was showing my reply as the first post and not the second like it should of been.

:?
_______________
Member
Registered: Jun 2007
Posts: 97
Location: Gatineau, QC, Canada
For some strange reason, I got this error:

An error was encountered. We apologize for any inconvenience.

In file sources/template.php on line 172:

E_USER_ERROR - Unable to load "notice" template in global templates file for set "default"!


Gene
Member
Registered: Jun 2007
Posts: 97
Location: Gatineau, QC, Canada
Never mind, my mistake...

Works great!

Cheers,
Gene
Member
Registered: Jun 2007
Posts: 97
Location: Gatineau, QC, Canada
Hi Gaia,

The Forum Notice works great but only has a limit of 255 characters (if not mistaken), can that be changed in the database (`text` varchar(255) NOT NULL default '',) to a larger value? Or maybe a text value?

Cheers,
Gene
Administrator
Registered: Jan 2006
Posts: 368
Location: Canada
I can add that for next release, but yes, basically you would just need to change varchar to a text. Varchar only supports 0 - 255 characters.
_______________
Member
Registered: Jun 2007
Posts: 97
Location: Gatineau, QC, Canada
So, basically, I could change it to `text` text(600) NOT NULL default ''?

Gracias,
Gene
Administrator
Registered: Jan 2006
Posts: 368
Location: Canada
Yes.
_______________
Member
Registered: Jun 2007
Posts: 97
Location: Gatineau, QC, Canada
Gaia wrote
Yes.


Thank you, you're an angel and a heck of a teacher. Sometimes I lack confidence to do certain things and I sure appreciate your help.

All right, guess I'll go change that query using phpmyadmin.

Gracias Amiga,
Gene
:D
« Last edit by raygene on Tue Jul 31, 2007 7:42 pm. »
Administrator
Registered: Jan 2006
Posts: 368
Location: Canada
No problem. You learn things as you go. :).
_______________
Member
Registered: Jun 2007
Posts: 97
Location: Gatineau, QC, Canada
Gaia wrote
No problem. You learn things as you go. :).


And fall flat on my face every so often. Best way to learn, I guess.

Gene
:roll:
Member
Registered: Jun 2007
Posts: 97
Location: Gatineau, QC, Canada
Changed the value in the database and worked like a charm.

Thanks teach,
Gene
Member
Registered: Jan 2010
Posts: 1
Thank you for your all efforts.

Page: 1

UseBB Zone » Modifications » Forum Notice

Parse time: 0.032 s · Server load: 0.41 · Template sections: 2 · SQL queries: 6