News:

Create A Forum Installed

Author Topic: [Code] Add Box to Stats  (Read 2833 times)

0 Members and 1 Guest are viewing this topic.

Offline Fate

  • Newbie
  • *
  • Posts: 36
  • Karma: -1
  • Gender: Male
  • US Navy Seal - Commander Fate
    • View Profile
    • CIA

Badges: (View All)
Level 3 Topic Starter Combination
Re: [Code] Add Box to Stats
« on: August 04, 2010, 07:33:30 pm »
A preview can be found on my site using simple html. This is the code I used:

Code: [Select]
<script type="text/javascript">
function AddBoxToStats(Title, Info){
   //Created by Agent Moose
   if(document.getElementById("upshrinkHeaderIC") !== null) document.getElementById("upshrinkHeaderIC").innerHTML += "<div class='title_barIC'><h4 class='titlebg'><span class='ie6_header floatleft'><img src='https://cdn.smfboards.com/caf/images/icons/online.gif' /> " + Title + "</span></h4></div><p class='inline'>" + Info + "</p>";
};
AddBoxToStats("Featured Members","<a href='http://cfcoding.createaforum.com/index.php?action=profile;u=1'>Fate</a>, <a href='http://cfcoding.createaforum.com/index.php?action=profile;u=3'>Nick</a>, <a href='http://cfcoding.createaforum.com/index.php?action=profile;u=2'>Agent Moose</a>");
</script>


If you wish to use the Featured Members thing, just replace "cfcoding" with your Forum. Replace the names above to the names of your members that you want to display. Replace the "u=1" (or whatever number is shown above) with the user number of that person.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1339 Views
Last post March 14, 2012, 04:53:55 pm
by aIURbliS
4 Replies
1093 Views
Last post June 17, 2013, 07:09:14 pm
by CreateAForum
1 Replies
682 Views
Last post October 02, 2013, 12:30:52 pm
by CreateAForum
1 Replies
453 Views
Last post July 11, 2014, 04:02:43 pm
by Amila
6 Replies
754 Views
Last post April 28, 2015, 02:35:13 pm
by adrian207