Loading


Advertisement:

Author Topic: Add Phone Number and other field for Bender Theme  (Read 25686 times)

bernascoginger

  • Newbie
  • *
  • Posts: 30
Re: Add Phone Number and other field for Bender Theme
« Reply #45 on: September 23, 2014, 05:39:21 pm »
Hi byteGator,

I am inspired by your procedures of adding phone number.
I am working on WAMP server to make the editing.

I followed your steps perfectly but after the editing whenever an ad is published it is never displayed.
This started occurring when i edited the itermAction.php following your steps.

Please help me correct this problem

bernascoginger

  • Newbie
  • *
  • Posts: 30
Re: Add Phone Number and other field for Bender Theme
« Reply #46 on: September 23, 2014, 10:09:32 pm »
Hello byte
I have done all the steps, but when ads are submitted they are never displayed or saved
Please help me on this .
It started happening when I made changes to itermAction.php following your procedure.
Thanks for your cooperation

Media DMJ

  • Jr. Member
  • **
  • Posts: 94
Re: Add Phone Number and other field for Bender Theme
« Reply #47 on: September 24, 2014, 11:42:08 am »
@byteGator,

This turotial works with osclass 3.4 ?  :o

moinshaikh1726

  • Newbie
  • *
  • Posts: 3
Re: Add Phone Number and other field for Bender Theme
« Reply #48 on: November 13, 2014, 10:44:32 am »
Hi All,


How can user change mobile number after publish post as unregisterd user


pls reply me soon as possible

pausa

  • Newbie
  • *
  • Posts: 4
Re: Add Phone Number and other field for Bender Theme
« Reply #49 on: January 27, 2015, 08:44:49 pm »
Hello,
how to add phone and registered?
Not every registered user add numbers to your account.
« Last Edit: January 27, 2015, 08:53:10 pm by pausa »

pausa

  • Newbie
  • *
  • Posts: 4
Re: Add Phone Number and other field for Bender Theme
« Reply #50 on: January 28, 2015, 05:52:53 pm »
Is there no one to help?

dp @ clickadd.in

  • Newbie
  • *
  • Posts: 11
Re: Add Phone Number and other field for Bender Theme
« Reply #51 on: January 28, 2015, 06:59:23 pm »
Great Work !
   
Thanks


dp @ clickadd.in

gary.wds

  • Newbie
  • *
  • Posts: 17
Re: Add Phone Number and other field for Bender Theme
« Reply #52 on: March 08, 2015, 12:47:55 am »
hi.. could anyone help me with this.. i did all the steps and everything looks ok but when i post an ad and ticket to show phone number it doesnt show on the ad.. but in item-sidebar.php if i change this osc_item_show_phone to osc_item_contact_phone it shows the phone number but i need the ticket box working..  this is the code:

<div class="widget-box">
          <h3><?php _e("Publisher", 'azul'); ?></h3>
            <?php if( osc_item_user_id() != null ) { ?>
                    <p class="name"><img src="https://cdn3.iconfinder.com/data/icons/wpzoom-developer-icon-set/500/88-16.png" style="opacity:0.6" />&nbsp;&nbsp;<a href="<?php echo osc_user_public_profile_url( osc_item_user_id() ); ?>" ><?php echo osc_item_contact_name(); ?></a></p>
                <?php } else { ?>
                    <p class="name"><img src="https://cdn3.iconfinder.com/data/icons/wpzoom-developer-icon-set/500/88-16.png" style="opacity:0.6" />&nbsp;&nbsp;<?php echo osc_item_contact_name(); ?></p>
                <?php } ?>
            
            <?php if ( osc_user_phone() != '' ) { ?>
                    <p class="phone"><img src="https://cdn4.iconfinder.com/data/icons/aiga-symbol-signs/613/aiga_telephone_bg-16.png" style="opacity:0.6" />&nbsp;&nbsp;<?php echo osc_user_phone(); ?></p>
             <?php } ?>
            
            <?php if( osc_item_show_phone() ) { ?>
                    <p class="contactphone"><img src="https://cdn4.iconfinder.com/data/icons/pictype-free-vector-icons/16/contact-16.png" style="opacity:0.6" />&nbsp;&nbsp;<?php echo osc_item_contact_phone(); ?></p>
                <?php } ?>
            
                <?php if( osc_item_show_email() ) { ?>
                    <p class="email"><img src="https://cdn4.iconfinder.com/data/icons/pictype-free-vector-icons/16/contact-16.png" style="opacity:0.6" />&nbsp;&nbsp;<?php echo osc_item_contact_email(); ?></p>
                <?php } ?>
               
         </div>



ccar0462

  • Newbie
  • *
  • Posts: 9
Re: Add Phone Number and other field for Bender Theme
« Reply #53 on: July 30, 2016, 09:12:39 am »
To resolve the problem, phone number requeried.

 <input title="Need Phone Number" id="telephone" type="text" value="<?php echo $detail; ?>" name="telephone" required></input>

Rhoda

  • Newbie
  • *
  • Posts: 42
Re: Add Phone Number and other field for Bender Theme
« Reply #54 on: January 13, 2017, 07:42:17 pm »
Hi,

I try to add extra fields on user register!

I find this code in oc-includes/osclass/helpers/hUsers.php

        //can already be a logged user or not, we'll take a look into the cookie
        if ( Cookie::newInstance()->get_value('oc_userId') != '' && Cookie::newInstance()->get_value('oc_userSecret') != '') {
            $user = User::newInstance()->findByIdSecret( Cookie::newInstance()->get_value('oc_userId'), Cookie::newInstance()->get_value('oc_userSecret') );
            View::newInstance()->_exportVariableToView('_loggedUser', $user);
            if(isset($user['b_enabled']) && $user['b_enabled']==1) {
                Session::newInstance()->_set('userId', $user['pk_i_id']);
                Session::newInstance()->_set('userName', $user['s_name']);
                Session::newInstance()->_set('userEmail', $user['s_email']);
                $phone = ($user['s_phone_mobile'])? $user['s_phone_mobile'] : $user['s_phone_land'];
                Session::newInstance()->_set('userPhone', $phone);

                return true;
            } else {
                return false;
            }
        }

        return false;
    }


How to modify this ?

                $phone = ($user['s_phone_mobile'])? $user['s_phone_mobile'] : $user['s_phone_land'];
                Session::newInstance()->_set('userPhone', $phone);

we need 3 fields:
                s_phone_verified
                s_phone_mobile
                s_phone_land


Thanks
« Last Edit: January 13, 2017, 07:51:09 pm by Rhoda »

Rhoda

  • Newbie
  • *
  • Posts: 42
Re: Add Phone Number and other field for Bender Theme
« Reply #55 on: January 13, 2017, 08:07:52 pm »
Guys i'm a student and needs some help on this!

Is this right what i try?

The s_phone verified i use for RingCaptcha plugin on registration!
Than i have 2 extra fields s_phone_mobile and s_phone_land


       if(!$this->is_admin) {
                Session::newInstance()->_set('userName', $input['s_name']);
                $phone = ($input['s_phone_verified'])? $input['s_phone_mobile'] : $input['s_phone_land'];
                Session::newInstance()->_set('userPhone', $phone);
            }   


Thanks