Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Usergroup Messages Details »»
Usergroup Messages
Version: 1.2.0, by harmor19 harmor19 is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.1 Rating:
Released: 10-07-2006 Last Update: 04-09-2007 Installs: 71
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Description
Have you ever wanted to show a usergroup or usergroups a message but don't feel like editing the template to do so?
With this add-on you'll be able to write a message to one, a few, or all usergroups.

To add, edit, or delete a message go to ACP --> Usergroups --> Usergroup Messages Manager

If you have installed this add-on on your board please click Install to the bottom right of this post
You are not permitted to redistribute this add-on on any site.
If you feel this add-on deserves Mod of the Month please click to nominate it

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 03-30-2007, 02:43 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andyucs View Post
and how did you do that for us n00bs lol
To use HTML, bbcode and smilies in the message

In usergroup_messages.php (admincp), find

PHP Code:
$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list()); 
Replace by :

PHP Code:
require_once(DIR '/includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
$parsed_text $parser->do_parse($text$do_html$do_smilies$do_bbcode$do_imgcode$do_nl2br$cachable); 
Find (x 2)

PHP Code:
$message $parser->do_parse($db->escape_string($vbulletin->GPC['message']), falsetruetruetruetruefalse); 
Replace by (x 2)

PHP Code:
$message $parser->do_parse($db->escape_string($vbulletin->GPC['message']), truetruetruetruetruetrue); 



To insert a title above the message, find in the template usergroupemessages :


PHP Code:
<div align='center' style='border:2px black solid;' class='alt1'>$ugmsg[message]</div><br /> 
And replace by :

PHP Code:
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">

<
tr><td class="tcat"><center>$ugmsg[title]</center></td></tr>

<
tr><td class='alt1'>$ugmsg[message]</td></tr></table><br /> 
Reply With Quote
  #33  
Old 03-31-2007, 06:06 PM
Andyucs's Avatar
Andyucs Andyucs is offline
 
Join Date: Nov 2006
Location: Okcular, Turkey
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First Thanks Sofia

i modifyed mine a bit to also centre the message as well and made it bold also

PHP Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">

<
tr><td class="tcat"><center>$ugmsg[title]</center></td></tr>

<
tr><td class='alt1'><b><center>$ugmsg[message]</b></center></td></tr></table><br /> 
you missed a
PHP Code:

from the begining of your modification
Reply With Quote
  #34  
Old 03-31-2007, 06:10 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, sorry the html, bbcode and smilies are good ?
Reply With Quote
  #35  
Old 03-31-2007, 06:26 PM
Andyucs's Avatar
Andyucs Andyucs is offline
 
Join Date: Nov 2006
Location: Okcular, Turkey
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sofia View Post
Yes, sorry the html, bbcode and smilies are good ?
yea looking good thanks

seem to have a prob with html code but bb codes work fine

take a look just above shout box

http://www.ucsclan.co.uk/forum/index.php
Reply With Quote
  #36  
Old 03-31-2007, 07:47 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andyucs View Post
yea looking good thanks

seem to have a prob with html code but bb codes work fine

take a look just above shout box

http://www.ucsclan.co.uk/forum/index.php
Ok so good Nice forum

For html, you must put "true" everywhere :

PHP Code:
$message $parser->do_parse($db->escape_string($vbulletin->GPC['message']), falsetruetruetruetruefalse); 
The first "false" corresponds to the html (activation -> true)
Reply With Quote
  #37  
Old 04-01-2007, 06:57 PM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet work is there anyway i can make this message only show once per users session?
Reply With Quote
  #38  
Old 04-09-2007, 06:58 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to make the messages display to users who's usergroup is not primary, but rather secondary?
Reply With Quote
  #39  
Old 04-09-2007, 07:29 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by |Jordan| View Post
Is there any way to make the messages display to users who's usergroup is not primary, but rather secondary?
Not with this version. I'm planning on upgrading this hack soon to do what you're asking.
Reply With Quote
  #40  
Old 04-09-2007, 09:52 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by harmor19 View Post
Not with this version. I'm planning on upgrading this hack soon to do what you're asking.
Sweet :up:

EDIT: Wow that was fast, i wasnt expecting an update 2 hours later. I thought it would be several days/weeks later. GJ!
Reply With Quote
  #41  
Old 04-10-2007, 01:10 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have fixed the problem with HTML tags from converting into ASCII characters.
Messages are shown to users in primary and secondary usergroups.
Reply With Quote
Reply


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 11:21 PM.


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.05697 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
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
  • (9)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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