What line do i paste this code in item.php
« on: August 10, 2018, 11:48:38 AM »
Hello admin.
pls am sorry for asking this.

Pls what line do i paste the code below for disabling contact veiw by non logged in user in item.php cos i have pasted it in several places n it still still not working or do i need to replace a certain code line. Pls help

<?php if(osc_is_web_user_logged_in()) { ?>
.... your field ...
<?php } else { ?>
In order to contact seller you must log-in first.
<?php } ?>

*

MB Themes

Re: What line do i paste this code in item.php
« Reply #1 on: August 10, 2018, 01:13:48 PM »
@Metalsunny
Did you really put there ".... your field ... " ?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: What line do i paste this code in item.php
« Reply #2 on: August 10, 2018, 01:39:52 PM »
This is how i pasted in on line 442

<?php if(osc_is_web_user_logged_in()) { ?>
 The tags of contact details of user
<?php } else { ?>
In order to contact seller you must log-in first.
<?php } ?>

where i am confused it this. Is there a code i need to replace in item.php or is there a line i have to paste this code. That is the problem i am having...
This is what i get in the image below after i inserted the code on line 442 right after

<?php _e('You must log in or register a new account in order to contact the advertiser.', 'veronika') ; ?>
                    </div>

Re: What line do i paste this code in item.php
« Reply #3 on: August 10, 2018, 08:34:04 PM »
Please i need reply on the comment above. Pls just assist me this is the only issue i want to finally solve on my veronika theme . Pls

*

casper

  • ***
  • 48 posts
Re: What line do i paste this code in item.php
« Reply #4 on: August 11, 2018, 09:43:57 AM »
item.php 

 Line  348

 replace

                      <?php if($mobile_found) { ?>
                        <a href="#" class="phone-show" data-item-id="<?php echo osc_item_id(); ?>" data-item-user-id="<?php echo osc_item_user_id(); ?>"><?php _e('Show', 'veronika'); ?></a>
                      <?php } ?>

==========
by this


<?php if(osc_is_web_user_logged_in()) { ?>
                       <?php if($mobile_found) { ?>
                        <a href="#" class="phone-show" data-item-id="<?php echo osc_item_id(); ?>" data-item-user-id="<?php echo osc_item_user_id(); ?>"><?php _e('Show', 'veronika'); ?></a>
                      <?php } ?>
<?php } else { ?>
In order to contact seller you must log-in first.
<?php } ?>

Re: What line do i paste this code in item.php
« Reply #5 on: August 11, 2018, 05:21:26 PM »
God bless you. Thank you very much. It worked. Problem solved. Yippie!!!