Essentially it is a hack to allow users to have crushes on each other and to declare them secretly. If two users declare that they fancy each other, then a match occurs and both are notified.
This is a great way of virally encouraging users back to the board and to inject a bit of fun into a forum.
We ran a manual one of these on our boards called 'secret crush', but that proved too controversial, so this is slightly watered down to be 'secret admirer', such that more people can participate and admiring someone doesn't commit you to them... so it's less imposing.
Anyhow... on with the hack.
The hack is comprised of:
1 new database table.
1 new php file.
Edit to member.php to include new "if" statement.
Edit to getinfo template for 'admire' link.
6 new templates.
All of the code and instructions can be found in the attached zip file.
I've tested this on my own board, and have installed it in my live environment. I don't know if it is rock solid though, so would appreciate feedback and bug reporting. I'm not a PHP coder by trade, so point out any errors if you see them.
Cheers
David K
UPDATED: 2003-SEP-12
Major update, adds reporting functionality for users and puts us on the verge of a gold release. Could a few other people please install this and let me know how you go... I want to know for sure that others are comfortable with this as it stands before I turn it gold.
I personally think it's there now... but just want the community to give me that peace of mind (as my board is hacked heavily and I want to find issues BEFORE it goes gold).
UPDATED: 2003-SEP-13
Now included screen shots within the zip file.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Hi, I installed this perfectly and it seems to work fine, exept it won't allow a certain usergroup use it, it gives them the 'you do not have permission to view this' page. I tried messing with the options for that usergroup but I just can't get it to work. its driving me nuts. Anyone have a solution?
Erm, check the secret_admirer.php file and find the following:
Code:
//
// This is a standard array, seperate the USERGROUP id's with commas... this
// is NOT user id's... these are the id's of the usergroups who you wish to
// exclude from participating in the secret admirer hack.
//
$EXCLUDED_USERGROUPS = array(1,3,4,9);
Remove the ones you want to be able to use it
Note that you should always exclude anonymous users as these would confuse the hell out of the system.
The other groups above were on my board Coppa, Unactivated and Banned.
Erm, check the secret_admirer.php file and find the following:
Code:
//
// This is a standard array, seperate the USERGROUP id's with commas... this
// is NOT user id's... these are the id's of the usergroups who you wish to
// exclude from participating in the secret admirer hack.
//
$EXCLUDED_USERGROUPS = array(1,3,4,9);
Remove the ones you want to be able to use it
Note that you should always exclude anonymous users as these would confuse the hell out of the system.
The other groups above were on my board Coppa, Unactivated and Banned.
Thank you for the help. Was just what we need. Appreciated greatly.