Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Encourage members to post Details »
Encourage members to post
Mod Version: 1.00, by BasilFawlty (Designer) BasilFawlty is offline
Developer Last Online: Jul 2018 I like it Show Printable Version Email this Page

vB Version: 4.2.5 Rating: (0 vote - 0 average) Installs: 3
Released: 21 Mar 2018 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

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:

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:

<!-- 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.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Screen Shot 2018-03-21 at 7.26.15 AM.jpg
Views:	132
Size:	110.2 KB
ID:	157014   Click image for larger version

Name:	joinin3.png
Views:	88
Size:	165.4 KB
ID:	157015  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 21 Apr 2018, 13:14
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Why not use a conditional notice? No templates to edit.
Reply With Quote
Reply

Tags
encourage, members


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 10:09.

Layout Options | Width: Wide Color: