Support Forums

Old 05-28-2006, 11:15 AM   #1
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 120
Rep Power: 15
frommarcq is on a distinguished road
Question meta tag 'title' in contactus.php

The problem :
in contactus.php (and i think in all the pages.php), we just have the name of the page in the meta tag (the name of the website is missing).
I've made some little changes, and i want you to validate them for me :

In contactus.php, instead of :

PHP Code:
if($rs['pPublish']=="Y")
        {
            
$class_tpl->assign('pPageContent'safeStripSlashes($rs['pPageContent']));
        }
        else
        {
            
$class_tpl->assign('pPageContent''');
        }
        
$class_tpl->assign('body','contact/contactus.tpl.php');
    } 
i've replaced the code with :

PHP Code:
if($rs['pPublish']=="Y")
            {
                
$class_tpl->assign('title'$title .' - ' .safeStripSlashes($rs['pPageTitle']));
                
$class_tpl->assign('pPageContent'safeStripSlashes($rs['pPageContent']));
                
$class_tpl->assign('pPageTitle'safeStripSlashes($rs['pPageTitle']));
            }
            else
            {
                
$class_tpl->assign('title''');
                
$class_tpl->assign('pPageContent''');
                
$class_tpl->assign('pPageTitle''');
            }
            
$class_tpl->assign('body','contact/contactus.tpl.php');
        } 
Is the syntax correct ? do I have used the best way to show AND the name of the website AND the name of the page ?

That is the question of the day ! lol

Pascal

NB : to be complete, and avoid to have 'thenameofthesite - the nameofthepage' in the table title, I've replaced '{$title}' with '{$pPageTitle}' in 'contactus.tpl.php'.
__________________
68classifieds (V4.0.9Developer)

Last edited by frommarcq; 05-28-2006 at 11:21 AM.
frommarcq is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Title question Fedeo v3.0 Questions & Support 9 01-25-2007 01:38 PM
User Store HTML Title CB v3.1 Questions & Support 1 01-10-2007 09:42 AM
Problem getting page title flyingpylon v3.1 Questions & Support 5 10-19-2006 01:15 PM
Want to change "Featured Listing" title dawyatt v3.1 Questions & Support 2 09-18-2006 10:07 AM
Adding a (sub)category picture and title jamesbond v3.1 Questions & Support 4 08-11-2006 07:45 AM


All times are GMT -4. The time now is 04:13 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0