Resend Activation URL Mod - Instructions

17 years 5 months ago #23282 by moneybagsxp
Replied by moneybagsxp on topic Re:Resend Activation URL Mod - Instructions
skunk wrote:



[code:1]
} else {
return false;
}
}

//--><!]]></script>

<span id="cbResendActivation"><a href="#resend_now" onclick="return cbResendConfirmURL(this.parentNode.id, );" title="Resend Activation URL Now!">resend</a></span>
<form action="index2.php" method="post" name="adminForm">
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr>
[/code:1]

It looks like the $row->id variable is not being generated.


[code:1]onclick="return cbResendConfirmURL(this.parentNode.id, );"[/code:1]

This is definitely an issue. If you look at the JavaScript call, the 2nd parameter IS completely empty. It's probably a scoping issue.

This mod was so easy to implement, yet almost everyone is having issues. I really think I must have messed something up when copying the code, or at least something was stripped out.

For example, in one of my first posts, part of the code was turning into the Smiley faces, etc. I'll see what I can do, maybe even do a fresh install of Joomla/CB and test it from scratch.

www.pixelchutes.com - Where every pixel matters.

Please Log in to join the conversation.

17 years 4 months ago #23723 by skunk
I have managed to debug my code and I now have it working.

I had two problems:

1. Spurious characters,«» with had crept into the two lines of code below below:
[code:1]lines: 1475 & 1478
http_request = new ActiveXObject("Msxml2.XMLHTTP"«»);[/code:1]

which caused the javascript engine to fall over. After I removed them there were no errors.

2. I had put the following three lines of code in the wrong place. :whistle:

[code:1] <?php if( !$row->confirmed and $ueConfig == "1" ){ ?>
<span id="cbResendActivation<?php echo $row->id; ?>"><a href="#resend_now" onclick="return cbResendConfirmURL(this.parentNode.id,<?php echo $row->id; ?> );" title="Resend Activation URL Now!">resend</a></span>
<?php } ?>[/code:1]

I had put them as close to line 1522 as possible, however this was after I had pasted in the other code to the file. Which meant that I should have put them in line 1599. The code was outside the adminForm form (hence there being no row id).

All works now. :woohoo:

Thanks for the help.

Skunk

Post edited by: skunk, at: 2006/11/02 14:36

Please Log in to join the conversation.

17 years 4 months ago #23724 by skunk
I will attached the updated files that are working on my site. (Joomla! 1.0.11, CB 1.0.1)

Hope this helps people.

Skunk

Post edited by: skunk, at: 2006/11/02 14:58
Attachments:

Please Log in to join the conversation.

17 years 4 months ago #23725 by skunk
Attached files.

Skunk

Attachment updated_comprofiler_resend-fd6e4da48036a0ee0c52cfb424a2a482.zip not found

Attachments:

Please Log in to join the conversation.

17 years 4 months ago #23739 by moneybagsxp
Replied by moneybagsxp on topic Re:Resend Activation URL Mod - Instructions
skunk wrote:

I have managed to debug my code and I now have it working.

I had two problems:

1. Spurious characters,«» with had crept into the two lines of code below below:
[code:1]lines: 1475 & 1478
http_request = new ActiveXObject("Msxml2.XMLHTTP"«»);[/code:1]

which caused the javascript engine to fall over. After I removed them there were no errors.

All works now. :woohoo:

Thanks for the help.


@skunk, Woo hoo! Great work!
Sure enough, it appears that the example code had some crazy invalid characters that seemed to end up in the code. I know I had some issues with posting the initial code, as it was during a forum upgrade on CB, so I wonder if it is related?

Nevertheless, I have updated the example code from this post (3rd down) that should get everything in a working order!

Works nice, doesn't it? :)

Post edited by: moneybagsxp, at: 2006/11/02 18:09

www.pixelchutes.com - Where every pixel matters.

Please Log in to join the conversation.

17 years 4 months ago #23773 by mediaguru
Replied by mediaguru on topic Re:Resend Activation URL Mod - Instructions
Hey what's the status on this? I'd like to resend the activation to a bunch of users who haven't verified.

Also wouldn't it be a good idea for unverified accounts over a certain age to be automatically deleted?

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.226 seconds

Facebook Twitter LinkedIn