Loading

Author Topic: contact seller button disappeared  (Read 233 times)

kingofpain

  • Jr. Member
  • **
  • Posts: 58
contact seller button disappeared
« on: November 01, 2011, 03:14:38 am »
cant remember what i did but the contact seller button has disappeared along with the contact seller form under thier picture, any ideas?

please help!
« Last Edit: November 01, 2011, 03:42:49 pm by kingofpain »

kingofpain

  • Jr. Member
  • **
  • Posts: 58
Re: contact seller button disappeared
« Reply #1 on: November 01, 2011, 03:43:46 pm »
can anyone tell me the pages i could maybe replace to get those things back to stock?

sundance

  • Sr. Member
  • ****
  • Posts: 377
    • RexburgSwap.com
    • Email
Re: contact seller button disappeared
« Reply #2 on: November 01, 2011, 05:25:52 pm »
It is either because you are not logged in or your site does not thinks you are logged in. Have you messed with any code?
Sundance

kingofpain

  • Jr. Member
  • **
  • Posts: 58
Re: contact seller button disappeared
« Reply #3 on: November 01, 2011, 06:05:35 pm »
your right i wasnt logged in? why cant it just check to see if your logged in and advise them to do so instead of completly remove the button?

sundance

  • Sr. Member
  • ****
  • Posts: 377
    • RexburgSwap.com
    • Email
Re: contact seller button disappeared
« Reply #4 on: November 01, 2011, 11:54:14 pm »
Find this code in your theme's item .php:

<div id="contact">
                            <h2><?php _e("Contact seller", 'bcute') ; ?></h2>
                            <p class="name"><?php _e('Name', 'bcute') ?>: <?php echo osc_item_contact_name(); ?></p>
                            <?php if(osc_item_show_email()) { ?>
                            <p class="email"><?php _e('E-mail', 'bcute'); ?>: <?php echo osc_item_contact_email(); ?></p>
                            <?php } ?>
                            <?php if ( osc_user_phone() != '' ) { ?>
                            <p class="phone"><?php _e("Tel", 'bcute'); ?>.: <?php echo osc_user_phone() ; ?></p>
                            <?php } ?>
                            <ul id="error_list"></ul>
                            <?php ContactForm::js_validation(); ?>
                            <form action="<?php echo osc_base_url(true) ; ?>" method="post" name="contact_form" id="contact_form">
                                <?php osc_prepare_user_info() ; ?>
                                <fieldset>
                                    <label for="yourName"><?php _e('Your name (optional)', 'bcute') ; ?>:</label> <?php ContactForm::your_name(); ?>
                                    <label for="yourEmail"><?php _e('Your e-mail address', 'bcute') ; ?>:</label> <?php ContactForm::your_email(); ?>
                                    <label for="phoneNumber"><?php _e('Phone number', 'bcute') ; ?>:</label> <?php ContactForm::your_phone_number(); ?>
                                    <label for="message"><?php _e('Message', 'bcute') ; ?>:</label> <?php ContactForm::your_message(); ?>
                                    <input type="hidden" name="action" value="contact_post" />
                                    <input type="hidden" name="page" value="item" />
                                    <input type="hidden" name="id" value="<?php echo osc_item_id() ; ?>" />
                                    <?php if( osc_recaptcha_public_key() ) { ?>
                                    <script type="text/javascript">
                                        var RecaptchaOptions = {
                                            theme : 'custom',
                                            custom_theme_widget: 'recaptcha_widget'
                                        };
                                    </script>
                                    <style type="text/css"> div#recaptcha_widget, div#recaptcha_image > img { width:280px; } </style>
                                    <div id="recaptcha_widget">
                                        <div id="recaptcha_image"><img /></div>
                                        <span class="recaptcha_only_if_image"><?php _e('Enter the words above','bcute'); ?>:</span>
                                        <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
                                        <div><a href="javascript:Recaptcha.showhelp()"><?php _e('Help', 'bcute'); ?></a></div>
                                    </div>
                                    <?php } ?>
                                    <?php osc_show_recaptcha(); ?>
                                    <button type="submit"><?php _e('Send', 'bcute') ; ?></button>
                                </fieldset>
                            </form>
                        </div>
                        <?php } else { ?>                     
                        <?php     } ?>
                        <?php } ?>


Add this text right under the third to the last line:
Before:
                        <?php } else { ?>                       
                        <?php     } ?>
                        <?php } ?>
After:
                        <?php } else { ?>
                        Login to contact seller
                        <?php     } ?>
                        <?php } ?>
That text should show below the item pictures and disappear when you log in

Sundance

jeffreythrasher@gmail.com

  • Newbie
  • *
  • Posts: 12
    • Email
Re: contact seller button disappeared
« Reply #5 on: February 22, 2012, 05:34:59 pm »
Sundance

Can you help me figure out how I would make that "Login to contact seller"  a button that takes users to the registration page.  I'm using bcute theme and all my other buttons are orange.  Just a nudge in the right direction will be helpful.

thanks!