MyBB Community Forums

Full Version: New THeme help?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm very new to MyBB and theme editing. I was able to take a partially finished theme and make it fully functional when I was running MyBB 1.2.x.

However, today I thought it would be a good day to upgrade to the latest version. When I did that, the theme I had didn't really work so well, so I downloaded a new one from this site.

The theme I downloaded was this one by Sephiroth. Kudos, because this is a very nice looking theme.

I installed it per the directions in the post, and it came out beautiful. All the background images and the layouts are there.

The issues I'm having with it is that when I go to browse around the forums, somehow, it is ignoring my forums directory. For example, when I goto click on a specific forum the link points me to:
http://mywebsite.com/forumdisplay.php?fid=2

When it should be:
http://mywebsite.com/forums/forumdisplay.php?fid=2

So my question is this... Where in a theme would this information get changed? Is this something I would have to change in the theme install xml file, or something I can change while it's loaded onto my boards?
Just an update that I found. I was able to repair all of the cosmetic issues of missing Icons and such, and it was an issue with the install file.

However, MyBB has an awesome Search/Replace feature for the templates.

I found that there is a string being used called $theme, which is being used in directory structures.

All I did was find {$theme and replaced it with forum/{$theme
Well... I haven't got much help here so far... Sad

But in good news, I've been able to fix most of the links and imaging issues. I repaired the install .XML file to account for the forums being placed in a subdirectory by including the following:


{$mybb->settings['bburl']}/ -- This fixed many of the links I was having issues with, because this will find the URL according to the Board Settings in the configuration.

{$mybb->settings['bburl']}/{$theme['imgdir']}/ -- This fixed the images, pulls the URL and Img directory from the settings in the Boards Configuration


I am still having issues when clicking links that access the member.php page. In the code there is a variable being called named {$online_name} and potentially several others. My question is where is this variable set? What places value on this variable? I have not been able to find it. It seems I can't use my previous tactic of changing this variable to {$mybb->settings['bburl']}/{$online_name} because all that does it put the URL (non hyperlinked) in front of the hyperlinked user name.

Please help me out with this one?
If it will help, you can visit the boards at http://hfzllane.sqweebs.com/hfz_forum/