Gossamer Forum
Quote Reply
Recommend_It
Today I'll be writing my own version of the recommend_it plugin as it seems it doesn't work under mod_perl and still has errors that some people are having trouble with.

I should have it finished later today.

Last edited by:

Paul: Aug 1, 2002, 2:28 AM
Quote Reply
Re: [Paul] Recommend_It In reply to
Not very helpfully - I have it working under mod_perl - but can't remember what I did to fix it!
Quote Reply
Re: [afinlr] Recommend_It In reply to
Edit:

Oh I see what you mean now :)

Well here is a working recommed it plugin. It could probably be improved upon but I'm busy with a bigger task and shouldn't really even have started the plugin..I hope someone finds it useful...see the "About" link after installation for instructions.

If you want to show the number of recommendations in link.html to flick the Tracking option to "Yes" in the plugin manager and put <%RecTrack%> in link.html

Oh poop, uploading the plugin to this post is giving a 500 error :(

Last edited by:

Paul: Aug 1, 2002, 12:29 PM
Post deleted by Paul In reply to
Quote Reply
Re: [Paul] Recommend_It In reply to
Good work Paul, keep it up!
Quote Reply
Re: [Paul] Recommend_It In reply to
Paul,



I just tried it and got a 500 error



[Thu Aug 1 15:41:30 2002] [error] [client 80.14.82.49] Premature end of script headers: /home/cgi-bin/rec_link.cgi




(this is from my error log)



Thank you for your help.
Quote Reply
Re: [nt6] Recommend_It In reply to
Whoops hehe I forgot to add in the code that converts the path to perl and use lib lines.

If you open up rec_link.cgi you can manually change the path to perl and make sure you add your admin path into the use lib '/path/goes/here'; and Links::init('/path/goes/here');

I'll get that updated, sorry about that.
Quote Reply
Re: [nt6] Recommend_It In reply to
The corrected version is now available from the download area.

Last edited by:

Paul: Aug 3, 2002, 11:05 AM
Quote Reply
Re: [Paul] Recommend_It In reply to
Hey Paul,

I installed this and it looks great. I did however find a little issue that is causing me some grief.



After it was installed and working I uploaded about 150 links into the system via my Links Upload plugin. Then I did the repair table and rebuild search then a build all.

I found a few links that needed to be moved and I went into the BROWSE and selected a link to be moved. Then I selected the new category for the link to be moved. This is when I got the error. The error stated that the link could net be moved because the RecTrack was [undefined].

So I tried uninstalling the plugin and again tried to move it and it again gave me the same error code.

Then I reinstalled it and tried one more time with the same end, an error.

Any ideas?
Quote Reply
Re: [Teambldr] Recommend_It In reply to
Im not totally sure what is happening but could you try...

UPDATE Links SET RecTrack = 0

....from mysqlman and see if that changes anything.

Is the column set as NULL or NOT NULL when you look at it using the def editor?

I also forgot to mention before that you can add as many Name/Email fields into rec_link.html as you want and an email will be sent to each.
Quote Reply
Re: [Paul] Recommend_It In reply to
I found it Paul,

I have to choose if it is going to track or not before moving any links.

It is working great now. THanks and NICE PLUGIN!!!
Quote Reply
Re: [Paul] Recommend_It In reply to
Hi Paul,

I went to validate links this evening and had an issue pop up.

When I went to validate it stated "
    Unable to validate link: 40224. Reason: RecTrack can not contain the value ''
      I looked at the RecTrack box at the bottom of the form and it was blank.
      Should the ID be in that box or what should be there if anything?
        Thanks!Crazy
      Edit: When I entered a "0" in the RecTrack box it took the validation. Is that what it should have been?

      Last edited by:

      Teambldr: Aug 4, 2002, 10:24 PM
      Quote Reply
      Re: [Teambldr] Recommend_It In reply to
      Hi

      What is the RecTrack for?

      Go to the Links properties and click on RecTrack..

      1- if you need a specific value set a default..

      2- if you do not and users can leave it blank change that field to Not Null..
      Regards
      KaTaBd

      Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
      Quote Reply
      Re: [katabd] Recommend_It In reply to
      >>
      What is the RecTrack for?
      <<

      It tracks the number of recommendations for each link. It should be defaulted to 0 (obviously I forgot Frown)
      Quote Reply
      Re: [Paul] Recommend_It In reply to
      >>It should be defaulted to 0

      One mistake a day is ok....Wink
      Regards
      KaTaBd

      Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
      Quote Reply
      Re: [katabd] Recommend_It In reply to
      This is fixed in the admin download now.
      Quote Reply
      Re: [Paul] Recommend_It In reply to
      Thanks Paul!
      Quote Reply
      Re: [Paul] Recommend_It In reply to
      Hey Paul.

      I found a small thing in the templates that I wanted to bring to your attention.

      On all references to the shims the code is showing the following:
      <img src=><%build_images_url%>/default/BlackShim.gif" width=6 height=100></td>
      I found that if I replace the > with a " it works perfect.

      Just an FYI!Cool
      Quote Reply
      Re: [Teambldr] Recommend_It In reply to
      I copied the template code from another Links SQL 2.1.1 default template but can't remember which one so that bug must be in one of the other templates. I'll see if I can find which one I copied.
      Quote Reply
      Re: [Paul] Recommend_It In reply to
      Hey Paul,

      If I wanted to send the rec back to the detail page rather than to the link via jump.cgi what would that piece of code be to enter into the email template?

      Currently it is:
      <%db_cgi_url%>/jump.cgi?ID=<%ID%>


      Thanks!Wink
      Quote Reply
      Re: [Teambldr] Recommend_It In reply to
      Are you using root_url/Detailed ? ....if so you can do:

      <%build_root_url%>/Detailed/<%ID%>.html

      *I think*
      Quote Reply
      Re: [Paul] Recommend_It In reply to
      That was it!

      Thanks!

      Now when a rec is sent out it will route them back to the detail page before they can go out to the actual link URL. Perfect!
      Quote Reply
      Re: [Removed] Recommend_It In reply to
      Thanks Paul! Great plugin Smile

      Is there a way to prevent users from submitting HTML code in message box?