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)

Ted S 07-02-2007 04:08 PM

Quote:

Originally Posted by vitrag24 (Post 1281343)
go to acp/vbulletin options/welcome header ****

disable guest messages there.

That would not solve the question of how to ADD a message for another condition.

vitrag24 07-02-2007 04:11 PM

again no response to my query.wont you reply buddy then let me know?

Mischievious 07-02-2007 04:17 PM

Quote:

Originally Posted by Ted S (Post 1281348)
Simple enough!

Open up the template welcome_headers and find the last <if ...> statement and the corresponding </if>. Under that add:

Code:

<if condition="!$show['guest']">
Your message here (be sure to add a table if you want to have a standard welcome headers format)
</if>


Actually; Let me go into more detail here.

On my Forum Home I placed $welcomeheaders in the original vBulletin Guest Welcome Box.

What I want to do, is show a second $welcomeheaders on Forum Home for members who've logged in.

Does that make any sense?

Ted S 07-02-2007 04:18 PM

vitrag24, See post #896.

Ted S 07-02-2007 04:20 PM

Quote:

Originally Posted by Mischievious (Post 1281359)
What I want to do, is show a second $welcomeheaders on Forum Home for members who've logged in.

Does that make any sense?

No problem. Just use the same code I pasted in your FORUMHOME template where ever you'd like the message to appear.

You can copy the table HTML from the welcome_headers template if you want to reuse that layout style.

Mischievious 07-02-2007 04:31 PM

Quote:

Originally Posted by Ted S (Post 1281361)
No problem. Just use the same code I pasted in your FORUMHOME template where ever you'd like the message to appear.

You can copy the table HTML from the welcome_headers template if you want to reuse that layout style.

It worked like a charm! Thank you very much! :D

Shazz 07-03-2007 08:21 PM

Successfully upgraded :)

Shazz 07-03-2007 08:22 PM

Hey Ted, in your first post you have set
4.2.1 - Fixed bug with global message

When importing the product it says 4.2.2 :erm:

Ted S 07-03-2007 11:12 PM

Well I fixed something else too. You want me to document everything??? :D

Shazz 07-04-2007 12:00 AM

Quote:

Originally Posted by Ted S (Post 1282279)
Well I fixed something else too. You want me to document everything??? :D

Yes please :D
Or you could update your first post saying

Updates
4.2.2 - Fixed Something...
4.2.1 - Fixed bug with global message
4.2.0 - Changed template conditionals to simplify customizations
4.1.9 - Added ability to disable messages if using Limited Guest Viewing system
4.1.3 - Added support for Limited Guest Viewing system

vitrag24 07-04-2007 02:37 PM

@ted s thx for your support.
u answered me similerly but didnt checked my query.i told u i'm not gettin that feature so asked you to explain.sorry to bother you i wont ask you now.

Ted S 07-04-2007 04:31 PM

What exactly do you need clarified?

tamborinegal 07-05-2007 12:21 AM

Hi Ted and thank you for this hack. It's great!

I've been trying to put a 100% table into the welcome header phrase (but the % sign keeps getting stripped out) - is there a way around this? I'd like to have a table with 3 equal columns and use percentages (not pixels) as I don't have a fixed width board. Any way of achieving this?

Thanks

Clancy

Ted S 07-05-2007 12:26 AM

Try editing the template welcome_headers and modify the tables there.

tamborinegal 07-05-2007 12:55 AM

Quote:

Originally Posted by Ted S (Post 1283069)
Try editing the template welcome_headers and modify the tables there.

Hi Ted, thanks for the quick response.

I don't think that will work will it? I want to put three different columns with three different messages in those columns for say members that have never posted... and then maybe two columns for the global announcement message. I won't be able to do this by altering the template will I?

Hope that makes sense. Thanks again,

Clancy

Ted S 07-06-2007 01:01 AM

Sure it will. Each message has a distinct set of HTML code which you can edit however you like. The phrases are only provided to make life easier for "standard" changes to the text.

xcingix 07-10-2007 05:14 AM

I want to add something that says
Code:

After you?ve done that, feel free to introduce yourself
Where
Quote:

feel free to introduce yourself
is I want to add a link to my introductions forum.
How do I do that?
I also want to add something that tells you how many members are on the forums.

Can someone tell me how to add these in languages(?)

xcingix 07-10-2007 06:54 PM

Quote:

Originally Posted by xcingix (Post 1287300)
I want to add something that says
Code:

After you?ve done that, feel free to introduce yourself
Where
is I want to add a link to my introductions forum.
How do I do that?
I also want to add something that tells you how many members are on the forums.

Can someone tell me how to add these in languages(?)

ANYone?
Please?
.........

xcingix 07-10-2007 08:43 PM

Quote:

Originally Posted by xcingix (Post 1287300)
I want to add something that says
Code:

After you?ve done that, feel free to introduce yourself
Where
is I want to add a link to my introductions forum.
How do I do that?
I also want to add something that tells you how many members are on the forums.

Can someone tell me how to add these in languages(?)

If this is explained in this thread somewhere can someone please link me to the post?
I've been through the whole thread.

Doug Nelson 07-10-2007 10:14 PM

Have you tried just adding an HTML link?

Ted S 07-10-2007 11:31 PM

Quote:

Originally Posted by xcingix (Post 1287883)
If this is explained in this thread somewhere can someone please link me to the post?
I've been through the whole thread.

A little patience please. I offer support but sometimes you do have to wait a few hours.... :D

You can edit your phrases to include any links you want by going to your vbulletin admin --> options --> welcome header system.

xcingix 07-11-2007 09:48 PM

Quote:

Originally Posted by Ted S (Post 1287990)
A little patience please. I offer support but sometimes you do have to wait a few hours.... :D

You can edit your phrases to include any links you want by going to your vbulletin admin --> options --> welcome header system.

I know you can edit the message that way, but I mean how do I create a shortcut the displaying the number of members like "we have {7} members" ({7} would display the number of members) then use it in welcome headers.

Ted S 07-12-2007 01:07 AM

You can assign the variable 7="$vbulletin->userstats['numbermembers']" by editing your template and phrase. This is untested.

xcingix 07-12-2007 01:51 AM

Quote:

Originally Posted by pokerie (Post 1110584)
I solved this pretty easily by disabling the welcome header for guests and basically putting more text in the quick register box that said what the guest header was saying. So now I have both integrated basically by disabling the Guest welcome header. I have all other welcome headers enabled for people who haven't posted yet and for people who haven't posted recently.

Example here: http://www.poker.ie/community/forums/

Hey, I'm looking for that quick register mod for 3.6.7.
Any idea where I can find it?
Quote:

Originally Posted by Ted S (Post 1288764)
You can assign the variable 7="$vbulletin->userstats['numbermembers']" by editing your template and phrase. This is untested.

So just go into the welcomeheader template and put
Code:

7="$vbulletin->userstats['numbermembers']"
Anywhere?

Ted S 07-12-2007 02:00 AM

Put it in the phrase. After the other variables.

xcingix 07-12-2007 02:38 AM

Quote:

Originally Posted by Ted S (Post 1288803)
Put it in the phrase. After the other variables.

I'm not very good at this. Can you show me where I would put
Code:

7="$vbulletin->userstats['numbermembers']"
In what part of this
Code:

<!-- // Start Welcome Headers // -->
<!-- google_ad_section_start(weight=ignore) -->
<if condition="$vboptions[wlhon] AND THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'login'">
<if condition="$vboptions[wlhcookie] AND !$vbulletin->GPC['welcomeheader']"><else />
       
        <if condition="$vboptions[wlhguest] AND $show['guest']">
                <!-- guest welcome message -->
                <br />
                <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <tr>
                        <td class="alt1">
                                <phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]" 3="$vboptions[bbtitle]" 4="sendmessage.php$session[sessionurl]">$vbphrase[welcome_guest]</phrase>
                        </td>
                </tr>
                </table>
                <!-- / guest welcome message -->
        <if condition="$welcomehdr = '1'"></if></if>

        <if condition="is_member_of($bbuserinfo, 3) AND $vboptions[wlhunconfirmed] AND !$welcomehdr">
                <!-- / unconfirmed user message -->
                <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="register.php?do=requestemail" 3="sendmessage.php$session[sessionurl]" 4="$bbuserinfo[username]">$vbphrase[welcome_unconfirmed]</phrase>
                        </td>
                </tr>
                </table>
                <!-- / unconfirmed user message -->
        <if condition="$welcomehdr = '1'"></if></if>

        <if condition="$bbuserinfo[posts]<1 AND $vboptions[wlhneverposetd] AND !$show['guest'] AND !$welcomehdr">
                <!-- never posted message -->
                <br />
                <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <tr>
                        <td class="alt1">
                                <phrase 1="$bbuserinfo[username]" 2="$vboptions[bbtitle]">$vbphrase[welcome_neverposted]</phrase>
                        </td>
                </tr>
                </table>
                <!-- / never posted message -->
        <if condition="$welcomehdr = '1'"></if></if>

        <if condition="$wlhtime > $bbuserinfo[lastpost] AND $vboptions[wlhpostmoreoften] AND !is_member_of($bbuserinfo,6,5) AND !$show['guest'] AND !$welcomehdr">
                <!-- hasnt posted lately message -->
                <br />
                <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <tr>
                        <td class="alt1">
                                <phrase 1="$bbuserinfo[username]" 2="$vboptions[bbtitle]" 3="sendmessage.php$session[sessionurl]">$vbphrase[welcome_postmoreoften]</phrase>
                        </td>
                </tr>
                </table>
                <!-- / hasnt posted lately message -->
        <if condition="$welcomehdr = '1' AND !$welcomehdr"></if></if>
                               
        <if condition="$vboptions[wlhglobal] AND !$welcomehdr">
        <!-- global announcement message -->
        <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="sendmessage.php?$session[sessionurl]" 3="$bbuserinfo[username]">$vbphrase[welcome_gannounce]</phrase>
                </td>
        </tr>
        </table>
        <!-- / global announcement message -->
        <if condition="$welcomehdr = '1'"></if></if>
                                       
</if>
</if>
<!-- google_ad_section_end -->
<!-- // End Welcome Headers // -->

?

Ted S 07-12-2007 03:21 AM

In the <phrase ...> tag you want to use. Each message has it's own tag and html code, it's all commented to mark them.

AlexanderT 07-12-2007 05:57 AM

Ted,

I don't know if it was suggested before, but here is a suggestion regarding the inactivity welcome header for existing forum members. One of my members complained in an e-mail that she got so annoyed with the message that she decided not to check out the forums anymore. ;( On the other hand I still believe this particular feature of your hack is great to enable non-posters to become posters again.

My suggestion: What about adding a small check button in the inactivity welcome header which a user can click to disable the reminder for x days (as defined in the control panel?). I may be wrong but I think it would only require a few additional Javascript lines to do that.

Best,
Alex

xcingix 07-12-2007 08:20 AM

7="$vbulletin->userstats['numbermembers']" didnt work. Everything else did.

Ted S 07-12-2007 03:25 PM

Then I don't know what to tell you -- I found that variable in one of the script and it looked global, guess not. You would have to find the proper variable or write a plugin to query the database and add it to your phrase.

Ted S 07-12-2007 03:26 PM

Quote:

Originally Posted by AlexanderT (Post 1288928)
My suggestion: What about adding a small check button in the inactivity welcome header which a user can click to disable the reminder for x days (as defined in the control panel?). I may be wrong but I think it would only require a few additional Javascript lines to do that.

Alex,

This has come up a few times before...

I can't think of any way to do this without queries which I'd like to avoid. But I'm still thinking.

AlexanderT 07-12-2007 04:20 PM

Quote:

Originally Posted by Ted S (Post 1289225)
Alex,

This has come up a few times before...

I can't think of any way to do this without queries which I'd like to avoid. But I'm still thinking.

Ted, I am by no means a Javascript expert (I much prefer server-based languages), but shouldn't it be possible to control this all via Javascript? Via Javascript, you could set an additional cookie when a user clicks on the close button and that cookie could contain information when it was the last time the message popped up.

Ted S 07-12-2007 07:14 PM

Using a cookie like that is an option but it also has limitations (i.e. users who use multiple machines) but may be the best option.

AlexanderT 07-13-2007 07:42 AM

True. Well, it'd be fantastic if you could implement something like this (cookie-based message click away) if you get the chance. In the meantime I'll disable the inactivity welcome header because of the negative feedback I received from it.

Still, one of the most useful hacks. Thanks!

vcruiser 07-14-2007 01:36 AM

Thanks for the mod. How do I add links, bullets and such to the messages?

breakdance 07-15-2007 12:11 PM

real good stuff

Ted S 07-16-2007 01:45 AM

Quote:

Originally Posted by vcruiser (Post 1290459)
Thanks for the mod. How do I add links, bullets and such to the messages?

Go to the welcome headers options and select the messages you wish to modify.

andy91287 07-19-2007 04:30 PM

This is appearing on every page, any way to limit it to the home page?

Sorry if this is answered already.

Ted S 07-19-2007 05:26 PM

You could edit the template welcome_headers adding the variable THIS_SCRIPT == 'index' but that would defeat the entire purpose of the hack and I wouldn't recommend using it.

Remember, just because it's your homepage doesn't mean it's the page someone comes to your site through.

Avixe 07-20-2007 05:08 PM

This is an awesome hack, thank you! :up:


All times are GMT. The time now is 03:18 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.04097 seconds
  • Memory Usage 1,850KB
  • 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
  • (7)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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