Online/offline Code Did Not Work - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Site and Server Administration > Forum Management » Online/offline Code Did Not Work


Closed Thread
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 11-27-2005   #1 (permalink)
DestinyTheBlackAngel
Junior Member
 
DestinyTheBlackAngel's Avatar
 
Join Date: Nov 2005
Posts: 10
Default

The post I made about the offline/online thing, the code didn't work. If you guys know a different code then please tell me :)
DestinyTheBlackAngel is offline  


Old 11-27-2005   #2 (permalink)
Lotus Pod
Junior Member
 
Join Date: Nov 2005
Posts: 15
Default

The code works.. I've tried it on my own personal forums. It works perfectly.. The only thing wrong with the code is the fact that the Images do not work. This can be easily remedied..

Quote:
[b]script>//Online/Offline Legend v2 - By Markup
dir="http://webpost.net/ma/markup/"
home=location.href.lastIndexOf("/")>26?location.href.substr(0,location.href.lastInd exOf("/")):location.href
names=[]
if(top.location==location)
document.write("<IFRAME id=index name=index src="+home+" width=0 height=0 border=0 frameBorder=0></IFRAME>")
else
{
div=document.body.getElementsByTagName("DIV")
for(i=0;i<div.length;i++)
if(div[i].className=="thin")
Â* break
a=div[i].getElementsByTagName("A")
for(i=0;i<a.length;i++)
names[i]=a[i].innerHTML.replace(/<[^>]+>/g,"")
parent.updateStatus()
}
function updateStatus()
{
td=document.body.getElementsByTagName("TD")
for(i=0;i<td.length;i++)
if((td[i].className=="post1"||td[i].className=="post2")&&td[i].innerHTML.match("Posts: ")&&td[i].width!="100%")
{
Â* found=false
Â* sPost=td[i].getElementsByTagName("SPAN")[0]
Â* names=parent.frames['index'].names
Â* for(a=0;a<names.length;a++)
Â* if(td[i-2].innerHTML.replace(/<[^>]+>/g,"")==names[a])
Â* {
Â* Â* sPost.innerHTML+="<P align=center>[img][b]+dir+[/img]"></P>"
Â* Â* found=true
Â* }
Â* if(!found)
Â* sPost.innerHTML+="<P align=center>[img]+dir+[/img]"></P>"
}
}
</script>
First) Make 2 Small images with one saying "Online) and the other saying "Offline."
Second) Upload them to a photobucket or to a different image host.
Third) Replace the Red stuff with the Offline Image. The green is to be replaced by the Online Image.
Fourth) Copy/Paste the edited code to the Board Wrappers > Footer and press submit..

That *should* remedy your problem.. If it doesnt, I'll find a better code for you.. I'll probably end up asking one of the admins over at IFS to send me the Online/Offline code that they use over there.
Lotus Pod is offline  

Old 11-27-2005   #3 (permalink)
Xome
Senior Member
 
Join Date: Sep 2005
Location: United States
Posts: 1,750
Send a message via AIM to Xome Send a message via MSN to Xome Send a message via Yahoo to Xome
Default

<div align=center>Question Answered
Your question has been answered. If you feel it hasn't been answered correctly you can feel free to start a new topic.</div>
__________________
http://www.mechmuse.com
Xome is offline  

Closed Thread



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Offline Marketing kconnections Marketing 7 08-02-2006 09:14 PM
Offline or online business kconnections General Business Issues 2 08-01-2006 11:57 PM
Code doesn't work in messages Bendo13 All Things General 5 06-18-2006 05:21 PM
Have Board Online/Offline Jarett. Forum Management 1 04-13-2006 03:50 PM
Offline/online DestinyTheBlackAngel Forum Management 3 11-27-2005 01:27 AM


footer left
All times are GMT. The time now is 10:52 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Myspace Layouts | Debt Help | Property in Spain | Business Credit Cards | Debt Consolidation

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49