Jump to content

gene99

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gene99's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a problem w/ a widely used password protect php code. I use a business directory program that allows custom input fields. I'm using this code to password protect a business listing page in my directory code. I created custom fields for the username & password so a listing can enter their own user/pass but when I test it it won't work when I'm calling/echoing the fields. When I hardcode it w/ a user/pass it works. Any ideas on how I should recode this?: I close the code correctly. <?php echo $custom_74; ?> & <?php echo $custom_16; ?> are just incidently my custom field echo codes. I have over 150 custom fields working fine for user/listee options. The password protect code won't accept echos it seems as coded above. Thanks, Gene
  2. It works great! Thank you so much. Do you mind if I post this solution at PhpMyDirectory boards? If you ever need any help over there let me know. Maybe I can help ya. I'll see how well we can tackle the css to get a better look maybe & post it back here. Thanks again, gene99
  3. I am able to take an rss/xml file from all listings in my directory(s) & convert it to a file like this one in 5-10 minutes > http://www.w3schools.com/php/links.xml This is the example file in the php live search code at > http://www.w3schools.com/ . I've done maybe 6-7 different possible changes & none works. I am just looking for a way to allow the <descriptions> in the xml to be keyword searched & the listing title (& url) & description to show in live search dropdown. At present only the title & url are searched. I use friendly urls so it's the same search result always. I can edit out the <title></title> from the xml & switch the <description></description> tags to <title></title> w/ "replace" feature in Notepad but it's a pain. Any help would be really appreciated. Thanks, Gene
  4. Sorry for double posting. My first time here. I found the PHP Ajax Live Search code here > http://www.w3schools.com/php/php_ajax_livesearch.asp I edited an rss/xml feed for recent listings from a php directory I use the same as the links.xml file example they give & got it working > http://www.easysavannah.com/livesearch.html Problem is I cannot get it to search the "description", only the "title" & "url". The "livesearch.php" listed here >> http://www.w3schools.com/php/php_ajax_livesearch.asp seems to mirror in ways the php for the MSN Live Search API code > http://dev.live.com/blogs/livesearch...01/08/445.aspx w3school's code snippet: Quote: $hint=""; for($i=0; $i<($x->length); $i++) { $y=$x->item($i)->getElementsByTagName('title'); $z=$x->item($i)->getElementsByTagName('url'); if ($y->item(0)->nodeType==1) { //find a link matching the search text if (stristr($y->item(0)->childNodes->item(0)->nodeValue,$q)) { if ($hint=="") { $hint="<a href='" . $z->item(0)->childNodes->item(0)->nodeValue . "' target='_blank'>" . $y->item(0)->childNodes->item(0)->nodeValue . "</a>"; } else { $hint=$hint . "<br /><a href='" . $z->item(0)->childNodes->item(0)->nodeValue . "' target='_blank'>" . $y->item(0)->childNodes->item(0)->nodeValue . "</a>"; MSN Live Search php snippett: Quote: echo('<li class="resultlistitem"><a href="' . $value->childNodes->item(2)->nodeValue . '">'); //Url echo('<h3>' . $value->childNodes->item(0)->nodeValue . '</h3></a>'); //Title echo('<p>' . $value->childNodes->item(1)->nodeValue . '</p>'); //Description } echo("</ul>"); I've tried a multitude of ways to add an echo into "w3"s code for allowing the code to search a description in an xml page. Has anyone seen a solution for this? Any help would be appreciated. Thanks, Gene PS. Code sample on index page of directory I'm testing > http://www.easysavannah.com/index2.html (middle below header)
×
×
  • 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.