vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   welcome message? (https://vborg.vbsupport.ru/showthread.php?t=81265)

dreck 05-10-2005 05:12 PM

welcome message?
 
I would like to create another welcome message for members that have say 0 to 25 posts. Is their something I can replace the "<if condition="$show['guest']">" in this code to make it work?
Code:

        <if condition="$show['guest']">
        <!-- welcome message2 -->
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
        </tr>
        <tr>
                <td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
                        <phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message2]</phrase>
                </td>
        </tr>
        <!-- / welcome message2 -->
        </if>


Reeve of shinra 05-10-2005 05:18 PM

Here is a great article that shows you to do this and more.
http://theadminzone.com/forums/showthread.php?t=3560

dreck 05-10-2005 06:24 PM

Thanks for the quick reply!

Yes, that is very good info.. I have seen this same info on another site.

But.. I would like to target users that have posts between 0 and 25..
I am not sure how to edit this code to work?
This info targets users with no posts.. unconfirmed, and no posts for 14 days..
I wanted to add a message with alittle info to let users know how to use the forum.
I have alot of problems with users not knowing how to post.

Thanks.

ericgtr 05-10-2005 06:33 PM

How about setting up a group and then a promotion based on posts, then you can add a condition for that group, so it would look something like this (change x to the group id):

Code:

        <if condition="is_member_of($post, x)">
        <!-- welcome message2 -->
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
        </tr>
        <tr>
                <td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
                        <phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message2]</phrase>
                </td>
        </tr>
        <!-- / welcome message2 -->
        </if>


dreck 05-10-2005 09:56 PM

Thats great idea...

Thank you!

I have never used the promotion before?
Reputation Comparison Type Greater or Equal to Less Than?
Reputation Level ?
Days Registered ?
Posts ?
Promotion Strategy ?

Reeve of shinra 05-10-2005 11:44 PM

Check out logicians template conditionals hack too

dreck 05-11-2005 02:07 PM

wow.. thats a cool hack!

I will definally install it... But I may wait till i upgrade.

Thanks.


All times are GMT. The time now is 09:32 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.01080 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete