Not Solved Editing global.lang.php
#1
Not Solved
Is it possible to change certain language phrases like moderator alerts, PM alerts and add them into a theme or would one have to change them separately on his/her forum?

This is what I've done with the PM alert / Mod Alert.

[Image: ibrPoct9sEBqJV.png]
[Image: sig2.jpg]
Reply
#2
Not Solved
The language files are loaded via PHP, so I don't believe it's possible to add additional language variables without requiring a plugin of some sort. I generally just hardcode mine, but I can get away with that since I only really design stuff for my own forum. #designerhabits Toungue
Reply
#3
Not Solved
Thanks for the reply, i'm not adding additional language variables just editing them how they say

"you have one new message by so and so" and changing it to just the number, with a tool tip on hover so you know which alert is which.

Anyway to hardcore these into a theme without people needing to edit language files?
[Image: sig2.jpg]
Reply
#4
Not Solved
You can simply use specific the number variables instead of language variables. For example {$mybb->user['pms_unread']} for unread PM number.
Reply
#5
Not Solved
Thanks, is there a number variable for the moderator alert count?
[Image: sig2.jpg]
Reply
#6
Not Solved
$unread
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)