uCoz Community » uCoz Modules » Forum » Available for users only text
Available for users only text
Susmoy
Posts: 185
Reputation: 6

Message # 16 | 11:52 AM
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
Natashko
Posts: 3366
Reputation: 171

Message # 17 | 2:34 PM
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
Posts: 185
Reputation: 6

Message # 18 | 3:05 PM
I am Really Sorry To Say It Is Still Showing The Same That's mean Not Working.Please Provide a Working Script.
If I Help you then Please +Rep and Awards
Natashko
Posts: 3366
Reputation: 171

Message # 19 | 3:35 PM
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.
Susmoy
Posts: 185
Reputation: 6

Message # 20 | 4:29 PM
Natashko, I Have Done All Things That You Told ME To DO. But Still Not Working . Please Help Me Sir.
If I Help you then Please +Rep and Awards
CodeResolution
Posts: 1570
Reputation: 58

Message # 21 | 4:40 PM
Susmoy, please provide a link to your website and I shall have a look. Also Natashko is female so please don't address her as 'Sir' wink
Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Susmoy
Posts: 185
Reputation: 6

Message # 22 | 5:57 AM
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)
---------------------------------------------
Please Help Anyone


If I Help you then Please +Rep and Awards
Natashko
Posts: 3366
Reputation: 171

Message # 23 | 3:59 PM
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.
Susmoy
Posts: 185
Reputation: 6

Message # 24 | 6:03 AM
Natashko, Ok Ma'am Just Tell Me What To Change?? Should I Change "YOURTEXT" to My own Massage Or I have to change other Words??
If I Help you then Please +Rep and Awards
Sanjay_149
Posts: 212
Reputation: 5

Message # 25 | 3:03 PM
Quote (Susmoy)
Should I Change "YOURTEXT" to My own Massage


Yes. wink

Unlike computers, no human brain has ever said:" Hard drive full."
Susmoy
Posts: 185
Reputation: 6

Message # 26 | 4:40 PM
Sanjay_149, Maybe I Didn't Asked you To Answer But You Answered . Good Job .
If I Help you then Please +Rep and Awards
Natashko
Posts: 3366
Reputation: 171

Message # 27 | 12:45 PM
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.
Susmoy
Posts: 185
Reputation: 6

Message # 28 | 5:26 PM
Natashko, OK Ma'am Thanks For Your Reply at This Moment smile

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
SDMTEAM
Posts: 84
Reputation: 0

Message # 29 | 7:55 AM
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> -->
Susmoy
Posts: 185
Reputation: 6

Message # 30 | 8:27 AM
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
uCoz Community » uCoz Modules » Forum » Available for users only text
Search: