7 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
  • Has referred 1+ members
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.

408 posts
  • Helped improve Envato sites by detecting a security issue
  • Created a helpful tool/app using the Envato API
  • Pulled off some great moustache to raise money or awareness for Movember Australia
  • Has sold $10,000+ on Envato Market
+4 more
Gewora
says

You should contact the author.

Here is the link to his support forums:

http://mysitemyway.com/support/?themeforest=true
7 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
  • Has referred 1+ members
avoinich
says

MySiteMyway Support refused to help me with this issue.

159 posts
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+1 more
s4nji
says

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

156 posts
  • Had an item that was trending
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has referred more than 5000 members
  • Has been part of the Envato Community for over 6 years
+6 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
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Had an item featured in an Envato Bundle
+4 more
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.

2254 posts
  • Created a helpful tool/app using the Envato API
  • Created a helpful tool/app for Envato Market users
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+12 more
revaxarts
says

The reason to put short codes in plugins ;)

Good luck with it!

7 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
  • Has referred 1+ members
avoinich
says

Thanks everyone. I basically buried that website because after not finding a replacement for that shortcode (not finding a script that has a similar functionality, so I could do “find and replace” the shortcode tag in DB), I installed and activated “Infocus” theme again.

Unfortunately, I completely forgot that “Infocus” theme change the title of every webpage from the actual title to a single word “Blog” with H1 tag… like this <h1 class="title"><span>Blog</span></h1> so those webpages are gone from Google search now…

7 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
  • Has referred 1+ members
avoinich
says

The reason to put short codes in plugins ;) Good luck with it!

Can I use the code from the theme’s files to create a worpress plugin, then use that plugin with another theme? The code behind the shortcode basically looks like this:

$image = THEME_URI . '/lib/scripts/timthumb/thumb.php?src=' . mysite_wpmu_image( $src ) . '&w=' . $width . '&h=' . $height . '&zc=1&q=100'; 
202 posts
  • Has been part of the Envato Community for over 1 year
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
aelia_co
says

Can I use the code from the theme’s files to create a worpress plugin, then use that plugin with another theme? The code behind the shortcode basically looks like this:
$image = THEME_URI . '/lib/scripts/timthumb/thumb.php?src=' . mysite_wpmu_image( $src ) . '&w=' . $width . '&h=' . $height . '&zc=1&q=100'; 

That’s definitely possible. You can extract the shortcode declaration and registration into a separate plugin, and it will work normally.

by
by
by
by
by
by