vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Welcome Table Mod - View Topic
Topic Rating: *****
Printable View
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Welcome Table Mod (11th Nov 08 at 6:09pm UTC)
something really simple,

I just want some type of PM system on the right side of the menu bar. something like "no new pm's" , "New Pm's , "Welcome Guest", some thing like that. But I want them to be in images.

Thanks! {Smile}

ImageImage
dog199200
Guest
Re: Welcome Table Mod (11th Nov 08 at 10:45pm UTC)
this may sound stupid, but I think i can do this easily, but i'm not sure exactly what you mean, i can be an air head from time to time {Smile} SI can i get like a mock image of exactly what you are looking for?
GlitchesSocom
Junior Member
**

[Avatar]
Will code JavaScript for food.

Posts: 67
Status: Offline
Gender: Male
Location: USA
Age: 34
Joined:  
Reputation: 16%  


pmwwwmsnyahooaimgtalkvForum
Re: Welcome Table Mod (12th Nov 08 at 5:41am UTC)
Here ya go {Cool}

Code:
 
  1. <script type = "text/JavaScript">
  2. /*PM Images in Menu
  3. GlitchesSocom*/
  4.  
  5. var nopm="NO NEW PM IMGE URL"
  6. var pm="NEW PM IMAGE URL"
  7. var guest="GUEST IMAGE URL"
  8.  
  9. //No more editing
  10. var link = "/action/pm"
  11. var link2 = "/action/login"
  12. var m = document.getElementById('welcome_table').getElementsByTagName('td')[2];
  13. if(vf_username!="guest" && vf_new_pms!=0){
  14. m.innerHTML = "<div style='float:left'>"+m.innerHTML+"</div><div style='float: right'><a href='"+link+"'><img src='"+pm+"'></a></div>";
  15. }else{
  16. if(vf_username!="guest" && vf_new_pms==0){
  17. m.innerHTML = "<div style='float:left'>"+m.innerHTML+"</div><div style='float: right'><a href='"+link+"'><img src='"+nopm+"'></a></div>";
  18. }else{
  19. if(vf_username=="guest"){
  20. m.innerHTML = "<div style='float:left'>"+m.innerHTML+"</div><div style='float: right'><a href='"+link2+"'><img src='"+guest+"'></a></div>";
  21. }
  22. }
  23. </script>
  24.  
 

Image
dog199200
Guest
Re: Welcome Table Mod (12th Nov 08 at 9:03am UTC)
nice job,,,,*Sigh* out done for being a visual worker....
GlitchesSocom
Junior Member
**

[Avatar]
Will code JavaScript for food.

Posts: 67
Status: Offline
Gender: Male
Location: USA
Age: 34
Joined:  
Reputation: 16%  


pmwwwmsnyahooaimgtalkvForum
Re: Welcome Table Mod (12th Nov 08 at 2:46pm UTC)
haha sorry Dwight =]

Image
dog199200
Guest
Re: Welcome Table Mod (13th Nov 08 at 9:14am UTC)
np, as long as he got a working code
 Printable View

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