Name in phpBB

17 years 5 months ago #26765 by stodd
Name in phpBB was created by stodd
I have First Name and Last Name field in the CB registration. I'd like for the First and Last name to appear on the left side of the subsilver posts (currently, there is the username listed). Any idea how to port over the info from the CB reg to phpBB?

Thanks

Please Log in to join the conversation.

17 years 5 months ago #26768 by geeffland
Replied by geeffland on topic Re:Name in phpBB
I have not done this so this is just based on a few minutes of digging...

Looks like you would need to edit
"viewtopic_body.tpl"... near line 29 (in 2.0.20 anyway) you will see fields like {postrow.POSTER_NAME}...

you will want to add in the correct spot a new variable like {postrow.NEW_POST_INFO} ... name and correct spot up to you


Then go into viewtopic.php and create that variable... near line 1158 is where the "postrow" variable is being defined... somewhere before that you need to do the SQL for the data... plug that into a temporary variable (say $newPostInfo) then assign inside that $template->assign_block_vars call...

'NEW_POST_INFO' => $newPostInfo,

All the CB reg stuff should be in the jos_comprofile table under that user's ID...

Hope this helps,
Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

Moderators: beatnantgeefflandmartijn189krileon
Time to create page: 0.176 seconds