Anyone hacked com_recommend?

14 years 6 months ago #1876 by dsendecki
Replied by dsendecki on topic Re:Anyone hacked com_recommend?
I don't use the module, just the component. I dont think they need to be used in concert!

Please Log in to join the conversation.

14 years 6 months ago #2699 by djsdjs
Replied by djsdjs on topic Re:Anyone hacked com_recommend?
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;?>
<tr>
<td nowrap="nowrap"><?php echo _RMC_YOUR_NAME; ?>&nbsp;</td>
<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>
</tr>
<tr>
<td nowrap="nowrap">*&nbsp;<?php echo _RMC_YOUR_EMAIL; ?>&nbsp;</td>
<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" />
<?}?>

</td>
</tr>[/code:1]

Please Log in to join the conversation.

14 years 6 months ago #2712 by djsdjs
Replied by djsdjs on topic Re:Anyone hacked com_recommend?
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?


http://www.facileforms.biz/index.php?option=com_simpleboard&func=view&catid=6&Itemid=97&id=5321

http://www.facileforms.biz/content/view/12/54/

Please Log in to join the conversation.

14 years 5 months ago #4313 by aqsg
Replied by aqsg on topic Re:Anyone hacked com_recommend?
Try the $user. Declare itg as a global then use

$user->name
$user->email

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 ( www.aqsg.com.au )
Founder of josCommunity ( www.joscommunity.com )
Founder of CCHSStudent ( www.cchsstudent.com )
Community Builder 3rd Party Developer
PAXXGallery Developer

Please Log in to join the conversation.

14 years 5 months ago #4861 by dsendecki
Replied by dsendecki on topic Re:Anyone hacked com_recommend?
Got a new component working with CB--will post this weekend (hopefully) when I have it all worked out!

B)

Please Log in to join the conversation.

14 years 5 months ago #4882 by Oak
Replied by Oak on topic Re:Anyone hacked com_recommend?
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.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.407 seconds

Facebook Twitter LinkedIn