vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Note in Private Message Form (https://vborg.vbsupport.ru/showthread.php?t=196828)

Ipuck 11-20-2008 10:00 PM

Note in Private Message Form
 
1 Attachment(s)
Very simple mod. Adds a note on top of the Private Message form.

If a registered or unregistered user tries to send a private message, it will add a note on top of the form with links to "FAQ" and "contact us".

This helps prevent users to contact the administrator or moderators for simple questions.

Installation:

+ Install product via Product Manager.

Edit:

+ Edit note, links and usergroups in the "pm_stopm" template
Styles & Templates > Style Manager > Private Message Templates > pm_stopm
Settings:

+ Select which usergroup can see the message:
PHP Code:

<if condition="is_member_of($bbuserinfo, array(1, 2, 3, 4))"


TheLastSuperman 11-21-2008 02:27 AM

Thanks! 3.6.8 (changed minversion="3.8." and installed)

Also you can edit the template how you wish all, simply change the code but some html i.e. <br> does not work so use alternates!

Sample of my Template pm_stopm after deleting/re-doing:

Code:

                Private Message Tools:
                <p></p>
                <a href="http://www.yoursitenamehere.com/memberlist.php" target="_blank">Member List</a>
                <span>|</span>
                <a href="http://www.yoursitenamehere.com/showgroups.php" target="_blank">User Groups</a>
                <p></p>

But you can leave the <b></b> for bold if you like etc.

Simple yet nice, Thanks again!

g0dfather1984 11-21-2008 04:38 AM

Not compatible w/ 3.8 beta 2.

If you could make it compatible, it would be greatly appreciated.

Thanks for listening.

albibak 11-21-2008 05:24 AM

Better to post it in "vBulletin 3.8 Add-ons" forum, and no "vBulletin 3.8 Template Modifications".

Ipuck 11-21-2008 03:38 PM

Quote:

Originally Posted by g0dfather1984 (Post 1669831)
Not compatible w/ 3.8 beta 2.

If you could make it compatible, it would be greatly appreciated.

Thanks for listening.

Fixed the problem. Thanks for letting me know.

Quote:

Originally Posted by TheLastSuperman (Post 1669772)
Thanks! 3.6.8 (changed minversion="3.8." and installed)

Thank you for showing the solution.

pein87 11-21-2008 04:51 PM

to fix the <br> problem use <br /> instead this is xhtml transitonal not strict doc type.

Bounce 11-21-2008 09:02 PM

We are working on a seperate support site, I take it you are able to change the links url to whatever you want?

Edit: also can you add usergroups to use the hack?

Edit (again lol): I see that you can,I added admin usergroup to test

HTML Code:

<if condition="is_member_of($bbuserinfo, array(1, 2, 3, 4, 6))">
but its not showing on the pm section:confused:

Ipuck 11-22-2008 05:18 PM

Quote:

Originally Posted by hIBEES (Post 1670280)
Edit: also can you add usergroups to use the hack?
Edit (again lol): I see that you can,I added admin usergroup to test

Yes, :D. I should add that to the description.

Quote:

Originally Posted by hIBEES (Post 1670280)
We are working on a seperate support site, I take it you are able to change the links url to whatever you want?

Yes, you can.

Quote:

Originally Posted by hIBEES (Post 1670280)

HTML Code:

<if condition="is_member_of($bbuserinfo, array(1, 2, 3, 4, 6))">
but its not showing on the pm section:confused:

Is working for me :confused:. Are you log in as administrator? ;)

Bounce 11-24-2008 04:00 PM

1 Attachment(s)
Quote:

Originally Posted by Ipuck (Post 1670720)

. Are you log in as administrator? ;)

Yes as I added that usergroup to test ;)
Quote:

Originally Posted by Ipuck (Post 1670720)
Is working for me :confused:

It does display but not when you start a new pm
only when you reply to one.....


See screenies :erm:

TheInsaneManiac 01-22-2009 06:24 AM

How about showing this only if the PM is being sent to a staff member?


All times are GMT. The time now is 01:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01184 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete