Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 291
Total: 291

Author Topic: How to set a title for a page?  (Read 7628 times)

0 Members and 1 Guest are viewing this topic.

Offline Kalphiter

  • Member
  • *
  • Posts: 13
    • View Profile
How to set a title for a page?
« on: August 29, 2008, 07:22:31 pm »
Code: (PHP) [Select]
<?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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: How to set a title for a page?
« Reply #1 on: August 29, 2008, 09:47:38 pm »
Set in the Sources file using
$context['page_title']

Example:
Code: [Select]
$context['page_title'] = 'My Page';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Kalphiter

  • Member
  • *
  • Posts: 13
    • View Profile
Re: How to set a title for a page?
« Reply #2 on: August 30, 2008, 10:07:18 am »
Set in the Sources file using
$context['page_title']

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

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

« Last Edit: August 30, 2008, 10:10:58 am by Kalphiter »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: How to set a title for a page?
« Reply #3 on: August 30, 2008, 12:00:56 pm »
after loadtemplate
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Kalphiter

  • Member
  • *
  • Posts: 13
    • View Profile
Re: How to set a title for a page?
« Reply #4 on: September 07, 2008, 09:19:49 pm »

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
7649 Views
Last post September 14, 2007, 12:12:30 pm
by ApplianceJunk
2 Replies
5704 Views
Last post April 15, 2008, 09:14:29 pm
by cripwalk
0 Replies
3782 Views
Last post January 22, 2009, 04:53:42 pm
by Cubie
1 Replies
4596 Views
Last post September 22, 2011, 04:46:51 pm
by SMFHacks
1 Replies
3690 Views
Last post June 16, 2012, 11:47:54 am
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal