vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Rebuilding Navigation Menu - View Topic (Page 2 of 2)Page: 1 2
Topic Rating: *****
Printable View
Dreg[Bot]
Moderator
*****

[Avatar]
Broken

Posts: 415
Status: Offline
Gender: Male
Age: 36
Joined:  

Additional Groups:
Coding Team
***


Reputation: 14%  


pm
Re: Rebuilding Navigation Menu (10th Sep 09 at 4:32pm UTC)
You use a Loop =]

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3.  
  4. for(var i = 0; i < vf_usergroup.length; i ++)
  5. {
  6.     if(vf_usergroup[i] == '1')
  7.     {
  8.         document.write('MMOOO');
  9.     }
  10. }
  11.  
  12. //-->
  13. </script>
 




Image

Now obsession rules my mind
This commotion makes me blind
Searching out who ever runs
Or has stolen away my life

But i've already said

Don't ever back down
Don't ever turn around
My end has come
So now I come for you....

dog199200
Guest
Re: Rebuilding Navigation Menu (10th Sep 09 at 5:18pm UTC)
doesn't work.
Dreg[Bot]
Moderator
*****

[Avatar]
Broken

Posts: 415
Status: Offline
Gender: Male
Age: 36
Joined:  

Additional Groups:
Coding Team
***


Reputation: 14%  


pm
Re: Rebuilding Navigation Menu (10th Sep 09 at 8:02pm UTC)
works for me, be a little more specific {Tongue Out} (its even on the test forum)


Image

Now obsession rules my mind
This commotion makes me blind
Searching out who ever runs
Or has stolen away my life

But i've already said

Don't ever back down
Don't ever turn around
My end has come
So now I come for you....

dog199200
Guest
Re: Rebuilding Navigation Menu (10th Sep 09 at 10:21pm UTC)
by it doesn't work as in its not doing anything at all. I even tired leaving the MMOOO in and seeing it that would work and it doesn't. try this on the test forum and see if it works please:

Code:
 
  1. <script type="text/javascript">
  2. for(var i = 0; i < vf_usergroup.length; i ++)
  3. {
  4. if(vf_usergroup[i] == '1')
  5. {
  6. document.write('<li><a href=/action/admin><span><span>Admin Panel</span></span></a></li><li><a href=/action/register><span><span>Register User</span></span></a></li>');
  7. }
  8. }
  9. </script>
 




Edit: It seems as if defining events via group isn't working at all on my forum.
Dreg[Bot]
Moderator
*****

[Avatar]
Broken

Posts: 415
Status: Offline
Gender: Male
Age: 36
Joined:  

Additional Groups:
Coding Team
***


Reputation: 14%  


pm
Re: Rebuilding Navigation Menu (11th Sep 09 at 1:35am UTC)
Okay i updated the codes, try them now =] Found a small bug since multiple groups.


Image

Now obsession rules my mind
This commotion makes me blind
Searching out who ever runs
Or has stolen away my life

But i've already said

Don't ever back down
Don't ever turn around
My end has come
So now I come for you....

dog199200
Guest
Re: Rebuilding Navigation Menu (11th Sep 09 at 2:23am UTC)
ok it works now, thank you {Smile}
Dreg[Bot]
Moderator
*****

[Avatar]
Broken

Posts: 415
Status: Offline
Gender: Male
Age: 36
Joined:  

Additional Groups:
Coding Team
***


Reputation: 14%  


pm
Re: Rebuilding Navigation Menu (11th Sep 09 at 8:00am UTC)
NO prob =]


Image

Now obsession rules my mind
This commotion makes me blind
Searching out who ever runs
Or has stolen away my life

But i've already said

Don't ever back down
Don't ever turn around
My end has come
So now I come for you....

 Printable View
Page: 1 2

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