Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Mar 28, 2024 4:16 pm
All times are UTC + 0
Spoiler
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [11 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Banshee
Supreme Banshee


Also Known As: banshee_revora (Steam)
Joined: 15 Aug 2002
Location: Brazil

PostPosted: Wed Jan 13, 2016 7:28 pm    Post subject:  Spoiler
Subject description: New BB code to shake the foundations of PPM!
Reply with quote  Mark this post and the followings unread

We have a new BB code in this forum, in order to make it more compatible with news coming from ModDB:

Spoiler (click here to read it):
The spoiler feature works exactly like quote, except that it hides the information. Once you click at the text above, be ready: it reveals all spoilers at once.

In order to use it, use it in the exactly same way you use the quote BB code.


Key Words: #Spoiler #BBCode #Forum #News #PPMForums 

Last edited by Banshee on Tue Jan 19, 2016 4:51 am; edited 2 times in total

Back to top
View user's profile Send private message Visit poster's website Skype Account
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Wed Jan 13, 2016 7:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Finally, this was something I found missing from this forum after I got used to this everywhere else.

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
RP
Commander


Joined: 12 Jul 2012
Location: Mapping God Heaven

PostPosted: Mon Jan 18, 2016 11:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

Just wondering, if you click one, are they all supposed to be opened?
Our beloved friend zlixine is using them and when I click to open one, they all open.
IIRC in the crap forum, if someone quoted a spoiler-ed post, they would also collapse.

_________________


Mental Omega 3.0 Mission creator - Creator of FinalOmega: APYR 3.0 Map Editor

/ppm/'s stupidity

Back to top
View user's profile Send private message
Banshee
Supreme Banshee


Also Known As: banshee_revora (Steam)
Joined: 15 Aug 2002
Location: Brazil

PostPosted: Tue Jan 19, 2016 1:12 am    Post subject: Reply with quote  Mark this post and the followings unread

@RP:

Quote:
Once you click at the text above, be ready: it reveals all spoilers at once.


So, yes, that behavior is expected and it was really implemented in this way. Making it detect the particular spoiler classed element that is supposed to appear or disappear, in a forum template, is a complicated mission.

Back to top
View user's profile Send private message Visit poster's website Skype Account
MadHQ
Commander


Joined: 07 Nov 2003

PostPosted: Tue Jan 19, 2016 4:42 am    Post subject: Reply with quote  Mark this post and the followings unread

Would it be complicated?

I have not looked into how these forums are set up, but would they happen to be some thing like div containers, with javascript functions added to  on-click?

So, just make a new div and javascript function for each one. And when there being developed just name the div container and function sequentially...

I have done this before on some thing else...

I also posted this in hopes I have not forgotten or did not know some thing for the project I worked on...

_________________
MadHQ's Graveyard - Click here!
(Permissions) - (F.A.Q.)

Back to top
View user's profile Send private message Skype Account
Banshee
Supreme Banshee


Also Known As: banshee_revora (Steam)
Joined: 15 Aug 2002
Location: Brazil

PostPosted: Tue Jan 19, 2016 4:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

I need an element with a unique id, based in the amount of times that it shows up. The problem is that this kind of information you won't acquire in a forum template. Perhaps I could make a javascript that changes the ID of some elements in real time and changes their onclick parameter to match it...

Back to top
View user's profile Send private message Visit poster's website Skype Account
RP
Commander


Joined: 12 Jul 2012
Location: Mapping God Heaven

PostPosted: Tue Jan 19, 2016 6:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

I don't see the problem.
Hundreds of forums have spoilers working without any issue.

Why not use the spoiler everybody uses? With a proper button and stuff, that one.
Do you have to use a JavaScript spoiler? IIRC there are PHP variants as well.

_________________


Mental Omega 3.0 Mission creator - Creator of FinalOmega: APYR 3.0 Map Editor

/ppm/'s stupidity

Back to top
View user's profile Send private message
MadHQ
Commander


Joined: 07 Nov 2003

PostPosted: Tue Jan 19, 2016 7:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

PHP is just server-side language...

JavaScript is client side (browser)...

PHP would just result in JavaScript as far as I know...

PHP echos html/JavaScript...(others)...

If it was just php, IE click button reload entire page... kind of silly..

_________________
MadHQ's Graveyard - Click here!
(Permissions) - (F.A.Q.)

Back to top
View user's profile Send private message Skype Account
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Jan 20, 2016 8:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

I fail to see what we need spoilers for aside from compatibility of cross-posting...?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Banshee
Supreme Banshee


Also Known As: banshee_revora (Steam)
Joined: 15 Aug 2002
Location: Brazil

PostPosted: Mon Dec 30, 2019 8:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

Today we have an update:

You can open and close each spoiler separately.

Here's a sample:

Spoiler (click here to read it):
Once you click in this one, the spoiler below won't show up automatically


Spoiler (click here to read it):
Once you click in this one, the spoiler above won't show up automatically

Back to top
View user's profile Send private message Visit poster's website Skype Account
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Dec 31, 2019 5:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

nice
Spoiler (click here to read it):
and a happy new year

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [11 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1693s ][ Queries: 11 (0.0112s) ][ Debug on ]