Hot

‏إظهار الرسائل ذات التسميات realia. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات realia. إظهار كافة الرسائل

الأربعاء، 8 فبراير 2017

Improve Security in Realia Registration

فبراير 08, 2017 0

The problem with Realia registration form is the absence of  E-mail check in the database so many users can be registered with the same e-mail, I think it is a big problem. I suggest to resolve this problem by adding these lines of code to realia plugin.



  1. Go to wp-content/plugins/realia/includes/post-types/class-realia-post-type-user.php
  2. In line 256 add $user_mail = email_exists( $email );
  3. In line 264 add  
    if ( ! empty( $user_mail ) ) {
$_SESSION['messages'][] = array( 'danger', __( 'E-mail already exists.', 'realia' ) );
wp_redirect( $_SERVER['HTTP_REFERER'] );
exit();
}


This function is used to ensure that the E-mail address the user is attempting to register with has not already been registered.

    Read More

    الأربعاء، 16 نوفمبر 2016

    Enable users registration on realia plugin

    نوفمبر 16, 2016 0
    Realia Wordpress Plugin


    Enable users registration on Realia

    You can enable users registration on Realia without creating package, It is very simple just go to your database and change the 5 column in options table with 1.
    Read More

    الثلاثاء، 11 أكتوبر 2016

    How to add new contract type to Realia Real Estate WordPress Plugin

    أكتوبر 11, 2016 0
    Realia Real Estate WordPress Plugin

    How to add new contract type to Realia

    1. Go to wp-content/plugins/realia/realia.php
    2. Defines new constastant after "define( 'REALIA_CONTRACT_RENT', 'RENT' );" line 56
    3. I choose to add a vacancy rent option : "define( 'REALIA_CONTRACT_VACANCY', 'VACANCY' );"
    4. Then go to wp-content/plugins/realia/include/post-types/class-realia-post-type-property.php
    5. In line 81 add your constant with string for the front-end.
    6. Finally for the display go to wp-content/plugins/realia/templates/widget/filter-fields/contract.php
    7. Add your constant like REALIA_CONTRACT_RENT
    8. Done.
    Read More