vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Menu bar mod - View Topic
Topic Rating: *****
Printable View
This topic was locked 26th Apr 08 at 9:43am by Michael
[.tR] ookie1
Full Member
***

[Avatar]
Is it choccy?

Posts: 167
Status: Offline
Joined:  
Reputation: 3%  


pm
[F] Menu bar mod (23rd Apr 08 at 6:57am UTC)
I need a code that removes the help button and the pm bar thingy and adds a image to the menu bar with whether you have new pm's or not.




Image

Hallelujah! 'tis done; I believe on the Son; I am saved by the blood of the Crucified One!
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Menu bar mod (23rd Apr 08 at 9:20pm UTC)
I'm not sure what Ross' policy is on removing the "Help" button, as that's a quick link for members to get support. I'll notify him of this thread and see what he says. {Smile}

EDIT: Ross says it's okay; I'll get to this a little later for you, though. Working on a project for guitar class at the moment.

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Menu bar mod (24th Apr 08 at 8:56pm UTC)
Use this. Edit the part in capitals for the 2 images! {Smile}

<style>
#user_table {
display: none;
}
</style>

<script>

var n = 'LINK TO NEW IMAGE';
var o = 'LINK TO NO NEW IMAGE';

var y = get('menu_buttons','id');
var x = y.getElementsByTagName('a');
for(a=0;a<x.length;a++){
    if(x[a].href.match(/support.v/)){
        x[a].style.display = 'none';
    }
}

if(vf_username!='guest'){
    var a = document.createElement('a');
    a.href = '/action/pm';
    var i = document.createElement('img');
    i.src = (vf_new_pms>0)? n : o;
    a.appendChild(i);
    y.getElementsByTagName('font')[0].appendChild(document.createTextNode(' :: '));
    y.getElementsByTagName('font')[0].appendChild(a);
}
</script>


Global Header
[.tR] ookie1
Full Member
***

[Avatar]
Is it choccy?

Posts: 167
Status: Offline
Joined:  
Reputation: 3%  


pm
Re: Menu bar mod (25th Apr 08 at 11:39pm UTC)
Thanks {Grin}




Image

Hallelujah! 'tis done; I believe on the Son; I am saved by the blood of the Crucified One!
 Printable View

All times are GMT+0 :: The current time is 9:07am
Page generated in 0.1351 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums