SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 08:41:30 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Quick Message V2  (Read 488 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« on: September 15, 2007, 05:32:31 pm »

Add this the top of your headers if you don't have it:
Code:
<script src="/jquery.js"></script>

Footers:
Code:
<script>
if($('td.titlebg2 span b').not("td.titlebg2 span b:contains(News)").html()){
//Created by Agent Moose (smcodes.smfforfree3.com)
$($(".maintab_back").contains("Logout")).after('<td class="maintab_last"> </td><td class="maintab_first"></td><td valign="top" class="maintab_back"><a href="javascript:open_box()">Create Message</a></td>')
$(".maintab_back:contains(Create Message)").after('<div id="pm_box"><table class="bordercolor" width="200" height="200"><tbody><tr class="titlebg"> Quick Message</td></tr><tr><td class="windowbg"><form id="postmodify" onsubmit="submitonce(this);saveEntities();" name="postmodify" accept-charset="ISO-8859-1" method="post" action="'+location.pathname+'?action=pm;sa=send2"><table width="100%" cellpadding="3" border="0"><tr><td class="smalltext"><input id="to" type="text" size="40" tabindex="1" value="(Username)" name="to" autocomplete="off"/></td></tr><tr><td class="smalltext"><input type="text" maxlength="50" size="40" tabindex="3" value="(No subject)" name="subject"/></td></tr><tr><td><tex'+'tarea class="editor" tabindex="4" onchange="storeCaret(this);" onkeyup="storeCaret(this);" onclick="storeCaret(this);" onselect="storeCaret(this);" cols="10" rows="6" name="message"></text'+'area></td></tr><tr><td><input type="submit" accesskey="s" onclick="return submitThisOnce(this);" tabindex="5" value="Send"/><input type="button" onclick="javascript:open_box()" value="Close"/></td></tr></table><input type="hidden" value="991ea72a2059d82adc59a9fa321edc2a" name="sc"/><input type="hidden" value="0" name="replied_to"/><input type="hidden" value="inbox" name="f"/><input type="hidden" value="-1" name="l"/></form></td></tr></tbody></table></div>')
$("#pm_box").each(function(){$(this).hide();this.style.position = 'fixed';});
};
function open_box(){$("#pm_box").toggle();};
</script>

This is a very long code, but I know you all will like it.  I got the idea from another forum that basicly had the same code, but for InvisionFree.

Sorry, but this code only works on FireFox

V2 is no where near like Quick Message V1!  Why don't you see for yourself!  Just add the code to your board and once done that, there will be a tab that says Create Message!

If you don't feel like adding it to your board, just register a new account at this forum and try it out for yourself!
http://shoutbox.smfforfree3.com/index.php
« Last Edit: May 02, 2008, 08:34:29 pm by Agent Moose » Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
jeRm
SMF For Free Full Member
*
Offline Offline

Posts: 114



View Profile WWW
« Reply #1 on: September 15, 2007, 05:46:58 pm »

I joined the forum you mentioned, click create message and nothing. I added the code to my test forum, click create message and nothing. Any ideas? TIA
Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.771 seconds with 17 queries.