Simple Machine Codes
November 22, 2009, 11:25:50 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Affiliates Code Index Staff List Calendar Members Login Register  

Member Editable Custom Message


Pages: [1]   Go Down
  Print  
Author Topic: Member Editable Custom Message  (Read 353 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,664



View Profile WWW
« on: August 28, 2007, 03:30:46 pm »

Footers
Code:
<script type="text/javascript"><!--
var border_color = "BORDER COLOR"
var font_color = "FONT COLOR"
var background_color = "BACKGROUND COLOR"
$("div.signature").each(function() {
//Created by Agent Moose (smcodes.smfforfree3.com)
//With alot of help from beta from forum.ifcode.com
if(/\[message\](.*)\[\/message\]/i.test(this.innerHTML)) {
this.innerHTML = this.innerHTML.replace(/\[message\](.*)\[\/message\]/i, "",(function(a, b, c, d) {
d = a.parentNode.parentNode.parentNode.parentNode.rows[0].cells[0];
c.innerHTML = b;
d.insertBefore(c, d.getElementsByTagName("div")[0]);
return b;
})(this, "<div class='custommessage'><strong>Custom Message:</strong><br>"+RegExp.$1+"</div>", document.createElement("div")));
};});
document.write("<st"+"yle>.custommessage { border: 1px solid "+border_color+"; background-color: "+background_color+"; margin: 3px; margin-bottom: 6px; padding: 3px; font-size: 10px; color: "+font_color+"; }</st"+"yle>")
//--> </script>

This code allowes the members to edit there Custom Message.  Just go to Profile -> Forum Profile Information and put this in your signature:
Code:
[message]YOUR TEXT HERE[/message]
And there ya go.  The members of your board may change the YOUR TEXT HERE part to there text any time they want!

BORDER COLOR = The Color of the Border around the box that has the custom message in it
FONT COLOR = The Color that the font will be for the Custom Message.
BACKGROUND COLOR = The background color of the custom Message box.

Enjoy!
Report Spam   Logged

LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #1 on: August 30, 2007, 06:02:43 am »

Looks interesting Moose.   But you are assuming that everyone's members are gonna be smart enough to do this, LOL.
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,664



View Profile WWW
« Reply #2 on: August 30, 2007, 07:06:14 pm »

They could ask for help Wink
Report Spam   Logged

LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #3 on: August 31, 2007, 09:29:43 pm »

Do you know how many times I have to listen to the whining or write a full tutorial and then have them say I don't understand?  I even do the tuts with pictures, LOL.  I will just use the old one and give it to them as a reward for posting enough that I learn something about them.
Report Spam   Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006, Simple Machines LLC
ServerBeach Coupon