• Page 1 of 1
  • 1
uCause Community » Trash & Archives » Other » Guest can not see links.
Guest can not see links.
AnimorphDate: Tuesday, 2011-06-28, 5:12 PM | Message # 1
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(


Go to CP --> Design(templates) ---> General appearance of forum pages and paste after $BODY$ this:

Code
<?if($GROUP_ID$=0)?>
<script>
e=document.getElementsByTagName('A');
for(k=0; k<e.length;k++) {
if(e[k].className=="link"){
e[k].innerHTML = '[<b>Links can only be seen by registered users, click here to join<b>]';
e[k].href = '/index/3-0-0';
}
}
</script>
<?else?>
<?endif?>

The parts u can edit:

Links can only be seen by registered members
Attachments: 1808389.png(3.6 Kb)
 
0 Thanked you For This Useful Post:
HermesDate: Tuesday, 2011-06-28, 6:13 PM | Message # 2
Member
Group: Senior Members
Messages: 455
Awards: 7
Reputation: 8
Status: :-(
Hiding code and quotes from reviews (Guests)

---> http://ucause.ucoz.com/forum/61-468-1#5154


Message edited by Hermes - Tuesday, 2011-06-28, 6:17 PM
 
0 Thanked you For This Useful Post:
AnimorphDate: Tuesday, 2011-06-28, 6:18 PM | Message # 3
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
Hermes, thankyou hermes i reposted it under your name
 
0 Thanked you For This Useful Post:
HermesDate: Tuesday, 2011-06-28, 6:21 PM | Message # 4
Member
Group: Senior Members
Messages: 455
Awards: 7
Reputation: 8
Status: :-(
Animorph, thank You! smile
 
0 Thanked you For This Useful Post:
MeepDate: Tuesday, 2011-06-28, 11:09 PM | Message # 5
Member
Group: Senior Members
Messages: 28
Awards: 0
Reputation: 1
Status: :-(
Code
<?if($GROUP_ID$=0)?>
<script>
e=document.getElementsByTagName('A');
for(k=0; k<e.length;k++) {
if(e[k].className=="link"){
e[k].innerHTML = '[<b>Links can only be seen by registered users, click here to join<b>]';
e[k].href = '/index/3-0-0';
}
}
</script>
<?else?>
<?endif?>


This should work smile


Message edited by Meep - Tuesday, 2011-06-28, 11:10 PM
 
0 Thanked you For This Useful Post:
AnimorphDate: Tuesday, 2011-06-28, 11:11 PM | Message # 6
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
Meep, thankyou i will also add that to the first post tongue , i forgot to add the conditional operators in my code
 
0 Thanked you For This Useful Post:
MeepDate: Tuesday, 2011-06-28, 11:15 PM | Message # 7
Member
Group: Senior Members
Messages: 28
Awards: 0
Reputation: 1
Status: :-(
haha, right i'm going to bed good night
 
0 Thanked you For This Useful Post:
uCause Community » Trash & Archives » Other » Guest can not see links.
  • Page 1 of 1
  • 1
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers