View Single Post
  #686  
Old 07-10-2009, 07:15 PM
creativepart creativepart is offline
 
Join Date: Jun 2006
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I couldn't get the Author links working the way the Mod Author laid it out in his Readme. But, using his concept I found a way to change the Author links to link to their VB Profile, but it only applies to users that use VBSEO to rewrite member profile links to: username.html.

Here's what I did:

NOTE: since I'm running VBSEO this method applies to VBSEO users. VBSEO rewrites the member profile links on the fly. So instead of www.yourdomain/forum/members.php?u=1075 being a link to a member's profile VBSEO changes it to: www.yourdoamin/forum/members/username.html.

So, here's what I did. First I went to the various post and page php pages in my WP Style and changed the coding that said:

Code:
<p>Posted by <?php the_author_posts_link(); ?> on
I changed it to:
Code:
<p>Posted by <a href='http://www.mydomain.com/forum/members/<?php the_author(); ?>.html'> <?php the_author(); ?></a> on
See the original coding in the template called "the_author_posts_link" and I've changed that to "the_author" which gives you the author's username from VB. Then you can see in my new code above that I use the "the_author" php to insert the username into the manually coded link.

If you're not using VBSEO, you'll need to find a way make the Mod Author's instructions work to pick up the member number and use that to create a userID generated link. I just couldn't get his instructions to work for me.

Again, I realize this shouldn't be necessary to do this way, but hey, it works. So I thought I'd pass it on.

Alternatively, if you can't get this to work -- a fall back workaround idea is to change "the_author_post_link" to "the_author" and you'll keep the username but lose the broken link.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01175 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete