02-05-2011, 09:50 AM | #21 | |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
Quote:
|
|
Reply With Quote |
02-05-2011, 09:55 AM | #22 | |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
Quote:
Open vbbridge.php and find this line: Code:
if ( !preg_match('#wp-admin#', $_POST['redirect_to']) and !defined('WP_ADMIN') ): Code:
if ( !preg_match('#wp-admin#', $_POST['redirect_to']) and !defined('WP_ADMIN') or defined('XMLRPC_REQUEST')): |
|
Reply With Quote |
02-06-2011, 03:21 AM | #23 |
Junior Member
Join Date: Feb 2011
Posts: 20
Rep Power: 0 |
|
Reply With Quote |
02-06-2011, 03:22 AM | #24 | |
Junior Member
Join Date: Feb 2011
Posts: 20
Rep Power: 0 |
Quote:
|
|
Reply With Quote |
02-06-2011, 05:47 AM | #25 |
Junior Member
Join Date: Feb 2011
Posts: 20
Rep Power: 0 |
Jeff, I'd like to implement forum avatars in the comments. I think I have a general idea how to do this, however, any chance you tell me what code I would need (and where) to pull the avatarrevision from the user table by userid?
The mysql query would look something like this: "SELECT avatarrevision FROM `user` WHERE `userid`= $userid"; Based on that, I think I could construct the avatar link based on an path of: /forum/customavatars/avatar".$userid."_".$customavatar.".gif Thanks for your work. I really appreciate what you've done with this mod. |
Reply With Quote |
02-06-2011, 06:30 PM | #26 | |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
Quote:
|
|
Reply With Quote |
02-06-2011, 06:31 PM | #27 |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
Hmm scratch that, that won't help. You should be able to use the function fetch_userinfo($userid) though..
|
Reply With Quote |
02-06-2011, 07:49 PM | #28 |
Junior Member
Join Date: Feb 2011
Posts: 20
Rep Power: 0 |
|
Reply With Quote |
02-06-2011, 07:53 PM | #29 |
Junior Member
Join Date: Feb 2011
Posts: 20
Rep Power: 0 |
|
Reply With Quote |
02-07-2011, 12:54 AM | #30 | |
Junior Member
Join Date: Feb 2011
Posts: 20
Rep Power: 0 |
Quote:
Code:
$avrevision = $vb->db->query_first("SELECT avatarrevision FROM " . TABLE_PREFIX . "user WHERE userid = '" . $vuser['userid'] . "'"); |
|
Reply With Quote |
02-07-2011, 06:06 PM | #31 |
Junior Member
Join Date: Feb 2011
Posts: 20
Rep Power: 0 |
Jeff, did something change since the last version? I'm not able to login with a vb user name and password via the wordpress login screen, but I know I was able to at one point. I went back and re-uploaded your original files, to make sure it wasn't something I did, but that didn't help.
|
Reply With Quote |
02-08-2011, 09:17 AM | #32 | |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
Quote:
|
|
Reply With Quote |
02-08-2011, 06:10 PM | #33 |
Junior Member
Join Date: Feb 2011
Posts: 20
Rep Power: 0 |
I found the issue. It seems the user names are case sensitive when logging in via the wp log in screen. When logging in to the forum directly, the user names are not case sensitive.
Last edited by freak99; 02-08-2011 at 06:15 PM. |
Reply With Quote |
02-08-2011, 06:21 PM | #34 | |
Junior Member
Join Date: Feb 2011
Posts: 20
Rep Power: 0 |
Quote:
Code:
if (( !preg_match('#wp-admin#', $_POST['redirect_to']) and !defined('WP_ADMIN')) and !defined('XMLRPC_REQUEST')): |
|
Reply With Quote |
02-08-2011, 06:40 PM | #35 |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
Yes actually that makes more sense. I thought I negated that part about the XMLRPC_REQUEST. Yes, that should work.
|
Reply With Quote |
02-08-2011, 07:15 PM | #36 |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
I have put that in the pipeline for the next version.
|
Reply With Quote |
Reply |
Tags |
vbulletin integration
,
|
|
|