• Page 1 of 2
  • 1
  • 2
  • »
uCause Community » Trash & Archives » Other » Guest can not see link V2 (by hermes)
Guest can not see link V2
AnimorphDate: Tuesday, 2011-06-28, 6:17 PM | Message # 1
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
Hiding code and quotes from reviews (Guests)

This script will help you hide the codes and quotes from the guests.

Installation

1) CP ---> Design ---> Design management (templates) ---> Forum ---> General appearance of forum pages after $BODY$
2) The KP \ Control design \ page material and its comments \ after $ MESSAGE $
insert:

Code
<?if($GROUP_ID$=0)?>              
               <script>
               $('.quoteMessage').html('$USERNAME$, you can not see this quote, you're in a group "Guests", <a href="/index/1" target="_blank">Log in</a> or <a href="$REGISTER_LINK$" target="_blank">Register</a>.');              
               </script>              
               <script>              
               $('.codeMessage').html('$USERNAME$, you can not view this code, you're in a group "Guests", <a href="/index/1" target="_blank">Log in</a> or <a href="$REGISTER_LINK$" target="_blank">Register</a>.');              
               </script>              
               <?else?>              
               <?endif?>


That's all. Enjoy new members smile By Hermestags-zB11Guest, can, not, see, link, V2
 
0 Thanked you For This Useful Post:
SirDarknight(Tonmoy)Date: Wednesday, 2011-06-29, 6:42 AM | Message # 2
Member
Group: Senior Members
Messages: 894
Awards: 10
Reputation: 15
Status: :-(
Quote (Animorph)
Hiding code and quotes from reviews (Guests)[size=10]


Animorph, You Need To End The Size Tag.


Please Give Me A Award or + Rep If My Post Helps You

Please Give Me A Award or + Rep If You Like my Scripts
 
0 Thanked you For This Useful Post:
AnimorphDate: Wednesday, 2011-06-29, 2:20 PM | Message # 3
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
SirDarknight(Tonmoy), Thanks for that , i'm kinda busy these days and want to do everything quickly smile happy
 
0 Thanked you For This Useful Post:
cyberworldsDate: Sunday, 2011-08-21, 10:52 PM | Message # 4
Member
Group: Senior Members
Messages: 14
Awards: 0
Reputation: 2
Status: :-(
its work on blog or etc?????? sad
i try this in blog but not working


Message edited by cyberworlds - Sunday, 2011-08-21, 10:53 PM
 
0 Thanked you For This Useful Post:
AnimorphDate: Sunday, 2011-08-21, 11:08 PM | Message # 5
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
cyberworlds, I will check it tomorrow , my internet is getting slow now :/
 
0 Thanked you For This Useful Post:
cyberworldsDate: Sunday, 2011-08-21, 11:16 PM | Message # 6
Member
Group: Senior Members
Messages: 14
Awards: 0
Reputation: 2
Status: :-(
Quote (Animorph)
cyberworlds, I will check it tomorrow , my internet is getting slow now :/


thanks il be waiting
 
0 Thanked you For This Useful Post:
AnimorphDate: Monday, 2011-08-22, 11:24 AM | Message # 7
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
cyberworlds, This hides every link that you put in [ code ] tags [ / code ]

1.go to CP ---> Design ---> Design management (templates) ---> your module ---> Page of the entries archive ---> Add this after
Code
$BODY$

Code
<?if($USER_LOGGED_IN$)?><?else?>
  <script type="text/javascript">
      // Copyright uCause ~ http://uCause.ucoz.com/
      jQuery('div.bbCodeBlock').each(function(){
      code = jQuery(this).find('div.codeMessage').html();
      jQuery(this).replaceWith('<div  class="HideCode">  you can not view this code, you are in the group  "Guests" <a  href="/index/1" target="_blank">Log in</a> or  <a  href="$REGISTER_LINK$" target="_blank">Register</a> to  view  this code</div>');
      });
      </script>
      <?endif?


2. go to CP ---> Design ---> Design management (templates) ---> your module ---> Page with entry full text and his comments ---> Paste this after --->
Code
<!-- </body> -->

Code
<?if($USER_LOGGED_IN$)?><?else?>
  <script type="text/javascript">
  // Copyright uCause ~ http://uCause.ucoz.com/
  jQuery('div.bbCodeBlock').each(function(){
  code = jQuery(this).find('div.codeMessage').html();
  jQuery(this).replaceWith('<div class="HideCode"> you can not view this code, you are in the group "Guests" <a href="/index/1" target="_blank">Log in</a> or <a href="$REGISTER_LINK$" target="_blank">Register</a> to view this code</div>');
  });
  </script>
  <?endif?>


3. go to CP ---> Design ---> Design management (css) ---> add this :
Code
.HideCode {
    background: none repeat scroll 0 0 #F5F5F5;
    border: 1px dotted #151515;
    font-size: 11px;
    padding: 3px 5px;
  }
 
0 Thanked you For This Useful Post:
cyberworldsDate: Monday, 2011-08-22, 2:47 PM | Message # 8
Member
Group: Senior Members
Messages: 14
Awards: 0
Reputation: 2
Status: :-(
i things its not working at blog module, its work just at forum sad sad sad sad
 
0 Thanked you For This Useful Post:
AnimorphDate: Monday, 2011-08-22, 2:51 PM | Message # 9
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
cyberworlds, No it work with all modules i just tested it. here --> http://utestwebsite.ucoz.com/blog

Just add the code on every page after
Code
$BODY$
 
0 Thanked you For This Useful Post:
cyberworldsDate: Monday, 2011-08-22, 2:54 PM | Message # 10
Member
Group: Senior Members
Messages: 14
Awards: 0
Reputation: 2
Status: :-(
http://501.ucoz.com/blog....08-21-1 <<< why is not working to me
 
0 Thanked you For This Useful Post:
AnimorphDate: Monday, 2011-08-22, 2:57 PM | Message # 11
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
- Face Palm - Because you leaved space between your code tags. do you even know how code tags work ?
 
0 Thanked you For This Useful Post:
cyberworldsDate: Monday, 2011-08-22, 3:00 PM | Message # 12
Member
Group: Senior Members
Messages: 14
Awards: 0
Reputation: 2
Status: :-(
Quote (Animorph)
- Face Palm - Because you leaved space between your code tags. do you even know how code tags work ?

I am less familiar with the tag, could you give me an example
 
0 Thanked you For This Useful Post:
AnimorphDate: Monday, 2011-08-22, 3:02 PM | Message # 13
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
cyberworlds, yes

http://www.ucause-entertainment.tk/index/17
 
0 Thanked you For This Useful Post:
cyberworldsDate: Monday, 2011-08-22, 3:15 PM | Message # 14
Member
Group: Senior Members
Messages: 14
Awards: 0
Reputation: 2
Status: :-(
Quote (Animorph)


I think it's tag for module forum (BB Code) not for HTML Code like blog module or etc,
(BB Code) can be used in HTML Code???
 
0 Thanked you For This Useful Post:
AnimorphDate: Monday, 2011-08-22, 3:18 PM | Message # 15
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
cyberworlds, Yes BB Code can also be used in other modules , when you add an entry you can choose out of visual editor , BB codes , Html codes , take BB codes and add your entry
 
0 Thanked you For This Useful Post:
uCause Community » Trash & Archives » Other » Guest can not see link V2 (by hermes)
  • Page 1 of 2
  • 1
  • 2
  • »
Search:


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