php script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
grayson9
Forum Newbie
Posts: 4
Joined: Thu Feb 02, 2006 8:28 pm
Location: japan

php script

Post by grayson9 »

Jcart | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


hello,
three days ago i purchased some dating software and installed it successfully onto my server. i subsequently wanted to update the about us page, faq, contacts etc.
that is where t6he fun started as i assumed this would be done by typing script into the appropriate file which i tried countless times only to fail.
I then tried contacting the supplier of the software who appear to have gone to ground some where in the Ukraine.
I life in Japan and dont speak much japanese so getting help here is not an option.
All i want to Know is where do i install the text?
my website is http://www.boooms.com/booomz/
and as you can see the areas i discussed are empty
this is an example of the script from about us!

Code: Select all

<?
require_once( "inc/header.inc.php" );
require_once( "$dir[inc]db.inc.php" );
require_once( "$dir[inc]design.inc.php" );
require_once( "$dir[inc]profiles.inc.php" );

// --------------- page variables and login

$_page['name_index'] = 11;
$_page['css_name'] = 'third_pages.css';


if ( !( $logged[admin] = member_auth( 1, false ) ) )
    if ( !( $logged[member] = member_auth( 0, false ) ) )
        $logged[aff] = member_auth( 2, false );

$_page['header'] = _t( "_ABOUT_US_H" );
$_page['header_text'] =  _t( "_ABOUT_US_H1" );

// --------------- page components

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();

// --------------- [END] page components

PageCode();

// --------------- page components functions

/**
 * page code function
 */
function PageCompPageMainCode()
{
	global $site;
	
	$ret = '';
	$ret .= '<div class="third_block">';
		$ret .= _t( "_ABOUT_US", $site['title'] );
	$ret .= '</div>';
	
	return $ret;
}
?>
i do hope some one can give my good advice
regards
grayson9


Jcart | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Post by nickman013 »

Hello,

You have to post in the PHP Code forum. Also use PHP tags when posting on the forums.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Look for a language file?

lang.php or something like that?
grayson9
Forum Newbie
Posts: 4
Joined: Thu Feb 02, 2006 8:28 pm
Location: japan

im lost

Post by grayson9 »

what do you mean by all of that sorry i am really new to this and at an absalute loss
grayson9
Forum Newbie
Posts: 4
Joined: Thu Feb 02, 2006 8:28 pm
Location: japan

Post by grayson9 »

ok i will try the language file
grayson9
Forum Newbie
Posts: 4
Joined: Thu Feb 02, 2006 8:28 pm
Location: japan

nothing

Post by grayson9 »

the language file is completly empty
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Moved to PHP-Code.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

put the files back on your own computer, then do a search for files that contain something from the faq, contact, about us page.

You should then get a list of pages that you will have to change the content in.

Save a bunch of time, rather then trying to piece throught the code finding out where the page are.
Post Reply