View Full Version : When someone clicks an image, I need it to send me a pm
ab420
04-02-2007, 05:36 PM
I am trying to set up a "scavenger hunt" on my forums. Basically I will hide images throughout the forums (and other hacks I have that run through the forums system) and people have to find them, whoever finds the most wins... I figure this is a great way to get people to explore all the parts of the forum, and get them to stay on the site longer.
I would like to be able to put the images on the site in such a way that:
When someone finds one, they can click on it, and it will:
a) send me a PM that tells me who found it, and which one it was
b) make the image disappear, so no one can else can find it and click on it.
Is this possible at all?
Thanks in advance.
P.S. - Feel free to use my scavenger hunt idea ;)
WetWired
04-02-2007, 07:09 PM
Possible, yes, but that's a very speciallized hack.
ab420
04-02-2007, 07:29 PM
That's a bummer, it would be so perfect for this contest... hmm... I wish I was better at coding! I wouldn't even know where to start on something like that :(
How hard would it be to just have it send me a pm when someone clicks an image? Then, I would have a time record of who clicked it first, and I could just remove the images manually.
Damian
04-02-2007, 08:10 PM
Maybe try linking the image to sendmessage.php and have them email you. You could even add a pre-define subjects such as "Scavenger Hunt" or something.
ab420
04-02-2007, 08:16 PM
That's a great idea! How do I predefine subjects though? There will be at least 10 images at a time, so I would need to make them all with different subjects, so I will know which image they found.
tobybird
04-02-2007, 08:16 PM
Don't know about making the image disappear, but the PM bit....how about this?
https://vborg.vbsupport.ru/ (http://www.domain.com/forum/private.php?do=newpm&u=1)
Of course, change the 1 to the user id number you want the pm sent to.
ab420
04-02-2007, 08:23 PM
Don't know about making the image disappear, but the PM bit....how about this?
http://path-to-image.jpg (http://www.domain.com/forum/private.php?do=newpm&u=1)
Of course, change the 1 to the user id number you want the pm sent to.
I thought of that too, but the problem is, I need to know which image it was that they clicked... also, the images most likely won't be in the forum posts themselves, but in the templates and inside other hacks that run through vbulletin as well...
Is there a way to make a link to send a PM with a specific subject? THAT might work...
tobybird
04-02-2007, 08:33 PM
Can you use html?
<a href="mailto:xxxx@domain.com?subject=Image Title">
ab420
04-02-2007, 11:51 PM
here's a tricky one... how can I make it grab their vBulletin username and insert that into the subject of the email?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.