A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
coding-topic
change [spoiler] to [spoil]
Avatar
Golden Sharks
19 Posts
(Offline)
1
Nov 1, 2015 - 10:26 am
Print

 Hello!
I need help – I want to change original [spo.iler] function to work with [spoil] code too (because our external software that our users effects will post on forum are in [spoil] tags)

Yours,
Golden Sharks Team

Avatar
Mr Papa
Simi Valley, CA

19448 Posts
(Offline)
2
Nov 1, 2015 - 12:58 pm
Print

as long as you dont care about the button in tinymce, you can just add a new definition for the shortcode…  so in your spFunctions.php file of your sp theme, add

add_shortcode('spoil', 'sp_filter_display_spoiler');

as always, we strongly recommend you use a child theme or a custom theme before making the theme changes to keep from losing changes on updates…

Avatar
Golden Sharks
19 Posts
(Offline)
3
Nov 1, 2015 - 2:30 pm
Print

I added this line to spFunctions of sp theme I’m using but the content of [spoil] doesn’t appear at all.

Avatar
Mr Papa
Simi Valley, CA

19448 Posts
(Offline)
4
Nov 1, 2015 - 3:12 pm
Print

It does for me…  are you filtering shortcodes on forum – options – content settings?  if so,  you will need to add it to the allowed list…

Forum Timezone: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support, Marcus (Simple:Press)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
Lorena Affleck
samantardh
PatrickAlawl
Hannelore Gaither
Margarito Nowacki
Elwood Mcclendon
samantaerx
Larue Cordeaux
Jerrold Stockman
Forum Stats:
Groups: 7
Forums: 17
Topics: 10071
Posts: 79393

 

Member Stats:
Guest Posters: 608
Members: 16976
Moderators: 0
Admins: 4

Most Users Ever Online
1170
Currently Online
Guest(s)
1
Currently Browsing this Page

1 Guest(s)