Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2007, 05:36 PM
ab420 ab420 is offline
 
Join Date: Feb 2006
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 04-02-2007, 07:09 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Possible, yes, but that's a very speciallized hack.
Reply With Quote
  #3  
Old 04-02-2007, 07:29 PM
ab420 ab420 is offline
 
Join Date: Feb 2006
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 04-02-2007, 08:10 PM
Damian's Avatar
Damian Damian is offline
 
Join Date: Jan 2005
Location: Kentucky
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 04-02-2007, 08:16 PM
ab420 ab420 is offline
 
Join Date: Feb 2006
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 04-02-2007, 08:16 PM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't know about making the image disappear, but the PM bit....how about this?



Of course, change the 1 to the user id number you want the pm sent to.
Reply With Quote
  #7  
Old 04-02-2007, 08:23 PM
ab420 ab420 is offline
 
Join Date: Feb 2006
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tobybird View Post
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...
Reply With Quote
  #8  
Old 04-02-2007, 08:33 PM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you use html?

<a href="mailto:xxxx@domain.com?subject=Image Title">
Reply With Quote
  #9  
Old 04-02-2007, 11:51 PM
ab420 ab420 is offline
 
Join Date: Feb 2006
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here's a tricky one... how can I make it grab their vBulletin username and insert that into the subject of the email?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:31 AM.


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.04294 seconds
  • Memory Usage 2,233KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete