I'm running Marketplace 1.4.5, but use uddleIM rather than Primezilla. The following describes the simple changes I made to have it use uddeIM.
First, a couple notes: uddeIM does not use a subject, so we are not passing that when creating a new message. I'm still looking for a way to insert the name of the ad with perhaps a link to it, but so far do not know how. If anyone knows an uddeIM paramater that will insert some default test into the message, please let me know!
Step 1. decide what graphic you want to use to represent "Send a PM". I used the forward.gif that comes with the default uddeIM template found at /components/com_uddeim/templates/default/images/forward.gif
Step 2. Make the following changes to /components/com_marketplace/show_ad.php
2a) We change the lookup of the menu ID from primezilla to uddeIM. Change line 357 from
[code:1]$database->setQuery( "SELECT id FROM #__menu WHERE link LIKE '%com_primezilla%' AND published='1' "«»);[/code:1]
to
[code:1]$database->setQuery( "SELECT id FROM #__menu WHERE link LIKE '%com_uddeim%' AND published='1' "«»);[/code:1]
2b) Modify the linked URL to uddeIM. Change line 368 from
[code:1]$linkPrimezilla = sefRelToAbs( "index.php?option=com_primezilla&page=write&uname=".$ad_user."&subject=".$sSubject.$pzItemidLink);[/code:1]
to
[code:1]$linkPrimezilla = sefRelToAbs( "index.php?option=com_uddeim&task=new&runame=".$ad_user."&lang=en&nouserlist=3".$pzItemidLink);[/code:1]
Remember, we are not including the subject, just send a PM to the creater of the ad.
2c) Change the image to whatever you chose. Change line 370 from
[code:1]echo "<img src='".$mosConfig_live_site."/components/com_primezilla/images/messagenew.gif' align='center' border='0' alt='$sAltTag $ad_user' title='$sAltTag $ad_user' >";[/code:1]
to (use your image path)
[code:1]echo "<img src='".$mosConfig_live_site."/components/com_uddeim/templates/default/images/forward.gif' align='center' border='0' alt='$sAltTag $ad_user' title='$sAltTag $ad_user' >";[/code:1]
2d) Repeat 2b and 2c respectively for lines 709 and 711. These lines are used if you select to use PM instead of email for contact.
3. Change the Marketplace backend configuration to use Primezilla.
Keep in mind that the line numbers are for Marketplace 1.4.5. I have not looked at the other versions, b
Post edited by: ckayfish, at: 2008/11/22 13:10