|
Agent Moose
|
 |
« on: May 20, 2007, 10:40:27 pm » |
|
Add this to your headers if you don't have it already: <script src="jquery.com"></script> Footers: <script> function change_hello(){ //Created by Agent Moose (http://www.smcodes.smfforfree3.com) $(function() { text = "YOUR TEXT HERE" a = $("td span b").html() $("table td.titlebg2 span:contains(Hello)").html(text).append("&nb"+"sp;<b>"+a+"</b>"); });} change_hello(); </script> This codes changes the Hello text at the top of your board... Just change YOUR TEXT HERE to the text you want Hello to become. You may use HTML.
|
|
|
|
« Last Edit: April 23, 2008, 02:32:58 pm by Agent Moose »
|
Logged
|
SMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.[/center]
|
|
|
|
|
|
Kimmie
|
 |
« Reply #1 on: May 20, 2007, 11:04:34 pm » |
|
um....moose...it doesnt say "Your Text Here" anywhere in the code..am I missing something? hehe Also, does this go in the headers or footers? Edit...nm I got it.. I added one more " to where you have the text = " part and put my text in between the "" 
|
|
|
|
« Last Edit: May 20, 2007, 11:06:58 pm by Kimmie »
|
Logged
|
|
|
|
|
Kimmie
|
 |
« Reply #2 on: May 20, 2007, 11:16:17 pm » |
|
moose, I found something that will insert the "blank space" between the greeting and the name.. if forum admins will add this to the end of their greeting that they type in, it will insert a blank space.. Example: text = "Howdi " will yield Howdi with a blank space after it then the members name 
|
|
|
|
« Last Edit: May 20, 2007, 11:18:40 pm by Kimmie »
|
Logged
|
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 3068
Multi-Tasking Maven
|
 |
« Reply #3 on: May 21, 2007, 10:30:33 am » |
|
Forum Url: http://thebacklot.smfforfree3.comOh, that is just too good to waste. I just tried it out in the test area and I can see a lot of potential for this one. Now to see if anyone really reads whats up there on the regular site.
|
|
|
|
|
Logged
|
|
|
|
|
Agent Moose
|
 |
« Reply #4 on: May 21, 2007, 04:17:46 pm » |
|
Thanks for telling me that Kimmie. I edited it to you don't have to add that part to it, also, I put YOUR TEXT HERE part in...sorry for forgeting to add that.
|
|
|
|
|
Logged
|
SMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.[/center]
|
|
|
|
Kimmie
|
 |
« Reply #5 on: May 21, 2007, 04:47:37 pm » |
|
Thanks for telling me that Kimmie. I edited it to you don't have to add that part to it, also, I put YOUR TEXT HERE part in...sorry for forgeting to add that.
no problem 
|
|
|
|
|
Logged
|
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 3068
Multi-Tasking Maven
|
 |
« Reply #6 on: May 22, 2007, 12:37:06 pm » |
|
Forum Url: http://thelaundryroom.smfforfree2.comI am using this on my site, and am having problems with the spacing holding between the text and the name. This part: disappears if you go back into the header and footer section for any reason. It also is doing it on my test forum on smf3, http://thebacklot.smfforfree3.com. Just wanted to let you know, I can live with it the way it is.  PS: I am using Moose's updated code.
|
|
|
|
|
Logged
|
|
|
|
|
simply sibyl
|
 |
« Reply #7 on: May 22, 2007, 12:46:59 pm » |
|
hi Laundry That is normal. Any time you use in the Header or Footer area for anything and then go back at a later time you will not see that code in there. It will still work however, even though you cannot see it.
|
|
|
|
|
Logged
|
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 3068
Multi-Tasking Maven
|
 |
« Reply #8 on: May 22, 2007, 12:54:17 pm » |
|
Sorry Sibyl, it's not holding the space between the text and the name, the space is disappearing along with the code. I guess I didn't explain properly.
|
|
|
|
|
Logged
|
|
|
|
|
simply sibyl
|
 |
« Reply #9 on: May 22, 2007, 12:59:56 pm » |
|
Sorry Sibyl, it's not holding the space between the text and the name, the space is disappearing along with the code. I guess I didn't explain properly.
Ahh okay. Probably because it is part of the script.. something for Agent Moose to look into. I know that if you use that code for other things for spacing , although you wont see it in the header/footer , it still works. Hopefully he can figure a way around this.
|
|
|
|
|
Logged
|
|
|
|
|
Kimmie
|
 |
« Reply #10 on: May 22, 2007, 04:37:14 pm » |
|
Forum Url: http://thelaundryroom.smfforfree2.comI am using this on my site, and am having problems with the spacing holding between the text and the name. This part: disappears if you go back into the header and footer section for any reason. It also is doing it on my test forum on smf3, http://thebacklot.smfforfree3.com. Just wanted to let you know, I can live with it the way it is.  PS: I am using Moose's updated code. As for adding it the way I originally stated,thats normal. When you go back in to "view" the code, all you should see is a blank space there now instead of the code. It will still work though. I havent tried Moose's code yet so I am not sure if his does the same thing. (I just never went back in and changed mine..lol) 
|
|
|
|
|
Logged
|
|
|
|
|
Kimmie
|
 |
« Reply #11 on: May 22, 2007, 04:39:49 pm » |
|
I just tried Moose's code and it works fine too. His is actually easier - that way all you have to type in, is the text you want to appear. The blank space is showing up.
|
|
|
|
|
Logged
|
|
|
|
|
Agent Moose
|
 |
« Reply #12 on: May 23, 2007, 08:15:20 pm » |
|
yep. I am just that cool to do that  . Some codes don't allways keep the space in between it and I don't know why...never figured it out...
|
|
|
|
|
Logged
|
SMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.[/center]
|
|
|
nitishthelegendkiller
SMF For Free Newbie
Offline
Posts: 6
|
 |
« Reply #13 on: June 10, 2007, 12:50:14 am » |
|
Thanks, that is working for me fine.
|
|
|
|
|
Logged
|
|
|
|
Hockey_
SMF For Free Member
Offline
Posts: 83
|
 |
« Reply #14 on: June 13, 2007, 02:55:42 pm » |
|
Forum Url: http://sickgaming.smfforfree2.comIt didn't work for me. It still shows up as "Hello __________". Help
|
|
|
|
|
Logged
|
|
|
|
|
|
|