3 posts
  • Bought between 50 and 99 items
  • Has been a member for 2-3 years
  • United States
  • Referred between 1 and 9 users
avoinich says

Is there is any plugin that can help me to rid of inFocus Theme shortcodes?

The main problem is image resizer shortcode: http://themes.mysitemyway.com/infocus/shortcodes/image-frames-effects-shortcodes/

I used this shortcode in about 1k posts.

It works like this: I put the image URL and specify the size i want ( let’s say 960×180).

[image_frame style="framed" align="left" height="180" width="960"]http://domain.tld/1.jpg[/image_frame]

The shortcode use the timthumb script and produce the HTML code like this:

<img class="framed" src="http://domain.tld/../timthumb/thumb.php? src=http://domain.tld/1.jpg&w=960&h=180&zc=1&q=100" title="" alt="" width="960" height="180" />

I appreciate any help, thank you.

298 posts
  • Grew a moustache for the Envato Movember competition
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
Gewora says

You should contact the author.

Here is the link to his support forums:

http://mysitemyway.com/support/?themeforest=true
3 posts
  • Bought between 50 and 99 items
  • Has been a member for 2-3 years
  • United States
  • Referred between 1 and 9 users
avoinich says

MySiteMyway Support refused to help me with this issue.

149 posts
  • Microlancer Beta Tester
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
s4nji says

Hi, I might be able to help, please contact me through my profile page.

155 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 4-5 years
  • Ukraine
  • Author had a File in an Envato Bundle
  • Referred more than 2000 users
  • Bought between 10 and 49 items
  • Exclusive Author
+1 more
Semenov says

You just need to loop through content of each post in database and do a string replacement. It’s not hard or time-consuming work for PHP developer, the WordPress has even regular expression to find and parse shortcodes http://codex.wordpress.org/Function_Reference/get_shortcode_regex

There is also a plugin – http://forteweb.us/shortcode-cleanup-plugin/ , but I haven’t tried it.

224 posts
  • Sold between 10 000 and 50 000 dollars
  • Author had a File in an Envato Bundle
  • Referred between 1 and 9 users
  • Bought between 1 and 9 items
  • Has been a member for 0-1 years
  • Argentina
  • Exclusive Author
WPAlchemy says

My guess is that if he is trying to get rid of inFocus shortcodes, it’s because he is switching themes. In this case, get_shortcode_regex will not work as it searches for registered shortcodes only.

To make it work, you need to enable inFocus again, run the script that will use get_shortcode_regex to remove them, and then reactivate your new theme.

2001 posts
  • Elite Author
  • Author had a Free File of the Month
  • Has been a member for 4-5 years
  • Austria
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
+3 more
revaxarts says

The reason to put short codes in plugins ;)

Good luck with it!

by
by
by
by
by
by