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)

MSheraz86 04-08-2006 10:03 AM

The PHP file is PERFECTLY Fine :).

Either:
*You are not using the proper link pointing towards the toplist, yet alone the sinfo.php itself
*You renamed the sinfo.php and so there might be some problem which I cannot think of at the moment lol.

That's the 2 main problems I could think of. Could it be that in your url forums comes before the main url? I even tried the other way round though and still its blank.

bashy 04-08-2006 10:50 AM

Hi..

Heres my page for the toplist you can see from the url it is correct...
But look, no top slaps :(

See image please

MSheraz86 04-08-2006 09:35 PM

I spotted this in the xml file at the bottom

Code:

<phrase name="slap_toplist"><![CDATA[Top Slappers]]></phrase>
So now what you need to check just to be certain is that if you have the phrase "slap_toplist" in your phrase manager. If you DO NOT somehow have it then perhaps that may be a problem, hence the root cause for the toplist not showing.

Though I have my doubts because once you upload the xml file it does everything for you, but no harm in checking to be certain :).

I am not a coder, unfortunately so I can only help you with assumptions, who knows maybe I might stumble across something that actually fixes the problem? nevertheless do check the phrase.

Good Luck :)

Exitilus 04-08-2006 10:41 PM

Yup... i have that phrase as well.

My guess is if it works for some and doesn't work for others. That this conflicts with some other plugin.

Though for mine. It ONLY shows the Footer. No Navbar O.o All coding looks right but ... ehh who knows o.o

bashy 04-09-2006 06:44 AM

Yeah...sorry, i have that phrase as well :( tx for trying though, much appreciated :)

Ya prob right there Exitilus, i have many, many hacks and mods installed :o

MSheraz86 04-09-2006 02:22 PM

In that case it should have been the mod itself not working, the top ten list is like a small standalone type of element if that makes any sense? so what I mean is that if the mod itself CAN work then so MUST the topten list!

I'm grateful to HellCat for this Superb mod but if he could shed some light on this matter of yours that would be great as well as the matter that I had posted regarding finding out who got slapped by who (if possible how many times).

Also the bug in the pm occurs for me too, so hopefully that could get fixed :D. Hmmm if its not too much of a coding hassle perhaps I can give the bug a try and fix it myself? Will do!

Anyhow Sorry Exitilus and Bashy, I tried my best :p

Edit: I tried, no luck :( I can't seem to work out the problem in PMs. I have no idea why it is showing the right # of slaps in threads but my own # of slaps under another persons username in pm's.

bashy 04-09-2006 03:18 PM

Thank you anyway MSheraz, i am very gratefull for trying for us :)
Hopefully the boss can shed a little light on this, although ihave mentioned
this from the start.....

Thanks again for trying :)

MThornback 04-13-2006 11:14 PM

Question about this bug? Do you all have a page compressor installed? I do...and i'm having the same problem?

bashy 04-14-2006 07:46 AM

Hi

Yes i do!!!

May deactivate it and see what happens, Good Batman thinking Robin :)

EDIT: Deactivated it and still have the same isses...:(

Nachtfalke 04-29-2006 11:57 AM

Hi,
I like that hack very much, I use it to "spread the word" of my forum by encouraging my members to use the slap link, rewarding the top slapper with points of the vBux once a month.
unfortunately the toplist is not working for me either. http://starbase-reloaded.de/base/sinfo.php?do=toplist
I did not rename the file, it exists on my server. Even if I call the link directly, it is not working, so there is no phrase problem.
Any help with the toplist problem is gladly apreciated.
Thanks from germany

rinkrat 04-29-2006 05:20 PM

It IS possible to have the toplist work, check my page here:
http://www.letsgokings.com/bbs/sinfo.php?f=1

Hellcat 05-05-2006 03:58 PM

Hi everyone.

Sorry for my long absense, but I'm pretty covered in work ATM and didn't have much time to spend here :(

Anyway, can someone with that "empty page" issue please run the attached .php file and send me the output?

It's a modified sinfo.php that, instead of printing the page, prints out some dubug values that hopefully will help me to narrow down the cause of this problem.

It should output something like this:
Code:

do = toplist

navbar = 3178
HTML = 2606
SHELL = 26552


Please run it including the "?do=toplist" suffix....

:)

cmbehan 05-17-2006 06:12 PM

I just installed this mod on our test forum and I think we can have a bunch of fun with it, but I've got a question:

We currently use vBookie for betting on our sports-related forum and it runs great. We're using the default vCash as our virtual currency.

I was wondering if there was any way of modifying this game so that when you click on a fake link instead of points being added to your slap count, it would take away vCash from the victim and give it to the slapper.

There might need to be a need to only allow it once per user per link to keep people from just giving all of their vCash to a particular user.

Anyone think this is possible?
Anyone want to begin to tackle this with me?

Hellcat 05-17-2006 07:14 PM

Should be possibe :)

The user must be logging tho, the "once per user per link" could be a bit challanging, but possible....

cmbehan 05-17-2006 07:20 PM

Quote:

Originally Posted by Hellcat
Should be possibe :)

The user must be logging tho, the "once per user per link" could be a bit challanging, but possible....


yeah...I had a feeling that it would be the most difficult part.

Nachtfalke 05-25-2006 07:24 PM

I tested the attached sinfo.php to look after the toplist problem. This is what it dumped out:
Code:

do =

navbar = 0
HTML = 0
SHELL = 31188

Looks that something gets lost, doesn't it? Everything else works fine for me (just click on my sig to test it), except of the toplist.

Any help is gladly apreciated.

Nachtfalke 05-25-2006 07:38 PM

Ive got another question: Any chance to get the Slapcount into the profile?

MSheraz86 06-03-2006 06:26 PM

^^ Yeah that's a piece of cake :D

Admin CP > Style & Templates > Style Manager > Edit Templates (for the skin in which you wish to apply the code into) > Member Info Templates > MEMBERINFO.

Add this code wherever you want the slap count to be in the profile.

Code:

$vbphrase[slap_slaps]: $slapcount
Unfortunately I have a MODIFIED Profile so I cannot say exactly where it would be best suited etc or even give an example.

P.S. Great to see you back HellCat, hope to see this Mod become enhanced :D.

Hellcat 06-05-2006 08:44 AM

Quote:

Originally Posted by MSheraz86
P.S. Great to see you back HellCat, hope to see this Mod become enhanced :D.

:)
Yeah, nothing speaks against enhancing it :)

Though my main focus at the moment is WMail (my vB webmailer) and vb.org stuff I will always be happy to take suggestions on features that could be added :)


And here we go with another attempt on the empty toplist.
Whoever has that problem please try this sinfo.php with an experimental fix - if this is reported to be working now I'll update the release attachment with it:
(it's not dumping debug info this time, hopefully it'll show the toplist ;))

Nachtfalke 06-05-2006 11:08 AM

Quote:

Originally Posted by Hellcat
:)
it's not dumping debug info this time, hopefully it'll show the toplist ;)

The hope is dying the very last ;).
Renamed your attached File to sinfo_test.php and uploaded it into my forum root. But still no toplist is showing up ... it is still showing the same as the original sinfo.php, a blank page with my forum header and footer templates around it.
I whish to show my appreciation for your work. I am pretty sure that you will solve this problem. Keep on rolling, man! If I can help you out with anything, simply drop me a line!

Hellcat 06-05-2006 03:14 PM

Damn, that should have done it :(

Can you try this one:

Nachtfalke 06-05-2006 04:56 PM

Sorry to be the bad news bringer, but no change at all. Renamed your attached file to sinfotest3.php and upped it into my forumroot.
See it yourself here!
you can still see the previous version here and the var dump file here!

Hellcat 06-05-2006 05:10 PM

*lol*

This could be good news: It look working fine for me! :)
http://www.starbase-reloaded.de/base...php?do=toplist

You didn't ad the "?do=toplist" - that couldn't work :D

I guess the "Blubber bla" stuff comes from somewhere on your site, right?

Nachtfalke 06-05-2006 05:28 PM

D'oh! *slapshimself* Is this possible? I must have had a bit to less sleep. Sorry for beeing a menace!
Of course the blah and blubb comes from a template test somewhere.
So how to go on right now? rename sinfotest3.php to sinfo and all will be working? this would be awesome!
Danke für deine Bemühungen, Micha! (just saw you're german, too ;-) )

Hellcat 06-05-2006 07:38 PM

Quote:

Originally Posted by Nachtfalke
D'oh! *slapshimself*

Clicking your own link in your sig? That's prevented by the cheat protection :p


Quote:

Originally Posted by Nachtfalke
Sorry for beeing a menace!
Of course the blah and blubb comes from a template test somewhere.
So how to go on right now? rename sinfotest3.php to sinfo and all will be working? this would be awesome!

No prob, we figured out, didn't we? :)
Yup, just rename the last .php to sinfo.php and you're set.
I'll prepare an updated release .ZIP with it and upload it later tonight.


Quote:

Originally Posted by Nachtfalke
Danke f?r deine Bem?hungen, Micha! (just saw you're german, too ;-) )

Kein Problem :)
"Mr. O'Brien, set course to starbase 49" :cool:

Hellcat 06-06-2006 12:00 AM

Yay!
  • Finally fixed the issue with the empty top10 list, it seems!
    So, everyone the top10 is not working for (getting only the empty page) grab the current version and try again.
  • When sinfo.php (or whatever you renamed it to) is called without any parameters it now also shows the top10

Happy slapping

Nachtfalke 06-06-2006 05:00 AM

...what shall I say? Your're the man, Mike! :banana:

So now that we figured it out, how about spicing things up a bit? The toplist is very small if you have a big screen resolution. How about showing things like User's avatar, last slap etc?. Just my two cents.
I'll keep my eye on this hack, since my users seem to like it!

Hellcat 06-08-2006 08:21 AM

Howdy :)

[high]Concerning vBulletin 3.6 (beta 1):[/high]
This seems to be working fine under vB3.6b1.

At least I didn't encounter any problems while testing ;)

lsgworldl 06-22-2006 05:31 PM

I have a gap unfer mine

http://quickcheatcodes.com/forum/showthread.php?t=4587

rb290 07-19-2006 11:31 PM

The Top 10 List isnt working for me :S ?

rinkrat 12-17-2006 04:10 PM

Quote:

Originally Posted by croportal (Post 899473)
where can i view demo, thanks



Use the "Do not click here" link in my sig. ;)

Talisman 12-18-2006 03:58 AM

I just installed this hack and it works perfect on vB 3.6.4.!! But... instead of getting slapped, my members are going to get spanked. Ha! <evil grin>

If anyone else wants to change theirs to another term (i.e., punked, swatted, flicked, slammed, flogged, or anything else) it's real easy. Just do a text search and replace on the php file and the xml file before you install. Change all forms of slapping, slapper, slapped, and slap in both upper and lower case and you've got it covered.

:bunny:

PinkDaisy 02-17-2007 12:17 PM

Does this work with 3.6.4 anyone know ??

Jamie1 03-22-2007 06:50 PM

Looks amazing and alot of fun
/Jamie1 installs/

Jeordie015 05-26-2007 12:21 PM

How would one edit this so that a slap will only count if the person who clicked the link is a logged in user?

Jamie1 08-15-2007 03:29 PM

Just Wondering

Is it possible or is there a code that allows someone to slap them from there postbit i.e Im User number 1 on my forum and i want people to slap me via link in postbit.

At the moment i have:
<div>
<a href="http://www.habsieforum.net/sinfo.php?u=$post[id]">Slap Me!</a>
</div>

But its not working for some reason

Mrdby 11-17-2007 12:25 PM

demo?

iJoe 11-18-2007 01:29 AM

i dont think its gnna work with vb 3.6.?

gonna try though

you dont need a demo :P each user has a link, they get people to click it, they get "slapped" its a great way to get new members and good fun

edit: This works with VB 3.6.8 :D

mrjefferson75 11-18-2007 05:27 AM

im lost guys i installed it i have the top ten list but how do i get to the you been slapped page?
do i have to make this page? sorry total newbie

update figure that out now cant figure out how to change the message from you been slapped to you been +++++ slapped?

alexgeek 12-24-2007 01:59 AM

This is great, thanks mate!


All times are GMT. The time now is 09:44 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.01317 seconds
  • Memory Usage 1,830KB
  • 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
  • (4)bbcode_code_printable
  • (7)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
  • (40)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