User Profile

Collapse

Profile Sidebar

Collapse
jamwil
jamwil
Last Activity: Jun 28 '10, 02:48 PM
Joined: May 21 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ya if you have it php works wonderfully.

    Code:
    <?php include("filename.html"); ?>
    See more | Go to post

    Leave a comment:


  • jamwil
    replied to transparent text within a coloured box
    I've seen the effect on a number of signs / billboards etc, but never on a site. It might not work out but part of me wants to at least give it a try.

    I'm guessing though that it is not possible to make the letters completely transparent, while having their bounding box a solid colour.
    See more | Go to post

    Leave a comment:


  • jamwil
    started a topic transparent text within a coloured box

    transparent text within a coloured box

    Hey guys, not sure if this is possible with css, but I have a photographic background for a website, and would like to create text that is completely transparent so that the background shows through each letter.

    The letters will be contained within a white box. I don't think this is possible (I've tried a couple different ways I can think of) but can anyone let me know definitively?

    Cheers,
    James
    See more | Go to post

  • Works like a charm... Thanks!
    See more | Go to post

    Leave a comment:


  • Cool I'll give that a shot.. I had originally gone there to find the solution, and ended up using the one that is posted 2 down from there as the guy claims the original code was wrong.

    I'll try out that code and see how she goes.

    Thanks a bunch!
    See more | Go to post

    Leave a comment:


  • jamwil
    started a topic Simple Regex help, need a minor modification to this
    in PHP

    Simple Regex help, need a minor modification to this

    What up friends, I'm using this little function to parse hyperlinks in plain text and convert them into links. It goes like so
    Code:
    private function hyperlink($text) {
    		// match protocol://address/path/
    	    $text = ereg_replace("[a-zA-Z]+://([.]?[a-zA-Z0-9_/-])*", "<a href=\"\\0\">\\0</a>", $text);
    	
    	    // match www.something
    	    $text = ereg_replace("(^| )(www([.]?[a-zA-Z0-9_/-])*)",
    ...
    See more | Go to post
    Last edited by Markus; May 31 '09, 10:27 AM. Reason: We are not pornstars.

  • Figured it out... Digg's api requires any access from a script to have a user agent set... Just added this to the top of the page and she works like a charm
    Code:
    ini_set('user_agent','ilovejames/1.0');
    See more | Go to post

    Leave a comment:


  • SimpleXML won't load Digg feed, but will load anything else. WTF?

    What's up guys. I'm having some issues... I've created a method as part of my lifestreaming class which takes an rss feed, and puts the data into a database... It's fairly simple... Check it....
    Code:
    /////
    // feed
    //
    // LOADS THE RSS FEED FOR
    // LOOPS THROUGH AND FORMATS/FILTERS POSTS
    // PULLS THE TIMESTAMP OF THE LATEST UPDATE FROM THE DB
    // IF THERE ARE NEW POSTS, ADD THEM TO THE DATABASE
    /////
    ...
    See more | Go to post

  • jamwil
    replied to Lifestreaming - Need some advice.
    in PHP
    That sounds like an easy solution, thanks a bunch!
    See more | Go to post

    Leave a comment:


  • jamwil
    replied to mysql_connect function isn't working
    in PHP
    I'm certainly no expert, but it looks to me like your code is sound.
    Seems to me like php is not communicating with mySql... Which I'm not the person to ask how to fix.
    See more | Go to post

    Leave a comment:


  • jamwil
    started a topic Lifestreaming - Need some advice.
    in PHP

    Lifestreaming - Need some advice.

    What's up guys? I'm making a lifestreaming system for my site which will pull various RSS feeds from Twitter, last.fm, del.icio.us, etc. etc.

    It's been a while since I've done any webdev but I've got a pretty good idea of how I'm going to go about doing this... Basically:
    1. Create a class to pull the rss feeds from the various sources
    2. Have a function for each different rss feed to parse it in a uniform way
    3. Throw them all into a
    ...
    See more | Go to post

  • jamwil
    replied to Remove certain posts from an RSS feed
    in PHP
    Works like a charm... Thanks!
    I like this place, I think I'll stick around.
    See more | Go to post

    Leave a comment:


  • jamwil
    started a topic Remove certain posts from an RSS feed
    in PHP

    Remove certain posts from an RSS feed

    Hey guys, I'm trying to have my website display my latest post from my twitter RSS feed.

    This is very simple and I accomplished it through this code.

    Code:
    <?php
    	$twitterxml = simplexml_load_file("http://twitter.com/statuses/user_timeline/16428755.rss");
    	$tweet = str_replace("jamwil: ", "", $twitterxml->channel->item[0]->title);
    	echo $tweet;
    ?>
    ...
    See more | Go to post
No activity results to display
Show More
Working...