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


All times are GMT. The time now is 08:40 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.01212 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)bbcode_php_printable
  • (2)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