uCoz Community » uCoz Modules » File Catalog, Site Catalog, Publisher, Ad Board, Online Games » Available for users only Script in File Catalog |
Available for users only Script in File Catalog |
I wanted to put that script below into my file catalog.. I wanted to change the "Available for users only" into my own like "Please register to see th link".. but it doesn't seem to work.. It works perfectly in my forum.. How can I make it to work? Can someone please help me.. Thanks..
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','<font size="3" face="Comic Sans MS"><b>Dear Guest, You are not a Registered User. Please Register or Login first to see the links. Thanks.</b></font>'); } } </script> |
rebelion, i don't see how this is related to group permissions Ronzky's, script is to the text into the hide tags that he posts in forum , but he wants a version that works for file catalog too
Ronzky, i re-tested the code for you and it works for File Catalog also just go to CP ---> Design ---> Design management (templates) ---> File Catalog ---> All pages with $BODY$ add this after $BODY$: 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','<font size="3" face="Comic Sans MS"><b>Dear Guest, You are not a Registered User. Please Register or Login first to see the links. Thanks.</b></font>'); } } </script> To busy building a passive income online ;)
|
The code doesn't work on me.. I dont know why.. I also have another problem.. I dont have an option to select a category but I have my categories.. Image below..
Attachments:
7540186.jpg
(63.0 Kb)
|
Ronzky,
it works correctly on your site Attachments:
8660032.png
(9.7 Kb)
To busy building a passive income online ;)
|
sumeetm4u, you need to add in the $POWERED_BY$ code. This has nothing to do with this script, simply that you need to have the uCoz zopyright somewhere on your site. on all pages.
Hope this helps. Jack of all trades in development, design, strategy.
Working as a Support Engineer. Been here for 13 years and counting. |
Quote (Paradox) you need to add in the $POWERED_BY$ code. This has nothing to do with this script, simply that you need to have the uCoz zopyright somewhere on your site. on all pages. Hope this helps. I tried but nothing happens please check by going on my site............... Visit to pctricksandtips.ucoz.com
|
| |||