This plugin works great for personalizing pages on my site based on a value in the query-string. I’m using it to create local landing pages for specific town’s I’m going to be advertising to:
https://www2.c2itconsulting.net/where-we-work/local-it-support/?city=Indianapolis&state=Indiana
I’ve got it working for text and images. What I’d like to do now is include the token in a shortcode. For instance, there is a wikipedia article pulling plugin that takes a URL in the shortcode and embedes some of the wikipedia text in your page. This probably won’t be my end use of this, but it’s a good example – the shortcode (with tokens) looks like this:
[wiki-embed url=”https://en.wikipedia.org/wiki/{queryCity},_{queryState}” no-edit no-contents no-infobox accordion]
And I’d like that converted to:
[wiki-embed url=”https://en.wikipedia.org/wiki/Indianapolis,_Indiana” no-edit no-contents no-infobox accordion]
But the token plugin doesn’t seem to be converting the token within the shortcode. Can you help?
Chet
]]>Can you pls explain how this works with multisite? For some reason I can use tokens that I created on one site for another..??
Please advise.
Thank you.
]]>Hi There,
All my tokens work great except when I activate a new user, wp-activate.php doesnt seems to recognize the tokens…
Is this a possible bug?
]]>Hi There,
Can you advise how to go about using these in text widgets? It doesnt seem to pick up the token when I insert it into a widget for some reason.. works on page etc ok…
Tks.
]]>Hi there, sorry for my wired english. I’m not native and it’s a little bit late %)
I just realised, the users with roles lower tha Admin can’t post anymore because of missig rights. On “New Post”-Page also i’m getting an php-error:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /blablabla/wp-includes/wp-db.php on line 1304
Warning: Invalid argument supplied for foreach() in /blablabla/wp-includes/wp-db.php on line 1306
Warning: implode() [function.implode]: Invalid arguments passed in /blablabla/wp-includes/wp-db.php on line 1315
Happens on Multisite as on Single install. Put an var_dump of $data variable in this function in wp-db.php returns NULL when not logged as admin :\
Everything else is up to date.
Searchin the net did not give any hints so I played a little bit arround with “User Roles Editor”-Plugin, thought i creeped some access-rules with other plugins. Then realized no errors and ability to post when Option “Manage Options” is not checked for User or Role. But activating this gives access to the settings-section. And this is not so good.
Havn’t looked into the code so far. But maybe there are some suggestions? Would be great because is like this plugin but i’m running out of time.
greetz
Input
Token Manager is a great idea. But it simply doesn’t work. I created a {hello-world} token along the lines of the {copyright} example. Then inserted the text {hello-world} into the HTML editor.
But the page just displays {hello-world}.
Can you elaborate how tokens are supposed to be used. They look somewhat like shortcodes (but appear to be different in some respects).
As I understand the docs, putting:-
<h1>{hello-world</h1>
into the HTML editor should give me a big “Hello World” heading.
And putting:-
…?><h1>{hello-world}</h1><?php echo ‘<h1>’ , {hello-world} , ‘</h1>’ ; ?>…
should give me TWO big “Hello Worlds”…
But the second example looks dodgy (how can that possibly work? – though I haven’t tried it. And the first example simply doesn’t work full-stop.
Where am I going wrong? And some decent usage examples (in all the different places that tokens can be used – WYSIWYF/Visual Editor?, HTML Editor?, theme and PHP files generally? – would be VERY useful.
A clarification of how all this fits in with the WordPress content filtering would be helpful too.
]]>Security update to remove XSS with ‘tid’ in tokenedit.php and typeedit.php. No other changes, safe to update.
]]>I have found to need to add in processing order of tokens. It will allow you to order the tokens for processing.
]]>Allow extended tokens to be replaced first.
]]>To make sure tokens are not surrounded by auto <p> tags, I added a setting to turn it off in the token manager settings.
]]>I’d like to include PHP .tpl templates as tokens, is this supported?
thanks
rob
]]>I added the wrong user role to the wordpress add_menu and add_sub_menu.
I have put in one that should work across both multisite and single blog installs.
Get next version. 0.2
]]>