PDA

View Full Version : Mini Mods - vB Rank Promotion Notifier 1.0.2


Deceptor
12-20-2008, 10:00 PM
vB RPN

This is a simple little modification that will simply send a user a PM when there user rank updates, to notify them of the promotion. Not much more to say other than that really :p

Feel free to take a look at the screens for a visual idea.

Change Log

Version 1.0.2
- Ensured the PM is sent to the user whose rank changed, not the user of the session currently logged in.

Version 1.0.1
- Parsed message through WYSIWYG HTML To BBCode to ensure HTML Ranks display properly in PM.

Enjoy :)

ShawneyJ
12-21-2008, 11:33 AM
wow sweet thanks for this ;)

YsTyle
12-21-2008, 11:49 AM
great one, thanks :)

marianoblesa
12-21-2008, 01:18 PM
Hello mark this error

Fatal error: Call to a member function clean_gpc() on a non-object in /web/htdocs/MYFORUM/home/includes/class_dm_user.php(1819) : eval()'d code(33) : eval()'d code on line 1

any solution, Thanks

Deceptor
12-21-2008, 01:20 PM
marianoblesa - Are you using vB 3.8?

Brandon Sheley
12-21-2008, 02:16 PM
Nice!
I've been wanting something like this, will it work on 3.7? or is there a 3.7 mod of this?

thanks
-Brandon

ps.. will this work if i change a users usergroup? or is it just with rank promotion

Deceptor
12-21-2008, 02:27 PM
Just rank promotion, although any change to rank (other than removal) should trigger the PM. As for vB 3.7, it should really, but only one way to find out :)

princeedward
12-21-2008, 02:46 PM
great mod and thanks bro...but i guess it won't work to my vB3.6.8 i guess... tried it already...or is there any way to make it work...:(

thanks for sharing.,anyway

;)

Deceptor
12-21-2008, 02:47 PM
I'm afraid this was designed for 3.8 only, maybe it's time to upgrade? :)

princeedward
12-21-2008, 03:26 PM
I'm afraid this was designed for 3.8 only, maybe it's time to upgrade? :) :rolleyes: ohh...badluck...just i mention on that page...i might throw some cents on a stable workin mod like this...about upgrade...:erm: hmmm...still waiting for the stable vBulletin 4 Series...i know it will take time...but...

best regards and happy holidays...
:p

projectego
12-21-2008, 08:46 PM
Just what I've been looking for. Thank you! :D

marianoblesa
12-21-2008, 10:33 PM
marianoblesa - Are you using vB 3.8?

not the 3.7, sorry I realized NO.

Greetings

Deceptor
12-23-2008, 12:50 AM
No problem marianoblesa :)

Deceptor
12-24-2008, 02:19 PM
There was a slight typo in the XML, I've fixed this. Nothing too serious :)

Bounce
12-26-2008, 07:49 PM
Niiiiicceeeeeeeeeeeeeee!!!

Thanks D :up:

Edit:

Getting this when a pm is sent

Your activity on our forums has earned you a rank promotion, your new rank is <img src="images/member.jpg" alt="" border="" /><img src="images/Administrator.jpg" alt="" border="" />.

Not showing the images

Deceptor
12-26-2008, 08:03 PM
Ah, I had not anticipated HTML in the ranks, I'll see what I can do to allow HTML in the PM :)

Bounce
12-26-2008, 08:14 PM
Ah, I had not anticipated HTML in the ranks, I'll see what I can do to allow HTML in the PM :)
:up:
Thinks its the default of vb mate ?

Is this mibee ment for User Title's

User ranks are different? and I added an image to mine

Deceptor
12-26-2008, 08:20 PM
Yeah, if HTML is disallowed in PM's, it won't parse, if you turn HTML on it will show correctly. Unfortunately there's no flag passed to determine if a single PM is in HTML or not, it parses the PM when being viewed.

At the moment the best idea I can think of is if HTML is disabled run the PM through the vB WYSIWYG converter to turn the HTML into the correct BBCode, but that won't do a complete job.

I'll come up with something :)

Bounce
12-26-2008, 08:26 PM
Yeah, if HTML is disallowed in PM's, it won't parse, if you turn HTML on it will show correctly. Unfortunately there's no flag passed to determine if a single PM is in HTML or not, it parses the PM when being viewed.

At the moment the best idea I can think of is if HTML is disabled run the PM through the vB WYSIWYG converter to turn the HTML into the correct BBCode, but that won't do a complete job.

I'll come up with something :)

Correct it does show if HTML is turned on via admin cp

Allow HTML in Private Messages
Allow users to include raw HTML code in their Private Messages?
(Strongly not recommended.)

When I set to yes the pm shows perfectly

It's Strongly not recommended so I set to no.

Will wait to see if you can sort something out:up:

Deceptor
12-26-2008, 08:32 PM
I've updated the product XML, simply re-import to fix the issue. Note the update will only effect new promotion PMs sent, not any previous ones :)

Bounce
12-26-2008, 08:35 PM
AWESOME,working superbly

Not sent any yet but this will be brilliant for what I have on the go,thanks D :up:

Tested it with my own username lol

Deceptor
12-26-2008, 08:37 PM
No problem :)

Bounce
12-26-2008, 09:03 PM
Small problem Deceptor,

I just upgraded another users rank status

It's sending the pm to me as I put my userID in this section

vB RPN: Private Message Sender
Please enter the UserID of the user who will act as the sender for all Rank Promotion Private Messages.

"Congratulations Owen!(that is not me LOL)
Your activity on our forums has earned you a rank promotion, your ranks are now blah blah blah"

Deceptor
12-26-2008, 09:10 PM
Did you by any chance edit Owens data? If so then the system will send you the PM as you are the user for that session.

Bounce
12-26-2008, 09:12 PM
Did you by any chance edit Owens data? If so then the system will send you the PM as you are the user for that session.

yes manually in admincp,as sometimes does/might happen

I'm with you mate,so this won't be a problem when its done via vb doing cron job or whatever then?

Deceptor
12-26-2008, 09:15 PM
Try this to resolve the issue, I really should've done this instead of fetching the session username. Edit the plugin 'vB RPN: Send Rank Notification', find:
$pmdm->set_recipients($this->registry->userinfo['username'], $fromuser['permissions']);

Replace with:
$pmdm->set_recipients($this->fetch_field('username'), $fromuser['permissions']);

Save the plugin, manually edit Owen again and see if Owen gets the PM rather than you :)

Bounce
12-26-2008, 09:23 PM
Save the plugin, manually edit Owen again and see if Owen gets the PM rather than you :)

Sweet mate, perfect,the intended user got it.

Top work :up:

Deceptor
12-26-2008, 09:26 PM
Thanks for verifying that :) I've updated the package.

chrissmith
01-07-2009, 07:37 PM
I have a issue with the Imagelink.

It´s admincp/images/bla.jpg
instead of images/bla.jpg

Maybe another hack destroy this Image ?
You need a List ?

Btw. Images are right viewed in Rankoptions.

thanks,
chris

metalguy639
01-10-2009, 10:51 PM
Before I install is there any way to make this only send a PM when the members usergroup updates. The rank updating pm really is not something I could use. But I do have some usergroups setup for various parts of my forum to view & sending a PM would be really great once they are allowed into that usergroup.

transparent
01-14-2009, 04:28 AM
Great idea for a hack but I'm running into a few problems...

-When inserting {rank} into the pm body it's calling for the image out of my admincp folder which isn't even close to where they are located? Thus the image is broken.

-After manually bumping the post and rep count of a member and running the promotion cron it notified the user with the PM but when I did it again for the same user it wouldn't notify them?

Thx for the help.

dmknights
01-18-2009, 05:07 PM
*installed*

SnowBot
01-18-2009, 09:08 PM
I have a issue with the Imagelink.

It?s admincp/images/bla.jpg
instead of images/bla.jpg

Maybe another hack destroy this Image ?
You need a List ?

Btw. Images are right viewed in Rankoptions.

thanks,
chris

Im getting the same issue.

gwerzal
01-19-2009, 01:13 AM
Will this work if someone pays to upgrade via paid subscriptions

Vaupell
01-30-2009, 08:52 AM
well i get same issue, solve it by "REMOVEING" the {rank} in the phrase
for the pm notification body text.

tadaa no link to admincp

SnowBot
01-31-2009, 01:03 AM
well i get same issue, solve it by "REMOVEING" the {rank} in the phrase
for the pm notification body text.

tadaa no link to admincp

But then you get no image.....

Can we have a fix for this ?

ptwiggens
02-07-2009, 06:57 PM
I installed this.

Afterwards, when users buy a subscription, the subscription is not added to their account and they don't get any of the privileges they just bought.

When I try to add it manually, I get this error:

Fatal error: Call to a member function clean_gpc() on a non-object in /home/xxxxxxxxx/public_html/forum/includes/class_dm_user.php(1826) : eval()'d code(32) : eval()'d code on line 54

I would imagine this means that the mod sends the PM, but somehow prevents the promotion from actually taking place. Thus, they get a PM that says they've been promoted, but their rank/user class remain the same as before.

imedic
02-09-2009, 08:00 PM
Thanks , It should be included in forum from the start.

powerful_rogue
04-02-2009, 08:49 PM
Hi,

Im so glad you decided to create this mod! Would you consider having it so a pop up shows on the members screen when they have been promoted at all?

MarkJW
04-04-2009, 01:39 AM
My members aren't getting notifications anymore... :(

powerful_rogue
04-16-2009, 10:42 AM
Small bump!

powerful_rogue
05-13-2009, 01:37 PM
Working fine on 3.8.2!

Would it be possible to make it pop up as message on the screen similar to the below instead of having it as a PM? The mod in the screenshot is a PM Popup notification.

Also, would it be possible to make it so you can have a default message, but also the option to add a custom message shown for each rank?

Edit, also maybe the option to tie in with User Titles? Ive got Ranks and Titles set so they both change when a user is promoted.

stamos2003
11-27-2009, 04:49 PM
Great idea for a hack but I'm running into a few problems...

-When inserting {rank} into the pm body it's calling for the image out of my admincp folder which isn't even close to where they are located? Thus the image is broken.

-After manually bumping the post and rep count of a member and running the promotion cron it notified the user with the PM but when I did it again for the same user it wouldn't notify them?

Thx for the help.

same here, wtf?!

Bouncer222
12-24-2009, 09:02 PM
VB 4 latest version upgrade please? or would it already work on it as is?

underESTIMATED
04-08-2010, 03:30 PM
Any idea about vb4 version timeline?

FernandoFG
05-22-2010, 08:13 PM
I installed this.

Afterwards, when users buy a subscription, the subscription is not added to their account and they don't get any of the privileges they just bought.

When I try to add it manually, I get this error:

Fatal error: Call to a member function clean_gpc() on a non-object in /home/xxxxxxxxx/public_html/forum/includes/class_dm_user.php(1826) : eval()'d code(32) : eval()'d code on line 54

I would imagine this means that the mod sends the PM, but somehow prevents the promotion from actually taking place. Thus, they get a PM that says they've been promoted, but their rank/user class remain the same as before.

Any word from the creator about this?

I have fear that this mod messes up with my paid subscriptions.

Deceptor
05-22-2010, 08:24 PM
I'll take a look into it, lost track of support on this :)

lucky_hacker
09-18-2010, 06:07 AM
is it possible to exclude any usergroup from notification

trackpads
12-02-2012, 10:36 PM
Deceptor, could you upgrade this to 4.2?

Thanks again,

-Jason

scorpss
04-22-2013, 11:19 AM
hi bro ,

is it possible to get this mod to vb 4.1 please ?

thanks

madness85
08-24-2014, 12:07 PM
dam shame not working for v4 :( anyone know of a similar mod i cant find anything.

m7sen
05-04-2015, 09:52 AM
nice mod

is this work with vb 3.8.8