Skip to Content Skip to Menu

Marketplace - Use UddeIM

  • ckayfish
  • ckayfish
  • OFFLINE
  • Posts: 34
  • Thanks: 1
  • Karma: 44
15 years 10 months ago #80347 by ckayfish
Marketplace - Use UddeIM was created by ckayfish
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

Tips for understanding and solving your issue - Props to Krileon for creating this.
My Opensource CB Plugins: Mutual Connections and MYCB Cookie available here

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 10 months ago #80357 by slabbi
Replied by slabbi on topic Re:Marketplace - Use UddeIM
Nice info, thanks. I have added this mod to the FAQ.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • ckayfish
  • ckayfish
  • OFFLINE
  • Posts: 34
  • Thanks: 1
  • Karma: 44
15 years 10 months ago #80359 by ckayfish
Replied by ckayfish on topic Re:Marketplace - Use UddeIM
slabbi wrote:

Nice info, thanks. I have added this mod to the FAQ.


Glad I could help, even if only a little bit. I had a few spelling mistakes, which I have now fixed in my post.

Post edited by: ckayfish, at: 2008/11/22 13:19

Tips for understanding and solving your issue - Props to Krileon for creating this.
My Opensource CB Plugins: Mutual Connections and MYCB Cookie available here

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum