68 Classifieds Forums
Go Back   68 Classifieds Forums > v3.0.x Help & Support > v3.0 Modifications > Title question
v3.0 Modifications Post any modifications you have done to 68 Classifieds Source. Please note these are not supported by 68 Classifieds, and may make future updates more difficult.

 
Thread Tools Display Modes
(#1)
Old
Fedeo Fedeo is offline
Member
Fedeo is on a distinguished road
 
Posts: 45
Join Date: Apr 2006
Location: Rome, Italy
Default Title question - 05-04-2006, 06:14 PM

V 3.015

Before the 68C server crashed, someone (maybe Lhotch) indicated me how to change the tag title structure in the sub-category pages to put "site name" at the end of the title; e.g. Rome � Apartments � Site Name

To do so, I put this code in the category.php file, line 96:

$site_title=$title;
$title="";
foreach ($titlebread as $key => $value)
{
$title.=$value .' '. LANG_CAT_SEPERATOR .' ';
}
$title.=$site_title;
$cols=$subCategoryCols;
$body='categories/subcategories.tpl.php';


I would like to do the same thing in the title of the listing page;

now the title structure is:
Site Name : Title of the Listing

I would like to change so:
Title of the Listing : Site Name

Someone can help me to do this change?

Reply With Quote
(#2)
Old
suzkaw suzkaw is offline
Help you, I will.
suzkaw has a spectacular aura about
 
Posts: 1,813
Join Date: Mar 2006
Location: Belmont, NC
Default 05-05-2006, 09:47 AM

That would be line 52 of viewlisting.php

Change:
$title= safeStripSlashes($title ." : ". $rs['title']);

To:
$title= safeStripSlashes($rs['title'] ." : ". $title);


--
Thanks,
Eric Barnes
68 Classifieds
Documentation - Modifications - My Blog

Reply With Quote
(#3)
Old
Fedeo Fedeo is offline
Member
Fedeo is on a distinguished road
 
Posts: 45
Join Date: Apr 2006
Location: Rome, Italy
Default 05-05-2006, 10:17 AM

Hi suzkaw,

Yes! It works well, thank you very much for your help!

Now, I've modified tag Title structure in sub-categories and in lisiting pages.

It remains unchanged the Title in the main-categories; e.g.: Site Name � Rome

So, now, I've this situation (e.g.):

Site Name (index)

Site Name � Rome (main-categories)

Rome � Apartments � Site Name (sub-categories)

Listing Title � Site Name (listing pages)

Is it possible to change the Title structure in the main-categories too? e.g.: Rome � Site Name

Thanks, regards.
Reply With Quote
(#4)
Old
suzkaw suzkaw is offline
Help you, I will.
suzkaw has a spectacular aura about
 
Posts: 1,813
Join Date: Mar 2006
Location: Belmont, NC
Default 05-05-2006, 10:33 AM

On line 140 of category.php it should have:
PHP Code:
foreach ($titlebread as $key => $value)
        {
            
$title.=' '. LANG_CAT_SEPERATOR .' '. $value;
        }
Replace with this:
PHP Code:
$site_title=$title;
$title="";
foreach (
$titlebread as $key => $value)
        {
            
$title.=' '. LANG_CAT_SEPERATOR .' '. $value;
        }
        
$title.=$site_title;


--
Thanks,
Eric Barnes
68 Classifieds
Documentation - Modifications - My Blog

Reply With Quote
(#5)
Old
Fedeo Fedeo is offline
Member
Fedeo is on a distinguished road
 
Posts: 45
Join Date: Apr 2006
Location: Rome, Italy
Default 05-05-2006, 11:00 AM

I've modified line 140,

the structure is changed how I like, but there is a problem about the spaces;

now, the title is:

� RomeItaly Classifieds

...I would like that it is:

Rome � Italy Classifieds

Is it possible to do this change?
Reply With Quote
(#6)
Old
suzkaw suzkaw is offline
Help you, I will.
suzkaw has a spectacular aura about
 
Posts: 1,813
Join Date: Mar 2006
Location: Belmont, NC
Default 05-05-2006, 11:38 AM

Try this:
PHP Code:
$site_title=$title;
$title="";
foreach (
$titlebread as $key => $value)
        {
                         
$title.=$value .' '. LANG_CAT_SEPERATOR .' ';
        }
         
$title.=$site_title;
</span>


--
Thanks,
Eric Barnes
68 Classifieds
Documentation - Modifications - My Blog

Reply With Quote
(#7)
Old
Fedeo Fedeo is offline
Member
Fedeo is on a distinguished road
 
Posts: 45
Join Date: Apr 2006
Location: Rome, Italy
Default 05-05-2006, 11:39 AM

OK, I've solved the problem so:

I've added

$title.=$value .' '. LANG_CAT_SEPERATOR .' ';

and not

$title.=' '. LANG_CAT_SEPERATOR .' '. $value;

Ciao
Reply With Quote
(#8)
Old
Fedeo Fedeo is offline
Member
Fedeo is on a distinguished road
 
Posts: 45
Join Date: Apr 2006
Location: Rome, Italy
Default 05-05-2006, 11:40 AM

Yes, we have posted in the same time
Reply With Quote
(#9)
Old
gppromano gppromano is offline
Junior Member
gppromano is on a distinguished road
 
Posts: 22
Join Date: Apr 2006
Default 06-13-2006, 05:39 PM

What can I change the title of listing?
example: title category: title listing
Thanks
Reply With Quote
(#10)
Old
gwdlv gwdlv is offline
Vegas Used Cars Online
gwdlv is on a distinguished road
 
Posts: 19
Join Date: Jan 2007
Default 01-25-2007, 01:38 PM

Quote:
Originally Posted by suzkaw View Post
Try this:
PHP Code:
$site_title=$title;
$title="";
foreach (
$titlebread as $key => $value)
        {
                         
$title.=$value .' '. LANG_CAT_SEPERATOR .' ';
        }
         
$title.=$site_title;
Can you provide the code to do this is v3.1?
I followed these steps and the code is different.
Reply With Quote


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Store HTML Title CB v3.1 Questions & Support 1 01-10-2007 09:42 AM
Last question... I hope Jake Pre Sales 5 10-31-2006 11:05 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



Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com