vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Love calculator (https://vborg.vbsupport.ru/showthread.php?t=38058)

dymo 04-29-2002 10:00 PM

Love calculator
 
simple hack, its not completely done I still want to add in avatar support and a few other small peice to it, but the core works

Its fairly simple it use a small calculation based on the users name and calculates a % of possible love, this could be used also as a hate calculator or whatever you want it calculate.

note i didnt write the algorythum i had it in a list of older scriptlets I collected I dont know who wrote the original peice so sorry to that person i cant give you credit

create a new template called "loveme"

insert the following
PHP Code:

<html>

<
head>

<
title>$bbtitle Is there love?</title>

$headinclude

</head>

<
body>

$header

<table cellpadding="2" cellspacing="0" border="0" width="95%"  align="center">

<
tr>

        <
td width="100%"><img src="https://vborg.vbsupport.ru/images/vb_bullet.gif" alt="" border="0" align="absmiddle">

        <
normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt;

       
is there love?</b></normalfont></td>

</
tr>

</
table>

<
br>



<
table cellpadding="0" cellspacing="0" border="0"  width="70%" align="center"><tr><td>



<
table cellpadding="10" cellspacing="0" border="0" width="100%"><tr>
      <
td
        <
table width="100%" border="0" cellspacing="0" cellpadding="0">
          <
tr
            <
td$name1 and</td>
            <
td>$name2 $post[avatar]</td>
            <
td>have $amount love between them</td>
          </
tr>
        </
table>
        <
table cellpadding="4" cellspacing="1" border="0" bgcolor="#0A293E" width="100%"
        <
tr>

    <
td colspan="5" bgcolor="#1D6AA0"><normalfont color="#EEEEFF"><center><b></b></center></normalfont></td>

  </
tr>



  <
tr>
<
div align="center">

 </
div>
$footer
</body

edit the post the postbit template and find

PHP Code:

<!-- $ post[yahooicon] --> 

add below it

PHP Code:

<a href="loveme.php?s=$session[sessionhash]&name1=$bbuserinfo[username]&name2=$post[username]&calculate=love">
<
img src="https://vborg.vbsupport.ru/images/loveme.gif" border="0" alt="Is there Love in the Air?"></a

copy the attached file loveme.php to your forums directory

Neo 04-30-2002 04:05 AM

What the...... picture?

dymo 04-30-2002 04:20 AM

http://gamer-networks.com/forums/images/loveme.gif
forgot to attach the image for the loveme icon

here is a Sc of what it looks like in operation

http://gamer-networks.com/forums/images/loveme.jpg

JulianD 04-30-2002 05:34 AM

It's kinda fun :p

Lesane 04-30-2002 05:59 AM

hehe cool :D

DWZ 04-30-2002 08:28 AM

So, does it work out your and the person's button you click "love"

or do you click "love" and enter a name?

ie. If I clicked joe's "love" button, will it show me and joe, or joe and a username I enter?

BigJohnson 04-30-2002 09:29 AM

nice hack

CeleronXL 04-30-2002 09:58 AM

LMAO, funny hack! :p What if everyone who goes to your forum is currently a guy....? :rolleyes:

Floris 04-30-2002 10:30 AM

Way cool! :)
I will surely follow this development, installing on test board now. brb.

Why use: src="https://vborg.vbsupport.ru/images/loveme.gif ?

[update]
Quote:

Originally posted by NTLDR


dymo means use { imagesfolder }, but when replacements are typed in the apear replaced in the message hence it became https://vborg.vbsupport.ru/greentek :D

I kind of figured that. he can fix that by putting:
[I][/I]
in between {[I][/I]..}

NTLDR 04-30-2002 10:33 AM

Quote:

Originally posted by xiphoid
Why use: src="https://vborg.vbsupport.ru/images/loveme.gif ?
dymo means use { imagesfolder }, but when replacements are typed in the apear replaced in the message hence it became {imagesfolder} :D

Floris 04-30-2002 11:17 AM

Installation instructions (also included in .zip file + screenshots & templates)

I have made a little alternation, so the file can be called without an action, and with the action help. (both result in the same help page)
And I have made a better integration with vBulletin, so users dont get a broken nested table. Hope that helps a few.

Note: Dymo, I just LOVE your hack, and I will use it on my forum @ http://www.creations.nl/ and you are free to use my modifications. Enjoy! Hope this helps you and others.

Step 1: (Modify loveme template)
Replace the content of current loveme template with the content of the file: loveme template.txt file from .zip

Step 2: (Add loveme_help template)
Add a new template called: loveme_help (content is in loveme_help template.txt file from .zip)

Step 3: (Modify postbit template)
In postbit template, find:
Code:

name1=$bbuserinfo[username]&name2=$post[username]&calculate=love
and replace with:
Code:

name1=$bbuserinfo[username]&name2=$post[username]&calculate=love&action=loveme
Save the postbit template!

Step 4: (Upload loveme.php)
Upload (and overwrite) loveme.php to forum root

Done!

let me know what you think :)
It works perfectly on my forum. Though I get a lot of 0% and 14,5% results - with both this version and your original version (same calculation code!)

Floris 04-30-2002 01:41 PM

  • Feature suggestions/requests:
  • Do not show loveme.gif image when post user is user who views the thread
  • Make alternative msg if the end user tries to 'love' himself (even though this might be obsolete with above suggestion)
  • Make the img/link appear in memberlist or profile of a member too?
  • Option for the admin control panel to turn the feature to display in the forum on/off (so we can use it only with valentine or whatever reason an admin might have for it)
  • Option for the admin control panel to modify the images/texts (like loveme.gif location) and (like alternative txt for users who try to love themself) and (see next suggestion)
  • Some kind of pre-set so when it is 0% - oops, hope this is not hate, 100% - time to get married! -- stuff like that.
Hope you like a few of the suggestions, (I can understand some are more wanted then others.) And hope you can create a few (I will try too!)

dymo 04-30-2002 04:30 PM

some nice ideas for it, i will look at implementing them tommorrow

On friday I am gonna shoot to release an E-pack for Vb, its an entertainment pack, which contains the two game style hacks love me and the 8ball as well as four more simple single player style games.

i will post some updates later tonite for the individual peices.
i looked at xiphoid update not bad works very well, and the ideas he had some are very usable and easily doable, but i probably wont add the admin features to the individual release but to all the Epack instead, why do the work twice :)


Dymo

dymo 05-01-2002 10:09 AM

ok here is what i have done already

Admin option to turn the love on or off will display a sorry the love is off template, but still shows the image

added custom message for a user who trys to love himself, with admin option to change that message

better error correction and corrected the check for logged in user.

added custom message for users who have 0% love
there is no way to have 100% love :) 99% is the max 100% would require duplicate names and would give the stop loving yourself message

adding support to record the number of times a user loves and a top 10 loving users list :)~ i got bored
i will post the installer in a bit

Floris 05-01-2002 10:18 AM

One word: Sweeeeeet

I am happy to see that you still complete this one, as a seperate hack, since I might not have an interest in all the other stuff (or not all of them).

You have one a lot of work, let me know when I can download the update! :)

dymo 05-02-2002 06:49 AM

sorry this has gotten pushed back our board was attacked last nite and a ton of password reset so we restored from a 2 day old backup but in so doing i lost all the templates i had done as well as the admin tool inserts, so i will have to re do those again, but priority is to find out how they got in and comprimised the board

Floris 05-02-2002 07:05 AM

Wow,
I am sorry to hear that. I do hope you can find and procecute the hackers/crackers or however those lame abusers want to call themselves.

Happy that you had a backup :> And I hope you find out that it isn't a bug in vB 2.2.5 :>

Take your time, because the current version we can download works just fine :)


[update 4 mins later]


Ah, I think I know what went wrong.
You have an old vBulletin version! vB 2.2.1
There are like 5 exploits out there for vBulletin, download vB 2.2.5 from vBulletin.com "Members Area" and upgrade A.S.A.P.! They probably did some cross site exploiting or maybe through upload exploit with php older then 4.1.2 (or whatever, see vBulletin.com announcements and php.net announcements) - If it was php, inform your provider.

Also, .htpasswd/.htaccess your /admin/ & /mod/ directory, so they can't exploit and then login as an administrator. Also, check the admin log and write down all the IP's. Maybe you also want to have a copy of the hacked board in .sql so you can go through that with notepad or ultraedit or whatever, and find IP's from users who just signed up, (and admin log) and compare those against the servers syslog.

vBulletin 2.2.5 announcement thread.
PHP Vulnerability -- File Uploads thread.

vBulletin.com members area
php.net Vulnerability security release (www.php.net for sources)


Hope this helps.

dymo 05-02-2002 08:02 AM

its actually 2.2.5 code just on a 2.2.1 db thats been heavily moddified i just havent had the patience to go thru and look for the var for the version info

Floris 05-02-2002 08:04 AM

You can just run upgrade18.php from vb225 to only alter the version number (check the source)

dymo 05-02-2002 08:17 AM

worked perfect thanks, i already patched two known exploits used by passing template info thru the global, just add a line to clear the template cache array, and the memberlist hack both i already fixed but i am still not sure how they managed to get in, but i have alot of logs to use to find out

Floris 05-04-2002 08:14 PM

How is the process on the updated version going?

ZiRu$ 05-06-2002 08:39 PM

Quote:

Originally posted by xiphoid
How is the process on the updated version going?
yes I will install when the update is done too!

Can't Wait :)

Floris 05-06-2002 08:47 PM

/me stamps his feet to the ground!

By the way, did you found out who hacked your board? And can you maybe give us some info on how you are taking this guy down for hacking?

GenSec 05-07-2002 09:58 AM

It' s nice. Just changed % to USD. :laugh:
More close to real life...

dadymac 05-09-2002 05:27 AM

xiphoid, i put yours in on top of the original, like u said, every now and then it gives blank pages.

any idea?

Floris 05-09-2002 08:01 AM

Then you didn't call the right function, probably, did you also find/replace the code? And alter templates?

Floris 05-09-2002 08:02 AM

*food for thought* (or otherway around) hehe

Maybe it is because some users have spaces in their name or other characters that are filtered out? Which might cause the script to end up with a blank space, go check if you can reproduce the error and try to notice what differs from the URL

ZiRu$ 05-12-2002 09:03 PM

still nothing yet? Any estimated time on when this will be up?

Floris 05-14-2002 10:01 AM

*when its done*

dymo 05-18-2002 11:13 PM

repost of what i said on the irc notifier, i have been on the road for awhile and just getting back into the swing of coding again, i had a major update complete before our boards were attacked, xiphod knows more about that issue, but the persons who attacked the board once realising they could steal the database as it was too large 120meg :) decided to destroy the coding we had and erased all my tempaltes, luckily i had backups of a few of the changes but not all, and it has taken alot of time to pretty much recode everything we had done before, but i feel better with what i have now, and i really hope to have a full updated and final release within 48 hours latest from now.

dymo

Floris 05-20-2002 06:49 AM

*I hate abusers*

ZiRu$ 05-22-2002 03:08 AM

will be waiting anxiously

tchk 06-02-2002 10:00 PM

so funny....haha...

Mono 10-02-2002 03:09 AM

Can you tell me how exactly it determines the love percentage? My members are getting curious and I dont know how to answer.

Talisman 10-13-2002 09:41 PM

That's the end of the thread? No one has released it in final form?


All times are GMT. The time now is 11:17 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.01289 seconds
  • Memory Usage 1,834KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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