• Page 1 of 1
  • 1
uCause Community » Trash & Archives » Forum » Hide your CODE content for guests in forum
Hide your CODE content for guests in forum
AnimorphDate: Saturday, 2011-07-02, 3:09 PM | Message # 1
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(


Now because we share uCoz codes and scripts alot , we get a nice amount of visitors but our registration amount isn't getting higher , "conclusion" pleople just take and leave without registering , thats why i made this: every script that we put between code tags will not be visible for guests , so i thought that i would share this with all of you.

go to CP ---> Design ---> Design management (templates) ---> Forum ---> General appearance of forum pages ----> After $BODY$ paste this code:

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?>


In CSS

put:

Code
.HideCode {
   background: none repeat scroll 0 0 #F5F5F5;
   border: 1px dotted #151515;
   font-size: 11px;
   padding: 3px 5px;
}


and solved smile

note: do not remove copyrights
Attachments: 7573945.jpg(22.6 Kb)
 
0 Thanked you For This Useful Post:
BlazerDate: Saturday, 2011-07-02, 5:53 PM | Message # 2
Member
Group: Senior Members
Messages: 471
Awards: 2
Reputation: 4
Status: :-(
Animorph, thanks for sharing this wonderfull script smile
 
0 Thanked you For This Useful Post:
Maczo12310Date: Saturday, 2011-07-02, 5:54 PM | Message # 3
Member
Group: Senior Members
Messages: 987
Awards: 12
Reputation: 11
Status: :-(
It looks really nice, much better than the old one, just words. Good job Animorph.


Visit my Graphic forum board on uCause !!!
 
0 Thanked you For This Useful Post:
Silence-PrayerDate: Saturday, 2011-07-02, 10:13 PM | Message # 4
uCause Co-Admin
Group: Senior Members
Messages: 519
Awards: 21
Reputation: 17
Status: :-(
Maybe it's working but Not for me..But still Thank You!!

uCause is the Best
 
0 Thanked you For This Useful Post:
AnimorphDate: Saturday, 2011-07-02, 10:47 PM | Message # 5
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
Susmoy, you need to paste it after $BODY$ , and it works.
 
0 Thanked you For This Useful Post:
HermesDate: Saturday, 2011-07-02, 11:42 PM | Message # 6
Member
Group: Senior Members
Messages: 455
Awards: 7
Reputation: 8
Status: :-(
Animorph, Forget you say (write) smile

In CSS

put:

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:
Admin3869Date: Tuesday, 2011-09-06, 7:17 PM | Message # 7
Member
Group: Senior Members
Messages: 2
Awards: 0
Reputation: 0
Status: :-(
Animorph, Its not working in site news why help i hide download link in sitenews but not working only working with forum
 
0 Thanked you For This Useful Post:
AnimorphDate: Tuesday, 2011-09-06, 8:16 PM | Message # 8
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
Admin3869, if you use another module put it after the $BODY$ and after the $MESSAGE$ tags then it works i use it on uCause also .
 
0 Thanked you For This Useful Post:
Admin3869Date: Wednesday, 2011-09-07, 8:06 AM | Message # 9
Member
Group: Senior Members
Messages: 2
Awards: 0
Reputation: 0
Status: :-(
Animorph,
Quote
if you use another module


bro i can't understand which module
 
0 Thanked you For This Useful Post:
SirDarknight(Tonmoy)Date: Wednesday, 2011-09-07, 1:59 PM | Message # 10
Member
Group: Senior Members
Messages: 894
Awards: 10
Reputation: 15
Status: :-(
Admin3869, "If you use forum/file catalog instead of site news" This is what Animorph, Meant

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:
uCause Community » Trash & Archives » Forum » Hide your CODE content for guests in forum
  • Page 1 of 1
  • 1
Search:


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