0
 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hide from guest
Author Message
atomicj
Member


Posts: 53
Joined: Jan 2009
Reputation: 0
MyBux: 0
Post: #1
Hide from guest
Been seeing a lot of requests for plugins whereas people want to create custom code that will only be viewable by users that are logged in.

Would it be possible to create a class, or a tag, or something of that nature where when used it'll hide the text within?.. That was people could use X amount of code, anywhere, and it'd all have the same effect.

I'm thinking it's impossible from my own understanding but maybe you know otherwise.
01-25-2009 03:00 PM
Nickman
Manager



Posts: 1,658
Joined: May 2008
Reputation: 35
MyBux: 482
Post: #2
RE: Hide from guest
So I'm thinking you don't mean the parser correct? Like just in templates?
01-25-2009 05:31 PM


atomicj
Member


Posts: 53
Joined: Jan 2009
Reputation: 0
MyBux: 0
Post: #3
RE: Hide from guest
Just in the templates.. I don't have an understanding or idea of how it'd work, but a javascript tag would maybe do it.. if you're familiar with java.

In general a way to hide ANY code that is surrounded by a tag.

Sorry for the vague input, I'm not sure how to be specific
01-27-2009 04:47 AM
Nickman
Manager



Posts: 1,658
Joined: May 2008
Reputation: 35
MyBux: 482
Post: #4
RE: Hide from guest
Wait...do you mean like hide and then can be opened or like putting

[membersonly]Stuff in here[/membersonly]?
01-27-2009 04:57 AM


atomicj
Member


Posts: 53
Joined: Jan 2009
Reputation: 0
MyBux: 0
Post: #5
RE: Hide from guest
[membersonly]Stuff[/membersonly]

But not just as a tag used in the forums. For instance, if I had a chatbox I wanted on the index, or a photo gallery, or whatever, it'd be cool to hide it from the guest's eyes.

Whichever works either one would be cool.

Possible?
(This post was last modified: 01-27-2009 06:08 AM by atomicj.)
01-27-2009 06:06 AM
Nickman
Manager



Posts: 1,658
Joined: May 2008
Reputation: 35
MyBux: 482
Post: #6
RE: Hide from guest
That's kind of an interesting idea. Have you ever checked out Yumi's mod?

Check out this thread and see if it could work for you.
01-28-2009 11:14 PM


atomicj
Member


Posts: 53
Joined: Jan 2009
Reputation: 0
MyBux: 0
Post: #7
RE: Hide from guest
Not quite...

I'm going to spend a few minutes and draw something up as an idea... I think I've figure out a way to accomplish this. Well, maybe an hour.. :)
Ok, no point drawing it up, so I'll just give you a simple solution... maybe not simple as in work, but the explanation.

Think of how custom pages works... You can create new pages and in those pages you may have title's, html, etc, as well as apply permissions to each page...

Now, consider this, rather than output to a specific place, it'd create a new field, not sure what they're called, but one of these {$MyFieldName} or {$SomeHTMLCode} etc.. and basically you'd have the freedom to just throw this tag into any template and multiple times if necessary... and wherever it was placed it'd display the HTML assigned to it.

I'd make some examples of how to use it but the list could go on forever.

Does that make any sense?
(This post was last modified: 01-29-2009 03:19 AM by atomicj.)
01-29-2009 02:43 AM
Nickman
Manager



Posts: 1,658
Joined: May 2008
Reputation: 35
MyBux: 482
Post: #8
RE: Hide from guest
Yeah it makes sense, but I'm not sure if it's possible....
01-29-2009 11:00 PM


 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Guest access as a suggestion - not a requirement okitai 6 89 04-25-2009 05:49 AM
Last Post: ByteHunter
  guest acces by nickman Dino 5 31 04-18-2009 06:30 AM
Last Post: Dalton
  [Request] Hide links/images from guest on some forums (not all) okitai 2 27 02-01-2009 01:11 PM
Last Post: okitai
  [C] Hide CodeBlock content from guests G405T 12 258 08-23-2008 06:31 AM
Last Post: Nickman



New to MyBBSource?Need Assistance?
  • Mark Forums Read
  • View Forum Staff
  • Looking for a MyBB Host?

  



Theme created by AK-47. Find more great themes and skins at K! Dezign R1s.net