Uutiset:

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

Main Menu
Advertisement:

Image by Username

Aloittaja MMcGrad2, helmikuu 17, 2009, 06:53:10 IP

« edellinen - seuraava »

MMcGrad2

Version: SMF 2.0 RC1

Is there any way to make a image AND color apply to a username, so when they post, it'd look something like this:


Kermit

For colorizing the nicknames,i'd suggest that mod

http://custom.simplemachines.org/mods/index.php?mod=111


To put an image before your nick,you should try to edit your Display.template.php
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

MMcGrad2

Thanks for the color thingy, but I'm rather new to SMF, I do not have any file named "display..." in my theme.  Do you know what else I could do?  My theme is MysticJade if that helps

Kermit

Lainaus käyttäjältä: MMcGrad2 - helmikuu 18, 2009, 01:07:25 IP
Thanks for the color thingy, but I'm rather new to SMF, I do not have any file named "display..." in my theme.  Do you know what else I could do?  My theme is MysticJade if that helps

If your custom theme doesn't have own Display.template.php,then you should edit it from the default theme
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

MMcGrad2

I cannot edit my core theme, doesn't come up on the Modify Themes list

Kermit

Lainaus käyttäjältä: MMcGrad2 - helmikuu 18, 2009, 01:24:00 IP
I cannot edit my core theme, doesn't come up on the Modify Themes list

You can edit it via FTP,also just download Display.template.php from Themes/default/ directory and edit it according to your wishes and reupload it again


How do I use FTP? / What is FTP?
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

MMcGrad2

I'm going to guess this is it.  Would you agree?

// Show information about the poster of this message.
echo '
<div class="floatleft poster">
<h4>'
$message['member']['link'], '</h4>
<ul class="smalltext" id="msg_'
$message['id'], '_extra_info">';

Kermit

<h4>', $message['member']['link'], '</h4>

Yes,that's exactly the right place to edit
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

MMcGrad2

Do you have any tips how I could do this, we could pretend I have an image uploaded already called admincrown.gif.  Im only familiar with Java and have never messed around with php

Kermit

My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

MMcGrad2


MMcGrad2

#11
      // Show information about the poster of this message.
      
echo '
            <div class="floatleft poster">'
;
            if(
$message['member']['group_id'] == '1')
            echo
'
               <h4><img src="image url comes here"/>'
$message['member']['link'], '</h4>
               <ul class="smalltext" id="msg_'
$message['id'], '_extra_info">';
            else
            if(
$message['member']['group_id'] == '2')
            echo
'
               <h4><img src="image url comes here"/>'
$message['member']['link'], '</h4>
               <ul class="smalltext" id="msg_'
$message['id'], '_extra_info">';
            else
            if(
$message['member']['group_id'] == '3')
            echo
'
               <h4><img src="image url comes here"/>'
$message['member']['link'], '</h4>
               <ul class="smalltext" id="msg_'
$message['id'], '_extra_info">';
            else
            echo
'
               <h4>'
$message['member']['link'], '</h4>
                  <ul class="smalltext" id="msg_'
$message['id'], '_extra_info">';

That'd work, correct?
Erm, what if I wanted to make my MysticJade theme have crowns, would the file be Index.template.php?

Kermit

Lainaus käyttäjältä: MMcGrad2 - helmikuu 18, 2009, 02:30:07 IP

That'd work, correct?


Yes it's correct


LainaaErm, what if I wanted to make my MysticJade theme have crowns, would the file be Index.template.php?

What do you mean ?  ::) For putting crowns before the usernames should be always used the Display.template.php
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

MMcGrad2

Lainaus käyttäjältä: Duncan85 - helmikuu 18, 2009, 02:43:30 IP
Lainaus käyttäjältä: MMcGrad2 - helmikuu 18, 2009, 02:30:07 IP

That'd work, correct?


Yes it's correct


LainaaErm, what if I wanted to make my MysticJade theme have crowns, would the file be Index.template.php?

What do you mean ?  ::) For putting crowns before the usernames should be always used the Display.template.php
My theme doesn't contain a Display.template.php, but the Core SMF theme does.  I want to use my custom theme and I'm not sure if this would be the file equivalent to Display.template.php
http://pastebin.com/d3af10006

Thanks for helping me so much so far!

Kermit

Lainaus käyttäjältä: Duncan85 - helmikuu 18, 2009, 01:11:53 IP


If your custom theme doesn't have own Display.template.php,then you should edit it from the default theme
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

MMcGrad2

Lainaus käyttäjältä: Duncan85 - helmikuu 18, 2009, 02:54:01 IP
Lainaus käyttäjältä: Duncan85 - helmikuu 18, 2009, 01:11:53 IP


If your custom theme doesn't have own Display.template.php,then you should edit it from the default theme
My bad!  I was a bit  unclear.  The theme isn't customized by me, it's just another theme; however, I wish to make that specific theme (with no Display.template.php) have images before a username.  I do not like the default theme and I am wondering if this is possible.

Advertisement: