Search results

  1. J

    WP custom field problem

    I'm trying to get a custom field called "subtitle" to display in WP, but at the moment, I can't figure out how to get just the value from that field to output...I've looked over the docs here Custom Fields « WordPress Codex but my brain isn't functioning properly today :angryfire:
  2. J

    Any ideas why someone would try to signup w/ my name?

    Some douche has been applying to affiliate networks with my name over the last few weeks. Any ideas what they may be trying to accomplish? Should I be concerned and is there anything I can do about it?
  3. J

    add two conditional statements to preg_match

    Can someone tell me how to add a second IP address to this? <? $visitor = $_SERVER['REMOTE_ADDR']; if (preg_match("/174.170.197.174/",$visitor)) { } else { header('Location: http://www.domain.com/'); }; ?>
  4. J

    iframe height problem

    I must be f*ing retarded today...I'm trying to set the height of an iframe to a percentage. I've tried everything I can think of, but it just displays at about 200px high. WTF? <iframe src ="http://www.msn.com/" width="100%" height="80%"></iframe>
  5. J

    trouble w/ Wordpress functions

    In Wordpress (functions.php) I'm trying to make a function occur only if the post date is not equal to today's date. The problem I seem to be running into is getting the post date from within functions.php rather than the theme file (page.php for example). Any ideas how to make this happen...
  6. J

    need php function to happen just once

    This function will run in Wordpress, but I need for it to happen just once per post <?php function internal_linking($string) { $string = str_ireplace(' texttoreplace ', ' <a href="http://www.msn.com">texttoreplace</a> ', $string); return $string; } add_filter('the_content'...
  7. J

    php + js help please

    Hey guys, I am using cURL to grab content from a page but the roadblock I'm up against is that the page initially displays 100 results. In a browser, you can click a button to show more, but it doesn't affect the URL, so I can't figure out how to get all the data w/ cURL. Before you ask, the...
  8. J

    Will this prevent sql injections?

    $input = strip_tags(str_replace(array('/','.',':','"'),' ',$input)); You shady bastards can probably tell me if I'm missing something here? Or do I have all my bases covered?
  9. J

    How to scrap first 3 urls from serps?

    I'm using cURL to run a search on google and grab the resulting page. One of the bits of info I want to get is the top three organic results urls. I know it has to be some type of foreach statement, but I can't seem to figure out how to structure it. If it makes a difference, the cURL runs the...
  10. J

    wordpress auto posting help

    Before I spend a lot of time going down the wrong path, I want to get some input here... I'm working on something that will automatically post articles based on certain criteria to a WP install. The source for the form that submits a new post has some info that is dynamically generated in...
  11. J

    preg_replace problem

    function addLinks(){ preg_replace("text", "<a href=\"http://www.example.com/\">text</a>", $spun, 1); } Gives me the error message "Delimiter must not be alphanumeric or backslash" - what am I doing wrong here? If it makes a difference, this function goes through a chunk of text and replaces...
  12. J

    trouble getting random item from array to display

    Here is what I currently have: $spin = get_string_between($body, "{{{", "}}}"); $spin = explode("|", $spin); shuffle($spin); $spun = $spin[0]; $body = str_replace("{{{", "$spun", $body); $body = str_replace("}}}", "", $body); echo $body; but rather than placing a random item from the...
  13. J

    Affiliate link coaking plugin

    I've tried a few plugins for WP to cloak affiliate links and the ones I've used seem to be missing some features, Since I'm teaching myself php, I'm thinking about writing my own. I just wanted to see if there is already something free out there that does everything before I spend a lot of time...
  14. J

    how to replace a form w input from variable

    I'm working on a dashboard to monitor several stats for several of our in-house and client websites...I found a script to grab the Google PR, but it uses a form, which I want to replace. In the end, the data will be passed from a variable, but while I'm trying to get it working, it's just hard...
  15. J

    GoDaddy affiliate manager?

    Does anyone here have a contact info for one of GoDaddy's affiliate managers?
  16. J

    sorting data from scraped page

    I have a program that scrapes data from a particular page (data changes by the minute) and I've managed to get everything I need somewhat organized, and almost everything I don't need stripped out. There is still a bit I need to get rid of, and I want to load the remainder into an array. Here...
  17. J

    Bookmarking demon - worth it?

    I've been thinking about getting a copy of bookmarketing demon. Is it worth it or is there something better?
  18. J

    what was this tool

    There was a FF plugin that would tell you what other sites had the same google analytics account. Any ideas?
  19. J

    wiping referrer info - is this right?

    Is this the best way to go about wiping referrer info: A black-hat site (site A) redirects visitors to a page on a pristine white-hat site (site B), which then meta redirects to a second page, and then meta redirects to a third page which finally meta redirects to the affiliate company's...
  20. J

    redirect based of referrer

    Is this the best/right way to redirect based on the referrer? RewriteCond %{http_referer} ^http://([^.]+\.)*(google)\.com RewriteRule ^$ somepage.php [R=301,L]