Support Forums

Old 05-04-2006, 06:14 PM   #1
Member
 
Join Date: Apr 2006
Location: Rome, Italy
Posts: 45
Rep Power: 13
Fedeo is on a distinguished road
Default Title question

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?

__________________
Fedeo
Italy Classifieds
Fedeo is offline  
Old 05-05-2006, 09:47 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,763
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

That would be line 52 of viewlisting.php

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

To:
$title= safeStripSlashes($rs['title'] ." : ". $title);
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-05-2006, 10:17 AM   #3
Member
 
Join Date: Apr 2006
Location: Rome, Italy
Posts: 45
Rep Power: 13
Fedeo is on a distinguished road
Default

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.
__________________
Fedeo
Italy Classifieds
Fedeo is offline  
Old 05-05-2006, 10:33 AM   #4
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,763
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

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
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-05-2006, 11:00 AM   #5
Member
 
Join Date: Apr 2006
Location: Rome, Italy
Posts: 45
Rep Power: 13
Fedeo is on a distinguished road
Default

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?
__________________
Fedeo
Italy Classifieds
Fedeo is offline  
Old 05-05-2006, 11:38 AM   #6
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,763
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

Try this:
PHP Code:
$site_title=$title;
$title="";
foreach (
$titlebread as $key => $value
        {
                         
$title.=$value .' 'LANG_CAT_SEPERATOR .' ';
        }
         
$title.=$site_title
</span>
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-05-2006, 11:39 AM   #7
Member
 
Join Date: Apr 2006
Location: Rome, Italy
Posts: 45
Rep Power: 13
Fedeo is on a distinguished road
Default

OK, I've solved the problem so:

I've added

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

and not

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

Ciao
__________________
Fedeo
Italy Classifieds
Fedeo is offline  
Old 05-05-2006, 11:40 AM   #8
Member
 
Join Date: Apr 2006
Location: Rome, Italy
Posts: 45
Rep Power: 13
Fedeo is on a distinguished road
Default

Yes, we have posted in the same time
__________________
Fedeo
Italy Classifieds
Fedeo is offline  
Old 06-13-2006, 05:39 PM   #9
Member
 
Join Date: Apr 2006
Posts: 84
Rep Power: 14
gppromano is on a distinguished road
Default

What can I change the title of listing?
example: title category: title listing
Thanks
gppromano is offline  
Old 01-25-2007, 01:38 PM   #10
Vegas Used Cars Online
 
Join Date: Jan 2007
Posts: 22
Rep Power: 10
gwdlv is on a distinguished road
Default

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.
gwdlv is offline  
 

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
User Store HTML Title CB v3.1 Questions & Support 1 01-10-2007 09:42 AM
Last question... I hope Jake Pre Sales Questions 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


All times are GMT -4. The time now is 11:30 AM.


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