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.
Banner image
Hello
I managed to put a banner image on a forum that I installed for a little alliance in ogame. The problem is that when the login and logout pages appear, the same banner shows up. How can I set up a different image for the login and logout pages?
Thanks!
ps. ... great forum. i love it.
0
This discussion has been closed.
Comments
If you added your banner image via manipulation of a theme file (
themes/head.php
), you will need to revert those changes and follow the walkthrough above.I missed the word "image" in your first comment which threw me off Unfortunately, the people pages (login/logout pages) are pretty locked down and so an extension can't be created to complete your request.
In fact, on further research, I found a bug that won't allow extensions to work on people pages: http://lussumo.com/community/discussion/8346/. Once the bug is fixed it would be a simple matter of creating an extension to change
BANNER_TITLE
whenpeople.php
is loaded.The following extension will not work with the current version of Vanilla 1.1.4. It should be fixed in the next release (1.1.5).
<?php /* Extension Name: People Banner Replacement Extension Url: http://lussumo.com/ Description: Changes the default banner title on the people pages Version: 1.0 Author: Matthew Pietz Author Url: N/A */ if (!array_key_exists('PEOPLE_BANNER_TITLE', $Context->Configuration)) { AddConfigurationSetting($Context, 'PEOPLE_BANNER_TITLE', 'Change \'PEOPLE_BANNER_TITLE\' to your title'); AddConfigurationSetting($Context, 'PEOPLE_USE_EXTENSIONS', 1); } if ($Context->SelfUrl === 'people.php') { function PeopleBanner_PreRender_Replace(&$Filler) { $Filler->Properties['_OldBannerTitle'] = $Filler->Context->Configuration['BANNER_TITLE']; $Filler->Context->Configuration['BANNER_TITLE'] = $Filler->Context->Configuration['PEOPLE_BANNER_TITLE']; } function PeopleBanner_PostRender_Restore(&$Filler) { if (array_key_exists('_OldBannerTitle', $Filler->Properties)) { $Filler->Context->Configuration['BANNER_TITLE'] = $Filler->Properties['_OldBannerTitle']; unset($Filler->Properties['_OldBannerTitle']); } } $Context->AddToDelegate('Filler', 'PreRender', 'PeopleBanner_PreRender_Replace'); $Context->AddToDelegate('Filler', 'PostRender', 'PeopleBanner_PostRender_Restore'); } /* vim: set noet sw=8 ts=8 nowrap: */
All you have to do once this extension is installed and running is to go to yourconf/settings.php
file and change/add the configuration key'PEOPLE_BANNER_TITLE'
to whatever you want.I used the GuestSignIn extension by Wallphone instead. It shows the login fields in the left panel so that the member never has to leave the main forum area.
Check it out see what you think: talkSFU.ca