vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   online dating hack - need some help with profile fields. (https://vborg.vbsupport.ru/showthread.php?t=97874)

T3MEDIA 10-08-2005 12:18 PM

online dating hack - need some help with profile fields.
 
I am almost finished on a online dating add on for vB (actually it works) but not the way I want it to...

Oh KAY! Multiple selection boxes are like to the ^2 so...
Asian = 1
Black = 2
Cauc = 4
India = 8 and so on.... Now I made some code but its not doing the desired results.
PHP Code:

// Race
              
if(($bbuserinfo['field23'] != '') AND ($bbuserinfo['field23'] != 1)) 
              {
              
$attractionrace $bbuserinfo['field23']/2;
              }
              else
              {
               
$attractionrace $bbuserinfo['field6'] ;
              } 

I drop $attractionrace into my SQL query...
PHP Code:

AND ".TABLE_PREFIX."userfield.field6'$attractionrace' 

but what happends is... if for example you pick your attracted to 'Asians' ;) and Indian's (which would result in the number 9) my search results only bring back members who are MIXED with Asian and Indian not all Asians and All Indians... How do I fix that? I assumed doing 1,8 but that obviously does not work. The amount of variations is like winning at the horse races so I rather do it with variables instead of hard coding.

To be honest that is the only glitch, I will release the file as beta soon. No vb php is needed to hack and there is minor template work.

Flow Fusion 11-24-2005 01:45 PM

I'll pray for the release. Wish I knew how to code.

Flow Fusion 12-23-2005 11:30 AM

Are you going to release this?

T3MEDIA 01-01-2006 10:06 AM

Flow sorry I didnt get any advice so I dropped it and went with differnt software altogether. Maybe you will have better luck if you befriend someone on here.


All times are GMT. The time now is 01:49 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.01075 seconds
  • Memory Usage 1,719KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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