News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Mystic Multi v2

Started by Antechinus, September 17, 2008, 11:59:34 AM

Previous topic - Next topic

FightToTheDeath

I replaced that file (what's its name is..) display something.php with the default's.

TwitchisMental

I can't do that as my board index is customized alot..

Antechinus

Exactly where do you want the text to show?

TwitchisMental

Quote from: Antechinus on September 19, 2009, 04:41:33 AM
Exactly where do you want the text to show?
under where it says administrator. Or under whatever the person group is.

Antechinus

In Display.template.php find this:

// Show the member's primary group (like 'Administrator') if they have one.
echo '
<li>', $message['member']['group_stars'], '</li>
<li>', $message['member']['group'], '</li>';


Change to this:

// Show the member's primary group (like 'Administrator') if they have one.
echo '
<li>', $message['member']['group_stars'], '</li>
<li>', $message['member']['group'], '</li>';
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
<li>', $message['member']['title'], '</li>';

TwitchisMental

#125
Woot that fixed it :D .

Man I wish the rep mod was enabled here..

I would be giving you and a few others tons of rep.

If I wanted the user title above the stars where would I do that?

Edit: nvm that I figured it out :>D

Edit 2: Humm I notice the normal user titles aren't there.(you know like newbie and such). How would I make them show?

Antechinus

Add this:

// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<li>', $message['member']['post_group'], '</li>';


Just after this:

// Don't show these things for guests.
if (!$message['member']['is_guest'])
{

TwitchisMental

Well that works,but I only want it to show above the stars when the custom title isn't in use.

I hope thats possible lol.

So basically I want the normal user title like newbie above the stars if they don't have a custom title.

If they have a custom title, no user title.

Thanks for the help btw lol.

TwitchisMental


TwitchisMental


sepulchre

Hi Antechinus, I've found a small problem. I created two new boards today and found that the buttons i.e., New Topic | Post New Poll are not showing up. I was able to create a new thread under the default theme and then went back in to view the baord using mystic multi and found the buttons are now there. Seems they don't like to show up for boards with zero topics.

Any ideas?

Antechinus

Interesting. I'll take a look at it.

sepulchre

Just found a problem with my database, have fixed it now so will retest once I get everything sorted.

Antechinus

Nope, it's my bad. Should've picked that one. Thanks for pointing it out. I'll fix it this weekend.

sepulchre

Cool :)

Will the fix impact upon the custom mods you made for me? (The variant picker)

Antechinus

Nope. It's just an edit to MessageIndex.template.php. Silly me was only testing it on sites that had topics in all boards. :P
I forgot about the fact that the standard "no messages" bar wouldn't contain the buttons, since I had relocated them to the normal header bar.

I'll mess around with it and come up with something that works, then reload a corrected zip and edit your template for you.

sepulchre


Masтerнan


Antechinus

Ok sepulchre, that bug is sorted now. If you haven't modded your MessageIndex.template php at all yet you can just replace it with the one attached to this post.


sepulchre

I'm not sure to be honest, I'll check what the other mods I run have done tonight and let you know.

Thanks for the fix :)

Advertisement: