PDA

View Full Version : Secret Admirer


insanctus
06-05-2003, 12:20 PM
I was thinking it would be cool if users could send secret admirer pm’s.

Yet have some way for the admin to know who sent them incase it was used to flame a member.

Kriek
06-05-2003, 01:10 PM
Hahah! That's a great proposal, which is essentially quite uncomplicated and easy to implement, though I'm afraid I won't have a great deal of time to spend developing it this week, so have it ladies and gentlemen.

insanctus
06-05-2003, 01:16 PM
Ty :) What can I say I am a romantic at heart.... ~ Whipes a tear vampires need love too.

gmarik
06-05-2003, 01:20 PM
One of the greates ideas. Thumbs up!

insanctus
06-05-2003, 02:29 PM
Ya sort of bring sense of mystery to things. And people can play and what not.

Have where they can respond. Yet not know who responding to. The admirer sees they responded.

Could make for lively games and ever make people post about it. Bring some adventure to a board.

filburt1
06-05-2003, 02:32 PM
Nice in concept, but not so nice in reality considering you have no idea how the person reacts in real time, let alone what they look like.

insanctus
06-05-2003, 02:35 PM
Well depends on the board as well. Could also add a thing if the user does not wish to get a secret admirer pm then they can turn it off.

The person sending gets a screen saying the user is not interested in participating.

Another spin off would be secret poster. Have where someone can post and people try to figure out who they are. :)

Hobbes
06-05-2003, 06:06 PM
wow...this sounds liek a really wicked awesome i would totally love this!!!:D too bad i suck at php and could never do such a thing....! *cries*

wolfe
06-05-2003, 08:29 PM
i will take on the challenge when i finish my Jokes Factory v2.0 hack

insanctus
06-06-2003, 12:51 AM
Very cool Ty wolfe. I know on my board it will end up being a fun hack.

buro9
06-18-2003, 02:39 PM
I also need this and will help if someone needs me to. I am a developer in my job, though PHP is not what I work in, so it will take a short while to get up to speed.

Given that we are so close to VB3, I would like this in that ASAP... but as I believe I'll be on VB2.3 for the next few > 6 months I would like to start with this version and do a VB3 one once VB3 goes gold.

The way in which I envision it working is thus:

A button is on the profile page to nominate that you have a crush on person X.

This is registered in the database that Y fancies X and an email/PM is sent to X letting them know that someone has a crush on them and that they should use the profile pages to nominate someone they have a crush on to see if they get paired up.

If X then nominates Y an email/PM is sent to both parties letting them know they are matched and who the other person is... else the process continues until matches are made.

One database table will be required of two columns (that form a composite primary key - no duplicates)...
userid, fancies_userid
Or something like that.

Lastly, a little chunk should be offered within the user control panel to be able to manage these... i.e. to remove the people that you fancy when they offend you!

We're pretty much running a manual version of this at the moment... hence my knowing what needs doing ;)

Cheers

David K

filburt1
06-18-2003, 02:41 PM
Today at 11:39 AM buro9 said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=410356#post410356)
Given that we are so close to VB3, I would like this in that ASAP... but as I believe I'll be on VB2.3 for the next few > 6 months I would like to start with this version and do a VB3 one once VB3 goes gold.

Because releasing vB3 hacks is presently against the rules (vB3 is still beta), only a vB2 hack can be publicly released :)

buro9
06-18-2003, 02:53 PM
Today at 04:41 PM filburt1 said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=410358#post410358)
Because releasing vB3 hacks is presently against the rules (vB3 is still beta), only a vB2 hack can be publicly released :)

Well, that's ok, because I did say that we should start with VB2.3 now and then start on a VB3 one when it was gold.

Besides... we could start a VB3 hack now... just couldn't release it now. Certainly this should be encouraged since a lot of functionality provided by hacks in VB2.3 won't be there when VB3 does go gold, and thus to receive widespread support of VB3 and the continuity of user experience on these boards from the outset... hack makers should be encouraged to start thinking about such things and converting. If you want an example of when this sort of thing happened in the past, just think of the WinAmp debacle. WinAmp3 lacked skins, plugins, etc and this was a considerable factor in everyone I know staying with what they were comfortable with.

Either way... whilst I would need continuity (a hack I have in VB2.3 to exist for VB3 immediately after it went gold) I still actually said that we should do a VB2.3 one now, and thus this isn't the place for such a discussion or debate.

insanctus
06-22-2003, 09:33 PM
Anyone started on this hack?

I wish I had the skills to do it but I am still not that good with php to be hacking it all up from scratch :(

buro9
06-27-2003, 05:15 AM
I shall be starting on this next week. I have in my mind how it will work, which is outlined above.

Any suggestions should be made over the next few days and will be considered when I properly design the functions and logic flow.

Cheers

David K

insanctus
06-27-2003, 05:34 AM
I just installed vb3 :( So I will have to wait on this hack unless you need a vb3 tester :)

I been busting my but doing some add in's and working on a temp portal.

buro9
06-27-2003, 05:46 AM
I'm going to do a vb2 version first... but I'm coding it with the port in mind, so once done it should be easy to integrate into vb3 once that goes gold.

buro9
07-06-2003, 10:28 PM
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:

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 ;


Note that it has a dual-column primary key to prevent duplicates existing.

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:

// ############################### start aim message ###############################
if ($action=="aimmessage") {
$templatesused = 'aimmessage';
include("./global.php");
$aim = htmlspecialchars( $aim );
eval("dooutput(\"".gettemplate("aimmessage")."\");");

}


And below it add:

// HACK : START : SECRET ADMIRER
// ############################### start admire ################################
if ($action=="admire") {
$templatesused = 'secret_admirer_page, secret_admirer_duplicate_page';
include("./secret_admirer.php");
include("./global.php");
$userid = verifyid("user",$userid);

//
// We only let registered users, mods and such use this... no-one awaiting
// confirmation or unregistered, as their email may be fake.
//
if (!$bbuserinfo['userid'] or
$bbuserinfo['usergroupid'] == 1 or
$bbuserinfo['usergroupid'] == 3 or
$bbuserinfo['usergroupid'] == 4 or
$bbuserinfo['usergroupid'] == 9) {
show_nopermission();
}

//
// Call the create function... this returns true or false:
// true = added successfully
// false = duplicate - it's been added before
//
if (secretAdmirerCreate($bbuserinfo['userid'],$userid)) {
//
// Successfully added admiration, so print out a helpful message
//
eval("dooutput(\"".gettemplate("secret_admirer_page")."\");");
} else {
//
// Duplicated, so advise
//
eval("dooutput(\"".gettemplate("secret_admirer_duplicate_page")."\");");
}
exit;
}
// HACK : END : SECRET ADMIRER


You now need to add some templates to your system, these are just draft pieces of text to outline what each template does:

secret_admirer_page = "Your admiration for that user has now been registered and the user has been notified that someone admires them.<br/>
<br/>
If the user registers an admiration for you in return, then you will both be notified."
secret_admirer_duplicate_page = "You've already registered your admiration for that user."
secret_admirer_alert_pm = "Someone admires you!"
secret_admirer_alert_email = "Someone admires you!"
secret_admirer_match_pm = "$admiredUser[username] admires you!"
secret_admirer_match_email = "$admiredUser[username] admires you!"


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

buro9
07-08-2003, 06:43 PM
Now moved to beta status... please help to find bugs.

https://vborg.vbsupport.ru/showthread.php?s=&threadid=55119

rob01
04-19-2009, 09:39 PM
this dosnt work anymore?

tipoboy
04-19-2009, 10:23 PM
this dosnt work anymore?


congratulations on reviving a 6 year old thread!

rob01
04-19-2009, 10:43 PM
lol yeah, but it could be nice to have this back, i just want to know if someone is still using it so i could continue the development and/ask the author for permition

you don't need to be sarcastic

Medtech
04-19-2009, 11:01 PM
I could use this...

Sweeks
04-26-2009, 12:27 AM
I would love this myself. Maybe have templates for the PM to be sent for members to choose from which are decorated etc
________
Blonde white (http://www.++++tube.com/categories/327/white/videos/1)

Mrwill
05-01-2009, 01:40 PM
Thumbs up