Advertisement:

Author Topic: Changing the "contact advertiser" form  (Read 81 times)

mgjfandroid

  • Newbie
  • *
  • Posts: 19
Changing the "contact advertiser" form
« on: June 15, 2018, 10:13:11 am »
Hello forum. Unfortunately I had some problems with my email server. What made it impossible to communicate via email on my osclass site. However, as users will use the site for free, I have chosen an alternative: Just "show" the advertiser's contact information, and the user will contact , without depending on forms on my site. I've changed the contact form in item-sidebar.php by this code:
Code: [Select]

<section>
<ul class="contact">
<li>
   <h3>E-mail</h3>
   <span>user@untitled.tld</span>
</li>
<li>
   <h3>Phone</h3>
   <span>(000) 000-0000</span>
</li>
<li>
   <h3>WhatsApp</h3>
   <span>(000) 000-0000</span>
</li>
</section>

it only shows the contact data. What used to be so,
now it is so
.
But I need to give the function for that. For example, email, phone, and whatsapp data should be entered into item-post.php or user-register.php, and then appear in item-sidebar.php when an ad is posted. What should I do to make this work? I did some testing but it did not work ...
thank you
thank's
« Last Edit: June 15, 2018, 06:56:43 pm by mgjfandroid »

mgjfandroid

  • Newbie
  • *
  • Posts: 19
Re: Changing the "contact advertiser" form
« Reply #1 on: June 15, 2018, 10:53:07 am »
The osc_item_contact_email in this code works the way I want it to.It shows the user's email correctly.
Code: [Select]
<section>
<ul class="contact">
<li>
   <h3>E-mail</h3>
   <span><p class="email"><i class="fas fa-envelope"></i> <?php printf(__('%s'
                    
OSCLASSWIZARDS_THEME_FOLDER), osc_item_contact_email()); ?>
</p></span>
</li>
<li>
   <h3>Phone</h3>
   <span><p class="phone"><i class="fa fa-phone"> </i><?php printf(__('%s'
                    
OSCLASSWIZARDS_THEME_FOLDER), ?????????????? ()); ?>
</p></span>
</li>
<li>
   <h3>WhatsApp</h3>
   <span><i class="fab fa-whatsapp"></i><?php printf(__('%s'
                    
OSCLASSWIZARDS_THEME_FOLDER), ?????????? ()); ?>
</p></span>
</li>
</section>
now I need to create a osc_item_contact_phone and osc_item_contact_whatsapp function. Do I need to create this in the database? Please someone help me !!
Thanks
« Last Edit: June 15, 2018, 06:44:05 pm by mgjfandroid »