Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 4 Months, 1 Week ago Add colours to background post of user groups
#1
Solved: 4 Years, 4 Months, 1 Week ago
I'm really lost here, I've been searching the internet for ages and I know it's possible but I can't seem to find anyway to add a coloured background behind each post of a certain user group, so for example Moderator has a green background on post and Admin has a red background, how do I do that?



How do I also add alerts to my forums? So if you post a thread and someone replies, you get an alert, I've seen it on another mybb forums, so I know it is possible.



This is a bit of a silly and basic question but how do I add pages to the website?

I apologize for the mass of questions, new to this and would love to get this all set up.

Thanks in advance.
Reply
#2
Solved: 4 Years, 4 Months, 1 Week ago
(11-12-2014, 04:36 AM)iAmPandi Wrote: I'm really lost here, I've been searching the internet for ages and I know it's possible but I can't seem to find anyway to add a coloured background behind each post of a certain user group, so for example Moderator has a green background on post and Admin has a red background, how do I do that?




How do I also add alerts to my forums? So if you post a thread and someone replies, you get an alert, I've seen it on another mybb forums, so I know it is possible.




This is a bit of a silly and basic question but how do I add pages to the website?

I apologize for the mass of questions, new to this and would love to get this all set up.

Thanks in advance.

I believe if you search plug-ins , there might be one for that.
[Image: tdlfbanner.png]
Reply
#3
Solved: 4 Years, 4 Months, 1 Week ago
(11-12-2014, 04:49 AM)Saint Francis Wrote: I believe if you search plug-ins , there might be one for that.

Which one? Toungue
Reply
#4
Solved: 4 Years, 4 Months, 1 Week ago
Colored background for posts: http://community.mybb.com/thread-134747.html

Alert for replies: Select "Subscribe and receive PM notification of new replies" on that thread (while posting or later)

Add pages: http://community.mybb.com/mods.php?action=view&pid=6
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't seen it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#5
Solved: 4 Years, 4 Months, 1 Week ago
(11-12-2014, 07:31 AM)mmadhankumar Wrote: Colored background for posts: http://community.mybb.com/thread-134747.html

Alert for replies: Select "Subscribe and receive PM notification of new replies" on that thread (while posting or later)

Add pages: http://community.mybb.com/mods.php?action=view&pid=6

I'm pretty sure one of my friends followed the guide for the coloured background you just put in and it didn't work, is that still a working guide because it was posted in 2013. Smile
Reply
#6
Solved: 4 Years, 4 Months, 1 Week ago
(11-12-2014, 11:56 AM)iAmPandi Wrote: is that still a working guide because it was posted in 2013. Smile

does that really matter... if you get the idea behind that, you can use it for any version on any day...  after all its just a css trick... Big Grin
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't seen it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#7
Solved: 4 Years, 4 Months, 1 Week ago
(11-12-2014, 12:27 PM)mmadhankumar Wrote:
(11-12-2014, 11:56 AM)iAmPandi Wrote: is that still a working guide because it was posted in 2013. Smile

does that really matter... if you get the idea behind that, you can use it for any version on any day...  after all its just a css trick... Big Grin

Bare in mind I am very new to this, so yeah aha. I've looked into this and the coding is different to what it says it is on that thread compared to my UCP. I have looked for the coding that he has in his guide and it's not there.
Reply
#8
Solved: 4 Years, 4 Months, 1 Week ago
(11-12-2014, 12:55 PM)iAmPandi Wrote: Bare in mind I am very new to this, so yeah aha. I've looked into this and the coding is different to what it says it is on that thread compared to my UCP. I have looked for the coding that he has in his guide and it's not there.

i understand and no problem, we really have a bunch of helpful members here, you can learn soon... Smile 

coming to your query.... find this in your postbit template...

<div class="post_body scaleimages" id="pid_{$post['pid']}">
{$post['message']}
</div>


and change it like this....

<div class="post_body scaleimages post{$usergroup['gid']}" id="pid_{$post['pid']}">
{$post['message']}
</div>



and then in global.css add this.... 

.post4 { background: #FDB5FF; }
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't seen it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#9
Solved: 4 Years, 4 Months, 1 Week ago
(11-12-2014, 01:12 PM)mmadhankumar Wrote: -post-

Thanks for all the help by the way!

Do I need to copy this

<div class="post_body scaleimages post{$usergroup['gid']}" id="pid_{$post['pid']}">
{$post['message']}
</div>


and change a part of that for each user group?

So if I had a user group called Administrator and that was user group 2, would it look something like this:

{$usergroup['2']

Or is that all meant to stay the same, is there anything I have to change so there is different colours for each user group and do I have to copy and paste anything again below to do the next user group background post colour?

Sorry for all the questions Smile
Reply
#10
Solved: 4 Years, 4 Months, 1 Week ago
bumping this as I never actually got this working, maybe someone knows of a working way on how to do this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)