Support Forums

Search by Listing ID#

This is a discussion on Search by Listing ID# within the Customizations forums, part of the Developer Forums category; are you using viewlisting.tpl or viewlisting2.tpl? You might just need to add the 2 to the code. I would also ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

Reply
 
Thread Tools Display Modes
Old 11-28-2009, 08:55 AM   #11
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,037
Rep Power: 29
bowers01 is on a distinguished road
Default

are you using viewlisting.tpl or viewlisting2.tpl?
You might just need to add the 2 to the code.

Quote:
I would also like for the ID listing number to show up in the tables of Featured, Newest & Top Listings View.
Do you mean the search pages?
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is online now   Reply With Quote
Old 11-28-2009, 10:48 AM   #12
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 7
pipelin is on a distinguished road
Default

I changed my mind and i made a copy from breadcrumb.tpl and I called breadcrumb2.tpl, this is the code:

PHP Code:
<class="breadcrumb">
    <
a href="category.php" class="breadcrumb">You are Here: {$smarty.const.LANG_BROWSE_CATEGORIES}</a>
    {foreach 
from=$breadcrumb item="entry"}
    {
$smarty.const.LANG_CAT_SEPERATOR} {$entry}
    {/foreach} {
$smarty.const.LANG_CAT_SEPERATORPostID_{$view}
</
p
And the viewlisting.tpl: {include file="categories/breadcrumb2.tpl"}
pipelin is offline   Reply With Quote
Old 11-28-2009, 11:13 AM   #13
Junior Member
 
Join Date: Jan 2007
Posts: 14
Rep Power: 15
metroweb is on a distinguished road
Default

Thanks for your help Nick.

I do web design but have limited knowledge at programming. I can follow and do what I need with step by step instructions.

What I want to do is:

1. Include the label "Ad ID#" in the heading row with the headings Photo, Title, City, & View Listing at hotspringsclassifiedads.com/toplistings.php?pg=featured.

2. Include the ID#'s in the Ad ID# column for each classified ad showing on that Featured Listings Page.

3. Include the label "Ad ID#" in the heading row with the headings Photo, Title, City, & View Listing in the category sections as well. (e.g.) hotspringsclassifiedads.com/category.php?cat=homes-garden-homes

4. Include the ID#'s in the Ad ID# column for each classified ad showing on each of those type of category pages.

5. Each customer needs to know the ID# for their particular classified ad so when they advertise in the newspaper they can list the website and their Ad ID#. Buyers can then go to the website and Search by Ad ID# and find the customers particular classified ad.

I can and have successfully made changes to many of the software files on my own. On this particular instance I don't know what files to change and I don't know what the change needs to be for each particular file to get this accomplished.

Thanks again,
__________________
MetroWeb

Currently running 68Classifieds v4.1.6 Designer ... default 3 col
metroweb is offline   Reply With Quote
Old 11-28-2009, 11:22 AM   #14
Junior Member
 
Join Date: Jan 2007
Posts: 14
Rep Power: 15
metroweb is on a distinguished road
Default

Quote:
Originally Posted by pipelin
I changed my mind and i made a copy from breadcrumb.tpl and I called breadcrumb2.tpl, this is the code:

PHP Code:
<class="breadcrumb">
    <
a href="category.php" class="breadcrumb">You are Here: {$smarty.const.LANG_BROWSE_CATEGORIES}</a>
    {foreach 
from=$breadcrumb item="entry"}
    {
$smarty.const.LANG_CAT_SEPERATOR} {$entry}
    {/foreach} {
$smarty.const.LANG_CAT_SEPERATORPostID_{$view}
</
p
And the viewlisting.tpl: {include file="categories/breadcrumb2.tpl"}

Thanks pipelin,

I have the breadcrumb part working.

Now I need to add the label "Ad Id#:" in the heading rows of the featured ads and the ad listings by category. And I need the Ad ID# to be listed in the cells of the Ad ID#: column for each individual classified ad.

Thank you,
__________________
MetroWeb

Currently running 68Classifieds v4.1.6 Designer ... default 3 col

Last edited by metroweb; 11-28-2009 at 11:27 AM.
metroweb is offline   Reply With Quote
Old 11-28-2009, 11:31 AM   #15
Junior Member
 
Join Date: Jan 2007
Posts: 14
Rep Power: 15
metroweb is on a distinguished road
Default

Quote:
Originally Posted by bowers01
are you using viewlisting.tpl or viewlisting2.tpl?
You might just need to add the 2 to the code.

Do you mean the search pages?
Nick
I believe I am using viewlisting.tpl. Why is there a viewlisting2.tpl file? (Just for a second choice of display?)

Yes, It is on the pages displayed when you click on the Featured Ads, Newest Ads or Top Ads links.

Thank you,
__________________
MetroWeb

Currently running 68Classifieds v4.1.6 Designer ... default 3 col
metroweb is offline   Reply With Quote
Old 11-28-2009, 12:29 PM   #16
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 7
pipelin is on a distinguished road
Default

Quote:
Originally Posted by metroweb
Thanks pipelin,

I have the breadcrumb part working.

Now I need to add the label "Ad Id#:" in the heading rows of the featured ads and the ad listings by category. And I need the Ad ID# to be listed in the cells of the Ad ID#: column for each individual classified ad.

Thank you,
I think you need to do some work in the showlistings.tpl
pipelin is offline   Reply With Quote
Old 11-29-2009, 01:29 AM   #17
Junior Member
 
Join Date: Jan 2007
Posts: 14
Rep Power: 15
metroweb is on a distinguished road
Default

Quote:
Originally Posted by bowers01
{if $body=='viewlisting.tpl'} AD ID: {$view} {/if}
Hi Nick,

What is the file name I need to add this code to?

Where in the file will I add this code?

Thanks,
__________________
MetroWeb

Currently running 68Classifieds v4.1.6 Designer ... default 3 col
metroweb is offline   Reply With Quote
Old 11-29-2009, 02:28 AM   #18
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,037
Rep Power: 29
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by metroweb
Hi Nick,

What is the file name I need to add this code to?

Where in the file will I add this code?

Thanks,
Hi,
On my site in the footer i have
Code:
			{if $body=='viewlisting.tpl'}
			<p class="floatleft">	<a href="category.php" class="breadcrumb">{$smarty.const.LANG_BROWSE_CATEGORIES}</a>
	{foreach from=$breadcrumb item="entry"}
		{$smarty.const.LANG_CAT_SEPERATOR} {$entry|replace:'&amp;':'&'}
	{/foreach} � :{$title|replace:'&':'&'}: {$view}</p>
and for example this will generate
Categories � Trucks � Prime Mover � :INTERNATIONAL S2670 & WHITE SEMI TIPPER: 216

You have
Code:
<p class="breadcrumb">
<a href="category.php" class="breadcrumb">You are Here: {$smarty.const.LANG_BROWSE_CATEGORIES}</a>
{foreach from=$breadcrumb item="entry"}
{$smarty.const.LANG_CAT_SEPERATOR}{$entry}
{/foreach} {$smarty.const.LANG_CAT_SEPERATOR}<b>Ad ID#:{$view}</b>
</p>
So if you change it to
Code:
<p class="breadcrumb">
<a href="category.php" class="breadcrumb">You are Here: {$smarty.const.LANG_BROWSE_CATEGORIES}</a>
{foreach from=$breadcrumb item="entry"}
{$smarty.const.LANG_CAT_SEPERATOR}{$entry}
{/foreach}{if $body=='viewlisting.tpl'} {$smarty.const.LANG_CAT_SEPERATOR}<b>Ad ID#:{$view}</b>{/if}
</p>
So then the ad ID#: will only show ont he viewlisting page.
cheers,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is online now   Reply With Quote
Old 11-29-2009, 12:30 PM   #19
Junior Member
 
Join Date: Jan 2007
Posts: 14
Rep Power: 15
metroweb is on a distinguished road
Default

Hi Nick,

Thanks for all your help. I have it working.

Here is my final code for anyone else that would like to make this change.

This code is located in the file at templates/default/categories/breadcrumb.tpl.

The original code was:

<p class="breadcrumb">
<a href="category.php" class="breadcrumb">{$smarty.const.LANG_BROWSE_CATE GORIES}</a>
{foreach from=$breadcrumb item="entry"}
{$smarty.const.LANG_CAT_SEPERATOR} {$entry}
{/foreach}
</p>

The new code I inserted is:

<p class="breadcrumb">
{if $body=='viewlisting2.tpl'} <a href="category.php" class="breadcrumb">You are Here: {$smarty.const.LANG_BROWSE_CATEGORIES}</a>
{foreach from=$breadcrumb item="entry"} {$smarty.const.LANG_CAT_SEPERATOR} {$entry}
{/foreach}<br />
<font color="#FF0000"><b>Ad ID#: <u>{$view}</u></b></font> {/if}
</p>

This new code allows a viewer to see the Ad ID# for the particular ad displaying at the view listing level.

It also allows the registered customer to see his Ad ID# so he can use it in his print advertisements and make it easy for someone to find his specific ad.

I did make a change to the home page Search tool that says Search Ads by ID#:

The viewer enters the ID# and clicks on the Search Button and it takes the viewer right to that specific ad.

I would like help to make one more change concerning the Ad ID#.

I would like the "Ad ID#:" label and field display on a row just above the Seller label and field on the view listing page.

I have made several attempts but have not had any success in getting that accomplished.

Any help on that would be appreciated.

Thanks so much,
__________________
MetroWeb

Currently running 68Classifieds v4.1.6 Designer ... default 3 col
metroweb is offline   Reply With Quote
Old 02-05-2010, 01:58 AM   #20
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 9
jason1971 is on a distinguished road
Default

Quote:
Originally Posted by metroweb



The new code I inserted is:

<p class="breadcrumb">
{if $body=='viewlisting2.tpl'} <a href="category.php" class="breadcrumb">You are Here: {$smarty.const.LANG_BROWSE_CATEGORIES}</a>
{foreach from=$breadcrumb item="entry"} {$smarty.const.LANG_CAT_SEPERATOR} {$entry}
{/foreach}<br />
<font color="#FF0000"><b>Ad ID#: <u>{$view}</u></b></font> {/if}
</p>

This new code allows a viewer to see the Ad ID# for the particular ad displaying at the view listing level.


Like your code, I have modified mine a bit so that instead of the Ad ID# showing up all through the category slection stage, mine just shows up when you get to the chosen category>

<p class="breadcrumb">
<a href="category.php" class="breadcrumb">You are Here: {$smarty.const.LANG_BROWSE_CATEGORIES}</a>
{foreach from=$breadcrumb item="entry"} {$smarty.const.LANG_CAT_SEPERATOR} {$entry}
{/foreach}<br />{if $body=="viewlisting.tpl"}
<font color="#FF0000"><b>Ad ID#: <u>{$view}</u></b></font> {/if}
</p>
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Admin listing view search views Mikael Technical Support 2 02-12-2009 10:41 AM
how to Search listings by Listing ID Winnie Technical Support 17 01-12-2009 07:29 PM
Listing Number to take person directly to a listing? domino Technical Support 15 09-28-2008 06:04 AM


All times are GMT -4. The time now is 06:39 PM.


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