Lampwrights Forum > Other Stuff > vBulletin Wordpress Bridge
Register Community Today's Posts Search

Reply
 
Thread Tools
09-27-2011, 05:06 PM   #1
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
Question about authors

I have successfully installed the bridge and it works great (vb users can login via vb, and make new posts). What I would like to do is to be able to have the authors of the posts have their name linked back to their vb profiles. How would I make this happen on a regular post like this:

http://www.michigan-sportsman.com/ms...le-management/

I would like author "Steve" in this case to link to the vb profile for Steve.
wacnstac is offline   Reply With Quote

09-27-2011, 07:20 PM   #2
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
Quote:
Originally Posted by wacnstac View Post
I have successfully installed the bridge and it works great (vb users can login via vb, and make new posts). What I would like to do is to be able to have the authors of the posts have their name linked back to their vb profiles. How would I make this happen on a regular post like this:

http://www.michigan-sportsman.com/ms...le-management/

I would like author "Steve" in this case to link to the vb profile for Steve.
Perhaps I should clarify what I am trying to do. We all know the VB blogs suck. Despite that I have some active bloggers in the VB blog whom I am now trying to get to blog in WP. I have enabled links to authors names but that only takes me to a page that doesn't exist (ie .../wp/authors) when I click on the author names. Would be awesome if I could make it link to the authors vb profile or better yet a list of their other posts.
wacnstac is offline   Reply With Quote
09-28-2011, 11:29 AM   #3
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
Quote:
Originally Posted by wacnstac View Post
Perhaps I should clarify what I am trying to do. We all know the VB blogs suck. Despite that I have some active bloggers in the VB blog whom I am now trying to get to blog in WP. I have enabled links to authors names but that only takes me to a page that doesn't exist (ie .../wp/authors) when I click on the author names. Would be awesome if I could make it link to the authors vb profile or better yet a list of their other posts.
Also, I need the capability through a widget on my WP homepage to show the most popular authors. Right now the widgets that I am able to get my hands on show the most popular authors (users) in the WP database which of course does not show the authors who have made posts with their VB usernames.
wacnstac is offline   Reply With Quote
09-28-2011, 12:20 PM   #4
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
Quote:
Originally Posted by wacnstac View Post
Also, I need the capability through a widget on my WP homepage to show the most popular authors. Right now the widgets that I am able to get my hands on show the most popular authors (users) in the WP database which of course does not show the authors who have made posts with their VB usernames.
Well it looks like this does work for authors of comments though I don't see their avatars. Any way this could be extended to authors of posts as well?
wacnstac is offline   Reply With Quote
09-28-2011, 01:13 PM   #5
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
Quote:
Originally Posted by wacnstac View Post
Well it looks like this does work for authors of comments though I don't see their avatars. Any way this could be extended to authors of posts as well?
So all author links get turned into forum/member.php?u=number, I guess that is what I'm looking for.
wacnstac is offline   Reply With Quote
09-28-2011, 04:33 PM   #6
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
Feel free to look at the code and adapt this for your uses. The users ID is available as always, just link it like normal:

somepath/to/your/forums/member.php?u=USERID

You will probably have to edit your template to do that..
Jeff is offline   Reply With Quote
09-28-2011, 04:40 PM   #7
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
I don't understand how you were able to make it work for the comments part without modifying a template. I'm assuming that you are suggesting that I modify the WP code that displays the author and the link?
wacnstac is offline   Reply With Quote
09-29-2011, 02:44 PM   #8
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
Hi Jeff,

Seems like I could accomplish what I want to do by modifying your bridge_setup_postdata function and changing
$authordata = get_userdata($post->post_author);
to something like:
$authordata = comment_auth_linker($author);

but that is not working for me. Any ideas?
wacnstac is offline   Reply With Quote
10-03-2011, 05:03 PM   #9
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
Am I even on the right track with this? Seems like the bridge_setup_postdata function would be the place to modify right?
wacnstac is offline   Reply With Quote
10-04-2011, 05:13 PM   #10
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
Ok, I'm getting very, very close. Still having trouble getting the vb user id from within my template. Have tried 'userid' but apparently that's not within the scope of content.php. Any hints Jeff?
wacnstac is offline   Reply With Quote
10-06-2011, 10:21 AM   #11
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
I have made this work in my template. Can share code with anyone who is interested.
wacnstac is offline   Reply With Quote
10-13-2011, 06:28 AM   #12
Amaca
Junior Member
 
Join Date: Mar 2011
Posts: 13
Rep Power: 0
Amaca is getting browny points
i have the same problem, can you share your code with me? thanks
Amaca is offline   Reply With Quote
10-13-2011, 09:12 AM   #13
wacnstac
Member
 
Join Date: Feb 2011
Posts: 58
Rep Power: 14
wacnstac is getting browny points
Quote:
Originally Posted by Amaca View Post
i have the same problem, can you share your code with me? thanks
I would love to help and share my code but I don't want to step on Jeff's toes here. I don't feel that my code was done in the most efficient way and perhaps Jeff and I can collaborate on something for a more stable solution.
wacnstac is offline   Reply With Quote
10-14-2011, 06:34 AM   #14
Amaca
Junior Member
 
Join Date: Mar 2011
Posts: 13
Rep Power: 0
Amaca is getting browny points
Quote:
Originally Posted by wacnstac View Post
I would love to help and share my code but I don't want to step on Jeff's toes here. I don't feel that my code was done in the most efficient way and perhaps Jeff and I can collaborate on something for a more stable solution.
it's very important to me and i don't know if Jeff will answer
It's just an help to start, i need it :/

Anyway it's your choose, nevermind.
Thank you so much in advance.
Amaca is offline   Reply With Quote
10-14-2011, 08:08 AM   #15
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
You are free to post whatever you wish, but everyone should keep in mind that what may work for one persons install may not work for another.
Jeff is offline   Reply With Quote
10-14-2011, 11:53 AM   #16
Amaca
Junior Member
 
Join Date: Mar 2011
Posts: 13
Rep Power: 0
Amaca is getting browny points
Quote:
Originally Posted by Jeff View Post
You are free to post whatever you wish, but everyone should keep in mind that what may work for one persons install may not work for another.
i definitely agree. i m waiting for your response wacnstac, maybe it could help me. thank you again.
Amaca is offline   Reply With Quote
Reply

Tags

vbulletin wordpress bridge



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert WP Authors function give me error wacnstac vBulletin Wordpress Bridge 3 09-26-2011 10:08 AM
Authors/Users scrambled Giby vBulletin Wordpress Bridge 3 09-07-2011 03:51 AM
Bridge Functionality question AFQ vBulletin Wordpress Bridge 8 08-23-2011 06:32 AM
Question of new Wordpress Bridge vs Old one woox vBulletin Wordpress Bridge 21 02-20-2011 12:20 AM


All times are GMT -4. The time now is 05:39 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.