Anyone hacked com_recommend?

14 years 2 days ago #1876 by dsendecki
I don't use the module, just the component. I dont think they need to be used in concert!
13 years 11 months ago #2699 by djsdjs
I reworked the code for Version 2.2 Dated 1/10/2004
like the below. You replace lines 154-168 with the below.

HOWEVER it is not working, it appears the declaration of $my isn't pulling anything in Joomla. Any hints for us hackers CB team?

[code:1] <? global $my;?>
<td nowrap="nowrap"><?php echo _RMC_YOUR_NAME; ?> </td>

<?if ($my->id) {?>
<?php echo $my->email; ?><input name="recommend_from_name" type="hidden" value="<?php echo $my->name; ?>" />
<?} else {?>
<input name="recommend_from_name" type="text" class="inputbox" />

<td nowrap="nowrap">* <?php echo _RMC_YOUR_EMAIL; ?> </td>

<?if ($my->id) {?>
<?php echo $my->name; ?><input name="recommend_from_email" type="hidden" value="<?php echo $my->email; ?>" />
<?} else {?>
<input name="recommend_from_email" type="text" class="inputbox" />

13 years 11 months ago #2712 by djsdjs
Some other discussion threads about this (still couldn't get it working). Is it possible that com_recommend is not properly implemented a full component? Can someone knowledgable look at the code for us?
13 years 10 months ago #4313 by aqsg
Try the $user. Declare itg as a global then use


Play around i'm not sure if those are the correct fields but give em a try

Director/Solutions Architect of Australian Quality Solutions Group ( )
Founder of josCommunity ( )
Founder of CCHSStudent ( )
Community Builder 3rd Party Developer
PAXXGallery Developer
13 years 10 months ago #4861 by dsendecki
Got a new component working with CB--will post this weekend (hopefully) when I have it all worked out!

13 years 10 months ago #4882 by Oak
Sorry for going beside the thread a bit, but since you are into the com_recommend:

I need the component to use the $recommend_from_sender = 0; // 0 = from webmaster

(because my web host requires that my own domain is either in sender or receiver)

But my problem is that the comp does not grasp the webmaster mail address. It sends with the from-field empty. (Yes, I have set up the default contact address.) Instead of searching for the problem, I could as well just set the sender address directly in the recommend.php. I just can't fogure out where to do that.

Would be very thankful for a little help.
Moderators: beatnantkrileon
Time to create page: 0.438 seconds

Facebook Twitter LinkedIn