Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: I have been working on new features tell me what you think

  1. #1
    Join Date
    Jun 2003
    Location
    Rock Valley Ia.
    Posts
    71

    Default

    I have been working with jon newest version and i have add some features to it and i was wondering if the would help here:

    1. Return to yahoo frame header
    see:
    http://www.cybrac.com/realty/redirec...et+Map=Get+Map

    php code:
    see:
    http://jonroig.com/freecode/phpBB/vi...affbea866f9127


    2. Driving directions
    see:
    http://www.cybrac.com/realty/redirec...shington,20500

    1 and 2 are from listing: "look at bottom of listing"
    see:
    http://cybrac.com/realty/listingview.php?listingID=1

    3. wysiwyg pages
    see:
    http://jonroig.com/freecode/phpBB/vi...affbea866f9127

    please don't change the pages


    4. html email page listing
    see:
    http://cybrac.com/realty/email_listing.php?listingID=1

    these are thing that i am working on most of them are in working order.

    Please tell me what you think and if they could be of use.

    Jason

  2. #2
    Join Date
    Apr 2003
    Location
    Charleville / Australia
    Posts
    1,421

    Default

    The site is obviously based on open-realty in some form/version or another dont you think you could of left at least the hidden credit to the creator of the source?
    <!-- powered by Cybrac.com. --><!-- Copyright 2002. --><!-- Learn more @ http://www.cybrac.com/realty or email realty@cybrac.com for details -->

  3. #3
    Join Date
    Dec 2002
    Posts
    1,883

    Default

    The site is obviously based on open-realty in some form/version or another dont you think you could of left at least the hidden credit to the creator of the source?
    I would agree with you but i was working with a realtor to do there web site and another firm was competing with me to get the contract so i figured i would let them find there own way to make a cms for the customer.

    I belive that they used my example to show the other firm what i could do.
    http://www.cybrac.com/realty

    And this is my "test", "show" site.



    jason

  4. #4
    Join Date
    Dec 2002
    Posts
    1,883

    Default

    Thats a good feature html email. Would it be possible to share the code.

  5. #5
    Join Date
    Jun 2003
    Location
    Rock Valley Ia.
    Posts
    71

    Default

    Thats a good feature html email. Would it be possible to share the code.
    This is where it started

    http://jonroig.com/freecode/phpBB/vi...ba698ec1d13dd4

    I am working on release some of the changes that i did but i have one little problem with it.

    The html email will only display "so many lines" of the source code of the html web page. :cry:

    jason

  6. #6
    Join Date
    Jun 2003
    Location
    Rock Valley Ia.
    Posts
    71

    Default

    Code:
    <?
    
    
    
    
    
    	
    	global $conn, $config, $lang;
    
    	
    
    	
    
    	if &#40;$listingID != ""&#41;
    
    		&#123;
    
    		if &#40;$action == "mail"&#41;
    
    			&#123;
    			if &#40;$emailradio == one&#41;
    			&#123;
    			
    			if &#40;$to == ""&#41; &#123;die &#40;"<h3>$lang&#91;email_listing_provide_email&#93;</h3>"&#41;;&#125;
    
    			if &#40;$sender == ""&#41; &#123;die &#40;"<h3>$lang&#91;email_listing_enter_name&#93;</h3>"&#41;;&#125;
    
    			if &#40;$sender_email == ""&#41; &#123;die &#40;"<h3>$lang&#91;email_listing_enter_email_address&#93;</h3>"&#41;;&#125;
    			
    $headers = "MIME-Version&#58; 1.0\r\n"; 
    $headers .= "Content-type&#58; text/html; charset=iso-8859-1\r\n"; 
    $subject = "Listing from $sender"; 
    $fromName = $yourname; 
    $fromAddres = $youremail; 
    // read the file for nice template to show the user 
    $yahoomaps = "N"; 
    $filenam = "listingview_email.php?listingID=$listingID&amp;frmail=N"; 
    $fd = fopen&#40;"$config&#91;baseurl&#93;/$filenam", "r"&#41;; 
    $tmpvar = fread&#40;$fd, 990000000000000000&#41;; 
    fclose &#40;$fd&#41;; 
    $message = "<p>Your Friend, $sender, has sent along the following link</p> <P><a href=\"http&#58;//www.yoursite.com/realty/listingview.php?listingID=$listingID\">Click here to see the listing or look below</a></p><p>Comment from $sender &#58;</p><p> $comment <p></p>"; 
    $message = $message.$tmpvar; 
    $message = stripslashes&#40;$message&#41;; 
    $temp = mail&#40;$to, $subject, $message, "From&#58; ".$sender." <".$sender_email.">"."\r\n". $headers&#41; or print "You must supply a email address.<BR><HR><BR><P>"; 
    
    if &#40;$temp = true&#41; &#123;echo "$lang&#91;email_listing_sent&#93; $to.<P><a href=\"listingview.php?listingID=$listingID\">Return to listing $listing</a>   ";&#125;
    
    
    &#125;
    else
    &#123;
    
    			if &#40;$to == ""&#41; &#123;die &#40;"<h3>$lang&#91;email_listing_provide_email&#93;</h3>"&#41;;&#125;
    
    			if &#40;$sender == ""&#41; &#123;die &#40;"<h3>$lang&#91;email_listing_enter_name&#93;</h3>"&#41;;&#125;
    
    			if &#40;$sender_email == ""&#41; &#123;die &#40;"<h3>$lang&#91;email_listing_enter_email_address&#93;</h3>"&#41;;&#125;
    
    			$message = $lang&#91;email_listing_default_message&#93;;
    
    			$message = stripslashes&#40;$message&#41;;
    
    		    $temp = mail&#40;$to, $lang&#91;email_listing_default_subject&#93;, $message, "From&#58; ".$sender." <".$sender_email.">","-f$sender_email"&#41; or print "<h3>Could not send mail.</h3>";
    
    			if &#40;$temp = true&#41; &#123;echo "$lang&#91;email_listing_sent&#93; $to.<P><a href=\"listingview.php?listingID=$listingID\">Return to listing $listing</a>   ";&#125;
                &#125;
    			&#125;
    
    		else
    
    			&#123;
    	      	  
    			
    
    			echo "<h3>$lang&#91;email_listing_send_listing_to_friend&#93;</h3>";
    
    			echo "<form name=\"mailman\" action=\"email_listing.php\" method=\"post\"> ";
                     
                echo   "<input type=\"radio\" name=\"emailradio\" value=\"one\" checked>Html Email. Sends Web Page of the listing.<br>";
                echo   "<input type=\"radio\" name=\"emailradio\" value=\"two\">Link Email.  Sends Text Link of the listing.<br><br>";
                      
    			echo "<table border=\"0\" cellpadding=0 cellspacing=0>";
    
    			echo "<tr><td width=\"120\" align=center>$lang&#91;email_listing_friend_email&#93;&#58;</td><td align=left><input type=text name=\"to\"></td></tr>";
    
    			echo "<tr><td width=\"120\" align=center>$lang&#91;email_listing_your_name&#93;&#58;</td><td align=left><input type=text name=\"sender\"></td></tr>";
    
    			echo "<tr><td width=\"120\" align=center>$lang&#91;email_listing_your_email&#93;&#58;</td><td align=left><input type=text name=\"sender_email\"></td></tr>";
    
    		 
    
    
    			echo "<tr><td width=\"120\" align=center>$lang&#91;email_listing_your_message&#93;&#58;</td><td align=left><textarea name=\"comment\" cols=60 rows=4></textarea></td></tr>";
    
    			echo "<input type=\"hidden\" name=\"action\" value=\"mail\">";
    
    			echo "<input type=\"hidden\" name=\"listingID\" value=\"$listingID\">";
    
    			echo "<tr><td></td><td align=\"middle\"><input type=\"submit\" value=\"$lang&#91;email_listing_send&#93;\"></td></tr>";
    
    			echo "</table></form>";
    
    			&#125; // end else action != mail
    
    		&#125; // end &#40;$listingID != ""&#41;
    
    	else
    
    		&#123;
    
    		echo "<h3>You must have something to email!</h3>";
    
    		&#125;
    
    		
    
    	
    
    
    
    
    
    ?>
    i used $filenam = "listingview_email.php?listingID=$listingID&amp;fr mail=N"; so that i could edit the listingview.php to look the way i wanted

    It would be of great help if some one could tell me why it does not "grabs" all the lines from the webpage.

    Jason

  7. #7
    Join Date
    Jun 2003
    Location
    Rock Valley Ia.
    Posts
    71

    Default

    Does any one:

    Have the problem with the Html email or see why it only grabs some of the lines of the html code on the page. when you go to send a html email

    thanks

    jason

  8. #8
    Join Date
    Dec 2002
    Posts
    1,883

    Default

    How can I implement the form mail features onto the program?

    Thanks,

    Jaime

  9. #9
    Join Date
    Jun 2003
    Location
    Rock Valley Ia.
    Posts
    71

    Default

    Thanks,

    You must add this to the listingview.php page

    Code:
    </b> <br>
    	  <? echo "<img src=\"$config&#91;listings_view_images_path&#93;/images/email.gif\" width=\"26\" height=\"19\">"?></a><a href="email_listing.php?listingID=<? echo $listingID ?>">Email 
          This Listing to a Friend</a></b> <br>
    and then you must copy listingview.php and name the copy listingview_email.php (I did this so that is could edit the web page that get email out "like take out the featured items"). Then use the code above for the email_listing.php page. And i belive that should take care of it. If any one has the problem with it not showing all the lines on the email please let me know.

    I put

    Code:
    "$config&#91;listings_view_images_path&#93;/images/email.gif\" width=\"26\" height=\"19\">"?></
    to display the mail image.

    Jason

  10. #10
    Join Date
    Dec 2002
    Posts
    1,883

    Default

    Hi,

    I suppose the error in the script is just the fread statement. The length is an integer, so it cannot be 990000000000000000000000000000000.
    Use filesize ($filename) instead.
    Hope this helps.
    I tested once more the script i posted, and it works whitout any problems.
    It's used on 2 sites in a production environment.

    Steven :

Similar Threads

  1. SQL statment not working
    By Anonymous in forum HELP (CLOSED)
    Replies: 8
    Last Post: 02-07-2004, 05:24 PM
  2. Replies: 9
    Last Post: 12-10-2003, 01:42 PM
  3. Search page features not working
    By Anonymous in forum HELP (CLOSED)
    Replies: 1
    Last Post: 08-21-2003, 07:00 PM
  4. This is a good solution, but i need more features
    By valaki in forum Feature Request (CLOSED)
    Replies: 0
    Last Post: 08-15-2003, 08:02 PM
  5. Replies: 1
    Last Post: 07-19-2003, 06:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •