vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   "You Got Slapped" Battle/Game.... (https://vborg.vbsupport.ru/showthread.php?t=107333)

Hellcat 02-05-2006 10:00 PM

"You Got Slapped" Battle/Game....
 
Hi everyone!

I made this one originally by request, but since the person who requested it told me "I don't need it anymore" once it was finished I decided to release it to the public.
If only ONE (maybe even two? ;)) folks around here might find this usefull it was at least worth the time spent.

What this does:
You all know those "battle" systems, where you fool someone into visiting a certain URL but all that they get is a message "You get tricked", "You got fooled" or, in this case, "You got slapped" (you can change the message to whatever you like).
Well this is what this does.

The visitor gets that message and the "slapcount" (shown in the postbit) of the user who fooled the other one increases by 1.

This thing uses phrases for every single bit, so you can very easy customize it to whatever you like.
The "slap page" can be fully edited and customized via a template.

Nothing hardcoded, everthing editable via the default AdminCP areas.


How to install
Upload one .php file, import the product .XML and make one template edit.
(details in the readme)



Like I said, maybe someone may find use for this....

influence 02-06-2006 08:53 PM

funny hack

will edit this

Xtrato 02-06-2006 09:09 PM

nice hack thanks!!

jrofosho 02-06-2006 09:21 PM

I'm getting the same "slap count" in every members postbit.

hiiped 02-06-2006 09:58 PM

Quote:

Originally Posted by jrofosho
I'm getting the same "slap count" in every members postbit.



then you got punked






















just a joke :)

nice hack idea

Daniel 02-06-2006 10:03 PM

I want to put the "Slaps" on the sinfo.php page, so it shows how many slaps they have on the page where it says "You got slapped by..." so I put this in the template:
Code:

<div class="smallfont">$vbphrase[slap_slaps]: $slapcount</div>
but it doesn't seem to appear.

Reeve of shinra 02-06-2006 10:07 PM

oh my god, I wish I had this 5 years ago... I'd get some people in teh hundreds.

Hellcat 02-06-2006 10:17 PM

Quote:

Originally Posted by jrofosho
I'm getting the same "slap count" in every members postbit.

Weird....
I'll check if there's still a bug hidden....
[high]* Hellcat runns
[/high]


Quote:

Originally Posted by Daniel
I want to put the "Slaps" on the sinfo.php page, so it shows how many slaps they have on the page where it says "You got slapped by..." so I put this in the template:
Code:

<div class="smallfont">$vbphrase[slap_slaps]: $slapcount</div>
but it doesn't seem to appear.

Yes, that's right, 'cause the counter isn't read at that time.
But while I'm hunting the above bug, I'll also add this!

[EDIT]
Done, and done :)
Bug seems fixed, and $slapcount is now also available in the slappage template.

To upgrade upload the new sinfo.php and re-import the new product .XML with "allow overwrite" enabled.


I'm also planning on adding a Top-10 list :)

GamerJunk.net 02-06-2006 10:58 PM

Funny mod but couldn't someone just highlight the link and see that it goes to the slapped page?

ambumann 02-06-2006 11:00 PM

I don't see the point, what does this hack really do?


All times are GMT. The time now is 02:12 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.01045 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete