The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 30 posts ] 
Author Message
 Post subject: mod_recommend
PostPosted: Fri Jan 06, 2006 1:21 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 18, 2005 4:58 pm
Posts: 32
Hi all!

I've installed the Recommend component with success and it works greatly.

Now I tried to add te recommend module (mod_recommend) to have this component in a specific module...and I get lots of errors when seeing the page...

Anyone knows why? anyone can help me?

Tkx a lot

Abstraiko


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Jan 06, 2006 2:28 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Online

Joined: Thu Aug 18, 2005 2:09 am
Posts: 4642
Location: California
What errors are you seeing?
Installation errors?
Note - you must install the component first.

The original module file (mod_recommend.zip) has a couple errors in the XML file.
Two lines in the XML file were preceded with a "-" character.
Delete these and it will install fine.

Attached is a fixed installation file (mod_recommend_fixed_xml.zip).

EDIT: see Reply #7 below for an updated file.

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/


Last edited by kenmcd on Mon Jan 09, 2006 8:36 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Jan 06, 2006 1:50 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Jan 04, 2006 4:43 pm
Posts: 105
kenmcd wrote:
Attached is a fixed installation file (mod_recommend_fixed_xml.zip).


Hi kenmcd,

Could you send me that component and module?  I found it on developer.joomla.org, but there are no packages related to the project.  Or maybe you could direct me to where I can find it?

Thanks


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Jan 06, 2006 6:23 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 26, 2005 10:13 pm
Posts: 410
Location: Spain
The original component and module by Emir Sakic are still in the $ambo Forge.
For the corrected version of the module, just click on the file attached by kenmcd on Reply #1 (next to the clip icon).
I hope this helps! :)

_________________
My Extensions: JM-Recommend, JM-Credits, JM-Link Us (for J! 1.0.x). Find them in the 3rd Party Extensions Forum.
Joomla test installation: www.poraqui.net/joomla  User: test  Password: test


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Jan 06, 2006 7:33 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Jan 04, 2006 4:43 pm
Posts: 105
elmoch wrote:
For the corrected version of the module, just click on the file attached by kenmcd on Reply #1 (next to the clip icon).


:o  Ack!

I must be blind.  Thanks for pointing out the obvious! ( I should get my eyes checked )  :-[


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Jan 06, 2006 8:49 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Aug 17, 2005 11:17 pm
Posts: 144
BTW, I'm not sure mod_recommend was ever updated to work with anything above Mambo 4.5 (1.0.9). At least, that's the last form I released it in.

EDIT:
Yes, the mod_recommend on Mamboforge has a date stamp of "2004-04-04."


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Sat Jan 07, 2006 12:00 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 26, 2005 10:13 pm
Posts: 410
Location: Spain
The Component works OK on Joomla! 1.0.5.
Another version by Martin Brampton is available (not right now, because of some server trouble) on http://www.black-sheep-research.co.uk but I cannot see the difference from one to the other at first sight. ???

As for the module, it gave this errors:
Warning: main(components/com_recommend/recommend.english.php): failed to open stream: No such file or directory in /home/virtual/sitename/public_html/joomla/modules/mod_recommend.php on line 18

Warning: main(): Failed opening 'components/com_recommend/recommend.english.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/virtual/sitename/public_html/joomla/modules/mod_recommend.php on line 18


I changed line # 18 From
#include ("components/com_recommend/recommend.english.php"); // language path
To
include_once ($mosConfig_absolute_path.'/components/com_recommend/lang/english.php'); // language path
And now it works as well.  8)
I'm not a programmer, but at least it worked for me.  :)

_________________
My Extensions: JM-Recommend, JM-Credits, JM-Link Us (for J! 1.0.x). Find them in the 3rd Party Extensions Forum.
Joomla test installation: www.poraqui.net/joomla  User: test  Password: test


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Sat Jan 07, 2006 11:12 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Online

Joined: Thu Aug 18, 2005 2:09 am
Posts: 4642
Location: California
mod_recommend.php - Line 18

Original line 18
Code:
 
include ("components/com_recommend/recommend.english.php");      // language path


Changed to
Code:
 
/* language path */
if (file_exists("components/com_recommend/lang/$mosConfig_lang.php")) {
   include_once("components/com_recommend/lang/$mosConfig_lang.php");
} else {
   include_once("components/com_recommend/lang/english.php");
}


This is the same code as in the component recommend.php file.
This should pick up the other languages like the component does.
Works fine for English.

Attached both the component file and the updated module file.


You do not have the required permissions to view the files attached to this post.

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Sat Jan 07, 2006 1:16 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 26, 2005 10:13 pm
Posts: 410
Location: Spain
Hi kenmcd,
I got it to work my way but your code is much better.

Thanks a lot!  :)

_________________
My Extensions: JM-Recommend, JM-Credits, JM-Link Us (for J! 1.0.x). Find them in the 3rd Party Extensions Forum.
Joomla test installation: www.poraqui.net/joomla  User: test  Password: test


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Mon Jan 09, 2006 8:05 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Dec 02, 2005 10:22 pm
Posts: 60
intsalled, and works fine except the recipents get "@yahoo.com" in their "from". It doesnt list the senders full email address.

_________________
Joomla & Community Builder
http://www.fitcommunity.com

My new project - KushCash Mobile Wallet
http://www.kushcash.com


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Mon Jan 09, 2006 8:40 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Online

Joined: Thu Aug 18, 2005 2:09 am
Posts: 4642
Location: California
stevebor1 wrote:
intsalled, and works fine except the recipents get "@yahoo.com" in their "from". It doesnt list the senders full email address.


Were you sending from the component or the module?

Does it do this with all email addresses or just the one you tested?

Anyone else have this problem?

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Mon Jan 09, 2006 8:52 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Dec 02, 2005 10:22 pm
Posts: 60
this happens on the Com.  it does not show webmasters email if choosen for "from" in the recommend.php, however I switched it to show senders email and works fine - ill stick with that now, but read below.

Senerio 1, send "from" as webmaster:
user from/sending- steve@reto****.com
to friend - steve***@yahoo.com


when i recieved my email in yahoo, it did not have steve@retro*****.com as sender, just "@yahoo.com"  "@" as sender.

everything else looks fine.


Running:
Joomla 1.0.5
com_Recommend 2.2

_________________
Joomla & Community Builder
http://www.fitcommunity.com

My new project - KushCash Mobile Wallet
http://www.kushcash.com


Last edited by stevebor1 on Mon Jan 09, 2006 8:54 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Mon Jan 09, 2006 11:02 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 18, 2005 4:58 pm
Posts: 32
Got the following error after installing the mod_recommend posted above, and changing the language line of the code

"Notice: Undefined variable: recommend_option in C:\www_root\com\websitedatabase\www\modules\mod_recommend.php on line 49"

The line 49 is:

Code:
switch($recommend_option) {
   case "send":
      if (NotValidEmail($recommend_to_email)) {
         echo "<SCRIPT> alert('" . _RMC_ALERT_EMAIL . "'); window.history.go(-1); </SCRIPT>\n";
         exit;


Tkx


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Tue Jan 10, 2006 12:54 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Aug 17, 2005 11:17 pm
Posts: 144
Abstraiko wrote:
Got the following error after installing the mod_recommend posted above, and changing the language line of the code

"Notice: Undefined variable: recommend_option in C:\www_root\com\websitedatabase\www\modules\mod_recommend.php on line 49"

The line 49 is:

Code:
switch($recommend_option) {
   case "send":
      if (NotValidEmail($recommend_to_email)) {
         echo "<SCRIPT> alert('" . _RMC_ALERT_EMAIL . "'); window.history.go(-1); </SCRIPT>\n";
         exit;


Tkx



Do you have the component installed as well? The module is really just a "thin client" for the component.


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Tue Jan 10, 2006 10:18 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 18, 2005 4:58 pm
Posts: 32
yes I have. version 2.2 of the com_recommend


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Jan 13, 2006 7:57 pm 
is there a way to translate it to other language?
where is the file to be edited for translatin, i nedd to put  your name,your email, friends email, send ,,in my language,,where do  change that?
thanks


Top
  
 
 Post subject: Re: mod_recommend
PostPosted: Thu Jan 19, 2006 9:35 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 18, 2006 10:39 am
Posts: 38
Yes, I would like to have this in swedish.. where can I change the text?


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Jan 20, 2006 3:41 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Online

Joined: Thu Aug 18, 2005 2:09 am
Posts: 4642
Location: California
Look in the /com_recommend/lang/ directory.

Translate the english.php file and save to yourlanguage.php

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Jan 20, 2006 8:57 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 18, 2006 10:39 am
Posts: 38
Thank you, that was nice and easy.

But now I have another problem (please excuse a newbie): I don't seem to be able to ftp up the new swedish.php file to the installed com_recommend/lang/ directory. Safe mode is on on my server  :-\ , would this be why? I have tried chmod-ing the directories, but get this: "550 Could not change perms on lang: Bad file descriptor" I had the same problem when I was trying to install my template too. I have the newest version of Joomla, is there a working safe mode patch?


Rebecca


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Jan 20, 2006 9:22 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 18, 2006 10:39 am
Posts: 38
Ah, I solved it by uninstalling and reinstalling the component with the new file. And I found the option under global config -> server to chmod all files, which seems to have worked  :D


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Sun Jan 22, 2006 1:19 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Aug 27, 2005 11:07 am
Posts: 533
Location: Sweden
rina123 wrote:
Yes, I would like to have this in swedish.. where can I change the text?


Hej rina123!

Did you translate it? Would be happy to get a copy ;)

Edit: Sorry for asking before looking into it... it took only three minutes to translate...

_________________
http://www.serveU.net/Joomla-Hosting
http://www.resekatalogen.se


Last edited by maxa on Sun Jan 22, 2006 1:35 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Sun Jan 22, 2006 2:23 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Aug 27, 2005 11:07 am
Posts: 533
Location: Sweden
It looks fine but it doesn't work...

With default setting, message send does not have a sender. Sender is blank. Since my webhost's smtp-server only permits messages with a domain hosted on the server, either as sender or receiver, the component can only send a message to myself. If the comp would send from webmaster, it would work fine for me.

$recommend_from_sender = 1 would not work either way, for the same reason as above.

So, what could the problem be - why is sender blank?

Edit: Can't I just set a permanent sender-address directly in the recommend.php?

_________________
http://www.serveU.net/Joomla-Hosting
http://www.resekatalogen.se


Last edited by maxa on Sun Jan 22, 2006 10:50 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Mon Jan 23, 2006 12:34 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Aug 27, 2005 11:07 am
Posts: 533
Location: Sweden
Weird... Now I found that Joomla's "E-mail this page to a friend"-function without problems sends from a "not-my-domain"-address to another "not-my-domain"-address. So Joomla does what my webhost says can't be done on their servers...

I just wish that com_recommend would do the same, but it does not. Is it only me that has this problem?

_________________
http://www.serveU.net/Joomla-Hosting
http://www.resekatalogen.se


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Mon Jan 23, 2006 12:25 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jan 13, 2006 9:40 am
Posts: 11
@kenmcd

Just what we were looking for!  Terrific!

Ta muchly


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Thu Jan 26, 2006 3:55 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Thu Oct 06, 2005 4:43 pm
Posts: 312
Hi,

i tried out mod_recommend yesterday and it works fine for me. but it doesn't seem to give me the functionality i want - to be able to email a particular page (url) to a friend while i am seeing it. i can't use the built in functionality in joomla because the email icon doesn't appear when using third party components.

any know of such functionality in a component / module? any help will be much appreciated.

- V


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Thu Jan 26, 2006 3:59 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jan 13, 2006 9:40 am
Posts: 11
AS a quick and dirty answer, put the url in the message body!


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Thu Jan 26, 2006 4:01 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Thu Oct 06, 2005 4:43 pm
Posts: 312
:) yeah, i thought of that too.. and it is something that i can do.. but can't really expect my clients to do.

- V


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Fri Feb 17, 2006 7:24 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 26, 2005 10:13 pm
Posts: 410
Location: Spain
Didn't undesrstand what you say about your clients but, in case you're still interested, visit this topic. :)

_________________
My Extensions: JM-Recommend, JM-Credits, JM-Link Us (for J! 1.0.x). Find them in the 3rd Party Extensions Forum.
Joomla test installation: www.poraqui.net/joomla  User: test  Password: test


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Mon Feb 27, 2006 4:43 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Thu Oct 06, 2005 4:43 pm
Posts: 312
elmoch,

i was talking abt the post before mine.. asking clients to copy-paste the url into the email.. that pretty much beats the purpose of a recommend module if u ask me :)

- V


Top
 Profile  
 
 Post subject: Re: mod_recommend
PostPosted: Mon Jun 05, 2006 6:59 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Aug 21, 2005 5:13 pm
Posts: 157
Is it possible to let user enter multiple emails using commas and then send the message to all those emails?
Any coding help?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ] 



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group