731
deka87
Re: Forum Blank Page Issue 4 Some
  • 2009/1/6 7:12

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


i can see it alright. use firefox
Mind anchors



732
deka87
Re: Your email visible in Profile module
  • 2009/1/6 6:46

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


nooow the privacy is ok =)
Mind anchors



733
deka87
Re: Your email visible in Profile module
  • 2009/1/5 14:06

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Quote:

ghia wrote:
Nice!
But I recommend to add a captcha to your mailform, otherwise some spammers will be gratefull for this open channel to your members.


unfortunately i don't know how to do this =( i've heard there is some captcha module maybe i'll have luck to implement it there.

Quote:

Is it not more logical to heve the source language column before the target language column?


yes, i know that but for some reason it goes first (although it goes 2nd in the registration form..)

Quote:

Is the senders mail address and username prefilled if you are logged on?

yes, it is.

Quote:

When a user registrates on the site can he choose more than one language pair or must he have multiple usernames?

unfortunately yes. i know i can add more lines like source_langauge2 and tartget_language2. but then it'd be such a mess on the user profile page. i'd be awesome if I could display the language pairs on the userinfo like:

Discplay name: ######
Email: ######
1st language pair: English(source_language1) - Dutch (target_language1)

2st language pair: English(source_language2) - Dutch (target_language2)

but I don't think it is possible.

Quote:


Ahah, well not really!
You just have to enter link directly in the url:
http://freelancersupport.com/modules/profile/contact.php?uid=1

Now take a good look at the html source

You should use the email as hidden, you better pass the user id and then get the user email on the contact.php.


i don't get it. it doesn't show the email when you put it directly in the url.
Mind anchors



734
deka87
Re: passing paramaters
  • 2009/1/5 10:18

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


could you explain it more detailed?
Mind anchors



735
deka87
Re: Mass Email Issues
  • 2009/1/5 10:17

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


have you tried some newsletter module like evennews. it has a mass email function. give it a shot.
Mind anchors



736
deka87
Re: Cant view pic, gif and images
  • 2009/1/5 10:12

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


i can see it alright. maybe something's wrong with your iexplorer?
Mind anchors



737
deka87
Re: Your email visible in Profile module
  • 2009/1/5 9:39

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


solved. here is the final result:http://freelancersupport.com/modules/profile/English-to-Russian-translators

so now nobody can see users' email address and the only way to contact them is via the website. privacy is ok now =)
Mind anchors



738
deka87
Re: Your email visible in Profile module
  • 2009/1/5 7:26

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


cool, now it can send emails.

but what about hiding emails column in the profile/search.php? or maybe replacing those emails with the contact links like <a href=\"javascript:openWithSelfMain('".XOOPS_URL."/modules/profile/contact.php?uid=".$uid."', 'contact', 600, 450);\"><img src=\"".XOOPS_URL."/modules/".$xoopsModule->getVar('dirname')."/images/email.gif\" alt=\""._MD_CATADS_BYMAIL."\" /></a>?
Mind anchors



739
deka87
Re: Your email visible in Profile module
  • 2009/1/4 19:35

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


So i forgot to change the link in the userinfo.php. to modules/profile/contact.php. now it's being loaded alright. anothe rproblem is that it doesn't send emails. guess i messed somethign up in the finla part of contact.php:

default:

    include(
"../../mainfile.php");
    
xoops_header();
       
$member_handler =& xoops_gethandler('member');
    
$thisUser =& $member_handler->getUser($uid);
    
// initialisation variables    
    
$message '';    
    
$phone '';    
    
$name_user '';    
    
$email_user ='';
    
$email_author $thisUser->getVar('email');
    
$title "Regarding your profile on FreelancerSupport.com";
    if(
$xoopsUser) {
        
$name_user = ($xoopsUser->getVar('name')!='')? $xoopsUser->getVar("name") : $xoopsUser->getVar("uname");
        
$email_user $xoopsUser->getVar("email""E");
    }

    include 
"include/form_contact.inc.php";
    
xoops_footer();
break;
}


$email_author is what we are looking for.

do you see any mistakes?
Mind anchors



740
deka87
Re: Your email visible in Profile module
  • 2009/1/4 17:39

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


as in regard to the contact form...

I took the guts from catads module contact scripts and got this:http://7.pdvop2sz.z8.ru/modules/profile/userinfo.php?uid=1 (please click email icon to see it in action) but as you can see it doesnt load the form. here is a working sample in catads module:http://7.pdvop2sz.z8.ru/modules/catads/adsitem.php?ads_id=12. I seem to change all variables but it doesn't work. Could you please check the final scripts? Seems like it requires 2 files: contact.php and form_contact.inc.php.

contact.php

$op 'form';
foreach (
$_POST as $k => $v) {${$k} = $v;}
foreach (
$_GET as $k => $v) {${$k} = $v;}

if ( isset(
$preview)) {
    
$op 'preview';
} elseif ( isset(
$post) ) {
    
$op 'post';
}

function 
displaypost($title$content) {
    echo 
'<table cellpadding="4" cellspacing="1" width="98%" class="outer"><tr><td class="head">'.$title.'</td></tr><tr><td><br />'.$content.'<br /></td></tr></table>';
}

switch(
$op) {
    
case 
"post":
    global 
$xoopsConfig;
    include(
"../../mainfile.php");
    
$ts =& MyTextSanitizer::getInstance();
 
        
$fullmsg _MD_CATADS_FROMUSER.$name_user "._MD_CATADS_YOURADS." ".$xoopsConfig['sitename']." :nn";
        
$fullmsg .= $title."n";
        
$fullmsg .= "-----------------------------------------------------------------n";
        
$fullmsg .= "$messagenn";
        
$fullmsg .= "-----------------------------------------------------------------nn";
        
$fullmsg .= _MD_CATADS_CANJOINT.$email_user";
        if (
$phone !='')
            
$fullmsg .= 'n'._MD_CATADS_ORAT.$phone";
            
        
$xoopsMailer =& getMailer();
        
$xoopsMailer->useMail();
        
$xoopsMailer->setFromEmail($email_user);
        
$xoopsMailer->setFromName($xoopsConfig['sitename']);
        
$xoopsMailer->setToEmails($email_author);
        
$xoopsMailer->setSubject(_MD_CATADS_CONTACTAFTERADS);
        
$xoopsMailer->setBody($fullmsg);
        
$msgsend "<div style='text-align:center;'><br /><br />";
        if ( !
$xoopsMailer->send()) {
            
$msgsend .= $xoopsMailer->getErrors();
        } else {
            
$msgsend .= "<h4>"._MD_CATADS_MSGSEND."</h4>";
        }
        
$msgsend .= "<br /><br /><a href="javascript:window.close();">"._PM_ORCLOSEWINDOW."</a></div>";
        echo 
$msgsend;
    break;
    
case 
"preview":
    include(
"../../mainfile.php");
    
$ts =& MyTextSanitizer::getInstance();
    
xoops_header();

    
$p_title $title;
//    $p_title = $myts->makeTboxData4Preview($p_title);
    
$p_title $ts->htmlSpecialChars($ts->stripSlashesGPC($p_title));
    
$p_msg _MD_CATADS_FROMUSER.$name_user "._MD_CATADS_YOURADS." ".$xoopsConfig['sitename']." :<br />";
        
$p_msg .= $title.'<br />';
        
$p_msg .= "-----------------------------------------------------------------<br />";
        
$p_msg .= $message.'<br /><br />';
        
$p_msg .= "-----------------------------------------------------------------<br />";
        
$p_msg .= _MD_CATADS_CANJOINT.$email_user";
        if (
$phone !='')
            
$p_msg .= '<br />'._MD_CATADS_ORAT.$phone";

    
$p_msg .= '<br />';
    
displaypost($p_title$p_msg);

    
$title =  $ts->htmlSpecialChars($ts->stripSlashesGPC($title));
    
$message =  $ts->htmlSpecialChars($ts->stripSlashesGPC($message));
    
    include 
"include/form_contact.inc.php";
    
xoops_footer();
    break;
    
case 
"form":
default:

    include(
"../../mainfile.php");
    
xoops_header();
       
$member_handler =& xoops_gethandler('member');
    
$thisUser =& $member_handler->getUser($uid);
    
// initialisation variables    
    
$message '';    
    
$phone '';    
    
$name_user '';    
    
$email_user ='';
    
$email_author $thisUser->getVar('email''E');
    
$title "Regarding your profile on FreelancerSupport.com";
    if(
$xoopsUser) {
        
$name_user = ($xoopsUser->getVar('name')!='')? $xoopsUser->getVar("name") : $xoopsUser->getVar("uname");
        
$email_user $xoopsUser->getVar("email""E");
    }

    include 
"include/form_contact.inc.php";
    
xoops_footer();
break;
}


form_contact.inc.php:

include XOOPS_ROOT_PATH."/class/xoopsformloader.php";

$form_contact = new XoopsThemeForm(_MD_CATADS_CONTACTAUTOR"form_contact""contact.php");

$title_text = new XoopsFormText(_MD_CATADS_TITLE"title"52100$title);
$form_contact->addElement($title_texttrue);

$name_text = new XoopsFormText(_MD_CATADS_YOURNAME.'*'"name_user"50100$name_user);
$form_contact->addElement($name_texttrue);

$email_text = new XoopsFormText(_MD_CATADS_YOUREMAIL.'*'"email_user"50100$email_user);
$form_contact->addElement($email_text,true);

$phone_text = new XoopsFormText(_MD_CATADS_YOURPHONE"phone"2020,$phone);
$form_contact->addElement($phone_textfalse);

$annonce_text = new XoopsFormTextArea(_MD_CATADS_YOURMESSAGE.'*'"message"$message);
$form_contact->addElement($annonce_texttrue);

$button_tray = new XoopsFormElementTray('' ,'');
$button_tray->addElement(new XoopsFormButton('''preview'_PREVIEW'submit'));
$button_tray->addElement(new XoopsFormButton('''post'_SEND'submit'));
$button_cancel = new XoopsFormButton('''cancel'_CANCEL'button');
$button_cancel->setExtra("' onclick='javascript:window.close();'");
$button_tray->addElement($button_cancel);

$form_contact->addElement($button_tray);

$form_contact->addElement(new XoopsFormHidden('email_author'$email_author));

$form_contact->display();


maybe I missed something...
Mind anchors




TopTop
« 1 ... 71 72 73 (74) 75 76 77 ... 96 »



Login

Who's Online

127 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 127


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits