Lampwrights Forum

Lampwrights Forum (http://www.lampwrights.com/index.php)
-   vBulletin Wordpress Bridge (http://www.lampwrights.com/forumdisplay.php?f=13)
-   -   Question about authors (http://www.lampwrights.com/showthread.php?t=226)

wacnstac 09-27-2011 05:06 PM

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 09-27-2011 07:20 PM

Quote:

Originally Posted by wacnstac (Post 852)
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 09-28-2011 11:29 AM

Quote:

Originally Posted by wacnstac (Post 853)
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 09-28-2011 12:20 PM

Quote:

Originally Posted by wacnstac (Post 856)
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 09-28-2011 01:13 PM

Quote:

Originally Posted by wacnstac (Post 857)
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.

Jeff 09-28-2011 04:33 PM

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

wacnstac 09-28-2011 04:40 PM

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 09-29-2011 02:44 PM

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 10-03-2011 05:03 PM

Am I even on the right track with this? Seems like the bridge_setup_postdata function would be the place to modify right?

wacnstac 10-04-2011 05:13 PM

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 10-06-2011 10:21 AM

I have made this work in my template. Can share code with anyone who is interested.

Amaca 10-13-2011 06:28 AM

i have the same problem, can you share your code with me? thanks

wacnstac 10-13-2011 09:12 AM

Quote:

Originally Posted by Amaca (Post 904)
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.

Amaca 10-14-2011 06:34 AM

Quote:

Originally Posted by wacnstac (Post 905)
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.

Jeff 10-14-2011 08:08 AM

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.

Amaca 10-14-2011 11:53 AM

Quote:

Originally Posted by Jeff (Post 907)
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.


All times are GMT -4. The time now is 02:20 AM.

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