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)

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


All times are GMT. The time now is 11:29 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.01200 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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