Loading


Advertisement:

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

Nicolas30

  • Sr. Member
  • ****
  • Posts: 295
Re: Add Phone Number and other field for Bender Theme
« Reply #30 on: March 15, 2014, 08:14:33 pm »
Hello everyone,

Fields telephone does not appear for the users registered student

How can I show it fields (for the addition of an announcement)?

Thanks for your answers

Regards

soymarketing

  • Newbie
  • *
  • Posts: 9
Re: Add Phone Number and other field for Bender Theme
« Reply #31 on: March 18, 2014, 09:13:27 am »
Hello everyone! I need some help here... I don't know exactly what went wrong, the item sidebar disappears and i get the following error: Parse error: syntax error, unexpected '}' in /oc-content/themes/bender/item-sidebar.php on line 45

Any clues??

diegomonse

  • Newbie
  • *
  • Posts: 5
Re: Add Phone Number and other field for Bender Theme
« Reply #32 on: March 25, 2014, 01:47:04 am »
good evening
weird is the line the other I can not find

I have not the line <p class="name"> <osc_item_contact_name php echo ()?> <p>


Code: [Select]
Part 2 Modify Themes

2.1 Modify oc-content/themes/bender/item-sidebar.php
under
Code: [Select]
                <h2><?php _e("Contact publisher"'bender'); ?></h2>
                <p class="name"><?php echo osc_item_contact_name(); ?><p>
add this to show phone number
Code: [Select]
                $phoneuser = osc_item_contact_phone();
                if ($phoneuser != "") { ?>
                        <p>Phone: <?php echo $phoneuser?></p>
                <?php ?>


I am not here understands what I do right? I am French

In Osclass 3.3.2, in line 59 approximately

Code: [Select]
<?php if( osc_item_user_id() != null ) { ?>
                <p class="name"><?php _e('Name''bender'?>: <a href="<?php echo osc_user_public_profile_urlosc_item_user_id() ); ?>" ><?php echo osc_item_contact_name(); ?></a></p>

               <?php $phoneuser osc_item_contact_phone();
                if (
$phoneuser != "") { ?>

                        <p>Phone: <?php echo $phoneuser?></p>
                <?php ?>

add <?php before $phoneuser

Media DMJ

  • Jr. Member
  • **
  • Posts: 94
Re: Add Phone Number and other field for Bender Theme
« Reply #33 on: March 26, 2014, 10:16:09 pm »
Thank you  :)

leboncoin

  • Jr. Member
  • **
  • Posts: 63
Re: Add Phone Number and other field for Bender Theme
« Reply #34 on: March 27, 2014, 09:47:54 pm »
I think phone number filed for non registered users is a necessity - and should be added in the next update of osclass!

strata

  • Sr. Member
  • ****
  • Posts: 411
  • Always good, always...
Re: Add Phone Number and other field for Bender Theme
« Reply #35 on: March 28, 2014, 04:28:30 am »
Hello everyone! I need some help here... I don't know exactly what went wrong, the item sidebar disappears and i get the following error: Parse error: syntax error, unexpected '}' in /oc-content/themes/bender/item-sidebar.php on line 45

Any clues??
You missing the closing bracket
Code: [Select]
<?php ?>

boboclock

  • Newbie
  • *
  • Posts: 23
Re: Add Phone Number and other field for Bender Theme
« Reply #36 on: July 01, 2014, 12:25:27 am »
I used this guide to create both a phone number field and a confirm email field. Followed it exactly. It works for confirm email but not the phone number..



The problem is, no matter what I do, the phone number field is turning up null.

Any guesses?
« Last Edit: July 01, 2014, 01:00:52 am by boboclock »

fog

  • Hero Member
  • *****
  • Posts: 932
Re: Add Phone Number and other field for Bender Theme
« Reply #37 on: July 01, 2014, 05:45:25 am »
Hi, how I can insert the new table (number phone) manually in my database backup? Somebody can explain set by step, please?

Regards

Media DMJ

  • Jr. Member
  • **
  • Posts: 94
Re: Add Phone Number and other field for Bender Theme
« Reply #38 on: July 04, 2014, 05:03:52 pm »
@ADMIN make sticky this post please

salamon

  • Newbie
  • *
  • Posts: 11
Re: Add Phone Number and other field for Bender Theme
« Reply #39 on: July 13, 2014, 10:41:57 am »
Hello I very like this mod,

But I want to know is there any way to achieve it without modifying the core?

If I apply the changes now and then I update osclass will my site function correctly?

Thanks

mtcore

  • Newbie
  • *
  • Posts: 2
Re: Add Phone Number and other field for Bender Theme
« Reply #40 on: July 18, 2014, 03:41:36 am »
Hi byteGator,

Your website, iklangratis.net use bender theme with custom code right? Can you share with us? It's really good to have one like yours.


Valeriu

  • Newbie
  • *
  • Posts: 36
Re: Add Phone Number field for Bender Theme
« Reply #41 on: August 05, 2014, 09:51:51 am »
Hi byteGator,

I have added the phone number field following the exact steps you have indicated. Everything works fine, i can add the phone number when i post a new ad, but the number does not appear in the sidebar as expected. Also, i get an error (please see attachment) instead of the registered user phone number.  I'm using version v 3.2.2 where the instructions and the code in item-sidebar.php are a little bit different from what you have posted.

Please can you help me to correct this problem?

Thank you. :)

Harish Singh

  • Newbie
  • *
  • Posts: 9
Re: Add Phone Number and other field for Bender Theme
« Reply #42 on: August 07, 2014, 05:50:32 pm »
Hello,

Why everyone here editing theme for phone number when you can easily add Custom fields on manage listings menu ?

Valeriu

  • Newbie
  • *
  • Posts: 36
Re: Add Phone Number field for Bender Theme
« Reply #43 on: August 13, 2014, 02:43:15 pm »
Hi byteGator,

I have added the phone number field following the exact steps you have indicated. Everything works fine, i can add the phone number when i post a new ad, but the number does not appear in the sidebar as expected. Also, i get an error (please see attachment) instead of the registered user phone number.  I'm using version v 3.2.2 where the instructions and the code in item-sidebar.php are a little bit different from what you have posted.

Please can you help me to correct this problem?

Thank you. :)


Ohh... c'mon nobody knows how to add in item-sidebar a phone number for unregistered users?

I don't want to use custom fields for contact info, i use custom fields for other specific info for the item on sale.

I'm stuck with this problem for over a month.


I have tried the solution posted a the beginning of this thread but it does not work in 3.4.1.


Help? :)

Pavanc

  • Newbie
  • *
  • Posts: 17
Re: Add Phone Number and other field for Bender Theme
« Reply #44 on: September 17, 2014, 04:39:51 am »
Hi, nice tutorial, plz explan how add radio buttons add item-post page. (Without custem feild), thanks.