vBulletin Modifications

Friendster Hack Tweaking

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 08-30-2006, 07:21 PM   #1
vB Newbie
Join Date: Jul 2006
deadhobo is on a distinguished road

Default Friendster Hack Tweaking

Hi there, this one will hopefully be pretty quick & easy. The hack in question is "Friendster Style Profile Fields: clickable, searchable, fun!" (http://www.vbulletin.org/forum/showthread.php?t=98109). If you don't have access to vB.org or don't know the mod, don't fret, its more of a VB question than a specific mod question.

Anyway, I have installed the hack and its working great... only issue is some of the searches aren't quite right. I have determined the issue arises from non-text fields, such as gender. For example,
You must first be a registered member to view any code.
does not work, because it is a drop down list and thus needs to be
You must first be a registered member to view any code.
Below is the code for the relevant section of the mod (slightly modified) for those not wanting to download it just to help me ;).
You must first be a registered member to view any code.

Any help would be greatly appriciated, as I am stumped.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-31-2006, 07:57 AM   #2
vB Newbie
Join Date: Jul 2006
deadhobo is on a distinguished road

Default

Polite bump as I am still clueless. I would think that something like if "$ii = field 16 then use =3 instead of =junior" would work, but I have no idea on how to implement it...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-31-2006, 12:52 PM   #3
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

You could put in the the php:
if ($_REQUEST['field16'] == '3')
{
$_REQUEST['field16'] = 'junior';
}




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-31-2006, 08:43 PM   #4
vB Newbie
Join Date: Jul 2006
deadhobo is on a distinguished road

Default

Quote:
Originally Posted by rogersnm
You could put in the the php:
if ($_REQUEST['field16'] == '3')
{
$_REQUEST['field16'] = 'junior';
}
Thanks for your time, but unfortunately it doesn't seem to work . I don't know much about PHP or vBulletin code so take this as a grain of salt, but I think "$_REQUEST" needs to be something more like $profilefield or something. I tried just changing it to that, but no good.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-31-2006, 11:19 PM   #5
vB Newbie
Join Date: Aug 2004
Sniper is on a distinguished road

Default

http://www.vbulletin.org/forum/showthread.php?t=120833 took some time but seem to work fine




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2006, 06:24 AM   #6
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Quote:
Originally Posted by deadhobo
Thanks for your time, but unfortunately it doesn't seem to work . I don't know much about PHP or vBulletin code so take this as a grain of salt, but I think "$_REQUEST" needs to be something more like $profilefield or something. I tried just changing it to that, but no good.
Nah, $_REQUEST is when you put x=y on the end of the url because you can then put:
You must first be a registered member to view any code.
And that will echo the contents of y. Of course that does depend on how you have it all set up in that hack.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2006, 07:46 AM   #7
vB Newbie
Join Date: Jul 2006
deadhobo is on a distinguished road

Default

Quote:
Originally Posted by rogersnm
Nah, $_REQUEST is when you put x=y on the end of the url because you can then put:
You must first be a registered member to view any code.
And that will echo the contents of y. Of course that does depend on how you have it all set up in that hack.
Ah, well perhaps I put it in the wrong place then... where should it go?

Just to claify, this would *replace* the =junior with =3, right? I tried just tacking on =3 to the end of the url when I didn't understand what the problem was, and it didn't work.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2006, 06:12 PM   #8
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

What
You must first be a registered member to view any code.
does is the other way around. You want:
You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hack Installs / Working - Suggestion VirtualBurn Site Feedback 11 08-16-2006 05:01 PM
Install System Part 2 Ken Iovino Announcements 10 05-19-2005 11:40 AM


All times are GMT -3. The time now is 04:55 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)