PDA

View Full Version : username strikethrough


CarpCharacin
01-06-2015, 11:54 PM
I made it so it would strike through banned users usernames. How do i do this with their user title also?

ozzy47
01-07-2015, 12:07 AM
In your postbit or postbit_legacy template find:

{vb:raw post.usertitle}And change it to this.

<vb:if condition="is_member_of($post, X)">
<span style="text-decoration: line-through;">{vb:raw post.usertitle}</span></vb:if>
<vb:else />
{vb:raw post.usertitle}
</vb:if>

Where X is your banned usergroup id number.

CarpCharacin
01-07-2015, 12:37 AM
where do i find the postbit and postbit legacy templates?

ozzy47
01-07-2015, 12:39 AM
ACP --> Styles & Templates --> Style Manager

CarpCharacin
01-07-2015, 12:41 AM
ok i went into the style manager. How do i find the templates? Do i have to edit them on each individual style?

--------------- Added 1420598626 at 1420598626 ---------------

should i use find and replace in templates?

ozzy47
01-07-2015, 12:44 AM
Yes each style. Unless of course you have it set up as parent and child styles, then you only have to change the parent.

In the dropdown next to each style, open it and select Edit Templates. From there scroll through the list until you find Postbit Templates. Click on that and then find either postbit, or postbit_legacy ( which ever one you are using ), then double click on that.

CarpCharacin
01-07-2015, 12:48 AM
i clicked on it, how do i find the postbit and postbit_legacy templates?

--------------- Added 1420598963 at 1420598963 ---------------

ok i found it, now how do i edit it?

--------------- Added 1420599011 at 1420599011 ---------------

UPDATE: i figured it out

ozzy47
01-07-2015, 12:50 AM
Find what I told you to, and change it to what I said to change it to, then click on save.

CarpCharacin
01-07-2015, 12:53 AM
i did that, and it still does not show up striked through.

ozzy47
01-07-2015, 12:54 AM
Pm me a full admin account, and I can look into it for you.

CarpCharacin
01-07-2015, 12:57 AM
Pm me a full admin account, and I can look into it for you.

thanks for helping

ozzy47
01-07-2015, 12:58 AM
I am assuming you want this to show in posts correct?

CarpCharacin
01-07-2015, 01:00 AM
I am assuming you want this to show in posts correct?

yes. I want to show their user title strikes through on posts and on their profile.

ozzy47
01-07-2015, 01:23 AM
Give me a bit, I am going to see if I can make it work with a plugin, instead of editing the templates.

CarpCharacin
01-07-2015, 01:32 AM
thanks

ozzy47
01-07-2015, 01:49 AM
OK I am going to have to work on it tomorrow. I think I am getting punch drunk. :p

If I can not end up making it work in a plugin, I will change it in the templates.

CarpCharacin
01-07-2015, 01:55 AM
OK I am going to have to work on it tomorrow. I think I am getting punch drunk. :p

If I can not end up making it work in a plugin, I will change it in the templates.

ok lol

MarkFL
01-07-2015, 02:05 AM
I may be off base here, but I am thinking it may be as easy as going to the Usergroup Manager and giving your Banned Users usergroup a title such as:

<s>Banned</s>

Then go to:

Maintenance -> General Update Tools -> Update User Titles and Ranks

ozzy47
01-07-2015, 02:07 AM
I tried that once, but I will try it again. Maybe I did not update the Titles.

ozzy47
01-07-2015, 02:11 AM
I may be off base here, but I am thinking it may be as easy as going to the Usergroup Manager and giving your Banned Users usergroup a title such as:

<s>Banned</s>

Then go to:

Maintenance -> General Update Tools -> Update User Titles and Ranks

Well it worked, I don't have a clue why it did not earlier, unless I did not update the Titles and Ranks.

MarkFL
01-07-2015, 02:13 AM
Well it worked, I don't have a clue why it did not earlier, unless I did not update the Titles and Ranks.

I have been burned by that more than once...hehehe. :D

ozzy47
01-07-2015, 02:14 AM
I told ya I was getting punch drunk. :P

ozzy47
01-07-2015, 02:23 AM
So to sum it up, @CarpCharacin you are all good to go now. :)

CarpCharacin
01-07-2015, 02:26 AM
So to sum it up, @CarpCharacin you are all good to go now. :)

ok thanks

ozzy47
01-07-2015, 02:27 AM
Not a problem, glad to help. Also thanks to @MarkFL for saving my sanity. :p

CarpCharacin
01-07-2015, 02:31 AM
the regular user titles appear to be missing in the posts

ozzy47
01-07-2015, 02:45 AM
Add the titles back to them in usergroup manager, then go to Maintenance -> General Update Tools -> Update User Titles and Ranks

CarpCharacin
01-07-2015, 02:53 AM
the user titles show up on the profile, but not on the posts.

MarkFL
01-07-2015, 03:08 AM
I think the first thing I would check is to disable the mod you have installed to strike through banned usernames and see if the problem persists...

CarpCharacin
01-07-2015, 04:11 AM
I think the first thing I would check is to disable the mod you have installed to strike through banned usernames and see if the problem persists...

ozzy47 was planning to make the mod tomorrow. The mod is not made. is it the template edits?

MarkFL
01-07-2015, 04:14 AM
ozzy47 was planning to make the mod tomorrow. The mod is not made. is it the template edits?

Your initial post:

I made it so it would strike through banned users usernames. How do i do this with their user title also?

left me under the impression that you have already installed a mod that will strike through the username of a banned user. It is this mod that I was suggesting you deactivate to see if the problem with the titles not showing persists. :D

ozzy47
01-07-2015, 09:19 AM
I fixed it, had to undo the previous template edit. :)

CarpCharacin
01-07-2015, 09:00 PM
I fixed it, had to undo the previous template edit. :)

thanks. I appreciate you helping.

ozzy47
01-07-2015, 09:01 PM
Not a problem, glad to help. :)