Simple Machine Codes
November 23, 2009, 12:22:02 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 Affiliates Code Index Staff List Calendar Members Login Register  

Add Blog Links


Pages: [1]   Go Down
  Print  
Author Topic: Add Blog Links  (Read 294 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,664



View Profile WWW
« on: May 13, 2008, 08:22:19 pm »

Below the Board:
Code:
<script>
function BlogLinks(name,url){
if(location.href.match("/blog/")){
//Created by Agent Moose (smcodes.smfforfree3.com)
var a = document.getElementsByTagName("a");
for(x=0;x<a.length;x++){
if(a[x].innerHTML == "Change Blog Settings"){
a[x].parentNode.innerHTML += " · <a href='" + url + "'>" + name + "</a>";
};};};};
BlogLinks("NAME","URL");
</script>

This will add how ever many links you want next to the "Change Blog Settings" link in the Blog section.

NAME = The Name of the URL
URL = The URL.

To add more links, add more of these lines:
Code:
BlogLinks("NAME","URL");

Enjoy Smiley
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

Powered by SMF | SMF © 2006, Simple Machines LLC
ServerBeach Coupon