Jump to content

langauld

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

langauld's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your help. That hasn't worked though, it printed out the whole of the function, not just the image part. Maybe it'd be helpful if I told you what the function prints? Writing simply: <?php custom_field_image();?> ..returns the following: <img src="http://localhost/wp-content/uploads/2009/02/p1030447-370x277.jpg" class="cfi alignleft" alt="Indian Summer Intertwined Bracelet" title="Indian Summer Intertwined Bracelet" /> Using the code you gave me doesn't have any effect of what it prints, it just writes out exactly the same result! I don't think you fully understood my problem though, so it's not your fault! Does anyone else know what I could do?
  2. Excellent! Thank you so much, I didn't think the preg_match_all() or preg_replace() functions would work with another function as their data source.. Just like the explode() didn't work. But if you think it will, and it does, then I'm uber grateful!! The img src url is inside "s, not 's P.s. If you could write out the code for me, that'd be much appreciated.. I've never used those functions before so have no idea how they work!
  3. Sorry to bump, I use forums myself and I know it isn't 'the thing to do'.. But I quite urgently need a solution to this, so if anyone knows one who missed it when I first posted, would you mind lending me a hand?
  4. Hi gurus, I've ran into a bit of a problem, and I can't seem to find the right search terminology to find myself a solution.. I'm not an experienced programmer in PHP by any means, I only know the basics, and how it works etc. At the moment, I'm creating a website that displays products for sale. It uses WordPress as it's CMS, although I've added and removed bits of code all over the place to make the site work just the way I want it to. The problem I'm having is regarding a plugin called 'CFI (Custom Field Image)', which basically allows the user to add a picture to their post as a custom field, rather than embedding it into the post data. If you go to http://claremasonjewellery.co.uk/DATABASE you can see it working on the category pages. In the 'loop', I call 'custom_field_image' which generates the dynamic <img> for each post. What I want to do is make it so that when viewing a single post, clicking on the large image makes it full size in a separate window. However, I cannot for the life of me get JUST the 'src' part of the img info that the function creates, because the place where it's generated is embedded inside two more nested functions. Incase you're a little lost and I'm not explaining myself well enough, I made the error of writing <?php $imageData = explode(" ", custom_field_image); print $imageData[3]; ?> to try and make happen what I want, but it instead just printed another image. Someone please help
  5. okay, thanks.. but can you explain to me why it's only just started doing that? because it definitely worked before.. until about 3 weeks ago.
  6. Hi all, I'm sorry if this has been posted before now, i've looked through all 5 pages of threads and haven't found a thing.. I'm using WAMP 1.7.3, although this problem existed with 1.7.2 before i updated. Basically, i used to be able to view my hosted websites (all plain HTML, i don't use any PHP or MySQL yet) by typing in my dyndns domain name on my local computer. For example, a site is located in C:\wamp\www\drinkdeep and when typing in http://distantweb.co.uk/drinkdeep it would show the website. This is locally. Now, this still works perfectly fine from an external IP, ie anyone who's accessing the site not locally. But for the past few weeks now, this has not worked for me. If i type in localhost into my browser, it does show the index page of http://distantweb.co.uk - however if i type in the URL, it shows my router configuation screen ??? officially confused, this happens both on the server machine, and on other computers in my house. Why has it suddenly started doing this? I can't find any program or setting that may have been changed that would upset the config of this working, all wires are connected correctly etc so there's no reason for the router not being able to forward on to the right host... This is really starting to annoy me now, and if there's something really simple that i'm missing, i'd love for someone in the know to share it with me! Thanks in advance langauld.
×
×
  • 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.