View Full Version : Timed Redirect - Donations Page Reminder
ridley_1969
02-17-2006, 10:00 PM
A friend needed a plugin that would allow them to redirect users when a time had elapsed, so that they could remind them about donations.
They had a donations page, but wanted all of their registered (non-donating) members to be redirected once a month to their donations page.
After seeing Calorie's 'Force Profile Update' plugin, I was inspired to expand on the concept.
This plugin allows you to redirect a usergroup or groups to a specific page, thread or post, after a recurring length of time you select.
Through the control panel, you can set the length of time to give them the reminder, the usergroups, the page that it redirects to, and the message.
UPDATE (1.01): You can now set the reminder to be cleared on the redirect page itself (provided its a vbulletin created page) or cleared once the reminder is viewed, so you can redirect to a non-vbulletin page. It now also checks against all possible usergroups, primary and secondary.
UPDATE (1.02): You will now be able to see stats on how many people each month have been reminded (in the control panel settings). Also, if you use a redirect URL that is non-standard to your vbulletin site (IE: Instead of using donations.php, you use: http://www.anothersite.com/donations.html) this is now possible.) Also, all primary and secondary groups will work if you add them to the list.
I'll be around to support it if you have any questions.
Ridley...
hugh_
02-18-2006, 08:49 AM
Great work, installed!
hugh_
02-18-2006, 08:51 AM
Hmmm, it's not working. I get the following error at the top of every page...
"Parse error: parse error, unexpected ':' in /home/httpd/html/vbulletin/global.php(512) : eval()'d code on line 33"
hugh
ridley_1969
02-18-2006, 08:59 AM
Sorry Hugh, added a little bug-checking line, and in the rush to get it finished, I forgot to add a bracket.
If you redownload it, it should be fine now.
Marcus/Ridley
hugh_
02-18-2006, 09:04 AM
Much better, many thanks for being so quick to respond!
hugh
hugh_
02-18-2006, 09:08 AM
One thing, you might want to have "month" read "month(s)"...
"eg: It's been 3 month(s) since you last we reminded about making a donation to Party Vibe."
hugh
ridley_1969
02-18-2006, 09:13 AM
As for the line break, I've changed it from a center tag, to a paragraph, so it should look proper in most browsers.
As for the month(s) idea, I can't.
The way you type in 1 month, 2 months, etc, needs to be in that format without the brackets, because of the code that parses it. (I need to make it workable with all of the older versions of php as well.)
But thanks for the ideas.
Keep em coming.
Marcus/Ridley
hugh_
02-18-2006, 09:14 AM
No problem, many thanks again!
hugh
klaush
02-18-2006, 09:17 AM
Good job! Installed! Is it possible to use "html-code" as well?
I did not try.
klaush
02-18-2006, 09:21 AM
One other idea...
It would be useful to give the user the possibility to choose the "forced website" but also to return to the mainpage. So the "force" will be not so strong as given in this mod.
Possible to do in the next release?
hugh_
02-18-2006, 09:22 AM
You can edit this phrase which accepts html: metr_timedredirect
klaush
02-18-2006, 09:28 AM
Ups...
and again me... :-)
It would be useful to use other redirect-pages, than the pages in vbulletin.
In my case i have the gallery in the root: http://www.xxxxx.xxx/gallery/index.html - not in vbulletin.
klaush
02-18-2006, 09:34 AM
You can edit this phrase which accepts html: metr_timedredirect
Thanks, that?s it!
ridley_1969
02-18-2006, 09:36 AM
Unfortunately Klaush it needs to use the vbulletin pages or ones created within the vbulletin structure (such as my friends donation page), because its not until they go to that page, that the reminder time is updated.
However if you had the time and the inclination to code something yourself, I'm sure you could do the update manually on your own non-vbulletin page. It wouldn't be too hard.
hugh: correct, you could edit that phrase and change it to reflect whatever you want. Including having a separate redirect back to the home page.
Marcus/Ridley.
klaush
02-18-2006, 10:28 AM
hugh: correct, you could edit that phrase and change it to reflect whatever you want. Including having a separate redirect back to the home page.
Marcus/Ridley.
Thanks. I tried this, but nothing happens. Means he is redirected to the page where he has first to click the page which is configured in the acp-settings.
So he has no choice to go to the second, the main page, that is alternately given in the phrase.
Any idea? Wrong code?
FleaBag
02-18-2006, 03:22 PM
Neato! :D
yeah i wanted this for awhile. thanks!
vauge
02-18-2006, 05:30 PM
Would you add the ability to exclude usergroups?
If member is in usergroup X and also in Y, do not show.
My donators are members of the registered users as well.
ridley_1969
02-18-2006, 11:21 PM
Vauge: Brilliant idea, I'll work on that.
Marcus/Ridley
mrahul
02-19-2006, 02:28 AM
do we need to install the donate page plugin. I use a html asking members to donate. As in html page I dont think itz possible to cross - check who have donated or not :s
ridley_1969
02-19-2006, 04:16 AM
Ok, addressed a couple of issues.
You can now have the reminder cleared either once a user reaches the redirect page. (which means it must be a vbulletin created page) or it will clear once the reminder has been shown. (meaning they just have to refresh to clear the reminder, but you can now send them to a non-vbulletin page.)
Also, it now checks against all possible usergroups, not just the one in the usergroupid column of the user table.
(The idea of having it have some kind of logic where the usergroup ids can match certain things but not others, is still being tossed around)
Marcus/Ridley
username12
02-19-2006, 08:46 AM
Trying to send to a non-VB page just made me keep getting the same page over and over again. Seems to work like a charm with a VB page, though.
The one suggestion I have is to have it check secondary user groups, too. I have the people who donate listed in 2-3 different groups.
Floris
02-19-2006, 09:36 AM
You give nice support on this, pretty quick. Nice addon and thank you for sharing :)
ridley_1969
02-20-2006, 04:44 AM
username12: What is the link you are entering in the 'redirect link' box? I'll try and debug it for you?
Also, the permissions works for ANY permissions groups, primary or secondary.
Marcus/Ridley
ridley_1969
02-21-2006, 08:04 PM
Username12: I think I've addressed the issues you were having with this latest version.
You will now be able to use ANY url to redirect, not just one local to your vbulletin installation. Remember you can also use relative paths such as ../donations.php and it will still work.
Also, I've added the stats ability in the control panel, so you can see how many people have viewed your reminder in the current month.
And the checking of primary and secondary usergroups works fine. (it actually did since version 1.01)
Enjoy
Marcus/Ridley
bashy
02-21-2006, 08:06 PM
Cheers for the update...i have updated and all seems well atm!!
username12
02-21-2006, 09:58 PM
I think the problem I was having was one of the settings. Needed to check no instead of yes in the clear redirect box (unless that was just added in 1.0.2). Redirecting to a non-VB page works perfectly.
Still having the problem with multiple usergroups, as my supporter usergroup is receiving the message if that person is also in another usergroup (but is not receiving it when in just that one usergroup). Don't know if this would work, but maybe if the setting were for usergroups to exclude rather than usergroups to include.
3z3k3l
02-26-2006, 03:11 PM
Feature Request.
Is there a way to Set this mod up to redirect a user somewhere after they sign up for an account?
It would be great to send users to welcome pages or to a Subscription page for added features and give them all the benefits before they get to the forums.
Not urgent but it would be a "nice to have".
ridley_1969
02-26-2006, 08:24 PM
Is there a way to Set this mod up to redirect a user somewhere after they sign up for an account?
Thats an interesting request.
From a first look, it appears it would probably be a separate plugin.
But it could be an extension.
Based on your idea though, I would envision you selecting from a drop down all the different options that a user goes through, such as 'When they register', 'When they login', 'When they first post', 'When they are banned', etc. Then allow you to redirect each possible option, and activate each one accordingly.
Marcus/Ridley
3z3k3l
02-26-2006, 10:03 PM
Thats an interesting request.
From a first look, it appears it would probably be a separate plugin.
But it could be an extension.
Based on your idea though, I would envision you selecting from a drop down all the different options that a user goes through, such as 'When they register', 'When they login', 'When they first post', 'When they are banned', etc. Then allow you to redirect each possible option, and activate each one accordingly.
Marcus/Ridley
Wow you make even better before we can even think of these ideas! :)
Yeah, I am not sure if it would be whole seperarte plug in or not.
I like those options too, that would make it more robust.
Great ideas.
Gripemaster
02-27-2006, 12:22 PM
Very interesting... I have been looking for something exactly like this. Here's why:
I have created a survey for my forum using VB Survey. I have alot of lurkers and zero posters on my forum, and want to get them more involved in the community. Is there a way of redirecting them to the survey page, and then "clearing" them to not be redirected after they have taken the survey? This would be IDEAL for my forum if that were possible.
username12
02-27-2006, 09:44 PM
Another suggestion I would have is to make it wait on new members. I don't wanna hit them up for a donation right away.
Edit: Though I suppose I could do this with promotions.
Carly
03-01-2006, 03:22 AM
Great plugin!! The first 12 hours of having this installed, and I got slammed with donations, mostly from those who never really looked around at all of the links! I was looking for a non-pushy, polite way to remind members of the option, and this is perfect!!
ridley_1969
03-01-2006, 04:47 PM
Ok, thanks for all the great ideas, I'm starting to see where this is going.
From how I see the requests, the plugin will probably evolve into something that allows you to check status for users, based on various conditions or criteria, then redirects them, and sets a flag based on either time, or completion. So that they can be reminded, or they are now complete.
This will definitely take some time, as I need to make this a lot more robust, as well as non-processor intensive.
Thanks for all the ideas.
Marcus/Ridley
Hostboard
03-01-2006, 05:46 PM
I think this is a great idea just think it could use a few things :nervous:
1. Countdown timer to redirect back to the last page the user was at (configurable in the ACP).
2. Link next to donat link to allow user to click to return to the page they were last at.
3. Ability to show to user ever the "nag" page every hour, day, week, month if they have not donated (ACP configurable)
goodwillstacy
07-13-2006, 05:25 AM
will this work with 3.6?
thanks!
stacy
SCRIPT3R
09-12-2006, 03:37 PM
updated for 3.6.x here (https://vborg.vbsupport.ru/showthread.php?t=132969).
jyajay
10-08-2006, 01:20 PM
I just installed and tested this hack with version 3.6.2 and it is working without any problems.
jyajay
10-17-2006, 09:48 PM
Is it possible to reset the status of redirection if you want the users to be redirected before the time period is over?
I did reset the status now manually, maybe you can add this to the AdminCP:
UPDATE user SET metimedredir = '0';
blackdirector
11-04-2006, 07:41 AM
I installed this mod...works great... I am directing people to a website for info but now users cannot register to join my site when this is active. Anyone know what is going on.
SCRIPT3R
12-01-2006, 06:48 PM
updated for 3.6.x here (https://vborg.vbsupport.ru/showthread.php?t=132969).
encryption
12-05-2006, 05:49 PM
Cool mod, thanks for sharing. I wonder though how this works with several usergroups people can be in. For example, I need the script running so only registered users are affected. People who donated on our site are put in a special secondary usergroup using a different color so people can see who donated as a reward. How is the script working...are people getting the reminder message if they are ONLY in the group you determine in the option "Usergroups to Redirect" - and they don't get the reminder as soon as they are in another usergroup or will they get it any time as soon as they are in the registered users group as first or secondary usergroup AND other usergroups?
If this is the case, how about an exclusion of a group that never gets the reminder?
jyajay
12-09-2006, 09:35 AM
I am still using this mod with 3.6.3 without problems, is there a reason for changing to the new mod?
ColdSpirit
07-14-2007, 11:42 AM
This will work with the 3.6.7PL??
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.