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
Request Hide Hack for s9y
Request Hide Hack for s9y
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
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
sexyvirus
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Request Hide Hack for s9y
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
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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
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?
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?