vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - Friendster style hyperlinked profile fields (https://vborg.vbsupport.ru/showthread.php?t=61077)

KTBleeding 12-06-2004 09:51 PM

Quote:

Originally Posted by zennation
Took the code and hacked it so it should be able to search checkboxes etc...

Let me know if any problems...

Sorry, I'm not exactly sure what you mean?

buro9 12-06-2004 10:12 PM

Quote:

Originally Posted by KTBleeding
Sorry, I'm not exactly sure what you mean?

In my original code I had this line:
Code:

$profileLinks[$ii] = '<a href="'.$vboptions[bburl].'/memberlist.php?do=getall&'.$profilefieldname.'='.urlencode(trim($profileLinks[$ii])).'">'.$profileLinks[$ii].'</a>';
But that only hyperlinked text profile fields.

If someone defined select list or check box based profile fields, then these I believe were knackered and broken.

So zennation has added a set of nested if's to determine the type and act accordingly:
Code:

            if ($profilefield['type'] == 'checkbox' || $profilefield['type'] == 'select_multiple' ) {
                        if ($profilefield['type'] == 'checkbox') {
                                $profileLinks[$ii] = '<a href="'.$vboptions[bburl].'/memberlist.php?do=getall&'.$profilefieldname.'[]='.$profileLinks2[$ii].'">'.trim($profileLinks[$ii]).'</a>';                                                       
                        } else {
                                $profileLinks[$ii] = '<a href="'.$vboptions[bburl].'/memberlist.php?do=getall&'.$profilefieldname.'='.$profileLinks2[$ii].'">'.trim($profileLinks[$ii]).'</a>';                                                       
                        }               
            } else {   
                $profileLinks[$ii] = '<a href="'.$vboptions[bburl].'/memberlist.php?do=getall&'.$profilefieldname.'='.urlencode(trim($profileLinks[$ii])).'">'.$profileLinks[$ii].'</a>';               
            }

Which is a nice fix :)

KTBleeding 12-07-2004 01:40 PM

Ohhh, I see. Good job, zennation.

T3MEDIA 12-11-2004 11:11 PM

I installed this and what happens...

The 1st, 2,3,4 and 5th parts just go to a default member search. like all users from the begining. after that it saerches properly.
that is gender, race, location (state) and location country.

what gives? if I do anything else works like a charm. attached is what areas I mean.

T3MEDIA 12-17-2004 03:01 PM

Help? would love to know whats up!

MikaK 12-21-2004 11:16 AM

*clicks install* I noticed the multiple selection menu should be coded. Otherwise - very cool:)

-Mika

T3MEDIA 12-23-2004 04:30 PM

Quote:

Originally Posted by MikaK
*clicks install* I noticed the multiple selection menu should be coded. Otherwise - very cool:)

-Mika

any idea on how?

MikaK 12-23-2004 07:05 PM

Quote:

Originally Posted by T3MEDIA
any idea on how?

Very not:( Sorry...

Mika

T3MEDIA 12-30-2004 01:38 PM

ummm what about the people who installed this already?
>sigh< never mind... peace.

T3MEDIA 12-30-2004 02:05 PM

Doesnt work. I hit Im from New York its showing me people from Texas.
Did you try this first?
take a look yourself www.sprnch.com hit preview the site.
no mods nothing else to it.
just a straight copy and paste.


All times are GMT. The time now is 06:28 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.01165 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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