Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Encourage members to post Details »»
Encourage members to post
Version: 1.00, by BasilFawlty BasilFawlty is offline
Developer Last Online: Feb 2021 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.2.5 Rating:
Released: 03-20-2018 Last Update: Never Installs: 3
Template Edits
Re-useable Code  
No support by the author.

ABOUT THIS MOD

First, credit where credit is due. I got this idea from another mod by member dszuecs which is intended to force people (or at least encourage them) to register. This mod is similar but is aimed at members who are logged in and have a post count of zero (0). One of my biggest frustrations over the years has been people who register on my forum but never post anything. I created a special forum called "New Members" for people to introduce themselves, but never had a good way to entice them to make a post. Thus, I created this "mod" and thought I should share it. NOTE: This is the first mod I've ever posed here, so I hope I'm doing this right.

WHAT IT DOES

This modification will display a little character with a message to any member who is 1) logged in and 2) has a post count of ZERO (0). In other words, if someone is registered and logged in, this mod checks their post count. If they have never posted even once, the message will tell them to post an introduction of themselves in our "New Member" forum, then, once their post count is at least (1) they will no longer see the message. I'll attach the graphic I use, but you can make your own or modify this one. (May need to adjust size parameters if you use a different image).


1. Name image "joinus.png" (or .gif or .jpg, as appropriate) and upload your desired image to "/images/misc/joinus.png"


2. In AdminCP: Styles & Templates >> Search in Templates (need to repeat for each style where you want the mod)

3. Search for and OPEN "additional.css" and add the following lines:

Quote:
div.joinin {
background:url(images/misc/joinin3.png);
background-repeat: no-repeat;
width:584px;
height:499px;
padding:0 5px 3px;
position:fixed;
top:0px;
left:50%;
margin-left:-292px;
z-index:1;
}
Again, you will need to modify each of the styles additional.css files for all styles you with to implement the mod.

Save and reload. This will place the image in center (the margin-left with negative number brings the image back to the an amount equal to 1/2 the width of the image. This is necessary because the "left:50%;" position parameter moved the left side of the image to the center, so we want to bring it back left a bit so that the middle of the image is centered)

4. In Admin CP: Style & Templates >> Style Manage >> Select Edit Templates from dropdown for each style in which you wish to implement the mod.

Open your "header" template for the selected style and add the following line on top:

Quote:
<!-- Encourage members to post mod -->
<vb:if condition="THIS_SCRIPT != 'register'">
<vb:if condition="$show['member']">
<vb:if condition="$bbuserinfo[posts] == 0"><div class="joinin"></div></vb:if>
</vb:if>
</vb:if>
<!-- End Encourage members to post mod -->
(Repeat for header of each style you have)

6. Mark as installed

7. Finished.

Screenshots

File Type: jpg Screen Shot 2018-03-21 at 7.26.15 AM.jpg (110.2 KB, 0 views)
File Type: png joinin3.png (165.4 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 04-21-2018, 10:14 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not use a conditional notice? No templates to edit.
Reply With Quote
  #3  
Old 05-28-2019, 07:44 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
Why not use a conditional notice? No templates to edit.
good point!
Reply With Quote
  #4  
Old 05-28-2019, 09:53 PM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
Why not use a conditional notice? No templates to edit.
Certanly you could do that and in fact I did do that for a while. This just looks a little cooler (my opinion). Also, with a notice, the notice will disappear when you scroll down on the page. With this little silly mod, the little man with the message stays with you as you scroll. So far it has been very effective. But certainly one can use the Notice System - this is just another option I offered up.
Reply With Quote
  #5  
Old 05-04-2022, 11:39 PM
2SQ.ORG 2SQ.ORG is offline
 
Join Date: Mar 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to change the message to fit the board of the member who downloaded this code
?
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 08:24 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.04022 seconds
  • Memory Usage 2,263KB
  • Queries Executed 19 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (2)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete