...

View Full Version : i need to edit this



Lfe
12-03-2006, 05:30 PM
<script>
var User = new Array();
//Username,Clan
User[0] = ["Warden","<b><P align=center>Clan: </b><a href=' http://z6.invisionfree.com/d2traders/index.php?act=SR&f=47'>D2light</a>"]
User[1] = ["Ctrl-Alt-Delete","<P align=center><b><P align=center>Clan:</b> <a href=' http://z6.invisionfree.com/d2traders/index.php?act=SR&f=47'>D2light</a>"]
User[2] = ["Drakel","</center><b><P align=center>Clan:</b> <a href=' http://z6.invisionfree.com/d2traders/index.php?act=SR&f=47'>D2light</a><center></P>"]

if(location.href.match("showtopic=")){
for(i=0; i<User.length; i++){
a = document.getElementsByTagName("span")
for (n=0; n<a.length; n++){
if(a[n].innerHTML.match(User[i][0])&&a[n].className=="normalname"){
a[n+2].innerHTML = a[n+2].innerHTML + "<b></b> "+User[i][1]+"";
}}}}
</script>

i need to edit this so the link will show's under
Join Date

_Aerospace_Eng_
12-03-2006, 07:59 PM
a[n+2].innerHTML = a[n+2].innerHTML + "<b></b> "+User[i][1]+"<br>";
Its really simple html.

Lfe
12-03-2006, 09:27 PM
but i dont know where to put The Join date script

make could you do it from me ?

Lfe
12-04-2006, 01:26 PM
Bring my topic up

Lfe
12-04-2006, 05:59 PM
Bumps

david_kw
12-04-2006, 07:45 PM
Instead of bumping your topic try looking at your question to try and see why people might not be answering.

- does my question make sense?
- do I need to give more information?
- is the script I posted enough for people to answer my question?
- do I already have the answer and just need to implement it?
- would it help if I gave a link to my page?

I can only speak for myself but I see you saying you want a link below a join date. I see a bunch of links and I see no join date. Not to mention the fact that I don't understand your code. I see you adding bold tags around nothing and nested anchor links. Does that even work?

Once again Aero impresses in that he even tried to answer. You can try his solution by looking at your code to find the line he suggested changing and making that line look like his. (line 12 in your code)

Just some thoughts to ponder on. Sorry but I couldn't answer your question even if I wanted to because I have no idea what you are trying to do.

david_kw

Lfe
12-12-2006, 08:36 PM
bumpss

Lfe
12-16-2006, 05:06 PM
i made this But not works :


<script type="text/javascript">
<!--

var User = new Array();

// Username, Clan
User[0] = ["Warden", "<a href='http://z6.invisionfree.com/d2traders/index.php?act=SR&f=47'>D2light</a>"];
User[1] = ["Ctrl-Alt-Delete", "<a href='http://z6.invisionfree.com/d2traders/index.php?act=SR&f=47'>D2light</a>"];
User[2] = ["Drakel", "<a href='http://z6.invisionfree.com/d2traders/index.php?act=SR&f=54'>CookieMonsters Army</a>"];
User[3] = ["CmA-Projekt", "<a href='http://z6.invisionfree.com/d2traders/index.php?act=SR&f=54'>CookieMonsters Army</a>"];

if(location.href.match(/showtopic=\d+/i)) {
var a = document.getElementsByTagName("span")
for(var b = 0; b < a.length; b ++) {
for(var c = 0; c < User.length; c ++) {
if(a[b].className == "normalname" && a[b].innerHTML.match(new RegExp(User[c][0], "gi"))) {
var s = a[b].parentNode.parentNode.parentNode.rows[1].cells[0].getElementsByTagName("span")[0];
s.innerHTML = s.innerHTML.replace(new RegExp("(Joined.*\\d{4})", "gi"), "$1<br>Clan: " + User[c][1]);
}
}
}
}
// -->
</script>

whizard
12-16-2006, 07:01 PM
Since you sent me a PM asking for help here, I'm taking another look - yes, I did already view this topic and decided I had no idea what was going on.

After taking another look, I still

[have] no idea what['s] going on

Could you explain a little more clearly exactly what your problem is?

Dan

Lfe
12-17-2006, 12:33 PM
ok i try to explain

i made this code for add a new link to a user i want that you can view here:

http://z6.invisionfree.com/d2traders/index.php?showtopic=228&st=0&#last
You can see The user got Clan: d2light

But the link show's under the warn level that i want to do so the link will shows under join date like here: http://forums.d2evil.org/index.php?showtopic=137219&st=0&#entry614549

Im Trying to make a nice clan system

Hope you understand.

whizard
12-17-2006, 12:43 PM
<script>
var User = new Array();
//Username,Clan
User[0] = ["Warden","<b><P align=center>Clan: </b><a href=' http://z6.invisionfree.com/d2traders/index.php?act=SR&f=47'>D2light</a>"]

if(location.href.match("showtopic=")){
for(i=0; i<User.length; i++){
a = document.getElementsByTagName("span")
for (n=0; n<a.length; n++){
if(a[n].innerHTML.match(User[i][0])&&a[n].className=="normalname"){
a[n+2].innerHTML = a[n+2].innerHTML + "<b></b> "+User[i][1]+"";
}}}}
</script>


Change the part in red to:
<P align=center style="display:inline;">

Dan

Lfe
12-17-2006, 01:31 PM
Did not worked i mean the link should shows over warn level and shows under join date.

Like here.. http://forums.d2evil.org/index.php?s...0&#entry614549

Lfe
12-19-2006, 04:24 PM
:S plz help me .

Lfe
12-20-2006, 12:32 PM
bumpfr

whizard
12-20-2006, 06:25 PM
Did not worked i mean the link should shows over warn level and shows under join date.
Like here.. http://forums.d2evil.org/index.php?s...0&#entry614549

A: Don't bump your posts. If people want to help you, they will. You're not going to win them over by posting almost NO information and then bumping the thread and sending them private messages with the attitude that they are somehow required to help you.

B: I went to the link (that I quoted above) and I got the forum index. There was no 'warn level' or 'join date'.

If you want help, be SPECIFIC.

Although I fear this thread is reaching the end of shelf life.

<EDIT>
Found your link farther up in the post and it worked, I got a thread. As far as I could tell, the 'Clan:' WAS above 'Warn Level' and below 'Join Date'....

Not sure what the problem is then...

Note: Please don't link to pages with porn on them
</EDIT>

Dan

Lfe
12-21-2006, 11:01 AM
BUT can you help me +

whizard
12-21-2006, 04:27 PM
Possibly, but only if I knew what your problem was...

As I said, I went to your site and didn't see anything wrong.

Dan

Lfe
12-21-2006, 06:49 PM
i dont want it under warn i want

it under join date..



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum