Web Design Forum: Allstar - Viewing Profile - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting

Allstar's Profile User Rating: -----

Reputation: 2 Neutral
Group:
Members
Active Posts:
41 (0.04 per day)
Joined:
24-September 09
Profile Views:
2,082
Last Active:
User is offline Mar 30 2012 07:31 PM
Currently:
Offline

My Information

Member Title:
Forum Newcomer
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Not Telling Not Telling
Location:
Thunderbird 5

Contact Information

E-mail:
Private

Users Experience

Experience:
Intermediate
Area of Expertise:
Designer/Coder

Topics I've Started

  1. Finding a space outside of a HTML tags

    30 March 2012 - 03:27 PM

    I'm trying to find a 'space' outside of a html tag

    $counter = 0;
    $insert_at = 160; // start at 160 chars into content
    do {
    	$look_from = $insert_at = @strpos($content, ' ', $insert_at);	
    
    	$before_opening_tag = strrpos($content, '<', $look_from);
    	$before_closing_tag = strrpos($content, '>', $look_from);
    	
    	$after_opening_tag = strpos($content, '<', $look_from);
    	$after_closing_tag = strpos($content, '>', $look_from);
    
    	$counter++;
    	if ( $counter == 5) { break; }
    } while (
    	($before_opening_tag > $before_closing_tag)
    	&&
    	($after_closing_tag < $after_opening_tag)
    );
    


    The while conditional should read like
    "is the first closing tag less chars from beginning than an open tag?" (looks like: '<>SPACE')
    AND
    "is the first opening tag more chars after the next closing tag?" (looks like: 'SPACE<>')

    overall I want this: "<img width="100" />SPACE<a href="">"
    and not this: "<img width="100" /><aSPACEhref="">" or "<img width="100"SPACE/> <a href="">"
  2. Website » Twitter » Facebook (Not the other way around)

    16 January 2012 - 01:59 PM

    The way things were: We Update the Website, Website updates Twitter, Twitter updates Facebook.

    That was great.

    The mechanism that a Facebook Page used to update from Twitter does not work anymore. It seems I have to update {Facebook -> Twitter -> Website} which is annoying since most of our updates come from people that don't know much about Twitter and Facebook updates from lots of people is confusing news wise so putting everything onto the website keeps things simple for them.

    So a recommendation on a Facebook App that did things the old way or a cruft free, just-sends-updates-Facebook Wordpress plugin would be great.

    The Website we are using is built on Wordpress. I've browsed but most of the WP plugins I have download load and run with Notices, sometimes inside the input fields and are not very inspiring.
  3. Private File Download Methods

    09 July 2011 - 02:52 PM

    I've used 3 methods for private file downloads on a PHP website, I'm wondering if there are any others?

    1) One system I've used wasn't really secure but it was a nice quick fix and that was to have a uniquely named folder for the downloads and links to the files in that folder on a password protected page. However if you knew the link you could still access the file.

    2) The other uses a PHP file to access all files and only returns the file if you have the permission for that file. Problem is if the file 100 MB big you'll need to set the script memory size (RAM) ridiculously high.

    3) Files are emailed to people via a script if they have the permission to receive that file.


    I'm hoping there is another method or a tweak to method 2) so I can have password protected files but there isn't a huge script memory needed for large files.

    Suggestions anyone?
  4. Repeated Paypal IPN responses

    11 June 2011 - 12:37 PM

    On a test website I've made a functioning basket/cart with a "pay for this with paypal" button. The items are sent to paypal successfully and can be paid for successfully.

    I've passed paypal a notify_url for IPN. I've in the IPN is a logging mechanism that writes to a textfile with datetimes for each step it goes through.

    I made a sandbox payment last night in testing and the log for the paypal response of "VERIFIED" was updated regularly for the next 3 hours.

    If I am getting the "VERIFIED" response paypal should have been informed I have been notified yet it is continuing to ping me. Is this normal behaviour?

Friends

Allstar hasn't added any friends yet.

Comments

Page 1 of 1
  1. Photo

    Ben 

    24 Sep 2009 - 18:07
    Welcome to the forum Allstar Thank you for taking the time to join :)
Page 1 of 1