Osclass forums

Support forums => Themes => Twitter => Topic started by: ciccioxter on November 27, 2013, 09:54:48 pm

Title: How to enable regions on homepage? (solved)
Post by: ciccioxter on November 27, 2013, 09:54:48 pm
How to enable regions on homepage? Like the demo for example!
On setting->locations I select countries, regions and cities but nothing change.

I have osclass 3.2.2 (I don't find the download for 3.2.1, full compatible with this theme).
Title: Re: How to enable regions on homepage?
Post by: design on November 27, 2013, 10:08:33 pm
in admin->settings->locations; that is where you add more countries/regions/cities to your database. not where you show it on the home page.

as the twitter default shows the regions already in the side bar, are you wanting to have regions selectable in the search bar? if so change this….

in theme/header.php
just after :
Code: [Select]
<div class="fill">
replace the entire container div with this:

Code: [Select]
<div class="container">
                            <?php osc_goto_first_category() ; ?>
                            <?php if(osc_count_categories () > 0) { ?>
                            <ul class="nav">
                                <?php while ( osc_has_categories() ) { ?>
                                <li class="<?php echo osc_category_slug() ; ?><?php if ( osc_count_subcategories() > ) { ?> menu<?php ?>">
                                    <a href="<?php echo osc_search_category_url() ; ?>" <?php if ( osc_count_subcategories() > ) { ?>class="menu"<?php ?>><?php View::newInstance()->_erase('subcategories'); echo osc_category_name() ; ?></a>
                                    <?php if ( osc_count_subcategories() > ) { ?>
                                    <ul class="menu-dropdown">
                                        <?php while ( osc_has_subcategories() ) { ?>
                                        <li class="<?php echo osc_category_slug() ; ?>"><a href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a></li>
                                        <?php ?>
                                    </ul>
                                    <?php ?>
                                </li>
                                <?php ?>
                            </ul>
                            <?php ?>
                            <ul class="nav secondary-nav btn success">
                                <li class="publish">
                                    <a href="<?php echo osc_item_post_url_in_category() ; ?>"><?php _e("Publish your ad today"'twitter'); ?></a>
                                </li>
                            </ul>
                        </div>
Title: Re: How to enable regions on homepage?
Post by: ciccioxter on November 28, 2013, 12:16:46 am
Thank design, but it doesn't work.

On the left my bar is empty. I want it like the demo (ex. image).
Title: Re: How to enable regions on homepage?
Post by: design on November 28, 2013, 12:56:37 am
create an ad. see what happens...
Title: Re: How to enable regions on homepage?
Post by: ciccioxter on November 28, 2013, 08:09:51 pm
create an ad. see what happens...

Oh -.- Done! Thank you design. I had previously already created an ad with another template. The problem was that the template calls "Regions" (in the ad) what we (in Italy) call "City".
Title: Re: How to enable regions on homepage? (solved)
Post by: design on December 02, 2013, 07:02:34 pm
yea, US has states not regions, it's not hard to change around