Current time: 09-30-2008, 04:17 AM Hello There, Guest! (LoginRegister)


Admin Password For 1.4 has been released!   -   Pick Your Group For 1.4 has been released   -   Affiliates Manager for 1.4 has been released!   -   [MyCredits] Group Subscriptions for 1.4 has been released!
 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[C] Hide CodeBlock content from guests
Author Message
G405T
Member


Posts: 61
Joined: Aug 2008
Reputation: 0
Post: #1
[C] Hide CodeBlock content from guests
I know there is a plugin that allows you to hide links from guests and I did try to edit this plugin so that it would do this for me, but for some reason I got an error and it doesn't work.

All I wanted was a simple script that will allow me to hide the CodeBlock and show a message instead to unregistered visitors:
Code:
Meaage will be here with registration link instead of whatever codey stuff is meant to be in the box

I can obviously see this isn't going to be a priority!
08-23-2008 05:21 AM
Nickman
Administrator



Posts: 442
Joined: May 2008
Reputation: 10
Post: #2
RE: Hide CodeBlock content from guests
Interesting idea...I wonder what the license is on that plugin, cause I could maybe modify it..I'll look into this and see what I can do :)
08-23-2008 05:36 AM
G405T
Member


Posts: 61
Joined: Aug 2008
Reputation: 0
Post: #3
RE: Hide CodeBlock content from guests
Nice one, thanks ;-)
08-23-2008 05:40 AM


Nickman
Administrator



Posts: 442
Joined: May 2008
Reputation: 10
Post: #4
RE: Hide CodeBlock content from guests
wow, this was a lot easier then expected...I'm just doing a little more testing, but I have something working right now
08-23-2008 05:51 AM
Nickman
Administrator



Posts: 442
Joined: May 2008
Reputation: 10
Post: #5
RE: Hide CodeBlock content from guests
What settings would you want? Enable and the message to show?
08-23-2008 05:52 AM
G405T
Member


Posts: 61
Joined: Aug 2008
Reputation: 0
Post: #6
RE: Hide CodeBlock content from guests
Yeah, that sounds good, prfererably supports html (i know thats easier)
08-23-2008 05:56 AM


Nickman
Administrator



Posts: 442
Joined: May 2008
Reputation: 10
Post: #7
RE: Hide CodeBlock content from guests
Hmm...speed bump, would you want [ php ] to display? Just not [ code ]?
08-23-2008 06:04 AM
G405T
Member


Posts: 61
Joined: Aug 2008
Reputation: 0
Post: #8
RE: Hide CodeBlock content from guests
Well, I just wanted Code, I don't know whether other people would find it usfult to have that aswell, it doesn't really make a difference to me because nobody every uses php tags on my forum
08-23-2008 06:06 AM
Nickman
Administrator



Posts: 442
Joined: May 2008
Reputation: 10
Post: #9
RE: Hide CodeBlock content from guests
well right now it does both, because of the way it works. If you wanted just code I would have to rework it, if you don't care then what I have works
08-23-2008 06:07 AM


G405T
Member


Posts: 61
Joined: Aug 2008
Reputation: 0
Post: #10
RE: Hide CodeBlock content from guests
OK then, I don't care and other people would probably find it useful! That was amazingly fast, your a very skilled coder!

Thanks, already downloaded it!
(This post was last modified: 08-23-2008 06:18 AM by G405T.)
08-23-2008 06:08 AM
 

Bookmarks

Forum Jump: