 |

casi
Novice
Mar 20, 2004, 11:26 AM
Post #26 of 50
(14347 views)
Shortcut
|
|
Re: [Benjamin] Add to Favorites
[In reply to]
|
Can't Post
|
|
hi ben is this favorite.cgi available in a version running with the newest realty manager? thanks casi
|
|
|  |
 |

sinclairowen
New User
Jun 18, 2004, 2:59 AM
Post #27 of 50
(14201 views)
Shortcut
|
|
Re: [Benjamin] Add to Favorites
[In reply to]
|
Can't Post
|
|
Hi there, Having read all about this new add on feature I was unable to find the file to download. I would really like to add this feature to my site, could someone please tell me where I could find this script? (favorites.cgi) Many thanks Sinclair
|
|
|  |
 |

Cliff
Staff

Jun 18, 2004, 9:29 AM
Post #28 of 50
(14194 views)
Shortcut
|
|
Re: [sinclairowen] Add to Favorites
[In reply to]
|
Can't Post
|
|
Hi Sinclair, You can download the file that is attached to this post. Please note that because this is a free add-on it is provided without free-support/installations, but the community are an extremely helpful bunch, so if you have any troubles getting this up and running they should be able to lend a hand Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 |

sinclairowen
New User
Jun 21, 2004, 7:32 AM
Post #29 of 50
(14179 views)
Shortcut
|
Thanks Cliff, I've found it, and am going to "Try" and get it to work for my site. I'll keep you all posted on how I get on! Many Thanks Sinclair
|
|
|  |
 |

bcrockett
User
Jun 26, 2004, 7:18 PM
Post #30 of 50
(14146 views)
Shortcut
|
Scott, How did you get around the no image issue? I used <!-- templatecell : no_images --> and <!-- /templatecell : no_images --> with no luck. Thanks, -Brandon
|
|
|  |
 |

dedbob
User
Jun 26, 2004, 8:10 PM
Post #31 of 50
(14144 views)
Shortcut
|
|
Re: [bcrockett] Add to Favorites
[In reply to]
|
Can't Post
|
|
No images issue? Heh... I started putting a default image in if the user didn't post one. Is this what you're asking? I think you could probably do something with javascript.. but I haven't explored it. Thanks, Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
|  |
 |

bcrockett
User
Jun 26, 2004, 9:25 PM
Post #32 of 50
(14141 views)
Shortcut
|
Are you manually watching the site to see which ones are not posting a picture and then going in and adding one for them? I tried using the no photo available section of the _publish_listing.html thinking that might work. No Luck. <!-- templatecell : no_images --> <p> <table border=1 cellspacing=0 cellpadding=0 width=140 height=100> <tr> <td bgcolor="#EEEEEE" align=center><font face="tahoma,arial" size=4><b>Photo<br>Not<br>Available</b></font></td> </tr> </table> <!-- /templatecell : no_images --> -
|
|
|  |
 |

dedbob
User
Jun 26, 2004, 10:48 PM
Post #33 of 50
(14138 views)
Shortcut
|
|
Re: [bcrockett] Add to Favorites
[In reply to]
|
Can't Post
|
|
Yes... it's a manual process. I have tried .htaccess files and misc other things, but i don't think there's an easy solution. I still think that some kind of javascript is the way to go... anyone have any ideas? Thanks, Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
|  |
 |

Peter P
New User
Jul 31, 2004, 9:14 AM
Post #34 of 50
(13946 views)
Shortcut
|
Right...well I've read all the posts regarding creating a Favorites folder and done all the things mentioned to edit the favorites.cgi script as mentioned by Lee (filelock names), Scott ($Bin function) & Tevita ($Bin function) but it still comes up with a 500 Internal Server Error. I have checked file permissions and have favorites.cgi and fav-db.cgi set to 755 as is the fav_view template. The only remaining thing I can think of is that I have to keep the Listings folder outside of my cgi-bin as my provider doews not allow access - however all templates and cgi scripts are held in cgi-bin and the rest of RM works well.....dunno if this affects anything?? ......and I haven't even got as far as the thumbnail issue yet!! Although I'm OK on HTML....my Perl knowledge is non existent so have carried out editing of the script word for word as stated in the posts......but it all seems pretty logical to me. Where do I go from here???? Any help is gratefully appreciated. Thanks, Peter
|
|
|  |
 |

dedbob
User
Jul 31, 2004, 11:37 AM
Post #35 of 50
(13937 views)
Shortcut
|
|
Re: [Peter P] Add to Favorites
[In reply to]
|
Can't Post
|
|
Hmmm if it's giving an internal server error, it should be logging the reason for it in your domain error logs. Can you check them and see if they say anything? That's how I find some script problems. Also, do you have shell access? if so, you can go to your exec dir and type this: ./favorites.cgi and see what happens. It should spit out html if everything up working properly, but since it's not, it may give you an error message with a line number like "bad syntax on line 23 - operator expected" or something like that. 2 other things... 1) check your path to perl. It's the first line of the scripts and should be something like this: #!/usr/bin/perl #!/usr/local/bin/perl If your script has #!/usr/bin/perl and when it should be #!/usr/local/bin/perl then you will get an internal server error. Most servers have this set to work with either path, but I've seen tons that do not. 2) Did you upload the scripts in ascii format? If you're using wsftp and you set it to auto or binary and you upload a script, it will break it. If none of this works, pm me through this board and I will take a look at it later tonight if you'd like and see if I can help get it working. Thanks! Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
|  |
 |

stanb17
User
Oct 3, 2004, 1:56 PM
Post #36 of 50
(13530 views)
Shortcut
|
Hey Dedbob, Long time no tap. I am back at this Favorites script. I actually had it working (just OK) on another server that got hosed and I am at this point (Internal Server error) as well. The Page is here and the lines of code are... <a href="http://www.adworks.net/cgi-bin/artman/exec/favorites.cgi?do=add&type=artman&id=$art_num$&name=$art_name_ue$&$art_field1$&$art_date$&url=$url_thispage$&listdata1=$art_summary_ue$" target="favorites" onClick="MM_openBrWindow('','favorites','scrollbars=yes,resizable=yes,width=500,height=400')">Add To Favorites</a><br> <a href="http://www.adworks.net/cgi-bin/artman/exec/favorites.cgi?" target="favorites" onClick="MM_openBrWindow('','favorites','scrollbars=yes,resizable=yes,width=500,height=400')">View Your Favorites</a> The CGI files are in the right directory and set to 755 and were loaded in ASCII. If you see anything blatantly wrong here, please let me know. I'm not losing any sleep over it as it's sort of a side project I hope to offer my ListMan clients... but it has to pass the beta phase before I ask people for money to install it. Thanks Stan StanTheMan
|
|
|  |
 |

dedbob
User
Oct 3, 2004, 2:14 PM
Post #37 of 50
(13528 views)
Shortcut
|
|
Re: [stanb17] Add to Favorites
[In reply to]
|
Can't Post
|
|
Stan, Did you also do the other fixes listed above with the Global cgi directory and the file lock name? http://www.adworks.net/cgi-bin/artman/exec/favorites.cgi gives an interenal server error when it should display your favorites template. Let me know if you've done the Global cgi directory and the file lock name. If so, do you have access to your error logs for your domain? Chances are that can point us in the right direction. Thanks! Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
(This post was edited by dedbob on Oct 3, 2004, 5:59 PM)
|
|
|  |
 |

stanb17
User
Oct 4, 2004, 5:58 AM
Post #38 of 50
(13509 views)
Shortcut
|
Scott, I traced through everything in this forum and did whatever customizing I throught neccessary to get this to work. Fact is... I had it working before, on my old server. I just can't recall what I'd done because it was so long ago. Attached is my favorites.cgi file. Because I'm testing this using ArtMan, some of the ListData fields might be incorrect (an assumption). I have not activated Error Logs for my domain. Never needed them before, but they are available if I ask. I'll try and gain access to my old server and pull the old fav's and templates in to see where things are going wrong. If anything jumps out at you in this attachment let me know. I think it was probably you who helped my get as far as I did last year. Thanks Stan StanTheMan
|
|
Attachments:
|
favorites.cgi
(23.1 KB)
|
|
|  |
 |

dedbob
User
Oct 4, 2004, 10:04 AM
Post #39 of 50
(13502 views)
Shortcut
|
|
Re: [stanb17] Add to Favorites
[In reply to]
|
Can't Post
|
|
Stan, Right off the bat I see several problems: $Global{'cgidir'} = "/www/cgi-bin/artman/exec/"; Should be something like: $Global{'cgidir'} = "/home/yourusername/www/cgi-bin/artman/exec/"; $Global{'templatedir'} = "../templates/fav_view"; Should be: $Global{'templatedir'} = "../templates/"; require "$Bin/fav-db.cgi"; Should be: require "/home/yourusername/www/cgi-bin/artman/exec/fav-db.cgi"; If you want, please provide the full path to your cgi directory and I'll make the needed changes and send the file to you. Thanks! Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
(This post was edited by dedbob on Oct 4, 2004, 10:12 AM)
|
|
|  |
 |

stanb17
User
Oct 4, 2004, 11:33 AM
Post #40 of 50
(13496 views)
Shortcut
|
Scott, Ah.. now some of the memories are coming back. Unfortunately.. Still getting a server error. I changed the above to... $Global{'progVer'} = "1.0"; $Global{'cgidir'} = "/home/adworks/www/cgi-bin/artman/exec/"; $Global{'datadir'} = "/artman/data"; # directory of database files (relative to cgidir) $Global{'templatedir'} = "/artman/templates/"; # directory of templates (relative to cgidir) $Global{'cgiurl'} = "favorites.cgi"; # name of this script and the require part to... require "/home/adworks/www/cgi-bin/artman/exec/fav-db.cgi"; I don't think I missed anything. Still getting an Internal Server Error.. which I learning to hate with a passion. Is there anything else I can provide you with? Thanks Stan StanTheMan
|
|
|  |
 |

dedbob
User
Oct 4, 2004, 12:04 PM
Post #41 of 50
(13494 views)
Shortcut
|
|
Re: [stanb17] Add to Favorites
[In reply to]
|
Can't Post
|
|
Can you email me your actual favorites.cgi file? I've pm'd you my email address through this board. I'll see if it works on my server. Thanks, Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
|  |
 |

stanb17
User
Oct 4, 2004, 6:25 PM
Post #42 of 50
(13480 views)
Shortcut
|
Scott... You are So "Da Man!" For anyone who bothered to follow this tale of woe, it is possible for a favorites.cgi file to get corrupted without you even having a chance to see any corruption in Notepad! The only way to actually view the corruption is to use PuTTY to log into the account and find the file. If you see any ^M characters after lines of code... the file has been compromised. It's extremely easy to forget to use ASCII mode when up and downloading multiple files in a frenzy. Just one binary transfer can screw you blind. "Blind" because Notepad will not show you these ^M characters, so you could spend hours and hours loading what looks like a perfectly formatted cgi script in Notepad to the server, but getting "Internal Server Errors". when trying to pull up the favorites templates. You can download puTTY to login to your shell account here. Be sure to brush up on your shell commands. They are a bit like DOS. If you still have your DOS chops working, you'll be fine. Otherwise... you'll need Scott and this forum to set things right. Scott and this forum "ROCKS". Long live DEDBOB! Stan StanTheMan
|
|
|  |
 |

dedbob
User
Oct 4, 2004, 7:23 PM
Post #43 of 50
(13478 views)
Shortcut
|
|
Re: [stanb17] Add to Favorites
[In reply to]
|
Can't Post
|
|
Thanks for the compliments... glad I could help Just in case there's anyone else that may be reading this, I've taken some screen shots that show exactly what happens when a plain text file is uploaded in binary format: http://www.corvettetraderonline.com/1.gif <--- uploaded in binary format (corrupted). http://www.corvettetraderonline.com/2.gif <--- uploaded in ascii format (not corrupted). The ^M's cause the internal server error. I've circled them in RED on the first graphic and as Stan stated, you can't see these in notepad even if you were to download the corrupted file in ascii format and open it up. Thanks! Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
(This post was edited by dedbob on Oct 4, 2004, 7:31 PM)
|
|
|  |
 | |  |
 |

dedbob
User
Oct 6, 2004, 1:05 PM
Post #45 of 50
(13448 views)
Shortcut
|
|
Re: [stanb17] Add to Favorites
[In reply to]
|
Can't Post
|
|
Stan, Well I do see that on your page that has the link to "Add To Favorites", the image url isn't in the published page. I'm not sure how Article Manager handles it's images, but I do know that if the $img_url$ variable isn't being published into the actual favorites link, then it won't be passed to the favorites script. See what you can do about getting the $img_url$ to publish into the "Add To Favorites" link. If it doesn't work at that point, let me know and we'll see what we can do. Thanks! Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
|  |
 |

stanb17
User
Oct 8, 2004, 6:01 AM
Post #46 of 50
(13410 views)
Shortcut
|
Hmm sez I, I used the same $img_url$ code that the standard template uses to pull in the image. I also tweaked around with the "add to favorites" link to include a line at the end for $img_url$. This is where I think the problem is. ...exec/favorites.cgi?do=add&type=artman&id=$art_num$&name=$art_name_ue$&$art_field1$&$art_date$&url=$url_thispage$&listdata1=$art_summary_ue$&img=$img_url$" target="favorites"... I see things like =add&type=artman&id=$art_num&name... etc. and I think the syntax of my addition of &img=$img_url$ might be wrong. But I have also tried using just &$img_url$ and &$image_url$ which appears from time to time in the default template. Nothing brought the image in. How you have gotten it to work so flawlessly is a testament to both your genius and my cluelessness.
Humbled. Stan StanTheMan
|
|
|  |
 |

dedbob
User
Oct 8, 2004, 9:40 PM
Post #47 of 50
(13391 views)
Shortcut
|
|
Re: [stanb17] Add to Favorites
[In reply to]
|
Can't Post
|
|
Stan, Thanks for the compliments, but I do have a slight difference in my setup. I have hardcoded my image link using the listingnumber which simplifies things quite a bit. If all of your images are .jpg and there is a listingnumber in Article Manager, you can do the same thing. What I did, was I used one of the variables of the favorites script (listdata3) to grab the listingnumber and pull the image thumbnail that way: &listdata3=$listing_num$_1_t.jpg. What this does, is if the listing number is 287, that translates into: &listdata3=287_1_t.jpg. Here's my complete example: /cgi-bin/lmanager/exec/favorites.cgi?do=add&type=rm&id=$listing_num$&name=$lfield2_ue$ $lfield24_ue$&url=$listing_url$/$listing_file$&listdata1=$lfield26$&listdata2=$lfield3$&listdata3=$listing_num$_1_t.jpg Don't be so hard on yourself . You're not clueless at all. I remember just 2 years ago, I was using frontpage to make websites and even got into an argument with someone for talking bad about it. I thought it was Gods gift to web designers that didn't know how to code really complicated stuff. Then one day, I pulled up my site in Netscape and almost choked (nothing against frontpage users, it's just not for me) My point is... you have to start somewhere. I learned several new things just today that I should have known already. Every day is a learning experience Thanks, Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
(This post was edited by dedbob on Oct 8, 2004, 9:43 PM)
|
|
|  |
 |

stanb17
User
Oct 9, 2004, 6:07 AM
Post #48 of 50
(13381 views)
Shortcut
|
Scott, Thanks. I believe part of why this is not functioning is because I'm using ArtMan for testing an option designed for ListMan. Unfortunately... I'm not willing to sacrifice one of my client's on-going sites for beta testing. FrontPage is a love hate relationship. I switch between FrontPage, Dreamweaver and notepad. Both FP and DW have their good and bad points. DW uses pretty standard coding for rollovers, FP uses some crappy extentions. Ya.. I always check web in NS 4.7 before moving on. I think the bottom line is... you rely on FP to do things for you and you pay for it in the end. ...back on subject... &listdata2=$art_num$_1_t.jpg did not seem to change a thing. I dunno. I have another thought. Check email Stan StanTheMan
|
|
|  |
 |

leeshields
User
Oct 10, 2004, 12:57 PM
Post #49 of 50
(13294 views)
Shortcut
|
|
Re: [stanb17] Add to Favorites
[In reply to]
|
Can't Post
|
|
Hi I was going to post to this the other day but saw you mention article manager, which isnt my field, and I wasnt completely certain. As far as I can work out, the 'img_url' is only parsed by the cgi script when its part of the 'template image' loops, ie it starts the template image section, sticks in any img urls (which can be multiples, this is where i think the problem is) and then ends, when it's outside the repeating templatecell it isnt referenced as it doesnt know which image you might mean, image one, preview etc etc, so there is nothing to pass on in the listdata fields. It might be worth adding to the wish list that the preview image could have an independent 'tag' so we could use this, or alternatively, if the cgi finds a 'lost' img_url it inserts the selected preview image. I wound up hard coding the images too as it seemed the most balanced solution, rather than going mad with some kind of search and iframe or something Hope this sheds some light on things Lee __ Lee Shields Apogee Technology John R Hornsby Adelante Properties Villassist Paul Withey Estate Agents
|
|
|  |
 |

pureportugal
User
Feb 18, 2007, 10:39 AM
Post #50 of 50
(8726 views)
Shortcut
|
|
Re: [leeshields] Add to Favorites
[In reply to]
|
Can't Post
|
|
I hope someone can give me a clue as to where I'm going wrong - I haven't got very far yet! I also had a server error first time I tried, so I changed the filelock as suggested by Lee. This did away with the server error but now I'm just getting a blank page ... anyone got any ideas what I should do now? -- www.pureportugal.co.uk Holidays and Property in Central Portugal
|
|
|  |
|