Page 1 of 1

Request Hide Hack for s9y

Posted: Fri Jul 28, 2006 12:34 am
by sexyvirus
Hi there, Im using s9y as my main blogger software rite now, and i really like it. But im still looking for some function on s9y such as: hide hack.

example: when i post make a post, i put a prt of content into a bbcode like: [hide]content[/hide] . so the user have to reply in comment inorder to view that part..is it possible ?, if so, plz guide me modify the code..thanks :D

Re: Request Hide Hack for s9y

Posted: Fri Jul 28, 2006 1:20 pm
by garvinhicking
Hi!

That's one strange idea. :)

What would it be used for? Why only show something after someone has made a comment? Why not only show it to registered authors / users?

You could create a plugin easily for this; it would simply set a session variable for a user once he commented on an entry (using the frontend_saveComment hook). Then on the frontend_display hook you could check if that session variable is set, and only then leave the [hide] thing intact; if the variable is not set, that content would be removed.

Maybe you can code that on your own, by looking at simple existing plugins? Maybe even by enhancing the bbcode plugin?

Or you can convince me that this functionality does some good, then I could create the plugin for you. Or you can also convince me monetarily. ;-)

Best regards,
Garvin

Posted: Fri Jul 28, 2006 5:11 pm
by judebert
We use that kind of functionality in television and movie sites to avoid handing out spoilers.

I've never seen it done by replying in comments; usually it's just changing the foreground and background colors to be identical, so you have to highlight a spoiler to see it.

Kinda like this, only automated:

The butler did it!

Am I off on a wrong track, or is that what you're looking for, sexyvirus?