Thread: Novul
View Single Post
  #61  
Old 07-16-2015, 12:44 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 127,429
Kyttias is on a distinguished road
Default

My forums are about 90% done now. There's more tweaking to be done here and there, but it's good enough for launch. Yes, it's using MyBB still - though it may not look like it! I've removed all traces of references or links to MyBB's profiles, userCP, and private message system as well as countless other MyBB features I just don't need. I'm really glad I managed to get the integrated simultaneous login working, and infinitely glad I managed to replace links to user's profiles with their Mysidia equivalents.
Here's the latest:


I'll be using a separate plugin for managing user avatars between both sites, I just haven't decided how that's going down yet.

As for replacing profile links, for those curious, it's in forum/inc/functions.php around line 5747. Replace:
PHP Code:
return "<a href=\"{$mybb->settings['bburl']}/".get_profile_link($uid)."\"{$target}{$onclick}>{$username}</a>"
With:
PHP Code:
return "<a href=\"{$mybb->settings['homeurl']}profile/view/{$username}\"{$target}{$onclick}>{$username}</a>"
You'll also need to go into the template files through the forum's adminCP (/forum/admin/). "Templates & Style" from the top navigation, then "Templates" from the left navigation. Inside "Default templates" expand "Post Bit Templates" and open "postbit_avatar" and replace what's there with:
PHP Code:
<div class="author_avatar"><a href="{$mybb->settings['homeurl']}profile/view/{$post['username']}"><img src="{$useravatar['image']}alt="" {$useravatar['width_height']} /></a></div
There's a LOT of questions about modifying MyBB I won't know how to answer. Rather than coming to me with questions, I really advise getting on the MyBB forums and asking questions. Or just Googling. Most of my questions were solved that way.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote