SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2012, 01:14:40 pm

Login with username, password and session length
Members
Total Members: 10069
Latest: tetsujrock
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 42
Total: 42
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to set a title for a page?  (Read 2874 times)
Kalphiter
Newbie
*
Offline Offline

Posts: 13


View Profile
« on: August 29, 2008, 07:22:31 pm »

Code: (PHP)
<?php

function template_main()

{

echo 
'

<table cellspacing="1" cellpadding="5" width="100%">
<tr>
<td class="catbg" align="center"><b>Chat</b></td>
</tr>

<tr>
<td class="windowbg2" align="center">

<table border="0" width="100%" bgcolor="silver">
<tbody>
<tr class="catbg" width="100%">
<td width="100%">&nbsp;Meglio Scape</td>
</tr>
<tr width="100%">
<td class="smalltext" width="100%">
<p style="text-align: center;"><a name="chat"></a> 
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="405" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="name" value="chat" />
<param name="align" value="middle" />
<param name="flashvars" value="id=31746992" />
<param name="src" value="http://www.xatech.com/web_gear/chat/chat.swf" /><embed type="application/x-shockwave-flash" width="540" height="405" src="http://www.xatech.com/web_gear/chat/chat.swf" flashvars="id=31746992" align="middle" name="chat"></embed>
</object>
</p>
</td>
</tr>
</tbody>
</table>

</tr>



<tr>
<td class="catbg"><center><b>SMF ,&nbsp; ZeRo ToleRance © 2008-2009</b></center></td>


</center>


</table>

'
;
}

?>

How would I set the title of that page as in <title></title> because I looked in source and it the tags have nothing in it.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #1 on: August 29, 2008, 09:47:38 pm »

Set in the Sources file using
$context['page_title']

Example:
Code:
$context['page_title'] = 'My Page';
Logged
Kalphiter
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #2 on: August 30, 2008, 10:07:18 am »

Set in the Sources file using
$context['page_title']

Example:
Code:
$context['page_title'] = 'My Page';
Thanks you own.

But where do I put it?
Code: (PHP)
<?php
function Forumchat ()
{
 
loadTemplate('chat');
}
?>

« Last Edit: August 30, 2008, 10:10:58 am by Kalphiter » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #3 on: August 30, 2008, 12:00:56 pm »

after loadtemplate
Logged
Kalphiter
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #4 on: September 07, 2008, 09:19:49 pm »

after loadtemplate
Thank you.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]

[May 15, 2012, 09:32:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.425 seconds with 18 queries.