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.
Options

Page Editing

edited September 2006 in Vanilla 1.0 Help
I have a feeling this has been answered. But I still don't get it.

But, I want to add text to the login page. I tried to add text to the people.php file, but an error occured when I did. I added the text inside and outside of the php code and still I had an error. When I add the text after the php, it seems to work okay. How do I go about adding a message to my forum members on the login page? Step by step is fine by me if someone is willing to take the time, or point me in a direction to find my answer.

Thanks so much.

-Brian
-------------
Zollinhofer.com

Comments

  • Options
    Try this:

    <?php echo 'Test' ;?>

    Scott
  • Options
    I got this:
    Test
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/25/d125543370/htdocs/math/forum/people.php:1) in /homepages/25/d125543370/htdocs/math/forum/library/People/People.Class.Authenticator.php on line 93

    I really don't know much about php, so any help is appreciated...

    -Brian
    -------------
    Zollinhofer.com
  • Options
    Sorry -

    Put it like this if you want the text below the login:
    // 4. FIRE PAGE EVENTS $Page->FireEvents(); echo 'Your text here'; ?>

    OR like this to have the test above the login:
    echo 'Your text here'; // 4. FIRE PAGE EVENTS $Page->FireEvents(); ?>

    Having the <?php tags was redundant.

    Hope that works - I just tested it on mine, and it was all good -

    Scott
  • Options
    edited September 2006
    It did work, thanks. That is helpful to know. Although I noticed that the "your text here" is added in front of all the html headers... Not really the right place for all of that.
    Now...
    How can I add stuff that I would normally have in an html document?
    Like:
    <div id="container"> a lot of stuff </div>

    Something like that...

    Also, same idea but just for my learning purposes, how would you go about embedding the login into an html page? Does it take a lot or is it something relatively easy? I wouldn't mind keeping http://math.zollinhofer.com/forum/ the main login, but also have another login field on a different page on a different site...
    -Brian
    -------------
    Zollinhofer.com
  • Options
    You have to "echo" all of the code that you want displayed, just like we did for the 'Your text here'. So:

    echo '<div id="container">A bunch of stuff now</div>';

    I'm not sure on the embedding question. Maybe you could import (display) the people.php page into another html page (IFRAME?) but you're going to have to get someone else's opinion on that one. Good luck!

    Scott
  • Options
    I know zip about php, but do you only want the text on the opening page, or is it OK on all pages? If so, the sidepanel extension works just fine and dandy, even for me.
This discussion has been closed.