vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Private Messages Enhancements - Friendster Style Profile Fields: clickable, searchable, fun! (https://vborg.vbsupport.ru/showthread.php?t=98109)

PennylessZ28 01-27-2006 06:17 PM

bumpdigity.

Anything new with this? I might look the code over so I'm gonna download it now.

woofytalk 03-22-2006 03:38 AM

This question may be ridiculous. How can i remove the underline from the newly created links after implementing this hack?

pcoskat 03-22-2006 11:23 AM

What a brilliant hack! Brilliant, brilliant! My members will LOVE this.

MissKalunji 03-23-2006 03:27 AM

so does this work now?

Logician 03-29-2006 05:57 AM

Very nice hack and works perfectly! Thanks for sharing.

A few notes:

1- It even works in vb 3.0.x as it is. All you need to do is change

PHP Code:

$vbulletin->options 

as

PHP Code:

$vboptions 

in the hack code. (there are 2 instances, change both!) No other changes required.

2- If you can't make the hack work (in 3.0.x OR in 3.5.x), remember to set some of your user profiles fields as "searchable" in your admin cp. (admin cp/profile field manager/click profile field name/set "Field Searchable on Members List" as yes.

Logician 04-04-2006 08:42 PM

Another note:

I added this section:

PHP Code:

 elseif ($profilefield['type'] == 'radio' OR $profilefield['type'] == 'select')
{
 
 
$data unserialize($profilefield['data']);
foreach (
$data AS $key => $val)
{
$key++;
if (
$val== $profileLinks[$ii])
{
$radiovalue $key;
break;
}
}
 
if (
$profilefield['optional'] AND $radiovalue == '')
{
$radiovalue $profileLinks[$ii];
}
$profileLinks[$ii] = " <a href='".$vboptions['bburl']."/memberlist.php?".$vbulletin->session->vars['sessionurl']."do=getall&amp;".$profilefieldname."=".urlencode(trim($radiovalue))."'>".trim($profileLinks[$ii])."</a> ";


before
PHP Code:

 else 
{
$profileLinks[$ii] = " <a href='".$vboptions['bburl']."/memberlist.php?".$vbulletin->session->vars['sessionurl']."do=getall&amp;".$profilefieldname."=".urlencode(trim($profileLinks[$ii]))."'>".trim($profileLinks[$ii])."</a> ";


and it fixed a bug with radio and select profile fields.

This is for 3.0.x, NOT 3.5 though but I believe same fix should apply to 3.5 versions (but I did NOT test it!). However $vboptions parts in the code above should be $vbulletin->options. Obviously buro9 can advise better.

MissKalunji 04-04-2006 10:34 PM

would that work with the custom profile? or only the vb default?

noonespecial 05-21-2006 10:14 AM

Doesn't work right with radio buttons.

I also pull out a few of my custom fields via $user[fieldx] - and doing this means they're not parsed with this code. Any way to fix this?

futuredood 06-28-2006 02:00 PM

ah, i would love for this to work. i'm running 3.5.4 with a customized memberinfo template. i get this error, can anyone advise?

Parse error: parse error, unexpected $ in /home/usedhiph/public_html/member.php on line 681

futuredood 06-29-2006 05:01 PM

Quote:

Originally Posted by HR3rdGen
worked for reverted template here too, so the question remains, how to make it work with modified template?

has anyone came up with a solution to this? i actually got it to work on 3.5.4 on original templates, but not modified templates :cross-eyed:


All times are GMT. The time now is 08:48 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.01174 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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