vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   When someone clicks an image, I need it to send me a pm (https://vborg.vbsupport.ru/showthread.php?t=143869)

ab420 04-02-2007 05:36 PM

When someone clicks an image, I need it to send me a 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/

Of course, change the 1 to the user id number you want the pm sent to.

ab420 04-02-2007 08:23 PM

Quote:

Originally Posted by tobybird (Post 1218616)
Don't know about making the image disappear, but the PM bit....how about this?

[URL="http://www.domain.com/forum/private.php?do=newpm&u=1"][IMG]http://path-to-image.jpg[/IMG][/URL]


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?


All times are GMT. The time now is 02:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01046 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete