Fixing under any aspect the last iframe shortcode, adding this easy concept to manage and detect if we are or not into WP home page (note how it has been resolved the issue to detect in Wordpress, if we are or not into the home page):
viewtopic.php?f=10&p=5608#p5608
i realize this instead:
and if we do not want an user be able to add the shortcode?
Let say we have roles in WP that allows to several groups to add new posts and pages into wordpress, what about if an user go to add our
[w3allphpbbiframe] shortcode?
We could want to allow this only to certain groups.
*How to fix this easily?
2.5.9 will fix 4 aspects:
1) improve the correct detection, if the page we are on, is or not the homepage (and avoid always the url push into home: if it is needed the forum with pushed urls into homepage, then use page-forum instead, setting it as homepage page)
2) add param
url_push that will allow for each shortcode to decide if, when links clicked into iframe, these will be pushed or not into browser (not sure if this explain is clear to all, presented like this, sorry, hope yes)
3) * add param option
security_token security code for the shortcode: if the shortcode will contain the param with correct value, the shortcode will be parsed, if not, the shortcode will be not parsed. So that admins/owners site, will be sure that only certain groups will have the capability to add this shortcode, or only who know the required token.
4) ever detect if we are in template customize display or admin pages, and avoid shortcode execution in these cases
Stay cool lovely people, 2.5.9 is coming
Fixing under any aspect the last iframe shortcode, adding this easy concept to manage and detect if we are or not into WP home page (note how it has been resolved the issue to detect in Wordpress, if we are or not into the home page):
https://www.axew3.com/w3/forums/viewtopic.php?f=10&p=5608#p5608
i realize this instead:
and if we do not want an user be able to add the shortcode?
Let say we have roles in WP that allows to several groups to add new posts and pages into wordpress, what about if an user go to add our [c][w3allphpbbiframe][/c] shortcode?
We could want to allow this only to certain groups.
*How to fix this easily?
2.5.9 will fix 4 aspects:
1) improve the correct detection, if the page we are on, is or not the homepage (and avoid always the url push into home: if it is needed the forum with pushed urls into homepage, then use page-forum instead, setting it as homepage page)
2) add param [i][b]url_push[/b][/i] that will allow for each shortcode to decide if, when links clicked into iframe, these will be pushed or not into browser (not sure if this explain is clear to all, presented like this, sorry, hope yes)
[b]3)[/b] * add param option [i][b]security_token[/b][/i] security code for the shortcode: if the shortcode will contain the param with correct value, the shortcode will be parsed, if not, the shortcode will be not parsed. So that admins/owners site, will be sure that only certain groups will have the capability to add this shortcode, or only who know the required token.
4) ever detect if we are in template customize display or admin pages, and avoid shortcode execution in these cases
Stay cool lovely people, 2.5.9 is coming