vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Board Optimization - Welcome headers - Improve community registration rates (https://vborg.vbsupport.ru/showthread.php?t=119572)

Merriweather 02-04-2007 04:31 PM

Quote:

Originally Posted by Bubble #5 (Post 1174464)
Wouldn't a standard announcement achieve the same thing? ;) It contains a global announcement option.

This hack changes the announcement based on the user and the user's activity, so I don't think it would be the same thing.

Ted S 02-04-2007 05:07 PM

Quote:

Originally Posted by Konstantinos (Post 1174185)
Can u add an option for those who havent purchased a paid subscription?

Open the template "welcome_headers" and scroll down until you find:

Code:

<!-- / hasnt posted lately message -->
<else />

Add the following after this:

Code:

<if condition="!is_member_of($bbuserinfo, XYZ)">
        <!-- supporting members -->
        <br />
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="alt1">
                        <phrase 1="$vboptions[bbtitle]" 2="payments.php" 3="$bbuserinfo[username]">
                        Hello $bbuserinfo[username]!<br \><br \>
                        While $vboptions[bbtitle] is offered as a free service, we rely on the donations of our supporting members.
                        There are a lot of advantages to being a supporting member that you may not know about.... All this for just $___ plus you'll
                        be helping to kee our site running!<br \><br \>
                        Ready to join? <a href="/payments.php">Sign up</a> as supporting member today!
                </td>
        </tr>
        </table>
        <!-- / supporting members -->
<else />

Then find the first </if> and add another </if> before it.

Change XYZ to your supporting member group, if there are multiple groups separate with a comma. You will also want to configure the text to make it relevant to your supporting member benefits.

I have also posted this as a plugin file, just install and override your existing file but note, this will remove any template changes you have made.

BrettMo 02-04-2007 07:03 PM

My first mod on the board that i have had up less than 24 hours. Installed without any issues. Thanks. :up:

Merriweather 02-04-2007 07:55 PM

Quote:

Originally Posted by Ted S (Post 1174587)
Open the template "welcome_headers" and scroll down until you find:

Code:

<!-- / hasnt posted lately message -->
<else />

Add the following after this:

Code:

<if condition="!is_member_of($bbuserinfo, XYZ)">
        <!-- supporting members -->
        <br />
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="alt1">
                        <phrase 1="$vboptions[bbtitle]" 2="payments.php" 3="$bbuserinfo[username]">
                        Hello $bbuserinfo[username]!<br \><br \>
                        While $vboptions[bbtitle] is offered as a free service, we rely on the donations of our supporting members.
                        There are a lot of advantages to being a supporting member that you may not know about.... All this for just $___ plus you'll
                        be helping to kee our site running!<br \><br \>
                        Ready to join? <a href="/payments.php">Sign up</a> as supporting member today!
                </td>
        </tr>
        </table>
        <!-- / supporting members -->
<else />

Then find the first </if> and add another </if> before it.

Change XYZ to your supporting member group, if there are multiple groups separate with a comma. You will also want to configure the text to make it relevant to your supporting member benefits.

I have also posted this as a plugin file, just install and override your existing file but note, this will remove any template changes you have made.


I get the following error when adding your above code as indicated:

Quote:

The following error occurred when attempting to evaluate this template:

The conditional on line 5 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Merriweather 02-04-2007 08:01 PM

I added another </if> before <!-- // End Welcome Headers // --> and that let it go through, but nothing has changed for my free users.

I want my registered group to see a message about the benefits of subscribing. I replaced "XYZ" with 10,11,12 which are the IDs of my subscription groups. I then logged in as a user with a usergroup of 2 (registered, unpaid) and they still got the "you haven't posted in a while" message.

DasCool 02-04-2007 11:57 PM

How come I can't see the Welcome Header Interface in my admin CP and yes i have the product imported

Shazz 02-05-2007 12:01 AM

Quote:

Originally Posted by DasCool (Post 1174832)
How come I can't see the Welcome Header Interface in my admin CP and yes i have the product imported

can't see the interface?
Like its in vBoptions>

DasCool 02-05-2007 12:40 AM

Quote:

Originally Posted by Shazz (Post 1174833)
can't see the interface?
Like its in vBoptions>

ooooo never mind, i thought it would be a link on the side

Shazz 02-05-2007 12:53 AM

Quote:

Originally Posted by DasCool (Post 1174858)
ooooo never mind, i thought it would be a link on the side

Gald you found it..

midirtrider 02-05-2007 01:27 AM

Can someone help with making this appear on my CMPS home..

I have it installed and it works as soon as you click on the Forums index tab.. and you are on the forums index page..

but on the home page (vbadvanced cmps page) it does not show up..
is there a way to make a module and put this into it?

thanks in advance for the help..


All times are GMT. The time now is 11:32 AM.

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.02318 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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