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
  #32  
Old 11-16-2004, 06:34 PM
Tru Smiles Tru Smiles is offline
 
Join Date: Jan 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to install this hack, but unfortunetly I have another hack that seems to be clashing with the code. Where your code says "iif(!can_moderate(), " mine says "iif(!($permissions['genericpermissions'] & CANSEEHIDDENCUSTOMFIELDS)," - I've tried overwriting and including it in the code, but I get a parse error. I'm using 303 so maybe its just that and not my code? >_>
Reply With Quote
  #33  
Old 11-16-2004, 09:33 PM
KTBleeding's Avatar
KTBleeding KTBleeding is offline
 
Join Date: Feb 2004
Location: Tooele, UT
Posts: 756
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tru Smiles
I'm using 303 so maybe its just that and not my code?
Yes, it is because of 3.0.3 Dissapointing cause I loved this hack. Anyone know how to update it for 3.0.3?
Reply With Quote
  #34  
Old 11-17-2004, 04:53 PM
Tru Smiles Tru Smiles is offline
 
Join Date: Jan 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oooh, we have to start a petition to get it for 303!!
Reply With Quote
  #35  
Old 11-19-2004, 12:12 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tru Smiles
Oooh, we have to start a petition to get it for 303!!
It's coming next week

Dead computer prevented me from responding sooner

And they way to get it is to ask as KTBleeding did
Reply With Quote
  #36  
Old 11-20-2004, 08:36 AM
Tru Smiles Tru Smiles is offline
 
Join Date: Jan 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by buro9
It's coming next week

Dead computer prevented me from responding sooner

And they way to get it is to ask as KTBleeding did
I love you
Reply With Quote
  #37  
Old 11-27-2004, 09:44 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tsk people.

I've updated it for you... but really... you could have done that yourself

It was only a one word change!

Anyhow... it's now 3.0.3 supported... the mod has been edited to reflect this.
Reply With Quote
  #38  
Old 11-27-2004, 11:37 PM
KTBleeding's Avatar
KTBleeding KTBleeding is offline
 
Join Date: Feb 2004
Location: Tooele, UT
Posts: 756
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works just as well as before. Thanks again buro.
Reply With Quote
  #39  
Old 11-30-2004, 07:49 AM
Tru Smiles Tru Smiles is offline
 
Join Date: Jan 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank yoooooouuu ^___^ Works great!
Reply With Quote
  #40  
Old 12-06-2004, 09:29 PM
zennation zennation is offline
 
Join Date: Dec 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Took the code and hacked it so it should be able to search checkboxes etc...

Let me know if any problems...

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; 
		$profilefield['value2'] .= iif(isset($profilefield['value2']), ',') .vb_number_format($key+1); 		
      } 
    } 
  } 
  else 
  { 
    $profilefield['value'] = $userinfo["$profilefieldname"]; 
  } 
  if ($profilefield['value'] != '') 
  { 
    $show['extrainfo'] = true; 
    // HACK : START : FRIENDSTER STYLE LINKS 
    if ($profilefield['searchable']) { 
      $profileLinks = explode(',', $profilefield['value']); 
      $profileLinks2 = explode(',', $profilefield['value2']); 
      for ($ii = 0; $ii < count($profileLinks); $ii++) 
	  { 
	    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>'; 		
	    }
      } 

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

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

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

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...
If others can confirm that this works for them, I'm happy to merge it back into the first post/ hack and to add you to the hack credits

Thx btw... this is how I like vb.org to work... that anyone feels that they can improve or extend hacks I make and feed those changes back in
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 07:08 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.10209 seconds
  • Memory Usage 2,311KB
  • 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_code
  • (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
  • (4)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