Social Web CMS
February 09, 2010, 06:42:42 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: We have reinvented SocialWebCMS as HotaruCMS, which is available to download from http://hotarucms.org.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Random Message Module - version 0.1 Beta  (Read 1056 times)
Nick
Administrator
Hero Member
*****
Offline Offline

Posts: 668



View Profile WWW
« on: October 05, 2008, 04:36:13 am »

Description of Random Message:
Display a random message. Each message can contain text, HTML, Javascript, Flash, etc.

About version 0.1:
  • Allows for code to be embedded in each message, so you can show a random image, widget, advert, etc.
  • Manage your messages via Admin.
  • Creates a database table to store as many messages as you want.

Revision History:
  • v0.1 First version.

Instructions:
  • Upload the random_message folder to your modules folder.
  • Install it from Module Management in Admin.
  • Manage your messages in the Admin panel.
  • Add the following in the template file where you want the random message to display:
          { checkActionsTpl location="tpl_random_message" }

Limitations:
  • It doesn't come with a default set of messages. You have to enter your own.
  • It only allows for one set of messages, but you can show a random message from that set in multiple places on your site.


NOTE: I'm just a PHP novice. I welcome all efforts to make this module better.


* random_message_admin_screenshot.jpg (90.73 KB, 687x594 - viewed 147 times.)
* random_message.zip (6.7 KB - downloaded 73 times.)
Logged

Reinventing SWCMS at HotaruCMS.org - testers, designers and developers wanted!
davemackey
Administrator
Sr. Member
*****
Offline Offline

Posts: 271



View Profile WWW
« Reply #1 on: October 07, 2008, 10:54:10 pm »

Very nice! I love it. I was thinking of making something like this to give random "Tips" to users on how to get the most out of the site.
Dave.
Logged

- http://www.informednetworker.com/ - Informed Networker - Social News for IT Professionals.
Nick
Administrator
Hero Member
*****
Offline Offline

Posts: 668



View Profile WWW
« Reply #2 on: October 08, 2008, 08:15:52 am »

Glad you like it, Dave.  Grin
Logged

Reinventing SWCMS at HotaruCMS.org - testers, designers and developers wanted!
catchpen
Administrator
Sr. Member
*****
Offline Offline

Posts: 399



View Profile WWW
« Reply #3 on: October 08, 2008, 11:44:42 am »

Cool! this could be a quite powerful module.
Logged

angolanmade
Jr. Member
**
Offline Offline

Posts: 59


View Profile
« Reply #4 on: March 28, 2009, 02:51:47 pm »

I'm getting the following error after activating this module, and trying to access it to add the messages.
 
Fatal error: Call to undefined function: htmlspecialchars_decode() in /htdocs/modules/random_message/random_message_main.php on line 118

Any suggestions? Thanks in advance!
Logged
angolanmade
Jr. Member
**
Offline Offline

Posts: 59


View Profile
« Reply #5 on: March 29, 2009, 04:41:59 pm »

Fixed my issue, I believe u need php 5 to make this work.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!