vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Timed Redirect - Donations Page Reminder (https://vborg.vbsupport.ru/showthread.php?t=108290)

ridley_1969 02-17-2006 10:00 PM

Timed Redirect - Donations Page Reminder
 
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?


All times are GMT. The time now is 01:14 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.01026 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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