Jump to content

Script to change code once it is pulled from the server.


adefesche

Recommended Posts

I'm in quite a spot.  :/  I'm using a wordpress plugin that displays real estate listings.  All of the code involved is pulled dynamically from the developer's server.  It all works great but I need to pull in a larger "thumbnail" image.  Although the programmers at this company cannot help me create this code, they implied that it was possible to write a bit of code that would look for the image path, and then be able to switch it out with an image path of my choice.

 

The only problem--I'm a novice with writing my own php.  Would anyone put me in the right direction of how to write this kind of script?  I can't even think of the keywords I could put into google to get answers.

 

Much appreciated!  The widget can be seen at http://wordpress.go9gator.com if you'd like to reference it.

Oh I know.  I've altered plenty of wordpress stuff before, and I know this is possible.  My limit right now is my knowledge of how to accomplish this certain task.

 

What I need to do (simplified): After the code for the image source has been pulled into the widget from the developer server (img src="http://www.source.com/pic-small.jpg")  have a script that I add to the widget replace the image source with different text that I assign "img src="http://www.source.com/pic-large.jpg".

 

I image it would be something like "If you find the word 'small' replace it with 'large."

 

I just need a nudge in the right direction of how to make this possible.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.