Go Back   vBulletin Modification Discussions > vBulletin Discusions > vBulletin Modifications
Home Register FAQ Members List Calendar Mark Forums Read
vBSEO Info Tags

About This Page: This is a discussion on Question for the Enlightened... within the vBulletin Modifications forums, part of the vBulletin Discusions category, at vBulletin Modification Discussions. How hard (ie, how and how much if you want to do it) would it be to have the promotion.php file for the promotion cron send a pm or post the log if there are any promotions? A post


Reply
 
LinkBack Thread Tools
Old 10-16-2006, 01:02 PM   #1 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Question for the Enlightened...

How hard (ie, how and how much if you want to do it) would it be to have the promotion.php file for the promotion cron send a pm or post the log if there are any promotions?

A post would be great in a designated forum or a PM to the Mod/Admin UserGroups would be good too.

Thought I'd ask here since there is some brain power moving around these parts I've noticed!!

Cheers,

G_Man
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links

Old 10-16-2006, 06:59 PM   #2 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,193
Code Monkey is on a distinguished road
iTrader: (0)
Enlightened? *looks around"

Will the local dummy do?

I have never messed with promotion stuff. Though I have had a few members on various sites over the years that I would love to have demoted.

Is that the default vBulletin one that runs as a scheduled task? Or a mod?

Either way, if it's promoting members then it must have access to user id's and what they are promoted to and all the good stuff you would need to do something else with this info. And using the new vBulletin Data Managers it would not be to hard to do any of that.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-16-2006, 09:23 PM   #3 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Quote:
Originally Posted by Code Monkey View Post
Enlightened? *looks around"

Will the local dummy do?

I have never messed with promotion stuff. Though I have had a few members on various sites over the years that I would love to have demoted.

Is that the default vBulletin one that runs as a scheduled task? Or a mod?

Either way, if it's promoting members then it must have access to user id's and what they are promoted to and all the good stuff you would need to do something else with this info. And using the new vBulletin Data Managers it would not be to hard to do any of that.
Yep... I have a lot of promotions. They are based on Reputation, Time since Registered, and Posts. Kind of a fun site that way. Problem is that we (the staff) sometimes don't notice or recognize when a member gets promoted.


And yes, it does run from standard vbulletin cron job, every hour. It calls the promotions.php file and logs the results.

A log looks something like this when someone is promoted:


Code:
2870  	User Promotions  	22:25, 11th Oct 2006  	Usergroup: 8 - Ashigaru*; Users: MoonB* = Primary Usergroup, % = Secondary Usergroup
2868 	User Promotions 	21:25, 11th Oct 2006 	Usergroup: 9 - Villagers*; Users: Velvet, tarro, MoonB, Killerace* = Primary Usergroup, % = Secondary Usergroup

Might be more info you need, but put it out there for ya...

Oh and local dummy will do fine. He can teach the Village Idiot a thing or two I am sure!!
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-19-2006, 06:28 PM   #4 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Hey CM,

You get a chance to look at this for a second?

Cheers,

G_Man
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-19-2006, 08:17 PM   #5 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,193
Code Monkey is on a distinguished road
iTrader: (0)
Never even seen that post. Must have been posted on one of those busy days we had.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-19-2006, 08:56 PM   #6 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Thought maybe it slipped by ya. And I know yer busy, but any idea how to do that off hand?
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-19-2006, 09:01 PM   #7 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,193
Code Monkey is on a distinguished road
iTrader: (0)
Maybe I will look at it this weekend if I have time. Might make a good new mod.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-19-2006, 09:05 PM   #8 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Cool. I was thinking just that - cool new Mod.

BTW - the regular reply/quote/go advanced buttons are not working for me...
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-19-2006, 09:40 PM   #9 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,193
Code Monkey is on a distinguished road
iTrader: (0)
It should work now. I may need to increase PHP memory on the server even more than I have already.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-19-2006, 09:54 PM   #10 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Quote:
Originally Posted by Code Monkey View Post
Maybe I will look at it this weekend if I have time. Might make a good new mod.
Quote:
Originally Posted by Code Monkey View Post
It should work now. I may need to increase PHP memory on the server even more than I have already.

And fast too!!!

all the functions are working as far as I can tell... quote/multi-quote/reply, etc...

Now you can get back to work!
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2006, 10:07 AM   #11 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Quote:
Originally Posted by Code Monkey View Post
Maybe I will look at it this weekend if I have time. Might make a good new mod.
Did the busy bee, er, monkey, get a chance to look at this?
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2006, 11:19 AM   #12 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,193
Code Monkey is on a distinguished road
iTrader: (0)
Might not happen this weekend. Need to take the kids to the pumkin patch/corn maze/haunted house thing.

But have no fear, one more week and I am on vacation and can play with code some more.

Meanwhile, make a definitive list of options you as a webmaster, would like to have with something like this.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2006, 11:58 AM   #13 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Quote:
Originally Posted by Code Monkey View Post
Might not happen this weekend. Need to take the kids to the pumkin patch/corn maze/haunted house thing.

But have no fear, one more week and I am on vacation and can play with code some more.

Meanwhile, make a definitive list of options you as a webmaster, would like to have with something like this.
I will make up a detailed post later.

I hear ya with the kids. Good stuff. Just got back from taking some photos of the fall colors by the river and now off to play in our nice fall weather. Then to the zoo !!

Thanks again.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2006, 09:51 PM   #14 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Really not much to describe as I think hard about this.

When the Promotions Cron runs it creates a record of promotions when there are actually promotions. No log is created if no member is created.

The Perfect Hack for me would do this:

It would have AdminCP>vbulletin Options section.

This section would include:

On/Off for PMing Promotions.
A section for UserGroups to recieve Promotion PMs. (UserIds would be okay here, but I think UserGroups would be better)


When the cron runs and log is created I'd like the info PM'd to those designated to recieve the PM. Could be parsed to be more friendly, but that is not neccesary either. Just PMing the log would be fine.


Cheers CM. Hope you had fun with the young'ns.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2006, 09:59 PM   #15 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,193
Code Monkey is on a distinguished road
iTrader: (0)
Oh, I thought you wanted a post made?


And me and the youngins made it out of the corn maze after walking in circles for what seemed like forever. lol
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2006, 10:19 PM   #16 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Quote:
Originally Posted by Code Monkey View Post
Oh, I thought you wanted a post made?


And me and the youngins made it out of the corn maze after walking in circles for what seemed like forever. lol
hehehe...

You said in my dream mod...

Alternatively, simply starting a thread with a post showing the log in a designated forum is totally acceptable. In which case I suppose there should be a setting delineating the posters userid and the forumid where the post will be.

Not sure if I'll make it to the corn maze here or not this year. Good Stuff though.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-27-2006, 04:11 PM   #17 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,193
Code Monkey is on a distinguished road
iTrader: (0)
Bad news. There are no hooks in promotion.php.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-27-2006, 04:21 PM   #18 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
oh sure... I see how it is!




Well, thanks for looking at it for me, CM. Would have been a swell hack for anyone using automatic promotions.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-27-2006, 04:52 PM   #19 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,193
Code Monkey is on a distinguished road
iTrader: (0)
It could still be but it would have to be a complete hard coded hack.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-27-2006, 05:44 PM   #20 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
You just mean code changes to the promotion.php as opposed to a product/plugin?
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-27-2006, 05:48 PM   #21 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,193
Code Monkey is on a distinguished road
iTrader: (0)
Yes, which I am not too keen on any more. IMO today's vBulletin modifications should try to be 100% reliant on hooks and th