Medals

Dark Takua

Paragon
Joined
May 25, 2009
Messages
2,385
Reaction score
13
FP$
1,416
Hi, how do you get the message so that it says {USERNAME} says... on top of the message instead of in the info place? Also, how do you put medals next to the name? Thanks in advance.
 
I use phpBB3, 3.0.6, I tried to see viewtopic file...but I don't know where to put the code or how to make it, like for certain people(medals) but I know how to make the "username says...".
 
Styles > (Template Folder) > Template > viewtopic_body.html

open up that.. scroll about half way down the page you should see code for
for prosilver type theme
Code:
<p class="author"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> &raquo; {postrow.POST_DATE} </p>

Then, to add the "say" part, you want a medal correct? To insert that code, which I am hoping you already have the code, you will have to insert that into right after the portion

Code:
{postrow.POST_AUTHOR_FULL}</strong> *YOUR CODE * &raquo;

Hope that helps, there is another way of doing this, though that requires editing to the actual phpBB inner code and not to sure if you want to do that, both ways work.
 
Thanks for the code, but I'm looking for a medal for certain people - do you know how to do that?
 
This wont work in the user profile but in the viewtopic page use this code...

Code:
<!-- IF postrow.POST_AUTHOR eq '2' --> <!-- ENDIF -->

Or to add multiple people...

Code:
<!-- IF postrow.POST_AUTHOR eq '2' or eq '3' --> <!-- ENDIF -->

Change the number to whatever ID number the user is, click on some ones profile and it is the
number at the end of the link.
 
Ohh Thank you Under Reaction! So I put the text I want here? :
Code:
    <!-- IF postrow.POST_AUTHOR eq '2' --> *text here* <!-- ENDIF -->
 
Or the image, though, a better way to do it is if you want them for a "group" do the following for their whole group you could do that as well. All depends on how you want to categorize them.
 
Post code info? Also, which way did you try to do it? Also, I am pretty sure the above method is wrong, since you can't get the user's id from POST_AUTHOR
 
Under Reaction said:
This wont work in the user profile but in the viewtopic page use this code...

Code:
<!-- IF postrow.POST_AUTHOR eq '2' --> [b]MEDALS[/b] <!-- ENDIF -->

Or to add multiple people...

Code:
<!-- IF postrow.POST_AUTHOR eq '2' or eq '3' --> [b]MEDAL[/b] <!-- ENDIF -->

Change the number to whatever ID number the user is, click on some ones profile and it is the
number at the end of the link.

Yeah you put the text between the bit that I have put in bold above, then refresh the forum templates.

If it doesn't show up and you have multiple user IDs, it might be this instead...

Code:
<!-- IF postrow.POSTER_ID eq '1' or eq '2' --> [b]MEDAL[/b] <!-- ENDIF -->
 
It gives me an error:

Parse error: syntax error, unexpected T_IS_EQUAL in /home/cpanelno/public_html/forum/includes/template.php(218) : eval()'d code on line 188

Edit: Yay, it works now! Thanks for your help guys!
 
Back
Top Bottom