Simple Machine Codes
March 29, 2024, 02:06:25 am
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 Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Add Box under User Info with own Text

Pages: [1]   Go Down
  Print  
Author Topic: Add Box under User Info with own Text  (Read 542 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: July 19, 2007, 09:51:57 am »

This code adds a box for any text you want.  You may use HTML with it too.

Quote
<script>
function Add(name,thetext){
//Code Created by Agent Moose
$(function(){
$(".c_username").contains(name).parent().next().find(".user_info").after("<dl class='user_info'>"+thetext+"</dl>");
$(".spacer").hide()
});}
Add("Agent Moose","Custom Text:
Why did I put this here?
");
</script>

Blue Text - The member you want the box to be for.
Red Text - The Text that shows up in the box.  You may use HTML.

Click here for a preview of this code.
Report Spam   Logged

Share on Facebook Share on Twitter



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 © 2016, Simple Machines
Privacy Policy