PDA

View Full Version : Cel Sponsors/Subscribers on Forumhome



admin
19-11-2009, 03:25 PM
This mod will show the subscribers of a given paid subscription at the bottom of your forumhome in the What's Going On block. I'm using this to show and thank my forum sponsors.


Features

Show subscribers of one, more or all paid subscriptions in WGO on Forumhome (default: subscription with the ID 1)
Users who themselves are subscribers:

can be shown a thank you message (phrase, completely customizable)
will see the date their subscription(s) expire(s)
can see their username colored, depending on when their subscription expires (customizable, defaults: one week before->green, three days before->red)

Admins will see the subscribers sorted by expiry date (closest expiry date first), color markers as described above and the actual expiry date as a tooltip.
Other customzation: box title (phrase), icon, box title and icon link
New in version 4.0.001: Set a limit to how many users are shown. If a limit is set, the subscribers will be selected randomly, but the current user will always be shown. Show all link, can be set for certain usergroups only.
New in version 4.0.002: Restrict mod execution to defined usergroups.
Bug fixed in 4.0.002: Icon setting was not respected in 4.0.001. Please note: The standard image used upon installation was changed in vB4. If you don't see an image, you need to adapt the setting in AdminCP.

Installation

import product file
go to AdminCP->Options->Cel Sponsors/Subscribers on Forumhome and do settings

Templates and phrases used (for customization only)

forumhome_cel_sponsors: the template for the whole box

calls phrase cel_sponsors_title: The title for the box
calls phrase cel_sponsors_message: The thank you message for subscribed users
calls template forumhome_cel_sponsors_msgbit: the notices about subscriptions the current user has and their expiry date.

calls cel_sponsors_msg_single or cel_sponsors_msg_multiple, epending on how many subscriptions are active for the user

calls template forumhome_cel_sponsors_eachsub: the formatting of the line that lists the subscribers or a subscription

calls cel_sponsors_subusers: the formatting of a single username in the list and the seperator (default: comma)



I don't see anything after install!

Chances are you have either

not added the right subscription ID in AdminCP (not: Usergroup ID!)
deactivated the mod in AdminCP
no subscribers yet to the subscription you defined
a heavily customized skin. Check whether the template hook forumhome_wgo_pos2 is present in your FORUMHOME template

Screenshots

screenshots: vB 3 version (http://www.vbulletin.org/forum/showthread.php?t=222976).

Version History


4.0.002: Added feature to restrict by usergroup
4.0.001: Initial release for vB4, added feature to trim list