View Full Version : [Request] MOD for staff signature
dacho
02-08-2008, 09:37 AM
Hi friends
Maybe someone can make a MOD for staff signature
like if we want to use a homogenous staff signature
and each one can add his fields
fields in profile : Name, Moderator of, Note
for example :
dacho
02-13-2008, 12:59 PM
bump
LT Mote
02-13-2008, 01:27 PM
REAL nice idea dude, very nice in deed... I second this motion. Maybe a coder will do it for a small fee...
Let us know peepz
skrazydogz
02-13-2008, 01:29 PM
yes would be nice if someone can help us.
Boofo
02-13-2008, 04:34 PM
Just make a new profile field and do it that way.
skrazydogz
02-13-2008, 04:42 PM
but with which variable für the forums ?
Boofo
02-13-2008, 04:44 PM
Where are you going to use it? In posts? Just $post[fieldx] will work there (x being whatever the field number is, of course).
dacho
02-13-2008, 05:15 PM
Where are you going to use it? In posts? Just $post[fieldx] will work there (x being whatever the field number is, of course).
I can make a new profile field only for the staf ?
and another question... how i get it display in theirs signature ?
Boofo
02-13-2008, 05:27 PM
You would put it in the postbit where the signature is.
iogames
02-13-2008, 05:54 PM
If the problem is solved... what about a Mod who notify you of the next reply in the thread you posted, JUST THE NEXT! :rolleyes:
Boofo
02-13-2008, 06:23 PM
I'll let you handle things then. ;)
dacho
02-13-2008, 06:34 PM
Boofo Man
You can to some MOD for this ?
cheesegrits
02-14-2008, 11:05 PM
For the "moderator of", that could be built on the fly in a postbit plugin, by walking through something like the $imodcache[] and building a list of all forums the post.userid is a mod of. That way, you wouldn't have the extra overhead of making sure staff members keep their "moderateor of" field up to date - it would automatically change when their moderator memberships changed.
As for the rest of it, Boof is on the right track, it's postbit hacking. You'd use an is_member_of() conditional in the postbit template to process the sig as a special case for mods and admins (or whatever your staff groups are).
[EDIT - just reread your post, realized you are talking about sigs, not postbit ... but there should still should be a hook you could do the same stuff with, and handle staf sigs s a special case. Although in non-forum situations $imodcache might not be there ... but there's always ways round these things!]
You should then be able to build a standard sig image by using a CSS style with a backgroud image of the 'blank' business card looking doohicky, then carefully positioning the various text fields to overlay in the right places. The only issue I'd see would be making sure you set the height of the bg image correctly to account for varying number of "Moderator of" lines.
It'd also be easier if you included the labels as part of the overlayed text rather than as part of the underlying image, especially if you have the variable height Moderator Of in the middle. Also you won't have to be quite as picky about your text positioning, as you won't have to worry about horizontal alignment of label and text.
If nobody else wants to code this up, I might have a go at it. Might make a useful little mod.
-- hugh
Boofo
02-14-2008, 11:51 PM
You've got my vote, go for it. I can test it when you're ready ;)
dacho
02-15-2008, 09:07 AM
Cheesegrits it will very helper if you do that !!!
Sorry i'm not a coder, but can make the part of the CSS if you need me.
some idea:
3 fields (real name/moderateor of/note) in Additional Information (if theypart of usergroups id)
the field of "moderateor of" can be by ID of the forums (for example: 10, 12, 125) and the system take the ID from the field to written instead titel10 (http://myforum.com/forumdisplay.php?f=10), titel12 (http://myforum.com/forumdisplay.php?f=12), titel125 (http://myforum.com/forumdisplay.php?f=125) or free text for the Administrator
in the CP of "staff signature" can work if the user is part of usergroups id
cheesegrits
02-15-2008, 04:58 PM
I'm still not sure if you really mean a "signature" or a custom staff postbit.
I've gotten the basics of this stuff going as a postbit. I haven't done anything about the UserCP side of things, restricting the Staff ID config to staff only. But I have a custom postbit showing, using the technique I described above, using a CSS class to place the 'blank' ID card as a background image, and placing the generated text on it using relative positioning.
When I get a little more time over the next few days I'll add the necessary options, like ocnfiguring the groups to use as staff groups, optionally associating different ID blanks to different groups, customizing the offsets to use in the CSS, etc.
I'll probably also ad the option to include their avatar in a configurable location on the card, to complete that ID Card look.
I haven't looked at actually making this a signature rather than a postbit yet, though. But it should be possible.
-- hugh
dacho
02-16-2008, 11:02 AM
I mean a "signature" !!!
The idea is that "if you are in usergroup X" your signature is that !
Like that all the staff used the some signature (like in business card) !
cheesegrits
02-16-2008, 03:12 PM
Okie Dokie. I may get some time this weekend to play aorund with that.
Do you happen to have an example blank 'business card' to use as an example, that isn't a vborg one? If I release this as a mod, I'd like to ship a layered PSD graphic, so people can easily create their own.
-- hugh
dacho
02-16-2008, 06:05 PM
I make something
--------------- Added 1203258677 at 1203258677 ---------------
--------------- Added 1203258576 at 1203258576 ---------------
http://dacho.co.il/
<style type="text/css">
<!--
#staff_sign {
position: relative;
float: left;
width: 100%;
height: 120px;
background-image: url('http://dacho.co.il/GBsignature1.png');
background-repeat: no-repeat;
background-position: left top
}
.staff_name{
position: absolute;
z-index: 1;
left:75px;
top:62px;
width: 250px;
height: 17px;
}
.staff_of{
position: absolute;
z-index: 1;
left:75px;
top:80px;
width: 250px;
height: 17px;
}
.staff_of ul{
display: inline;
list-style:none;
}
.staff_note{
position: absolute;
z-index: 1;
left:75px;
top:98px;
width: 250px;
height: 17px;
}
-->
</style>
<div id="staff_sign">
<span class="staff_name">Marie Antoinette</span>
<span class="staff_of"><a href="#">Formula</a>, <a href="#">cake</a>, <a href="#">cookie</a></span>
<span class="staff_note">If they do not have bread, let them eat cake</span>
</div>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.