uCoz Community uCoz Modules Forum Available for users only text |
Available for users only text |
I Got Lot's Of Threads Like I Have Posted Now , But I didn't Understand Those Thread Didn't Work For me
I Want To Change "Available For Users Only" To My Own Text/Massage Please Tell Me How Regards. Attachments:
9587917.png
(2.2 Kb)
If I Help you then Please +Rep and Awards
|
Susmoy,
Code <script> e=document.getElementsByTagName("span"); for(i=0;i<e.length;i++) { if(e[i].className=='UhideBlockL') { e[i].innerHTML=e[i].innerHTML.replace('Available to users only','YOURTEXT'); } } </script> "YOURTEXT" should be substituted with the text you need. Paste this code under $BODY$ in Control Panel » Customize design » Forum » General appearance of forum pages |
Susmoy,
Quote (Susmoy) I am Really Sorry To Say It Is Still Showing The Same That's mean Not Working.Please Provide a Working Script. The script itself works. The problems are causing by the HTML code you have embedded instead of "YOURTEXT". There is nothing we can do about it. The only thing we can suggest you is to learn HTML and JS. |
CreativeCollusions, Ohh..Sorry I thought He is a Male But Now He Become She..
By The way : check this link out..you will see "Available For Users Only" i want to change it to my own text..but how? http://premiumworld.ucoz.com/forum/4-160-1 Added (2011-06-08, 11:57 PM) If I Help you then Please +Rep and Awards
|
Susmoy, The script does work. If you use it without changing "YOURTEXT" paty - you will see that it works.
Quote (Natashko) The problems are causing by the HTML code you have embedded instead of "YOURTEXT". There is nothing we can do about it. The only thing we can suggest you is to learn HTML and JS. |
Quote (Susmoy) Should I Change "YOURTEXT" to My own Massage Yes. Unlike computers, no human brain has ever said:" Hard drive full."
|
Susmoy,
Quote (Susmoy) Should I Change "YOURTEXT" to My own Massage Or I have to change other Words?? Yes, it can be a text or code or JScripts even. But to add your own codes or scripts - you need to have additional knowledge of HTML and JS. |
Natashko, OK Ma'am Thanks For Your Reply at This Moment
And Ma'am The Problem is, I am Trying to Put this Code(My Own): Code <script> e=document.getElementsByTagName("span"); for(i=0;i<e.length;i++) { if(e[i].className=='UhideBlockL') { e[i].innerHTML=e[i].innerHTML.replace('Available for users only','<b>Dear Visitor Please</b> <a class="fNavLink" href="$$LOGIN_LINK$" rel="nofollow"><!--<s5209>--><b>Login</b><!--</s>--></a> <b>Or</b> <a class="fNavLink" href="$$REGISTER_LINK$" rel="nofollow"><!--<s5209>--><b>Register</b><!--</s>--></a> <b>To See The Hidden Content!</b>'); } } </script> But It Is Not Working But When I put this: 'Dear Visitor,Please Login Or Register To See The Hidden Content' on 'YOURTEXT' then it works..but i want to show it like i have shown above. Please Help Me Ma'am Regards, If I Help you then Please +Rep and Awards
Post edited by Susmoy - Monday, 2011-06-13, 6:03 PM
|
I Have Use this Script this is Working Fine
Look this SDMTEAM $BODY$ <!-- </Hide Code Massage> --> <?if($USER_LOGGED_IN$)?><?else?> <script> e=document.getElementsByTagName('A'); for(k=0; k<e.length;k++) { if(e[k].className=="link"){ e[k].innerHTML = '<font color="Orange"><b>[Links Can Only be seen by Registered Members, You do not have Sufficient Rights.]<b></font>'; e[k].href = '/index/3'; } } </script> <?endif?> <!-- </Hide Code Massage> --> |
SDMTEAM,
Quote (SDMTEAM) I Have Use this Script this is Working Fine Look this SDMTEAM $BODY$ <!-- </Hide Code Massage> --> <?if($USER_LOGGED_IN$)?><?else?> <script> e=document.getElementsByTagName('A'); for(k=0; k<e.length;k++) { if(e[k].className=="link"){ e[k].innerHTML = '<font color="Orange"><b>[Links Can Only be seen by Registered Members, You do not have Sufficient Rights.]<b></font>'; e[k].href = '/index/3'; } } </script> <?endif?> <!-- </Hide Code Massage> --> Your code will not work in my site because in your code when users click that redirect to Register page but in my site that redirect to Login Links. so i have to make some more changes to use your code. but thanks for your help.and if you solve my problem i'll be thankfull If I Help you then Please +Rep and Awards
|
| |||