Board Logo
« Your Link in Info Center »

Welcome Guest. Please Login or Register.
Feb 9th, 2010, 4:34pm



Coding Forum
Important News
Remember to add where the code goes in the headers/footers.

Also, please check the list of codes on the Hacks board, especially if you have an error. The code may already have been corrected.
Thanks.
Welcome to the Conforums Hacks Board!

Please follow these simple rules.

1. No spamming.
2. Do not advertise your board in here!
3. Keep on topic, or the thread will be locked.
4. No flame wars.
5. No bringing up old topics.

Please note: For codes other than those submitted in the Hacks Forum, please ask for permission to use from the creator. Be aware that coding queries in the Coding Forum become public domain. If you still seek coding help but find it inconvenient to display it publicly then please PM one of the moderators. We encourage all queries to be submitted here in hopes to help other members who might have the same question. Thank you.

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
Gizzy


Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Your Link in Info Center  (Read 578 times)
dodz
Member
Image

member is offline

Avatar




PM

Gender: Male
Posts: 6
xx Your Link in Info Center
« Thread started on: Sep 3rd, 2006, 05:34am »

This code puts a link of your choice in your info center.
You can preview it here

Code:
<script>
// Copyright dodz
var TD = document.getElementsByTagName("TD");

for(t=0;t<TD.length;t++){
if(TD[t].width=="60%" && TD[t].vAlign=="top" && TD[t].innerHTML.match(/Total Topics: /i) && TD[t].innerHTML.match(/Total Posts: /i)){
TD[t+5].innerHTML +='<b'+'r>'

TD[t+5].innerHTML += '<font size=1><a href="http://urltowhereever">YOUR TEXT HERE</a><font>'
}}
</script> 


This code goes in your main footer :)
User IP Logged

Aces
Member
Image

member is offline

Avatar




PM


Posts: 135
xx Re: Your Link in Info Center
« Reply #1 on: Sep 6th, 2006, 8:56pm »

Cool code. smiley
« Last Edit: Sep 7th, 2006, 1:55pm by Aces » User IP Logged

dodz
Member
Image

member is offline

Avatar




PM

Gender: Male
Posts: 6
xx Re: Your Link in Info Center
« Reply #2 on: Sep 18th, 2006, 2:47pm »

Thanks, can this be put in the database?
User IP Logged

dodz
Member
Image

member is offline

Avatar




PM

Gender: Male
Posts: 6
xx Re: Your Link in Info Center
« Reply #3 on: Oct 26th, 2006, 09:21am »

on Sep 18th, 2006, 2:47pm, dodz wrote:
Thanks, can this be put in the database?

?
User IP Logged

Dave
I've always wanted one of these wink
Conforums Administrator
ImageImageImageImageImage

member is offline

Avatar

Mr Fixit...

AIM
Homepage PM

Gender: Male
Posts: 16153
xx Re: Your Link in Info Center
« Reply #4 on: Oct 26th, 2006, 12:47pm »

It could be added to the hacks database, but there is an easier way of locating the user online cell...

Try this instead:

<script type="text/javascript">
// Copyright dodz
<!--
if(document.getElementById('info_center')) {
var TD = document.getElementById('info_center').getElementsByTagName("TD")[10];
TD.innerHTML +='<br />'
TD.innerHTML += '<font size=1><a href="http://urltowhereever">YOUR TEXT HERE</a><font>'
}
// -->
</script>

This will also stop the script from running on any other page than the front page - increasing page load times.


User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Garet
Conforums Elite
Senior Member
ImageImageImageImage

member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2019
xx Re: Your Link in Info Center
« Reply #5 on: Oct 26th, 2006, 4:12pm »

If you want me to add it let me know and i will be glad to.

on Oct 26th, 2006, 12:47pm, Dave wrote:
It could be added to the hacks database, but there is an easier way of locating the user online cell...

Try this instead:

<script type="text/javascript">
// Copyright dodz
<!--
if(document.getElementById('info_center')) {
var TD = document.getElementById('info_center').getElementsByTagName("TD")[10];
TD.innerHTML +='<br />'
TD.innerHTML += '<font size=1><a href="http://urltowhereever">YOUR TEXT HERE</a><font>'
}
// -->
</script>

This will also stop the script from running on any other page than the front page - increasing page load times.


User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top

New Monthly Ad-Free Plan!

$6.99 Gets 50,000 Ad-Free Pageviews!
| Refresh Text | Free Shoutboxes |

This Board Hosted For FREE By Conforums ©
Get Your Own Free Message Board!