The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#18
|
|||
|
|||
![]()
OK, so this is the first draft... I wouldn't even call it a Beta Hack yet... it's just an outline of the idea. And you'll have to forgive any dodgy PHP (or point it out to me!) as this isn't my main language and I sorta make this stuff up.
So... first you need to create a database table: Code:
CREATE TABLE `secret_admirer` ( `userid` INT( 10 ) NOT NULL , `admiresuserid` INT( 10 ) NOT NULL , `datecreated` INT( 10 ) NOT NULL , PRIMARY KEY ( `userid` , `admiresuserid` ) ) TYPE = MYISAM ; Next... upload the attached file into the root of your form... i.e. the one in which index.php, member.php, etc exist. Usually /forum if you've followed standard naming conventions. The file should be called secret_admirer.php Now... you need to edit member.php Find: PHP Code:
PHP Code:
Finally... modify the "getinfo" template to add a link to it somewhere: <a href="member.php?s=$session[sessionhash]&action=admire&userid=$userinfo[userid]">Click here to register your secret admiration for $userinfo[username]</a> Then... all the user has to do is click that link, and the system records their admiration... sends an alert to the other person (which will advise them to register their admiration for others in the hope of matching)... and when a match is made... the two users are both informed... otherwise, it's all secret ![]() So yeah, first draft... six hours of plodding through... hope it all makes sense and looks good. Please give feedback over this week, and I'll attempt to do changes which I feel are appropriate. For me though, what I've done fulfils my needs... thought about adding management stuff, but decided that this is one feature that should be totally anonymous and secretive... for privacy's sake. Cheers David K |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|