Advertisement:

Author Topic: Ad Title shows City, even thought not in actual Ad Title  (Read 1033 times)

marylooo

  • Newbie
  • *
  • Posts: 16
Ad Title shows City, even thought not in actual Ad Title
« on: October 07, 2013, 01:09:10 am »
I created an ad with a 91-character title. I created it from the user form (not the admin form).

When I view the ad, I see the title shows the city also!

This is not just 2 fields being displayed close to one another. Even in the HTML code (screenshot attached), they are enclosed in a single element.

I confirmed that, in the database, the title does not include the city (screenshot attached).

Note that even the HTML <title> element shows the bug (screenshot attached).

Am I missing something? Is this by design?

Update: I think this behavior is by design. See next post.
« Last Edit: October 07, 2013, 01:20:10 am by marylooo »

marylooo

  • Newbie
  • *
  • Posts: 16
Re: BUG: Ad Title shows City, even thought not in actual Ad Title
« Reply #1 on: October 07, 2013, 01:15:49 am »
I think this behavior is by design.

I checked item.php and saw that the theme really does grab both values and enclose them in a single HTML element.  That code looks like this:
Code: [Select]
<h1><?php if( osc_price_enabled_at_items() ) { ?><span class="price"><?php echo osc_item_formated_price(); ?></span> <?php ?><strong><?php echo osc_item_title() . ' ' osc_item_city(); ?></strong></h1>
I think I will modify it in my theme so the user can distinguish the ad title from the city. Right now, they just run into another. Maybe I will enclose the city in a <span class="city"></span> and give it a style in my CSS file; e.g. .city{color:#F00;}
« Last Edit: October 07, 2013, 01:19:33 am by marylooo »