We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Adding a script in the Active User Block
Topic Started: Jun 30 2011, 10:51 AM (590 Views)
Rusty_Cage
Member Avatar
Member
[ * ]
Board Address: http://www.eleganceinviolence.tk
Board Software: ZetaBoards

Description:
I'm requesting something that allows me to use a script in the Active User Block above the text on the portal page.
Actually I only want to use this script here: <script type="text/javascript" src="http://jd.revolvermaps.com/t.js"></script><script type="text/javascript">rmt_ki101('5',130,'3et9jr3acOx','ff0000');</script>
Currently the script is in another portal block above the Active User Block but I would like to have it above the text in same block. Just click the link to my board to see what I mean.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$(".portal_box h2:contains(Visitors) + .portal_content").contents().prependTo(".portal_box h2:contains(Statistics) + .portal_content");
$(".portal_box h2:contains(Visitors)").parent().remove();
</script>
Offline Profile Goto Top
 
Rusty_Cage
Member Avatar
Member
[ * ]
Instead of the Active User block it's placed in the Board Statistics.
I tried myself to replace the (Statistics) with Active User, Online User and User, something like that but nothing worked.

Also, I noticed a copy the rotating globe at the bottom of the portal page when I use the script.
If there isn't any way around that It would be ok. Who scroll down there? Nobody.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
$(".portal_box h2:contains(Visitors) + .portal_content").contents().prependTo(".portal_box h2:contains(Active Users) + h4");
$(".portal_box h2:contains(Visitors)").parent().remove();
</script>
Try that.

I'll try to figure out the other issue if it still happens.
Offline Profile Goto Top
 
Rusty_Cage
Member Avatar
Member
[ * ]
Fantastic, that is exactly want I wanted and it looks really great :D
The copy is still at the bottom but as I already said before, it's not that bad if it can't be fixed.

Thank you, seriously... I'm really thankful for this.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
script + object {
display: none;
}
Add that to your CSS to remove the second flash object.
Offline Profile Goto Top
 
Rusty_Cage
Member Avatar
Member
[ * ]
It does remove the globe at the bottom but also my YouTube videos and the music player at the portal page. :P
Anways... nevermind Cory, I'm fine with the result.

Thanks again. ;)

Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
script + object[data] {
display: none;
}
That should work. :)
Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic