vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - vB Rank Promotion Notifier 1.0.2 (https://vborg.vbsupport.ru/showthread.php?t=199411)

Deceptor 12-20-2008 10:00 PM

vB Rank Promotion Notifier 1.0.2
 
1 Attachment(s)
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

Quote:

Originally Posted by Deceptor (Post 1690361)
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

Quote:

Originally Posted by Deceptor (Post 1690297)
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
Quote:

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

Quote:

Originally Posted by Deceptor (Post 1694319)
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

Quote:

Originally Posted by Deceptor (Post 1694334)
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

Quote:

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

Quote:

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

Quote:

Originally Posted by Deceptor (Post 1694365)
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:
PHP Code:

        $pmdm->set_recipients($this->registry->userinfo['username'], $fromuser['permissions']); 

Replace with:
PHP Code:

        $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

Quote:

Originally Posted by Deceptor (Post 1694369)

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

Quote:

Originally Posted by chrissmith (Post 1704457)
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

Quote:

Originally Posted by Vaupell (Post 1728938)
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... :(


All times are GMT. The time now is 07:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01258 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete