Loading


Advertisement:

Recent Posts

Pages: [1] 2 3 ... 10
1
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
2
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:

You replace:

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

with

Code: [Select]
        case('register'):
            $text = __('your text here');
3
General help / How to check if field is required during posting.
« Last post by safeacid on Today at 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....
4
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
5
General help / Problem photo order when ads modification
« Last post by beginner on Today at 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
6
Hello all,

I have been trying to setup my email server to no good so am seeking for help.

When a new user registers I don't get a email ( admin) neither does the New user. But i can activate them manually which i think should not be the case. I tried setting it up in my host side and then using Gmail upto no good.

Website: http://www.hikesafrica.com

Attached is a picture of how my Gmail server set up looks like.
7
Plugins / Re: [Plugin] Spam Protection
« Last post by Liath on Today at 12:24:42 am »
Following features are integrated for contact mail protection

  • de/activate check for links/urls in message
  • de/activate honeypot protection
  • same email/stopword protection as for ads or comments
i've build the honeypot with double protection... one inputfield has to be filled out (this happens automatically via javascript) and the other has to be blank (looks like a captcha)

For this case, that a mail was identified as spam, the user gets a warning, that the mail has to be moderated, is this succesful done, can the mail be forwarded manually.

If he dont want this mail to be moderated, he can delete it immediatelly to secure his privacy.




New version is uploaded to the market, please have patience until it is available.
8
Hello,
I can't figure out how to change/filter the item title from the <a ........>Item title</a> in the body of the alert_email_daily.

I analyzed the emails.php file but the function fn_alert_email_daily gets $ads as a parameter and I can't figure out the structure of it in order to change/filter the item title.

The reason is that I want to remove the underlines _ from the title, if any.

 I have a function that does that, I only need to know where to call it, and I think that if I know the structure of that $ads parameter, I can write a script that does that.

I gues that it retains the title and url of each ad, but how, with string keys or numeric keys and wich is for title?

I use 3.7.1.
9
Française / Re: Problème recherche avancé
« Last post by alshariff on Today at 12:15:48 am »
I get the same error.  Is there a solution to this problem?
Thanks
10
General help / Re: Category header does not change when translated
« Last post by dev101 on April 28, 2017, 11:53:28 pm »
This was fixed officially in develop branch, but it is not yet part of main release.

fix is here:
https://raw.githubusercontent.com/osclass/Osclass/4a4d05059f3bc6c531fe1b03c33dc41b52e08b28/oc-includes/osclass/model/Category.php

The sql query is much simpler (and faster) than teseo's fix, with one drawback: it does not fallback to english if translations are missing. Still, as that is not a "normal" situation anyway, faster version is better. It will probably be part of 3.8 release.
Pages: [1] 2 3 ... 10