Support Forums

Old 03-15-2008, 07:45 AM   #1
Member
 
Join Date: Apr 2006
Posts: 82
Rep Power: 13
gppromano is on a distinguished road
Default Searchresults.php?type=100 Title page

How can I put in the title of the page searchresults.php?type=100 ,
the name of the category?
Thanks
gppromano is offline   Reply With Quote
Old 03-27-2008, 04:36 AM   #2
Member
 
Join Date: Apr 2006
Posts: 82
Rep Power: 13
gppromano is on a distinguished road
Default

Nobody can help me?
gppromano is offline   Reply With Quote
Old 03-27-2008, 09:26 AM   #3
Moderator
 
 
Join Date: Mar 2006
Posts: 3,866
Rep Power: 94
Lhotch is just really niceLhotch is just really nice
Default

Sorry, I dont really understand the question.

I also dont know what template your using or what version you are running or if you have the SEO mod installed or if you have the developer or designer version.

Something to consider for everyone who is looking for an answer. Most of the people here who can help do not get paid and most of the answers are not something we know off the top of our head. This means that in order for us to offer any help at all we need to dig into the script files and find an answer. This takes time, time that we are not compensated for. Now dont get me wrong, I like to help or I wouldnt be here, and helping others has forced me to look at the code and has allowed me to get as familiar with it as I am. However, if a question isnt very complete in stating what would like to be done it leaves room for me to make assumptions. Often times these assumptions are wrong in which case all the time I just spent working on a solution is wasted. So, simply put if a question doesnt make sense I often just ignore it because I dont have the time to work on a solution that isnt what is desired. So, if your serious about needingt help then help us to help you by offering as much information as possible.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 03-27-2008, 12:39 PM   #4
Member
 
Join Date: Apr 2006
Posts: 82
Rep Power: 13
gppromano is on a distinguished road
Default

Sorry, my previous question, I use the Developer V3.1.5.

Here's my question in detail:

When I see an ad and click on "More ads in this category, for example: http://www.mysite.com/searchresults.php?type=17

I open a new page, I would that in the title of the page rather than appear:
<title> Classified Software </ title>, appears the name of the category:
<title> Classified Software | Hotel Rome </ title>

You can help?
gppromano is offline   Reply With Quote
Old 03-27-2008, 12:46 PM   #5
civ
Senior Member
 
civ's Avatar
 
Join Date: Mar 2006
Location: Greer, SC
Posts: 665
Rep Power: 25
civ will become famous soon enough
Default

The 'More ads in this category' link shouldn't be pointing to searchresults at all - it should point to category.php (with the appropriate type and/or sec parameters), in which case the title will be as you want it.
__________________
Civ's Modules (____NOW v4 COMPATIBLE____):

Stop Incomplete Listings! (proven revenue booster!)
Scam Filter (Just say no to Nigerians!) updated
Similar Listings (keep visitors longer)
Feedback Mod (testimonial builder)
Listing Status Reminder free!
civ is offline   Reply With Quote
Old 03-27-2008, 12:55 PM   #6
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,399
Rep Power: 41
Maffo is a jewel in the rough
Default

On the viewlisting.php page Civ, it does point to searchresults.php .

Heres your fix GPPROMANO

open searchresults.php

find
PHP Code:
if(!empty($_REQUEST['type']))
    {
        
$arr_childs = array((int)$_REQUEST['type']);
        
get_ids($arr_childs);
    } 
and replace with
PHP Code:
if(!empty($_REQUEST['type']))
    {
        
// maffo code
        
$sSQL="SELECT name FROM ".PREFIX."categories WHERE id=".$_REQUEST['type'];
        
$result=$db->query($sSQL);
        
$rs=$result->fetch();
        
$sub_title " | ".$rs['name'];
        
// end maffo code
        
$arr_childs = array((int)$_REQUEST['type']);
        
get_ids($arr_childs);
    } 
then at the bottom of that page find
PHP Code:
$class_tpl->assign('title'$title); 
and replace with

PHP Code:
$class_tpl->assign('title'$title.$sub_title); 
Any more hacks, I 'll have to charge!!!
__________________
Super Mod v4 Is out and ready for download. DEMO
Purchase V4 Super Mod BETA at Reduced Price

Visit Me @ Classified-Sofware.co.uk

**Important** - All modules with the exceptions of the Bulk Upload System will be removed from my modshop on Tuesday September 30th. If you require a module you must get it before that date.
Maffo is offline   Reply With Quote
Old 03-27-2008, 01:03 PM   #7
Member
 
Join Date: Apr 2006
Posts: 82
Rep Power: 13
gppromano is on a distinguished road
Default

Thanks !!!!
gppromano is offline   Reply With Quote
Old 03-27-2008, 01:26 PM   #8
civ
Senior Member
 
civ's Avatar
 
Join Date: Mar 2006
Location: Greer, SC
Posts: 665
Rep Power: 25
civ will become famous soon enough
Default

That's weird that it points to searchresults - perhaps that's something we changed so long ago I've forgotten about it. In any event, simply changing the searchresults.php reference to category.php should work. The end result in that example would be category.php?type=17, which should work fine.
__________________
Civ's Modules (____NOW v4 COMPATIBLE____):

Stop Incomplete Listings! (proven revenue booster!)
Scam Filter (Just say no to Nigerians!) updated
Similar Listings (keep visitors longer)
Feedback Mod (testimonial builder)
Listing Status Reminder free!
civ 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
Ad Title as Page Title sbhkma v3.1 Questions & Support 2 11-19-2007 09:38 AM
Page Title - SEO CB v3.1 Questions & Support 18 11-02-2007 04:13 PM
Getting Google To Re-Index A Page After Title Change? bgordon Site Marketing 9 05-15-2007 01:04 AM
Page Title on Category page gwdlv v3.1 Questions & Support 6 02-02-2007 02:11 PM
Problem getting page title flyingpylon v3.1 Questions & Support 5 10-19-2006 02:15 PM


All times are GMT -4. The time now is 07:37 PM.


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