Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 02-13-2008, 06:23 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll let you handle things then.
Reply With Quote
  #12  
Old 02-13-2008, 06:34 PM
dacho's Avatar
dacho dacho is offline
 
Join Date: Dec 2004
Location: Tell-Aviv
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo Man
You can to some MOD for this ?
Reply With Quote
  #13  
Old 02-14-2008, 11:05 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 02-14-2008, 11:51 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You've got my vote, go for it. I can test it when you're ready
Reply With Quote
  #15  
Old 02-15-2008, 09:07 AM
dacho's Avatar
dacho dacho is offline
 
Join Date: Dec 2004
Location: Tell-Aviv
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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, titel12, titel125 or free text for the Administrator
  • in the CP of "staff signature" can work if the user is part of usergroups id
Reply With Quote
  #16  
Old 02-15-2008, 04:58 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 02-16-2008, 11:02 AM
dacho's Avatar
dacho dacho is offline
 
Join Date: Dec 2004
Location: Tell-Aviv
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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) !
Reply With Quote
  #18  
Old 02-16-2008, 03:12 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 02-16-2008, 06:05 PM
dacho's Avatar
dacho dacho is offline
 
Join Date: Dec 2004
Location: Tell-Aviv
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04266 seconds
  • Memory Usage 2,265KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete