adefesche Posted April 15, 2010 Share Posted April 15, 2010 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. Link to comment https://forums.phpfreaks.com/topic/198690-script-to-change-code-once-it-is-pulled-from-the-server/ Share on other sites More sharing options...
TeddyKiller Posted April 15, 2010 Share Posted April 15, 2010 I'm not sure what you mean, but just to clarify, with wordpress or any other open source software etc, anything is possible if you know how to do it Link to comment https://forums.phpfreaks.com/topic/198690-script-to-change-code-once-it-is-pulled-from-the-server/#findComment-1042703 Share on other sites More sharing options...
adefesche Posted April 15, 2010 Author Share Posted April 15, 2010 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. Link to comment https://forums.phpfreaks.com/topic/198690-script-to-change-code-once-it-is-pulled-from-the-server/#findComment-1042709 Share on other sites More sharing options...
TeddyKiller Posted April 15, 2010 Share Posted April 15, 2010 I think you may be after an image resize script. It keeps the same image.. but resizes it. (Doesn't save it.. just displays as bigger) Link to comment https://forums.phpfreaks.com/topic/198690-script-to-change-code-once-it-is-pulled-from-the-server/#findComment-1042711 Share on other sites More sharing options...
adefesche Posted April 15, 2010 Author Share Posted April 15, 2010 Nope. I could do that with css. Stretching a tiny image only pixelates it. If you can check out the link I posted you'll see what I mean. Link to comment https://forums.phpfreaks.com/topic/198690-script-to-change-code-once-it-is-pulled-from-the-server/#findComment-1042725 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.