Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Love calculator Details »»
Love calculator
Version: 1.00, by dymo dymo is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-29-2002 Last Update: Never Installs: 20
Is in Beta Stage  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-30-2002, 11:17 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!)
Reply With Quote
  #13  
Old 04-30-2002, 01:41 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

  • 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!)
Reply With Quote
  #14  
Old 04-30-2002, 04:30 PM
dymo dymo is offline
 
Join Date: Jan 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 05-01-2002, 10:09 AM
dymo dymo is offline
 
Join Date: Jan 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 05-01-2002, 10:18 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #17  
Old 05-02-2002, 06:49 AM
dymo dymo is offline
 
Join Date: Jan 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 05-02-2002, 07:05 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 05-02-2002, 08:02 AM
dymo dymo is offline
 
Join Date: Jan 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 05-02-2002, 08:04 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can just run upgrade18.php from vb225 to only alter the version number (check the source)
Reply With Quote
  #21  
Old 05-02-2002, 08:17 AM
dymo dymo is offline
 
Join Date: Jan 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 03:13 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.04896 seconds
  • Memory Usage 2,333KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete