Loading


Advertisement:

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
General help / Re: Not receiving email both on new user side and admin side
« Last post by onlineleo21 on April 29, 2017, 10:01:23 pm »
Hi,

Are you using Gmail server or host mail server?
12
Plugins / HybridAuth Plugin
« Last post by er.manishmishra@gmail.com on April 29, 2017, 09:00:43 pm »
Hello Everyone

I just started with OsClass. I tried to upload a 3rd party plugin HybridAuth 2.9.2 using oc-admin, its uploading the plugin files successfully, but not showing in the plugin list, even I can see it in public_html/oc-content/plugins/hybridauth-2.9.2/.

Can you guys please help? Thanks in advance.

Regards,
Manish
13
3.7.x / Re: Update to 3.7.3 - stream_socket_enable_crypto() Error
« Last post by dev101 on April 29, 2017, 05:11:31 pm »
I remember having the exact same issue few months ago in one test system (shared hosting), when phpmailer patch was still in testing branch, but the problem was resolved simply by replacing generic hostname (e.g. "localhost") with a proper one. There's no need to regenerate certificates.

Usually, you will see it already as some path where your shared hosting node actually is (someserver01.cpanel.something.com), or just ask your hosting support to tell you, if you don't know.
14
Plugins / translating a plugin
« Last post by SEE on April 29, 2017, 03:05:04 pm »
Hi

I installed "messenger" plugin andI want to translate it.

1. copied messenger.po to desktop    2. translated it with po editor into other language and saved as .po and generated .mo   3. made a new folder in the plugin lang folder, in my case gr_GR   4. inserted tha translated messenger.po and messenger .mo file    5. refresh web,..nothing happening... 6. deactivate and reactivate plugin... nothing happening again....

can anyone help me out here? Thanks !
15
Hi @DrizzleThemes,
have you stopped updating your Flatter these we paid €40 to buy for?
16
General help / Re: Not receiving email both on new user side and admin side
« Last post by marius-ciclistu on April 29, 2017, 12:00:10 pm »
Hi. I did not set any emai server and with a server cron set-up, the emails are being sent ok.

More details here: https://forums.osclass.org/general-help/auto_cron-stoped-working-after-cpanel-update/msg149431/#msg149431
17
This is for 3.7.1
oc-includes/osclass/functions.php

Code: [Select]
function meta_title() {
    $location = Rewrite::newInstance()->get_location();
    $section  = Rewrite::newInstance()->get_section();
    $text = '';

    switch ($location) {
        case ('item'):
            switch ($section) {
                case 'item_add':    $text = __('Publish a listing'); break;
                case 'item_edit':   $text = __('Edit your listing'); break;
                case 'send_friend': $text = __('Send to a friend') . ' - ' . osc_item_title(); break;
                case 'contact':     $text = __('Contact seller') . ' - ' . osc_item_title(); break;
                default:            $text = osc_item_title() . ' ' . osc_item_city(); break;
            }
        break;
        case('page'):
            $text = osc_static_page_title();
        break;
        case('error'):
            $text = __('Error');
        break;
        case('search'):
            $region   = osc_search_region();
            $city     = osc_search_city();
            $pattern  = osc_search_pattern();
            $category = osc_search_category_id();
            $s_page   = '';
            $i_page   = Params::getParam('iPage');

            if($i_page != '' && $i_page > 1) {
                $s_page = ' - ' . __('page') . ' ' . $i_page;
            }

            $b_show_all = ($region == '' && $city == '' && $pattern == '' && empty($category));
            $b_category = (!empty($category));
            $b_pattern  = ($pattern != '');
            $b_city     = ($city != '');
            $b_region   = ($region != '');

            if($b_show_all) {
                $text = __('Show all listings') . ' - ' . $s_page . osc_page_title();
            }

            $result = '';
            if($b_pattern) {
                $result .= $pattern . ' » ';
            }

            if($b_category && is_array($category) && count($category) > 0) {
                $cat = Category::newInstance()->findByPrimaryKey($category[0]);
                if( $cat ) {
                    $result .= $cat['s_name'].' ';
                }
            }

            if($b_city) {
                $result .= $city . ' » ';
            } else if($b_region) {
                $result .= $region . ' » ';
            }

            $result = preg_replace('|\s?»\s$|', '', $result);

            if($result == '') {
                $result = __('Search results');
            }

            $text = '';
            if( osc_get_preference('seo_title_keyword') != '' ) {
                $text .= osc_get_preference('seo_title_keyword') . ' ';
            }
            $text .= $result . $s_page;
        break;
        case('login'):
            switch ($section) {
                case('recover'): $text = __('Recover your password');
                default:         $text = __('Login');
            }
        break;
        case('register'):
            $text = __('Create a new account');
        break;
        case('user'):
            switch ($section) {
                case('dashboard'):       $text = __('Dashboard'); break;
                case('items'):           $text = __('Manage my listings'); break;
                case('alerts'):          $text = __('Manage my alerts'); break;
                case('profile'):         $text = __('Update my profile'); break;
                case('pub_profile'):     $text = __('Public profile') . ' - ' . osc_user_name(); break;
                case('change_email'):    $text = __('Change my email'); break;
                case('change_username'): $text = __('Change my username'); break;
                case('change_password'): $text = __('Change my password'); break;
                case('forgot'):          $text = __('Recover my password'); break;
            }
        break;
        case('contact'):
            $text = __('Contact');
        break;
        default:
            $text = osc_page_title();
        break;
    }

    if( !osc_is_home_page() ) {
        if($text!='') {
            $text .= ' - ' . osc_page_title();
        } else {
            $text = osc_page_title();
        }
    }

    return (osc_apply_filter('meta_title_filter', $text));
}

For example, if you want to change the title of the page: create new account:

EDIT:  The below replacement can be done in the language files of your theme (.po and .mo file) instead of doing it in the function's code. details: https://forums.osclass.org/general-help/can-i-change-the-'publish-your-ad-for-free'-button-to-say-something-else/msg149596/#msg149596

You replace:

Code: [Select]
        case('register'):
            $text = __('Create a new account');

with

Code: [Select]
        case('register'):
            $text = __('your text here');
18
General help / How to check if field is required during posting.
« Last post by safeacid on April 29, 2017, 11:47:41 am »
How to check if the field is required during posting?
I want to create condition when field is required then asterisks will be included after name eg Phone*, Location*, Name* etc....
19
Tips, tricks, and tutorials / Re: How remove or replace title site in pages?
« Last post by fmohsen on April 29, 2017, 09:53:58 am »
i search  but not find function
i found meta_title()  but after change code in function no change in site
so post topic for help
20
General help / Problem photo order when ads modification
« Last post by beginner on April 29, 2017, 08:26:04 am »
Hello,

on my website, why when Ads modification, the image re-uploaded firstly will appear on latest position and the latest image re-uploaded appear first on Ads page ?

Regards
Pages: 1 [2] 3 4 ... 10