View Full Version : Show Thread Enhancements - [OzzModz] Different Post Body Background For Admin And Mods
ozzy47
09-16-2013, 10:00 PM
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png
Here is a small modification you can do to have a different background in posts, set to users in your Admin and moderator groups, in postbit legacy.
Meaning, you can have a background in the posts for your admins, and a different one for your mods.
To get this to work, follow the instructions in the attached Different Post Body Background For Admin And Mods.txt file
I don't have any screenshots at the moment, I'll try to get some. Or if some of you use this mod, please share a screenshot of what you have done.
joeychgo
09-18-2013, 01:56 AM
Nice idea - is there a way to make this selectable?
ozzy47
09-18-2013, 01:59 AM
Selectable how, the admins / mods have a option to use it or not?
joeychgo
09-18-2013, 02:06 AM
admins / mods having the option to use it on a specific post or not.
ozzy47
09-18-2013, 02:10 AM
Ahhh, I will look into that for a future update, it may be possible.
joeychgo
09-18-2013, 02:33 AM
My thinking is when a mod/admin needs to be noticed in a thread as a mod/admin, they could select this and their post would stand out.
DemOnstar
09-18-2013, 12:25 PM
I would still like to have the ability to control where the image is set.
i.e. bottom right of the post body would be ideal..
ozzy47
09-18-2013, 08:25 PM
That would involve some different css, I can help, but I need the image in order to test. :)
DemOnstar
09-19-2013, 04:12 AM
Ok, here you go...
https://vborg.vbsupport.ru/attachment.php?attachmentid=146441&stc=1&d=1379567540
Much obliged..
ozzy47
09-19-2013, 10:02 AM
I'll check it out as soon as I have a chance. :)
DemOnstar
09-19-2013, 10:48 AM
I believe you perform miracles....either that or you are knowledgeable in these instances.. Certainly a lot more knowledgeable and capable then I am... :D
Thanks for your effort and your time..
Bubble #5
09-19-2013, 03:04 PM
My thinking is when a mod/admin needs to be noticed in a thread as a mod/admin, they could select this and their post would stand out.
This would be a great addition! Maybe add the option to the dropdown menu.
I haven't looked at this mod in detail but it would be great if admins and mods could use separate images per usergroup.
ozzy47
09-19-2013, 08:14 PM
This would be a great addition! Maybe add the option to the dropdown menu.
I haven't looked at this mod in detail but it would be great if admins and mods could use separate images per usergroup.
I would probably add the option to the bottom of the reply box by the Miscellaneous Options.
It does, groups you decide to choose as admins, will have a different image from ones you choose as mods.
Alan_SP
09-19-2013, 09:23 PM
I would probably add the option to the bottom of the reply box by the Miscellaneous Options.
This could be really nice small mod (I'm not sure if it could be made into template change) for making official posts (i.e. posts where staff members write warnings, notices, or any other official communication to users) different from their normal posts they write as any other user.
Now staff members usually write posts with text in different color, but that could do all other users. This would be something that only staff members could use, write their posts with different background.
ozzy47
09-19-2013, 10:10 PM
Yeah adding that option would allow your admins/mods to use it on certain posts like that.
I don't know about turning this into a full blown product without the template edits, but we shall see.
Alan_SP
09-19-2013, 10:17 PM
It certainly looks very interesting, if you can make it. :D
I don't have idea how you can achieve it only through template edits, but you certainly know much more than I do. :up:
ozzy47
09-21-2013, 10:04 AM
I am making some good progress on turning this into a mod. It will have the option to use a full background image, or a image in the bottom right of the posts. A different image for admin groups, and mod groups.
A option in the ACP for you to select the image to show up always, or let the admins/mods to choose to show it on a new reply or new thread.
It will use stylevars for the images, so you can easily set a different images for admins/mods in different styles.
So far it looks like there will be no template edits to do either, and don't foresee a need to either.
DemOnstar
09-21-2013, 10:54 AM
Great stuff, another Ozmod. Can't wait to test the result..
Is there a possibility that this image could be added to any specific user at any given time? or applied to other usergroups other than admin/mod?
Example, top poster for the month, best admin of the month, biggest jerk of the month, day, week etc?
ozzy47
09-21-2013, 11:35 AM
No not as it is, that is not what it was designed for.
DemOnstar
09-21-2013, 11:44 AM
Ok. I was just thinking it could be extended a little..
I would have liked to indicate (with a pic) in the post main body that this user is
Examples:
a. useless
b. profound
c. top of his/her class
At a glance, a user would see some classification indicated by the chosen pic...
For mods and admins only, it would seem superfluous...as this is stated in the post_bit...
Just a thought...
Obviously I will try it....You do have some good ideas sir...
Profound :up: here
ozzy47
09-21-2013, 12:12 PM
While that may be possible, it might be a giant pain in the arse, think of all the things a admin might want to use it for, their could be literally thousands, and I don't know how to add that without the product being extremely bloated.
DemOnstar
09-21-2013, 12:18 PM
I will take your word on this...
You are competent in these matters, I just dream of possibilities and download every worthy mod because I am useless...
Cheers Mr Ozmod..
Carry on! :cool:
Bubble #5
09-21-2013, 02:10 PM
A different image for admin groups, and mod groups.
A option in the ACP for you to select the image to show up always, or let the admins/mods to choose to show it on a new reply or new thread.[/I]
Two very useful and important features :up:
Really looking forward to this Ozzy :D
Like the suggestion for top poster of the month background, but not in this mod, maybe a separate mod.
Would also be a cool way to have thread starter (OP) displayed :D
ozzy47
09-21-2013, 03:33 PM
Original poster has been done, https://vborg.vbsupport.ru/showthread.php?t=299130
DemOnstar
09-21-2013, 03:41 PM
I am currently using this one https://vborg.vbsupport.ru/showthread.php?t=244238
Bubble #5
09-21-2013, 03:43 PM
Original poster has been done, https://vborg.vbsupport.ru/showthread.php?t=299130
As a background image in the postibt? I thought that was just a regular image on top of the postbit (instead of underneath the postbit message).
ozzy47
09-21-2013, 04:00 PM
There is eight locations to choose from where to display the OP in the postbit.
Alan_SP
09-22-2013, 12:45 AM
A option in the ACP for you to select the image to show up always, or let the admins/mods to choose to show it on a new reply or new thread.
It will use stylevars for the images, so you can easily set a different images for admins/mods in different styles.
That's excellent news. :up:
Could you make it that we could use CSS, not just images, as I'd like to control all elements and I'll rather change color of post body, than just place there image.
Now I use image for red and yellow card (you can see it here: http://slobodni.net/t109986/), with template edit I still didn't described, but it's very similar how you do it here. But, for this purpose I'd like to change background color, not add image. Or, maybe someone would like to do both things (I played a lot with this before I decided to go only with image for red and yellow card).
And yes, would you include different options for post from supermods? As we have three default administration groups. And some forums could have additional staff groups. Just asking... :)
ozzy47
09-22-2013, 12:55 AM
Well if I get it to work, (I have ran into a snag, :( ) you will be able to use a color for the background, as it is a stylevar, as long as you use the full background image option.
It will probably only have the ability for groups you designate as admins and and mods/supermods to have different backgrounds, so only two different types available, not a separate one for supermods.
ozzy47
09-22-2013, 03:40 PM
OK I believe I have the snag I ran into worked out, thanks to the help of other developers here. So I will continue working on this, but the snag did put me a bit behind. :(
K4GAP
09-22-2013, 06:00 PM
Might sound like a stupid question but, do you need a test server?
Bubble #5
09-22-2013, 06:13 PM
OK I believe I have the snag I ran into worked out, thanks to the help of other developers here. So I will continue working on this, but the snag did put me a bit behind. :(
Not a problem. It's definitely worth waiting for :up:
Bubble #5
09-22-2013, 06:15 PM
Might sound like a stupid question but, do you need a test server?
There are no stupid questions.
Having a test server makes it safer for you to experiment with, but not needed if you are careful and/or you do frequent backups of everything.
K4GAP
09-22-2013, 06:18 PM
I was asking Ozzy if he needed one. I was going to offer him any help I could give.
Bubble #5
09-22-2013, 06:27 PM
LOL.... completely misread what you were asking, I thought you needed help :p
:D
ozzy47
09-22-2013, 07:44 PM
It may be possible Gary, I am currently paying $200 for a server that I only use for development purposes. I was on there with a partner, but he is running his server from his house now, and I see no reason to pay that much for a server that I am doing no live sites with.
Alan_SP
09-22-2013, 08:13 PM
Well if I get it to work, (I have ran into a snag, :( ) you will be able to use a color for the background, as it is a stylevar, as long as you use the full background image option.
It will probably only have the ability for groups you designate as admins and and mods/supermods to have different backgrounds, so only two different types available, not a separate one for supermods.
Ok, I'll be able to do something with it. Image of pure color, or something like that...
Only two types is also enough, even one type would be enough.
It looks like a great mod. :up:
DemOnstar
09-23-2013, 10:48 AM
I use a number of Ozmods, he is consistent and reliable, always willing to help out..
ozzy47
09-23-2013, 11:09 PM
I try to be, thanks for the accolades. :)
Hmmm, maybe the titles of my mods, instead of [ozzy47] it should be OzzModz
DemOnstar
09-24-2013, 12:06 AM
I try to be, thanks for the accolades. :)
Hmmm, maybe the titles of my mods, instead of [ozzy47] it should be OzzModz
Ozzmodz, yeah, not bad...:cool:
Barbara1
09-29-2013, 10:31 AM
this is a nice hack which i'll setup and use.
a question:
i already have a background (an extremely small tiled gif i'm using)
1) if i use a transparent image with your hack, will this be as a layer above the theme's background,
2) or is it going to replace my existing theme's background for the usergroup's posts i'll assign it to?
crossing my fingers for the "1". but if its "2" then i guess i'll combine both as one image (photoshop) and use that with your hack. so its no so much of a problem :)
ozzy47
09-29-2013, 10:33 AM
1) I don't know, best bet is to test it out and see what the results are.
2) It will replace the background, with what you assign.
Barbara1
09-29-2013, 10:39 AM
thank you, i going to try it right now :)
Barbara1
09-29-2013, 11:09 AM
an error at the second part where i replace the <div class="postbody">
when i am replacing and i press the "save" button, i am getting
"Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3965"
and a vbulletin message
"The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish."
is there a solution maybe?
forgot to replace th X
ozzy47
09-29-2013, 11:15 AM
Yeah it should work once you replace the X and X with your admin mod groups
Barbara1
09-29-2013, 11:21 AM
<!-- ADMIN GROUPS -->
<vb:if condition="is_member_of($post, 6)">
<div class="postbody_admin">
<!-- MODERATOR GROUPS -->
<vb:elseif condition="is_member_of($post, 49,)" />
<div class="postbody_mods">
<vb:else />
<div class="postbody">
</vb:if>
i am getting the same error again when i press "save"
the usergroup 49 is SySoP but i dont think that matters
ozzy47
09-29-2013, 11:25 AM
It could be this:
<vb:elseif condition="is_member_of($post, 49,)" />
Should be:
<vb:elseif condition="is_member_of($post, 49)" />
Barbara1
09-29-2013, 11:29 AM
yes that was it. thank you :)
ozzy47
09-29-2013, 11:31 AM
Not a problem, don't forget to mark as installed if you are using the mod. :)
Bubble #5
09-30-2013, 02:28 AM
Nothing is showing up, but I know the image address is correct because I tested it.
Does the image have to be a certain size? Ours isn't big, but just wondering if that has anything to do with it. The image were using is below.
ozzy47
09-30-2013, 09:52 AM
I'll test this on my site when I get home from work and let you know my findings. :)
Barbara1
10-02-2013, 06:51 AM
my first setup was at xampp.
couldnt see the background and yesterday i tried it at the live forum.
couldnt see the backround there either as @Bubble #5 said also.
i read the you'll check the hack so i'll be waiting (i dont have waiting issues. take your time :) )
i hope it will work cause i really like it :)
(its marked as installed)
ozzy47
10-02-2013, 09:56 AM
What type of set up is your live forum? Not that that should make a difference, since this is a template edit.
I did not get time to try Bubble's image yet, was to tired yesterday, maybe today after work. :)
Barbara1
10-02-2013, 04:31 PM
i am sorry i dont understand the "what type of setup".
the live forum is vb 4.2.0 pl3 on a dedicated server.
the default theme is untouched and my themes have their own directories.
for each skin, i dont have the css of any background with the important! tag
i dont know what exactly you need me to write.
Bubble #5
10-02-2013, 05:16 PM
couldnt see the background and yesterday i tried it at the live forum.couldnt see the backround there either as @Bubble #5 said also.
I'll be looking into this also Barbara. I think I know why it's not working. I wrote a similar hack for 3.6 and had the same issue, and if I remember correctly it wasn't the hacks fault, but another setting on the forum.
Barbara1
10-02-2013, 07:27 PM
i see. i have no knowledge in coding (so i can override some options) hope you guys can find the solution :)
Bubble #5
10-03-2013, 05:27 PM
OK Barbara I've got good news and bad news :p
The bad news is that I've tried countless things and couldn't get this hack to work.
The good news is that Ozzy's other hack (https://vborg.vbsupport.ru/showthread.php?t=301592&highlight=ozzy47) (which is very similar) does work.
I couldn't get the image to center so I had to use a larger transparent background, but I'm still working on the CSS part. Then a smaller image can be used. Still looking into why the other hack isn't playing nice. I'm sure someone here will narrow it down sooner or later. Just takes a bit of time.
Here is the image I'm using until I can get the centering to work:
Barbara1
10-03-2013, 09:55 PM
...other hack which is very similar...
i saw that hack today. is ozzy productive or what? :)
i'll give it a try and if it works, i'll use that one instead.
thanks :)
ozzy47
10-10-2013, 11:08 AM
There is no real update, I just removed the code from the first post, and put it into a txt file.
Bubble #5
10-10-2013, 02:36 PM
Ozzy, did you ever figure out why this mod doesn't display images correctly?
ozzy47
10-10-2013, 02:40 PM
I have not had time to look into your situation, but I have not forgot about it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.