71
khuhner
Re: googlemaps 0.8 Point Name Listed as Author?
  • 2006/10/29 17:35

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Thanks! I also updated the module, and I think it's needed when you change this preference setting.

Thanks Bandit-X!

Kurt


Quote:

Bandit-X wrote:
Quote:

khuhner wrote:
Thanks for the tip. That didnt seem to change anything. Does that change the points names to the location rather than the user for your site?

Thanks for the suggestion!
Kurt


yes. since the page for the map has two templates. .one 'user centric' (googlemaps_index_userprofile.html) and one 'location centric' (googlemaps_index_location.html). by specifying which one you want it to use in the module's preferences.

the Last Points list will show as.
$category[displaycategory].name (in the location centric template)
or
$point[displaylastpoints].nom (in the user centric template)

i believe it also does it with the points on the map.



72
khuhner
Re: googlemaps 0.8 Point Name Listed as Author?
  • 2006/10/28 17:00

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Quote:

Bandit-X wrote:
try going to the preferences in that module and change Display Type to. ''location centric"


Thanks for the tip. That didnt seem to change anything. Does that change the points names to the location rather than the user for your site?

Thanks for the suggestion!
Kurt



73
khuhner
Re: googlemaps 0.8 Point Name Listed as Author?
  • 2006/10/28 15:40

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


<BUMP><BUMP>



74
khuhner
Re: googlemaps 0.8 Point Name Listed as Author?
  • 2006/10/24 21:43

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


<BUMP>



75
khuhner
Re: Resend Activation Email?
  • 2006/10/24 0:19

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


I cleaned up the file a bit and added a link for users to reload the file in case they entered the wrong email and want to try again.

This should REALLY, REALLY be included in the core! I inserted the link into the Login block as suggested. If it makes it into core, an additional link or code block should be added to the user.php file.


Kurt

Here is the file:

<?PHP
### ======================================================
### [url=http://www.xoops.net.br/]XOOPS Brasil[/url] - A comunidade diferente!
### ======================================================
### Arquivo para reenvio de Link de Ativação
### Script for resend the activation link
### ======================================================
### Developer: Fernando Santos, fernando@zend.com.br
### Copyright: www.xoops.net.br © 2003-2004
### ------------------------------------------------------
### www.xoops.net.br
### ======================================================
### v.1.0, Sun Dec 19 15:33:59 BRST 2004
### ======================================================

$xoopsOption['pagetype'] = "user";
include 
"mainfile.php";
include 
'header.php';

// Doesn't matter GET or POST
$email = isset($HTTP_GET_VARS['email']) ? trim($HTTP_GET_VARS['email']) : '';
$email = isset($HTTP_POST_VARS['email']) ? trim($HTTP_POST_VARS['email']) : $email;

// If $email is empty, show form for link resend
if ($email == '') {
echo <<< TOPET05
<fieldset style="padding: 10px;">
  <legend style="font-weight: bold;">Resend activation link</legend>
  <div><br />Fill in the e-mail you used to register and we will resend the activation email.</div>
  <form action="
$_SERVER[PHP_SELF]" method="post">
    Registered E-mail: <input type="text" name="email" size="26" maxlength="60" />&nbsp; <input type="submit" 

value="Send" />
  </form>
</fieldset>
TOPET05;
  
$email='';
// If $email is not empty, let's verify some things before sending the link
}else{
$myts =& MyTextSanitizer::getInstance();
$member_handler =& xoops_gethandler('member');
// The line below returns an array with all the users registered with the given e-mail, in our case it'll be only the 

$getuser[0]
$getuser =& $member_handler->getUsers(new Criteria('email'$myts->addSlashes($email)));

// If the e-mail doesn't exist in the database, $getuser returns array()...
if ($getuser == array() ) {
    echo 
"<br><br><h3>E-mail " $email " doesn't appear to be registered in our databases!</h3><br><br>Please click 

<a href=http://yourdomain.com/ActivateResend.php>here</a> to retry."
;
    include(
"footer.php");
    exit();
}

// If the e-mail doesn't exist in the database, $getuser returns empty...
if (empty($getuser)) {
echo 
"<br><br><h3>The e-mail isn't registered in our databases!</h3>";
include(
"footer.php");
    exit();
}
//Verifying if the user is already active...
if($getuser[0]->isActive()){
echo 
"<br><br><h3>The user ".$getuser[0]->getVar('uname').", registered with e-mail ".$getuser[0]->getVar('email').

is already active!</h3>"
;
include(
"footer.php");
    exit();    
}
//Sending it
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setTemplate('register.tpl');
$xoopsMailer->assign('SITENAME'$xoopsConfig['sitename']);
$xoopsMailer->assign('ADMINMAIL'$xoopsConfig['adminmail']);
$xoopsMailer->assign('SITEURL'XOOPS_URL."/");
$xoopsMailer->setToUsers($getuser[0]);
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject(sprintf("- Resend - "._US_USERKEYFOR,$getuser[0]->getVar("uname")));
    if ( !
$xoopsMailer->send() ) {
    echo 
"<br><br><h3>It could not be possible to resend the activation link for ".$getuser[0]->getVar('uname').". 

Contact the site <a href=http://yourdomain.com/modules/contact_plus/index.php>administrators</a>.</h3>"
;
    include(
"footer.php");
    exit();
    } else {
    echo 
"<br><br><h3>The activation link for ".$getuser[0]->getVar('uname')." was resent. If you don't receive 

the e-mail in a few hours, try again or contact the site</h3>"
;
    }
}
include(
"footer.php");
?>



Quote:

khuhner wrote:
OK, I decided to install this file and it seems to be working fine. The one addition I'd like to add is if the user enters an email that is not in the system and they realize they mistyped it, I'd like them to be able to refresh the page and retry. However the script seems to have cached the last email entered.

I've tried
reset ($HTTP_POST_VARS);
reset ($HTTP_GET_VARS);


and it doesnt seem to clear the $email variable.

Thoughts?

Quote:

Shine wrote:
There was a patch/hack named ATIVACAO.PHP

See topic:https://xoops.org/modules/newbb/viewtopic.php?topic_id=29449&viewmode=flat&order=ASC&start=0
Please read carefully.
Perhaps somebody can adjust this script to the latest 2.0.13.2 and 2.0.14+

As far as I know this patch has never been implemented in the core.
You have to consider that: if they fill in the emailaddress but their spamfilter has its setting strong, the same activate email will be deleted by the same spamfilter of the user! So the resend won't make any sence if they don't change their spamfiltersettings.

Grtz., Shine



76
khuhner
Re: Resend Activation Email?
  • 2006/10/24 0:06

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


OK, I decided to install this file and it seems to be working fine. The one addition I'd like to add is if the user enters an email that is not in the system and they realize they mistyped it, I'd like them to be able to refresh the page and retry. However the script seems to have cached the last email entered.

I've tried
reset ($HTTP_POST_VARS);
reset ($HTTP_GET_VARS);


and it doesnt seem to clear the $email variable.

Thoughts?

Quote:

Shine wrote:
There was a patch/hack named ATIVACAO.PHP

See topic:https://xoops.org/modules/newbb/viewtopic.php?topic_id=29449&viewmode=flat&order=ASC&start=0
Please read carefully.
Perhaps somebody can adjust this script to the latest 2.0.13.2 and 2.0.14+

As far as I know this patch has never been implemented in the core.
You have to consider that: if they fill in the emailaddress but their spamfilter has its setting strong, the same activate email will be deleted by the same spamfilter of the user! So the resend won't make any sence if they don't change their spamfiltersettings.

Grtz., Shine



77
khuhner
Re: Resend Activation Email?
  • 2006/10/23 21:34

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


<BUMP>



78
khuhner
Re: User Created Folder in Myalbum-P?
  • 2006/10/22 14:09

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Quote:

Quest wrote:
The lastest version of xcgallery has that feature and more, even E-cards. Do a search for xcgallery, find newest version and try it out. You have full admin control with it too.

Quest


Thanks Quest, I appreciate your suggestion. However after several months of debugging and formatting of several moduels for my site, I'm not keen on instaling "yet another module", although I may have to.

Kurt



79
khuhner
googlemaps 0.8 Point Name Listed as Author?
  • 2006/10/22 0:07

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Im using XOOPS 2.0.13.2 and googlemaps 0.8 and notice that on the googlemaps/index page all my points are named "Administrator" rather than the name of the point. Administrator created the points though.

I've checked the template and found:

<b><{$smarty.const._MD_POINTHEADER}></b><br />
<{
section name=displaylastpoints loop=$point max=$maxlastpoints step=-1}>
<
a href="javascript:myclick(<{$smarty.section.displaylastpoints.index}>)"><{$point[displaylastpoints].title}></a> -
<{/
section}>


Even though it looks like the title is being used, the author of the point is listed as the title.

Thoughts?

Kurt



80
khuhner
User Created Folder in Myalbum-P?
  • 2006/10/21 23:55

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


I am running XOOPS 2.0.13.2 and Myalbum-P 2.87 and would like to have my user community be able to create folders for their photos. However the module only allows Administrators that ability. I have posted to GIJoe's website and he isnt making any new changes to the module.

Has anyone coded this ability and willing to share it here?

Thanks,
Kurt




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 21 »



Login

Who's Online

167 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 167


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