Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Friendster style hyperlinked profile fields Details »»
Friendster style hyperlinked profile fields
Version: 1.03, by buro9 buro9 is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.0.3 Rating:
Released: 02-01-2004 Last Update: Never Installs: 43
 
No support by the author.

No longer supported by the author.

Show Your Support

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

Comments
  #12  
Old 05-06-2004, 04:05 PM
moley's Avatar
moley moley is offline
 
Join Date: Sep 2002
Location: England
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seems like a great hack i'll be adding this later tonight.
Reply With Quote
  #13  
Old 05-08-2004, 02:32 AM
Fluous Fluous is offline
 
Join Date: Apr 2004
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should make it so things via the Search Panel can be done like this. Like sometimes I remember a persons instant messenger, and not the thread. So it takes forever to search it. It would be handy to be able to search their messenger and other profile information like DOB and anything applicable into the search part. And if something was added it would automatically add it into the search box. That part would be a little complicated though lol.
Reply With Quote
  #14  
Old 05-14-2004, 11:42 PM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just did this to my 3.0.1 forum and it did not do any thing. The entered text is not a link at all.

Any thoughts?

Thanks.
Reply With Quote
  #15  
Old 05-15-2004, 10:42 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mobo
I just did this to my 3.0.1 forum and it did not do any thing. The entered text is not a link at all.

Any thoughts?

Thanks.
There's only two changes, so I can't imagine what the problem is, but have you made both changes? Uploaded the files? Stated that the fields are searchable in the control panel? etc?

If you've done all of the above, then send me an e-mail with the file attached and I'll look into why it didn't work: d a v i d @ b u r o 9 . c o m

Cheers

David K
Reply With Quote
  #16  
Old 05-15-2004, 08:00 PM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, did both parts and uploaded the file. Not sure why it's not working. I also set all the profile fields to searchable in the User Profile Fields options via the Admin CP. I'll email you the file that I have.

Thanks for the help.
Reply With Quote
  #17  
Old 05-15-2004, 08:07 PM
MaxScript MaxScript is offline
 
Join Date: Sep 2003
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i third this 301
Reply With Quote
  #18  
Old 05-15-2004, 08:50 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MaxScript
i third this 301
Yours is related to the way in which you had pasted in the code... you did not keep the linebreaks, so my "// HACK : START" comment then comments out the entire hack.

You need your entire custom profile fields block to be exactly this:

PHP Code:
// *********************
// CUSTOM PROFILE FIELDS

// HACK : START : FRIENDSTER STYLE LINKS
//$profilefields = $DB_site->query("
//  SELECT profilefieldid, required, title, type, data, def, height
//  FROM " . TABLE_PREFIX . "profilefield
//  WHERE form = 0 " . iif(!can_moderate(), "
//    AND hidden = 0") . "
//  ORDER BY displayorder
//");

$profilefields $DB_site->query("
  SELECT profilefieldid, required, title, type, data, def, height, searchable
  FROM " 
TABLE_PREFIX "profilefield
  WHERE form = 0 " 
iif(!can_moderate(), "
    AND hidden = 0"
) . "
  ORDER BY displayorder
"
);
// HACK : END : FRIENDSTER STYLE LINKS

while ($profilefield $DB_site->fetch_array($profilefields))
{
  
exec_switch_bg();
  
$profilefieldname "field$profilefield[profilefieldid]";
  if (
$profilefield['type'] == 'checkbox' OR $profilefield['type'] == 'select_multiple')
  {
    
$data unserialize($profilefield['data']);
    foreach (
$data AS $key => $val)
    {
      if (
$userinfo["$profilefieldname"] & pow(2$key))
      {
        
$profilefield['value'] .= iif($profilefield['value'], ', ') . $val;
      }
    }
  }
  else
  {
    
$profilefield['value'] = $userinfo["$profilefieldname"];
  }
  if (
$profilefield['value'] != '')
  {
    
$show['extrainfo'] = true;
    
// HACK : START : FRIENDSTER STYLE LINKS
    
if ($profilefield['searchable']) {
      
$profileLinks explode(','$profilefield['value']);

      for (
$ii 0$ii count($profileLinks); $ii++) {
        
$profileLinks[$ii] = '<a href="memberlist.php?do=getall&'.$profilefieldname.'='.urlencode(trim($profileLinks[$ii])).'">'.$profileLinks[$ii].'</a>';
      }

      
$profilefield['value'] = implode(','$profileLinks);
    }
    
// HACK : END : FRIENDSTER STYLE LINKS

  
}
  eval(
'$customfields .= "' fetch_template('memberinfo_customfields') . '";');

}
// END CUSTOM PROFILE FIELDS
// ************************* 
Reply With Quote
  #19  
Old 05-15-2004, 08:53 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mobo
Yep, did both parts and uploaded the file. Not sure why it's not working. I also set all the profile fields to searchable in the User Profile Fields options via the Admin CP. I'll email you the file that I have.

Thanks for the help.
Received the file, but in case you didn't get my reply via e-mail, here it is:

I uploaded your version of the file and it worked perfectly on my
forum. Which means that it's a setting.

Are members allowed to perform advanced searches on your boards for
other members?

Also, in the Admin Control Panel at this point:
User Profile Fields > User Profile Field Manager

Are the fields that you want hyperlinking defined as being
'Searchable'?

If users do not have permission to do an advanced search, and/or the
field isn't searchable... then it won't create the hyperlinks for you.

The hack is working though, your file worked perfectly on my forum, so
it's definately a setting rather than a code fault.
Reply With Quote
  #20  
Old 05-18-2004, 07:36 AM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

buro9, I never got the email from you so I'm glad you posted this here as well. I do have all the feilds set to searchable, but I'm not sure about the advanced search. Where do I find that. Sorry I'm a noob at VB3!!

Thanks gain.
Reply With Quote
  #21  
Old 05-18-2004, 09:06 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mobo
buro9, I never got the email from you so I'm glad you posted this here as well. I do have all the feilds set to searchable, but I'm not sure about the advanced search. Where do I find that. Sorry I'm a noob at VB3!!

Thanks gain.
You'll find the setting in the Admin Control Panel.

vBulletin Options > User Listing & Profile Viewing > Allow Advanced Searches = Yes

I think that might do it, if the fields are searchable already then this is the only option I can think of that might impact it.

Let me know how you get on... if you have trouble I'll look into it some more
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 02:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.14237 seconds
  • Memory Usage 2,324KB
  • 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
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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