PDA

View Full Version : Private Messages Enhancements - Friendster Style Profile Fields: clickable, searchable, fun!


buro9
10-10-2005, 10:00 PM
No longer supported by the author.

buro9
10-11-2005, 04:34 AM
Please report any bugs or weirdness... should be fine as it's a straight port, but I don't use multi-select or checkboxes and only performed cursory testing of that... so please let me know of any bugs that you encounter with this hack.

tanyeri24
10-11-2005, 04:43 AM
Does anyone REALLY need a screenshot of this? It's quite basic and only a small file change. Yes sir please ;)

buro9
10-11-2005, 04:52 AM
Yes sir please ;)

Pft ;)

Added as a link to the bottom of the hack above... or here:
https://vborg.vbsupport.ru/attachment.php?attachmentid=16461

tanyeri24
10-11-2005, 04:57 AM
A nicely hack dude and thx for the screeny :)
a good hack for a forum with much members thx for sharing ;)

FleaBag
10-11-2005, 12:08 PM
I know you probably don't want to hear this... But is it possible without file edits? ;)

buro9
10-11-2005, 12:23 PM
Yes :) but then you have to have additional queries... not nice.

The 'searchable' property isn't in the original query and there is no hook at that point.

Sooo... if I did it without file edits, it will add database queries. This isn't something I wanted to do at all :)

But the answer is Yes, it is possible without file edits.

Andreas
10-11-2005, 12:25 PM
You might want to suggest @ vbulletin.com to add searchable as a selected field :)

Mr Chad
10-12-2005, 02:23 AM
great idea ^^.

Neutral Singh
10-12-2005, 04:39 AM
brilliant idea, but if it could avoid dreaded file edits. :)

goodwillstacy
10-12-2005, 05:12 AM
Thanks so much for doing this. :D :D :D
stacy

michaelbenson
10-17-2005, 05:53 AM
This doesnt appear vB SEO compatable :(

Also when seperating your (for example) interests by a semi-colon the script doesnt realise that this is representive of a new interest and instead just hightlights the whole lot as one big URL.

buro9
10-17-2005, 06:52 AM
This doesnt appear vB SEO compatable :(

Also when seperating your (for example) interests by a semi-colon the script doesnt realise that this is representive of a new interest and instead just hightlights the whole lot as one big URL.

What on earth is vB SEO?

And you could always try changing the explode character from a , to a ; in this bit:

$profileLinks = explode(',', $profilefield['value']);
$profileLinks2 = explode(',', $profilefield['value2']);


I'm not sure whether that would work off the top of my head, but you could give it a whirl :)

Hacks aren't static published and closed pieces of code... you are very welcome to hack them some more to make them fit your requirements.

trackpads
10-17-2005, 08:54 AM
You might want to suggest @ vbulletin.com to add searchable as a selected field :)

Ditto, it is a good and unique idea that would be great as a standard portion of vb.

michaelbenson
10-17-2005, 03:00 PM
What on earth is vB SEO?

And you could always try changing the explode character from a , to a ; in this bit:
vB SEO is a commerical mod_rewrite product which produces content relevant URLs but for some reason when using vB SEO the script doesnt seem to load any of the correct URLs and loads to the memberlist.php page ... what about if i wanted to keep compliancy for both the , and the ; as the "explode" characters.

buro9
10-17-2005, 03:12 PM
vB SEO is a commerical mod_rewrite product which produces content relevant URLs but for some reason when using vB SEO the script doesnt seem to load any of the correct URLs and loads to the memberlist.php page ... what about if i wanted to keep compliancy for both the , and the ; as the "explode" characters.

It's a commercial mod_rewrite product?

I'm getting more confused by the second... mod_rewrite is a free download and module for apache, how is that commercial?

Is someone selling a set of .htaccess rules for vBulletin? If this is the case, then as you have paid for the product, you should ask them to adjust their rules to account for the hack.

This all sounds a bit crazy... do you actually have information on vB SEO? Is there a demo of it I can get without paying?

michaelbenson
10-17-2005, 03:32 PM
It's a commercial mod_rewrite product?

I'm getting more confused by the second... mod_rewrite is a free download and module for apache, how is that commercial?

Is someone selling a set of .htaccess rules for vBulletin? If this is the case, then as you have paid for the product, you should ask them to adjust their rules to account for the hack.

This all sounds a bit crazy... do you actually have information on vB SEO? Is there a demo of it I can get without paying?
Divulge into this seven page marathon:
https://vborg.vbsupport.ru/showthread.php?t=91362&highlight=vbseo

buro9
10-17-2005, 04:58 PM
Divulge into this seven page marathon:
https://vborg.vbsupport.ru/showthread.php?t=91362&highlight=vbseo

Wow, what a cheek... I'm going to be cheeky too... if you want to have my hack supported by vBsEo, then you should raise it in their forums. My hack does the job it's designed to do, and if you want it search engine optimised, then that is his hack, no?

michaelbenson
10-18-2005, 02:16 PM
Ok ... well this is abit petty, you asked for information pertaining to vBSEO i felt it was most appropiate to provide you with an internal link for vBSEO which was discovered after performing a search here. I was merely inquiring here first because i assumed since you designed the code you would have a better knowledge of what might be neccessary since an abundance other hacks work seemlessly with vBSEO without any additional modifications needed to be made.

moonclamp
10-29-2005, 02:28 AM
I like the idea of this.

Can you tell me if you can for a field to be clickable or not?

For instance ... if I want to have 'dislikes' as a custom field, and searchable on the memberlist ... is it possible to have it as not clickable? Then members can use sentences rather than keywords if they so choose.

noonespecial
11-11-2005, 06:18 AM
I love this hack, only thing is on my profiles I pull some of the customfields out ($userinfo[field6]) to make the layout look better; and on those that I pull out - this hack doesn't work for -- other than that, nicely done.

krvaricp
11-11-2005, 10:29 AM
Thx anyway but can you give people a text or zip file please ?

Andreas
12-01-2005, 11:37 AM
Another nice hack :)
But it has a slight problem: The URL misses the sessionhash.

buro9
12-01-2005, 11:47 AM
Another nice hack :)
But it has a slight problem: The URL misses the sessionhash.


Are you on a short tour of all hacks to raise standards and correct bugs? Or are you stalking me? ;)

I think I've just added it... please cast your eye over it as I haven't yet tested the small change I just made... which was to add $vbulletin->session->vars['sessionurl'] to the generated URL's (they get generated in the PHP file and not the template, so I don't use the shorter $session['sessionurl']).

Andreas
12-01-2005, 11:50 AM
Erm, none of both - I am just working on the next Version of my board :)

buro9
12-01-2005, 11:58 AM
Erm, none of both - I am just working on the next Version of my board :)

Cool.

I did much the same for mine.

The only thing I'm still missing is a good version of Who Quoted Me, but I think we'll be hearing about that later today.

And I've yet to get off my backside and create an AJAX based tagging system... something I actually really need.

Anyhow... did the session thing like right to you? As I said... haven't tested it, just looks right.

TundraSoul
12-01-2005, 04:18 PM
This is a very good idea for a hack. Whenever you create associations between members, you improve the forum experience. Extra queries or not, I'd use it if it was a plug-in. Hint-hint

nexus851
12-02-2005, 06:45 AM
i already implemented this however whats the code change if a user clicks on a link in the profile and shows that word not just only in that field, but in all fields... for example... lets say, field 13 was "What's your favorite food?", then when someone clicks on field 13 answer which is "anything good", it wont just look for the same answer in field 13, but in all field tables from 1 thru the field tables u have to see if any answer was "anything good" ....

I need this functionality on my website because of the profile i want to create.

buro9
12-02-2005, 07:39 AM
Another nice hack :)
But it has a slight problem: The URL misses the sessionhash.

Andreas, how could I go about requesting that the 'searchable' column gets added to the vBulletin query that I modify above?

I'd like to do the plugin version so that this is a no brainer, but I'm a performance freak and don't want to add the additional query it would require without modifying that query.

joeychgo
12-05-2005, 04:55 AM
I like this hack - Im going to install it on vb webmaster (http://www.vbwebmaster.com/forums)

PennylessZ28
01-03-2006, 01:18 AM
Installed it, doesn't do a darn thing :( very disappointed am I missing something here?

SoLo OnE
01-06-2006, 01:48 AM
Only works if you have the default memberinfo page setup since it makes a call to the customfields template.

Which makes it pretty pointless for someone who has thier custom fields located in 100000 different places. :ermm:

MiskaTorn
01-12-2006, 03:19 PM
Is there a way to set this up so that I can specify which fields will be clickable?

Also this doesn't seem to work on my edited memberinfo template.

buro9
01-19-2006, 04:34 AM
Is there a way to set this up so that I can specify which fields will be clickable?
Just set the field as unsearchable in your AdminCp
Also this doesn't seem to work on my edited memberinfo template.
That would appear to be a bug you've created ;)

buro9
01-19-2006, 04:40 AM
Ok ... well this is abit petty, you asked for information pertaining to vBSEO i felt it was most appropiate to provide you with an internal link for vBSEO which was discovered after performing a search here. I was merely inquiring here first because i assumed since you designed the code you would have a better knowledge of what might be neccessary since an abundance other hacks work seemlessly with vBSEO without any additional modifications needed to be made.


Someone on the vbSEO forum actually pointed out how to fix the hack to work with vbSEO... so I've fixed the hack to now work with vbSEO :)

Vizionz
01-19-2006, 09:01 AM
Installed it, doesn't do a darn thing :( very disappointed am I missing something here?
same for me

Vizionz
01-19-2006, 09:01 AM
Only works if you have the default memberinfo page setup since it makes a call to the customfields template.

Which makes it pretty pointless for someone who has thier custom fields located in 100000 different places. :ermm:

not true because i reverted my member info template and it still dont work

Note if only this would work this would be my favorite of all hacks i believe since it would make my profile system actually seam like a myspace friendster xanga site

JaeTea
01-19-2006, 08:42 PM
not true because i reverted my member info template and it still dont work


Once I reverted my template back..it worked fine

PennylessZ28
01-21-2006, 10:35 PM
worked for reverted template here too, so the question remains, how to make it work with modified template?

Vizionz
01-21-2006, 10:37 PM
worked for reverted template here too, so the question remains, how to make it work with modified template?
And add it so - can be used as well to seperate the links like , is doing now

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

$vbulletin->options

as

$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:

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
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
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:

noonespecial
10-10-2006, 05:18 AM
... any luck of getting this for 3.6?