Browsing this Thread:   1 Anonymous Users






Re: Contact By Email and PM Link FIX
#3
Not too shy to talk
Not too shy to talk


See User information
I must have missed something. I'm using XOOPS 2.3.2 and Classifieds 2.0 RC1. Let me check again.

With regards to adding SQL tables... I can't help you with that. Sorry, I'm pretty much a noob.

Posted on: 2009/4/6 11:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Contact By Email and PM Link FIX
#2
Just popping in
Just popping in


See User information
Tied making the changes but it does not work, which version are you refering to as i am using version 2
Also can you suggest me how to add more SQL tables in this module.
Regards
Vikrant

Posted on: 2009/4/3 10:24
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Contact By Email and PM Link FIX
#1
Not too shy to talk
Not too shy to talk


See User information
there seems to be a problem when non-registered users view ads with Contact By PM and Email option. i'll be explaining things easily so that i could reach a broader audience so here is my fix:

line 731 of index.php from:
$contact "$contact_pm&nbsp;&nbsp;&nbsp;".constant($main_lang."_ORBY")."&nbsp;&nbsp;&nbsp;<a href="contact.php?lid=".addslashes($lid)."">".constant($main_lang."_BYMAIL2")."</a>".$tphon."";


change to:
$contact "$contact_pm&nbsp;&nbsp;&nbsp;".constant($main_lang."_ORBY")."&nbsp;&nbsp;&nbsp;<a href="contact.php?lid=".addslashes($lid)."">".$submitter."</a>".$tphon."";


line 737 of index.php from:
$contact "<a href="contact.php?lid=".addslashes($lid)."">".constant($main_lang."_BYMAIL2")."</a>".$tphon."";


change to:
$contact "<a href="contact.php?lid=".addslashes($lid)."">".$submitter."</a>".$tphon."";


so you just change:


constant($main_lang."_BYMAIL2")

to

$submitter

Fixing PM Option:

line 635 of index.php from:
$contact_pm ="<a href="javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&to_userid=".addslashes($usid)."''pmlite'450380);"><img src="".XOOPS_URL."/images/icons/pm.gif" alt="".sprintf(_SENDPMTO,$xoopsUser->getVar('uname'))."" /></a>";


change to:
$contact_pm ="<a href="javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&to_userid=".addslashes($usid)."''pmlite'450380);"><img src="".XOOPS_URL."/images/icons/pm.gif" alt="".$submitter."" /></a>";


here you just change:

sprintf(_SENDPMTO,$xoopsUser->getVar('uname'))

to

$submitter

Optional Hack:

last and optional hack which will not display the "... automatically filled out name and email for you..." text above the contact form to non-registered users:

line 200 of contact.php:
echo "".constant($main_lang."_TEXTAUTO")."<br />";


change to:
if($xoopsUser) { echo "".constant($main_lang."_TEXTAUTO")."<br />"; }


here you just add the if($xoopsUser) { at the beginning of the code and } at the end of the code.

i usually don't share my fixes/hacks. i'm a really lazy person, that's why i rely on cms and modules that other people make. i just edit them. well... i think its about time i share something. hope this helps!

Weird Problem of Mine:

i also had this weird problem adding photos to my ads so i just commented this line out:

line 177 of addlisting.php from:
$lid $xoopsDB->getInsertId();


change to:
// $lid = $xoopsDB->getInsertId();


just comment it out by adding //

PLEASE NOTE: do not use the last fix about fixing uploading photos if you don't have any problems with it.

you guys can check this particular ad on my site that shows the current fix:

http://www.dogengine.com/modules/clas ... dex.php?pa=viewads&lid=59

Posted on: 2009/3/15 6:12

Edited by c0ntrite on 2009/3/15 7:15:08
Edited by c0ntrite on 2009/3/15 7:16:43
Edited by c0ntrite on 2009/3/15 7:27:38
Edited by c0ntrite on 2009/3/15 7:33:31
Edited by c0ntrite on 2009/3/15 7:36:51
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
 
Main Menu
 
Who's Online
5 user(s) are online (3 user(s) are browsing Forum)

Members: 0
Guests: 5

more...
 
Donat-O-Meter
Make donations with PayPal!
Stats
Goal: $25.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $25.00