Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Guest Welcome Message

This discussion is related to the Guest Welcome Message addon.
MarkMark Vanilla Staff
edited March 2007 in Vanilla 1.0 Help
Guest Welcome Message


  • I like the way presents it's "you need to register" message: any chance of an optional second layout? for example see the very top of each page you visit here:
  • If you don't mind editing the add-on you can make the message appear elsewhere. For instance: a) As a notice in the notice box at the top of the discussions: Change $Panel->AddString to $NoticeCollector->AddNotice and remove the comma and position marker , 10 before the final bracket. b) Make it appear at the end of the Panel instead of the beginning: leave $Panel->AddString but increase the number 10 to larger number so that it appears beneath all other items in the panel (e.g. 450 as 500 is where the About Vanilla Infos start). c) Make it appear in its own div: Do the same as b) but edit the beginning to start with a closing div and take out the div at the end, e.g. so that the beginning and end look like this: $Panel->AddString('</div><div id="GuestWelcome"> ... ... ... ... .$Context->GetDefinition('GuestWelcomeBody'), 450); Then you can use css to place the div #GuestWelcome where you like, e.g. { position:absolute; top:0; left:0; width:100%; height:20px; background-color:yellow; } to force stick it at the top. Define this and the other styles in the style.css that comes with the GuestWelcome add-on.
  • Uploaded version 3.0 of Guest Welcome Message.
  • MarkMark Vanilla Staff
    I just changed it so it works like the New Applicants add-on. It puts the message at the top of the page on almost every page (if you aren't signed in).
  • Mark maybe when you upload a new source file you should have a short input to say what's changed and have the lussumobot post it?
  • MarkMark Vanilla Staff
    I was thinking exactly that when I uploaded this one today...
  • I like it the way it was actually pic
    Could we have both versions?

    Posted: Wednesday, 14 March 2007 at 1:56PM (AEDT)

  • MarkMark Vanilla Staff
    There's another thought ... I keep records of every single version uploaded. I could have a historical availability, I guess...
  • Mini, you beat me to it! It would create a nice changelog :) The historical availability would also be great :)
  • MarkMark Vanilla Staff
    I've been thinking a lot about changing the way those extension files are renamed. Instead of adding the date, make it do and disallow overwriting files. So people have to update their version number whenever they upload a new version.
  • I already put the -version.number bit anyway, so of course I'll support that ;) Forcing the version number is also a good thing IMO. means you can't end up having two releases of the same version.
  • Re: version numbers: check out

    Gist of article:
    Software version numbers like x.y.z provide little or info (other than major vs minor version)
    It makes a lot more sense to use (or at least incorporate) date/time instead
    -> date + time will always unique
    -> provides instant feedback on plug-in age (hmmm. old plug-in, perhaps I should check for a new version?)

    Since downloads already seem to specify a unique name, e.g.,
    why not use the same approach for indicating the version...

    Re: overwrite...

    To avoid long 'version' lists due to last-minute changes,
    developer could perhaps be allowed to delete files uploaded
    within the last 3 hours?
  • @Mark: just wanted to give you some feedback, after upgrading to version 3.0. Much to my surprise, I actually got a couple of messages straight away from my users, telling me that the 'new look' was great, and that it made the sign-in process more visible and obvious. It also seems to have made the registration process clearer. I immediately got 2 new registrations. Coincidence? Perhaps, but I prefer to give credit to your new layout! Keep up the good work!
  • I have my Vanilla forum in English and Japanese. I installed this Welcome message add-on, but sadly it's only in English, even when I've set my Vanilla interface to Japanese. Where do I put the Japanese translation? Thank you!
  • MarkMark Vanilla Staff
    @JDW: You can either add it to your languages/yourlanguage/definitions.php or you can add it to conf/language.php
  • If you add the text to the conf/language.php file you also have to include the framework functions for the GetUrl() function calls to work. The function is called if someone clicks on the Terms of Service link while registering.

    // Need to include this to have the GetUrl() calls below work include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Functions.php'); // From the GuestWelcome extension: $Context->Dictionary["GuestWelcome"] = "<strong>Welcome Guest!</strong> <br />Want to take part in these discussions? If you have an account, <a href=\"".GetUrl($Configuration, "people.php")."\">sign in now</a>. <br />If you don't have an account, <a href=\"".GetUrl($Configuration, "people.php", "", "", "", "", "PostBackAction=ApplyForm")."\">apply for one now</a>.";

    I have a question. Why does the guest welcome box move its position slightly on the Search page? It is only on this page that the layout is slightly broken, and I can't figure out why.
  • Jordan,

    Thank you for the reply.

    However, you seem to be talking about editing a file other than what I edited. Specifically, you are talking about editing conf/language.php. In contrast, I edited only the following files:


    So I am not sure if your "framework" recommendation applies to my specific case. Does it?
  • I was replying to Mark's post. If you end up putting your language stuff in conf/languages.php you should add the include_once() I mentioned. Otherwise don't worry about it.
  • Jordan,

    Thank you for the clarification.

    I guess I now only need to continue worrying about how to solve the GetUrl problem in light of the fact my translations are NOT placed in /conf/languages.php!

  • Is there a way to change the color scheme? I have a very specific color scheme going on and the yellowish stuff really clashes bad. I don't think my clients would like that. I cannot figure out what css file this references. Am I missing something?
Sign In or Register to comment.