The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
I'll let you handle things then.
|
#12
|
||||
|
||||
Boofo Man
You can to some MOD for this ? |
#13
|
||||
|
||||
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 |
#14
|
||||
|
||||
You've got my vote, go for it. I can test it when you're ready
|
#15
|
||||
|
||||
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:
|
#16
|
||||
|
||||
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 |
#17
|
||||
|
||||
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) ! |
#18
|
||||
|
||||
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 |
#19
|
||||
|
||||
I make something
--------------- Added [DATE]1203258677[/DATE] at [TIME]1203258677[/TIME] --------------- --------------- Added [DATE]1203258576[/DATE] at [TIME]1203258576[/TIME] --------------- http://dacho.co.il/ HTML Code:
<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> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|