Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:11:12 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: How do I change the 'login' text?  (Read 721 times)
danielm123

Offline Offline

Posts: 8


« on: January 17, 2008, 10:38:11 AM »

Hi there,

I am trying to change the following text on the login page:
<p style="text-align: center; font-weight: bold;">Please log in to access the Staff Portal pages</p><br/>

Using the website baker admin - interface - nothing currently appears for that page. It doesn't contain a wysiwyg.

Where can I find the file which contains this line?  I have searched within all files on the FTP server (WebsiteBaker Site) and found nothing apart from some old index.html and index.htm files which contain this line of code but changes to those files made no difference.

Please could someone please help me?

Many thanks

Daniel
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: January 17, 2008, 11:14:32 AM »

Hello,

where did you have tis message? I think in frontend not in backend of WB. If yes it is hardcoded in the index.php of your template.

Matthias
Logged
danielm123

Offline Offline

Posts: 8


« Reply #2 on: January 21, 2008, 11:07:34 AM »

Hi Matthias,

Thanks for your reply.

I still couldn't find the statement in the index.php  'Please log in to access the xxxxxxxx Staff Portal pages' I have included the index.php coding below. I do not have any modules attached to the Login page such as a WYSIWYG. I have also attached an .htm file floating in the FTP which I have found - if I rename the filename to index.htm - then this allows me to change the text of the login - but it causes difficulty in the ability to login to the portal

Many thanks in advance,

Daniel


****************INDEX.PHP **************************************
<?php

// $Id: index.php 320 2006-03-02 21:08:27Z stefan $

/*

 WebsiteBaker Project <http://www.websitebaker.org/>
 Copyright (C) 2004-2006, Ryan Djurovich

 WebsiteBaker is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 WebsiteBaker is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with websitebaker; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/

$starttime = array_sum(explode(" ",microtime()));

// Include config file
require_once(dirname(__FILE__).'/config.php');

// Check if the config file has been set-up
if(!defined('WB_PATH')) {
    header("Location: install/index.php");
    exit(0);
}

require_once(WB_PATH.'/framework/class.frontend.php');
// Create new frontend object
$wb = new frontend();

// Figure out which page to display
// Stop processing if intro page was shown
$wb->page_select() or die();

// Collect info about the currently viewed page
// and check permissions
$wb->get_page_details();

// Collect general website settings
$wb->get_website_setting s();

// Load functions available to templates, modules and code sections
// also, set some aliases for backward compatibility
require(WB_PATH.'/framework/frontend.functions.php');

// Display the template
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php');

?>


********************INDEX.HTM*********************************
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Noname Staff Portal</title>
</head>
<body style="text-align: center">

<div style="margin: 50px auto; width: 700px; border: solid 1px black; text-align: left; font-family: Verdana, sans-serif; font-size: 10pt;">
<img src="/media/images/noname_logo.gif" style="margin: 20px 0 20px 20px;" />
<p style="text-align: center; font-weight: bold;">Please log in to access the noname Staff Portal pages</p><br/>
<form class="login_table" method="post" action="http://www.noname.info/account/login.php?redirect=http://www.noname.info/pages/welcome.php" name="login">
    <table width="50%" cellspacing="0" cellpadding="5" border="0" align="center">
        <tbody>
            <tr>
                <td style="text-align: right;">Username:</td>
                <td><input type="text" name="username" /></td>
            </tr>
            <tr>
                <td style="text-align: right;">Password:</td>
                <td><input type="password" name="password" /></td>
            </tr>
            <tr>
                <td style="text-align: left;">&nbsp;</td>
                <td><input type="submit" value="submit" name="submit" /></td>
            </tr>
            <tr align="left">
                <td style="text-align: center;" colspan="2"><!-- <a href="http://www.noname.info/account/forgot.php">Forgot your Details?</a> --></td>
            </tr>
        </tbody>
    </table>
</form>
</div>
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #3 on: January 21, 2008, 12:55:00 PM »

Hello,

did you rename the page extension in advanced settings to .htm and/or set the pages dir to root?
If yes, both didn't work in 2.6.7. These options are buggy and could cause that your page didn't work anymore. So i recommand to set first pages dir back to /pages and page extension back to .php (We will fix this issues in the nextr WB version).

As i talked about index.php I didn't mean the index.php of WB, i meant the index.php of the template you use. (look at templates dir and the folder of your template).

As your infos are very very small helping you is very difficult. But if you've done what i thougth above you now have a index.htm and a index.php in the root of your server. All htm (or html files are displayed before any .php files. To get WB working it is necessary to parse the index.php wich is in the root. As long as there are htm or html files this is not possible.

If I'm wrong, please give us mir infos, if I'm right please do as i advice.

Matthias
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!