SMF For Free Support Forum
Signup For Free Forum
November 22, 2008, 12:41:37 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1] 2
  Print  
Author Topic: [Code] Change "Hello" Text  (Read 957 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 666


Do not PM me for Code Support or Request


View Profile
« on: May 20, 2007, 10:40:27 pm »

Add this to your headers if you don't have it already:
Code:
<script src="jquery.com"></script>
Footers:
Code:
<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.[/cen
Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« 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 "" Smiley
« Last Edit: May 20, 2007, 11:06:58 pm by Kimmie » Logged

Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« 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..

Code:
&nbsp;

Example:

Code:
text = "Howdi&nbsp;"

will yield Howdi with a blank space after it then the members name Smiley



« Last Edit: May 20, 2007, 11:18:40 pm by Kimmie » Logged

LaundryLady
Global Moderator
*
Offline Offline

Posts: 3082


Multi-Tasking Maven


View Profile WWW
« Reply #3 on: May 21, 2007, 10:30:33 am »

Forum Url: http://thebacklot.smfforfree3.com
Oh, 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
Moderator
*****
Offline Offline

Posts: 666


Do not PM me for Code Support or Request


View Profile
« 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.[/cen
Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« 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  Wink
Logged

LaundryLady
Global Moderator
*
Offline Offline

Posts: 3082


Multi-Tasking Maven


View Profile WWW
« Reply #6 on: May 22, 2007, 12:37:06 pm »

Forum Url: http://thelaundryroom.smfforfree2.com
I am using this on my site, and am having problems with the spacing holding between the text and the name.

This part:

Quote
&nbsp;

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
Global Moderator
*
Offline Offline

Posts: 9133


Please do not PM me for Support


View Profile WWW
« Reply #7 on: May 22, 2007, 12:46:59 pm »

hi Laundry Smiley   
That is normal.
Any time you use &nbsp;  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 Offline

Posts: 3082


Multi-Tasking Maven


View Profile WWW
« 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
Global Moderator
*
Offline Offline

Posts: 9133


Please do not PM me for Support


View Profile WWW
« 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
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #10 on: May 22, 2007, 04:37:14 pm »

Forum Url: http://thelaundryroom.smfforfree2.com
I am using this on my site, and am having problems with the spacing holding between the text and the name.

This part:

Quote
&nbsp;

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) Smiley
Logged

Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« 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
Moderator
*****
Offline Offline

Posts: 666


Do not PM me for Code Support or Request


View Profile
« Reply #12 on: May 23, 2007, 08:15:20 pm »

yep.  I am just that cool to do that Smiley.

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.[/cen
nitishthelegendkiller
SMF For Free Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #13 on: June 10, 2007, 12:50:14 am »

Thanks, that is working for me fine.
Logged
Hockey_
SMF For Free Member
*
Offline Offline

Posts: 83


View Profile
« Reply #14 on: June 13, 2007, 02:55:42 pm »

Forum Url: http://sickgaming.smfforfree2.com
It didn't work for me. It still shows up as "Hello __________".

Help
Logged



Pages: [1] 2
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.353 seconds with 17 queries.