Simple Machine Codes
December 15, 2018, 04:31:13 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 Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Add Profile Box

Pages: [1]   Go Down
  Print  
Author Topic: Add Profile Box  (Read 1633 times)
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: June 22, 2007, 08:42:05 pm »

Code:
<script>
function add_profile_box(){
var title = "YOUR TITLE HERE";
var text = "YOUR TEXT HERE";
if(location.href.match(/action=profile/i)){
document.getElementById("bodyarea").innerHTML = "<div><table border='0' cellpadding='4' cellspacing='1' class='bordercolor' width='100%'><tr><td class='titlebg'><center>" + title + "</center></td></tr><tr class='windowbg2'><td class='smalltext'>" + text + "</td></tr></table></div>" + document.getElementById("bodyarea").innerHTML;
};};
add_profile_box()</script>

Place in Footers.

This adds a box into everyones profile.  So if you view someones profile, it will be up at the very top.
Just change YOUR TITLE HERE to your Title of the box.  Change YOUR TEXT HERE to the text that will be in the box.  You may use HTML.
« Last Edit: May 02, 2008, 09:09:32 pm by Agent Moose » Report Spam   Logged

deathwilldie
100 Club Member

Offline Offline

Posts: 214


View Profile WWW
« Reply #1 on: June 22, 2007, 10:41:52 pm »

Now this is a pretty cool code.
Report Spam   Logged

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #2 on: January 04, 2008, 01:25:22 pm »

nice job
Report Spam   Logged

Newest:

Myrtle
The Girl With The Forum.
100 Club Member

Offline Offline

Gender: Female
Posts: 480


Death Note(Credits to Kai): Myrtle_Gail, Myr-chan


View Profile WWW
« Reply #3 on: February 05, 2008, 06:27:14 am »

Thanks I like this code Smiley I'm using it Smiley
Report Spam   Logged

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #4 on: February 05, 2008, 02:18:05 pm »

i dont understand this code!
Report Spam   Logged

Newest:

tonypker13
Ummmm Did I just Pwn myself?
Members

Offline Offline

Posts: 86

I think i just owned myself?


View Profile
« Reply #5 on: June 17, 2008, 01:41:36 am »

post an example please?
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 | Buy traffic for your forum/website

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy