YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Page Index Toggle Pages: 1
Topic Tools
 
Facebook usernames don't work in profile (Read 5,350 times)
 Jun 25th, 2009 at 6:24am
There are no actions to perform.  

cepheid 
Senior Member
****
Offline
Posts: 516


None
Facebook usernames don't work in profile
Facebook now has usernames, not just numeric IDs, but putting in a username in the profile field doesn't work - the resulting URL isn't valid (Facebook just redirects to the home page).

There should probably be a checkbox for "numeric ID" versus "username" ... either that, or just check to see: if the field is entirely numeric, use the "id=XXX" form of the URL; otherwise, use the username portion.

(It's actually hard for someone who has picked a username to even find their numeric ID!)

The help files would need updating, too.
 
WWW  
IP Logged  
 Reply #1 - Jun 25th, 2009 at 10:09am
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,625
Land of the Blazing Sun!


None
Re: Facebook usernames don't work in profile
Ummm -

Duly noted but not a bug IMO. It doesn't affect YaBB functionality or cause any errors.

Its not a 'bug' when your software needs a fix due to a change in a third parties site.  It should go on a 'could use a fix when possible' suggestions for maintenance list.

Just not a bug
(what NO 'bug' Smiley?)



http://knol.google.com/k/vinayak-rao/bug-life-cycle-defect-reporting-in-sdlc/2q3...


Smiley
 
I find your lack of faith disturbing.
jonbservergeek  
IP Logged  
 Reply #2 - Jun 25th, 2009 at 10:11am
There are no actions to perform.  

cepheid 
Senior Member
****
Offline
Posts: 516


None
Re: Facebook usernames don't work in profile
JonB wrote on Jun 25th, 2009 at 10:09am:
Duly noted but not a bug IMO. It doesn't affect YaBB functionality or cause any errors.

No, but we don't really have a forum for "the functionality has changed and needs updating" ... so this was the best place for it.  I think.

Heck, even Corey posted a "not a bug" thread in the Bugs forum last night!
« Last Edit: Jun 25th, 2009 at 10:11am by cepheid »  
WWW  
IP Logged  
 Reply #3 - Jun 25th, 2009 at 11:59am
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,625
Land of the Blazing Sun!


None
Re: Facebook usernames don't work in profile
I agree, and I also looked for a Maintenance "place", we probably need a Board for 2.x maintenance as there will be others.

- BUT (LOL) you didn't post as "Not a Bug".  Smiley

Smiley




 
I find your lack of faith disturbing.
jonbservergeek  
IP Logged  
 Reply #4 - Jun 26th, 2009 at 6:42pm
There are no actions to perform.  

deti 
Legacy Dev Team
Development Team
****
Offline
Posts: 2,650
Prien am Chiemsee, Germany


None
Re: Facebook usernames don't work in profile
How must the URL look like for numeric id's and how for non numeric?
 
Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
WWW  
IP Logged  
 Reply #5 - Jun 26th, 2009 at 7:11pm
There are no actions to perform.  

cepheid 
Senior Member
****
Offline
Posts: 516


None
Re: Facebook usernames don't work in profile
For numeric IDs, it looks just like it is coded now (with the profile.php/id=XXX)... for usernames, it looks like http://www.facebook.com/username (so no id=XXX).

The simplest fix is probably something like:
Code Select All
$facebookURL = "http://www.facebook.com/" . (($fbID !~ m~\D+~) ? "profile.php/id=" : "") . $fbID 



That way, if the ID is entirely numeric, it uses the id= version of the URL... if the ID contains any non-numeric characters, it's a username and the id= stuff is omitted.  Obviously the variable names need to be the correct ones... I haven't looked through the code to find the right ones. Smiley
« Last Edit: Jun 26th, 2009 at 7:14pm by cepheid »  
WWW  
IP Logged  
 Reply #6 - Jun 26th, 2009 at 7:30pm
There are no actions to perform.  

deti 
Legacy Dev Team
Development Team
****
Offline
Posts: 2,650
Prien am Chiemsee, Germany


None
Re: Facebook usernames don't work in profile
New Profile.pl in SVN.

Thanks cepheid.
 
Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
WWW  
IP Logged  
 Reply #7 - Jun 26th, 2009 at 7:54pm
There are no actions to perform.  

cepheid 
Senior Member
****
Offline
Posts: 516


None
Re: Facebook usernames don't work in profile
deti wrote on Jun 26th, 2009 at 7:30pm:
Thanks cepheid.

No problem.  The subtext will need to be modified, too, though... since the URL may or may not be the "id=" one, the gray text above the box may or may not be correct.  The help files also need an update to explain that either usernames or numeric IDs work.

If you don't get to it first, I'll try to do that later today.
« Last Edit: Jun 26th, 2009 at 7:56pm by cepheid »  
WWW  
IP Logged  
 Reply #8 - Jun 26th, 2009 at 8:04pm
There are no actions to perform.  

deti 
Legacy Dev Team
Development Team
****
Offline
Posts: 2,650
Prien am Chiemsee, Germany


None
Re: Facebook usernames don't work in profile
Uuups, I forgot to fix the file

cgi-bin/yabb2/Sources/Load.pl

Now new in SVN.


Help for Help-files appreciated!!!
« Last Edit: Jun 26th, 2009 at 8:05pm by deti »  
Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
WWW  
IP Logged  
 Reply #9 - Dec 31st, 2009 at 9:11pm
There are no actions to perform.  
Captain John 
Ex Member


None
Re: Facebook usernames don't work in profile
This Topic was moved here from YaBB 3 Features, Changes, and Fixes Implemented by Captain John.

need for CVS
« Last Edit: Dec 31st, 2009 at 9:11pm by N/A »  
 
IP Logged  
 Reply #10 - Jan 1st, 2010 at 10:43am
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: Facebook usernames don't work in profile
Quote:
need for CVS

Done.

New
Load.pl
Profile.pl

in CVS.
 
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
 Reply #11 - Jan 22nd, 2010 at 9:44pm
There are no actions to perform.  

onlineaddy 
YaBB Newbie
*
Offline
Posts: 2


None
Re: Facebook usernames don't work in profile
Applying the changes in those two files in CVS made things kinda work, but not completely.

With a Facebook username, the YaBB View Profile page displays two Facebook icons, one of which is a hyperlink to the correct Facebook profile page URL, http://www.facebook.com/username. The extra icon should be removed.

At the bottom of the posts of this YaBB user there is no longer a link to his Facebook profile alongside links to Email, PM, WWW, etc.
 
 
IP Logged  
 Reply #12 - Jan 22nd, 2010 at 10:17pm
There are no actions to perform.  

onlineaddy 
YaBB Newbie
*
Offline
Posts: 2


None
Re: Facebook usernames don't work in profile
So, the fixes for the two problems I identified above are:

1. Either remove the img tag on the line above or remove the one inside the href.

2. $img{'facebook'} should be replaced by $facebookimg.
 
 
IP Logged  
 Reply #13 - Jan 28th, 2010 at 6:48pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: Facebook usernames don't work in profile
deti wrote on Jun 26th, 2009 at 8:04pm:
Help for Help-files appreciated!!!

Maybe a suggestion for the language files:

In Profile.lng find:

Code Select All
'574' => 'This is your Facebook profile ID.', 


And add the highlighted:

Code Select All
'574' => 'This is your Facebook profile ID number or your username.', 


And then remove the highlighted from this:

Code Select All
'575' => 'http://facebook.com/profile.php?id=', 


Or, I suppose you could even totally remove the url text from above the input field.

Then in user02_profile.help find:

Code Select All
<p><u><b>Facebook</b></u><br />
If you have a Facebook page, you may enter here. Note, you only need to add the string of numbers from the last part of the URL. For example, if your Facebook URL is 'http://facebook.com/profile.php?id=123456', you only need to enter '123456'.</p> 


And replace with:

Code Select All
<p><u><b>Facebook</b></u><br />
If you have a Facebook page, you may enter here. Note, you can either use your profile ID number or your username. For example, to use your profile ID number, if your Facebook URL is 'http://facebook.com/profile.php?id=123456', you only need to enter '123456', and to use your username, if your Facebook URL is 'http://facebook.com/yourname', you only need to enter 'yourname'.</p> 


I've attached screenshots so you can check what it looks like.

onlineaddy wrote on Jan 22nd, 2010 at 10:17pm:
So, the fixes for the two problems I identified above are:

1. Either remove the img tag on the line above or remove the one inside the href.

2. $img{'facebook'} should be replaced by $facebookimg.

Yep. onlineaddy is correct.

« Last Edit: Jan 28th, 2010 at 6:53pm by Derek Barnstorm »  
FacebookProfile.png (14 KB | 167 )
FacebookProfile.png
FacebookHelp.png (19 KB | 167 )
FacebookHelp.png
 
IP Logged  
 Reply #14 - Feb 21st, 2010 at 11:02am
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: Facebook usernames don't work in profile
New
Help\English\User\user02_profile.help
Languages\English\Profile.lng
Sources\Load.pl
Sources\Profile.pl

in CVS.
 
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
Page Index Toggle Pages: 1
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.