Fork me on GitHub

Site Design Question - Xanthia Theme  Bottom

  • First, I believe this is posted in the correct forum, if not I apologize. I am not cross posting it into another forum.

    My main question is this:

    When someone, anyone of any status, permission level, group, social level, race, color, creed, etc comes to our site I want them to see the basic introduction message. This message should only appear on the 'HOME' page and nowhere else at anytime for any reason.

    I tried creating an Admin Message with the HTML, text, pics, etc that make of this introduction. This kind of works but not very well. It still might work or they may be a far superior solution, here are the problems I am encountering using an Admin Message for this purpose with a Xanthia Theme (3rd Party).

    1. The Admin Message shows up at the top of every single module and I have to go in under BLOCK CONTROL and manually remove it.
    2. When I install a new module the Admin Message is automatically attached in the Center block at the top of the module forcing me to go to block control and remove it.

    The obligatory link to the web site so you can see for yourself is: http://www.iccidaho.org

    I would appreciate any comments helping me come up with a better way to do this 'Home Page' thing.

    Thanks in advance,

    Joe
  • Normally under your themes you have
    themes/_YOURTEMPLATE/templates/master.htm
    if you do have another subfolder, called modules/ and you find there home.htm
    you could delete

    Code

    <!-- [centerblocks] -->

    assuming you only have one centerblock, with your admin message in it.
    For now I guess that's the fastest en easiest way.

    -Igor



    edited by: videokid, Sep 11, 2006 - 08:43 PM
  • Isn't the Center Block used by many other modules by default?

    I'm buying beer if you can help me get this worked out!

    THANKS


    Joe
  • Belgium has the best beer... LOL...

    but back to your question,
    no not really, check it in your admin panel
    admin.php --> blocks
    there you can see which blocks are already used ...

    -Igor

    joedunn

    I'm buying beer if you can help me get this worked out!

  • Belgium does have great beer. I was suggesting a donation to your beer fund, not a personal delivery of the beverage. However, if you wish, you could stop by my local pub/house anytime.

    I see what you mean!! However, this may be the simplest solution but is it the best solution? I don't mind doing some extra work if that means I don't have to completely eliminate CENTER BLOCKS from my web site.

    Is this a problem with my 3rd party theme? Should I just pay someone to look at the entire 3rd party theme and fix any problems that may or may not exist?

    I want to learn to do it correctly, I do love a good short cut, however.

    Joe
  • Probably not the best solution, no.

    You could add a content-wrapper, especially for the admin messages.
    name: Admin Message
    label: admin_message
    template: adminblock.htm [to be created and uploaded]

    That way admin messages are assigned to the template and not the ccblock [or dsblock] will be used.

    Personnally I never uses the Admin messages, you could also hard code it in you home.htm and leave it out in master.htm, since everybody is allowed to read your welcome message. No matter how many 3th part modules you will install, the message will never show up.

    - Igor - santé... schol... hips... icon_smile
  • Problem - - -

    Now this message won't be able to be translated into multiple languages. This web site will eventually be in several languages.

    Hardcoding might be the answer for the short term but how do I do it so that I can assign a language to it other than English.


    Joe
  • Sure, I do it all the time

    Code

    <!--[if pnUserGetLang() == "nld"]-->Nederlandse tekst
    <!--[elseif pnUserGetLang() == "eng"]-->English text
    <!--[else]-->Default Text<!--[/if]-->

    or

    Code

    <!--[if pnUserGetLang() == "nld"]-->Nederlandse tekst<!--[/if]-->
    <!--[if pnUserGetLang() == "eng"]-->English text<!--[/if]-->

    assuming you have the multilangual option 'on' in Settings...

    - Igor

    joedunn


    Hardcoding might be the answer for the short term but how do I do it so that I can assign a language to it other than English.

This list is based on users active over the last 60 minutes.