December 10, 2018, 11:02:53 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

[IF] Add Today's Top 10 Posters Link To Index

Pages: [1]   Go Down
  Print  
Author Topic: [IF] Add Today's Top 10 Posters Link To Index  (Read 373 times)
Vitality
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 154



View Profile
Badges: (View All)
« on: November 03, 2008, 07:06:55 pm »

I went for another fairly simple code. This one does what the title says it does, it adds the "Today's top 10 posters" link next to the "Overall top 10 posters" link on the board index.

Admin CP - Footers

Preview: [url=http://z9.invisionfree.com/Vitcodetesting/index.php?act=idx]http://z9.invisionfree.com/Vitcodetesting/index.php?act=idx[/url]

Code:
<script type='text/javascript'>
<!--
//Code by Vitality of Phantom-Designs
var b = location.href.split("?")[0];
if(location.href.match(/act=idx||act=index||index.php?||index.php/i)){
var a=document.getElementsByTagName('div')
for(i=0;i<a.length;i++){
if(a[i].innerHTML.match('Overall top 10 posters')){
a[i].innerHTML += "| <a href='"+b+"?&act=Stats'>Today's top 10 posters</a>"
}}}
//-->
</script>
Report Spam   Logged


CODE



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