Bootstrap 3 Theme 1.1.1/1.1.2

Responsive webid theme

  1. Dominik

    Dominik New Member

    Joined:
    Dec 28, 2015
    Messages:
    17
    Likes Received:
    1
    If You mean private and public api keys, then yes. I set them in spam settings on admin page. When i change to default theme, everything works ok. When i change to bootstrap3 tcheme i got message as i describe before.
     
  2. gsc1ugs

    gsc1ugs Active Member

    Joined:
    Mar 9, 2016
    Messages:
    430
    Likes Received:
    16
    cant remember what I did, you do know the tpl files are different so it may not of added to bootstrap , id try manually adding into bootstrap
     
  3. Dominik

    Dominik New Member

    Joined:
    Dec 28, 2015
    Messages:
    17
    Likes Received:
    1
  4. hhavatar

    hhavatar Donor Donor

    Joined:
    Jul 28, 2014
    Messages:
    747
    Likes Received:
    74
    It's actually the
    Code:
    ....... src="{SITEURL}getthumb.php?w={THUMBWIDTH}&fromfile={PIC_URL}" border="0" align="center" width="430px">
    bit that's the issue. Replace that with
    Code:
    .......src="{PIC_URL}" border="0" align="center" width="430px">
    
    And you're golden
     
  5. Dominik

    Dominik New Member

    Joined:
    Dec 28, 2015
    Messages:
    17
    Likes Received:
    1
    I found a solution, i think problem exist in register.tpl formating. I think all <form> </form> field must be in one <div> </div>. i made proper changes, and it looks awful, but work!

    Second way (better look) is moving code (in bootstrap3 tcheme register.tpl):

    PHP:
    <div class="form-group col-lg-12">
               <
    div class="capchabox">{CAPCHA}</div>
    </
    div
    right after this code:
    PHP:
    <form name="registration" action="{SSLURL}register.php" method="post">
                                     <
    input type="hidden" name="csrftoken" value="{_CSRFTOKEN}">
    reCaptcha field is right below "New user registration" sentence, but everything works like a charm.

    I integrated new reCaptcha to my own site too.
    Now i have all what i need. If anybody needs help with this, please ask or write to me.
    Best Regards

    Dominik

    PS

    Dear Admin please delete my post #103 - it goes in wrong way...
     
  6. hhavatar

    hhavatar Donor Donor

    Joined:
    Jul 28, 2014
    Messages:
    747
    Likes Received:
    74
    Can confirm. Have nocaptcha working.
     
  7. Dominik

    Dominik New Member

    Joined:
    Dec 28, 2015
    Messages:
    17
    Likes Received:
    1
    Hello again,

    i'm stuck on friend.php (used by Send to Friends option)... I try to integrate new reCAPTCHA (noCAPTCHA) on it. Everything looks ok but i can send emails even if i do not check captcha.
    Could anyone see my code? Maybe i do something wrong, maybe someone can see my mistake on it.
    PHP:
    <?php
    /***************************************************************************
    *   copyright                : (C) 2008 - 2016 WeBid
    *   site                    : http://www.webidsupport.com/
    ***************************************************************************/
    /***************************************************************************
    *   This program is free software; you can redistribute it and/or modify
    *   it under the terms of the GNU General Public License as published by
    *   the Free Software Foundation; either version 2 of the License, or
    *   (at your option) any later version. Although none of the code may be
    *   sold. If you have been sold this script, get a refund.
    ***************************************************************************/
    include 'common.php';
    if (
    $system->SETTINGS['spam_sendtofriend'] == 2)
    {
        include 
    $main_path 'inc/captcha/recaptchalib.php';
    }
    elseif (
    $system->SETTINGS['spam_sendtofriend'] == 1)
    {
        include 
    $main_path 'inc/captcha/securimage.php';
    }
    if (isset(
    $_REQUEST['id']))
    {
        
    $_SESSION['CURRENT_ITEM'] = intval($_REQUEST['id']);
    }
    $id $_SESSION['CURRENT_ITEM'];
    $TPL_error_text '';
    $emailsent 1;
    // Get item data
    $query "SELECT title, category FROM " $DBPrefix "auctions WHERE id = " $id;
    $result mysql_query($query);
    $system->check_mysql($result$query__LINE____FILE__);
    if (
    mysql_num_rows($result) > 0)
    {
        
    $TPL_item_title mysql_result($result0'title');
    }

    $spam_html '';
    if (
    $system->SETTINGS['spam_sendtofriend'] == 1)
    {
        
    $resp = new Securimage();
        
    $spam_html $resp->getCaptchaHtml();
    }
    if (
    $system->SETTINGS['spam_sendtofriend'] == 2)
    {
        
    $lang = isset($language)? strtolower($language) : "en";
        
    $resp null;
        
    $recaptcha_error null;
        
    $spam_html '<div class="g-recaptcha" data-sitekey="' $system->SETTINGS['recaptcha_public'] . '"  align="center"></div>';
        
    $recaptcha_script ='<script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=' $lang '"></script>';
        if (!empty(
    $_POST["g-recaptcha-response"])) {
                     
    $reCaptcha = new ReCaptcha($system->SETTINGS['recaptcha_private']);
                     
    $resp $reCaptcha->verifyResponse($_SERVER["REMOTE_ADDR"], $_POST["g-recaptcha-response"]);
                if (
    $resp != null && $resp->errorCodes) {
               
    $recaptcha_error implode(", "$resp->errorCodes);
                }
               
        } elseif (empty(
    $_POST["g-recaptcha-response"])) {
            
    $recaptcha_error 'Please check the the captcha form';
        }   
    }
    $template->assign_var('RECAPTCHA_SCRIPT', isset($recaptcha_script)? $recaptcha_script '');

    if (isset(
    $_POST['action']) && $_POST['action'] == 'sendmail')
    {
        
    // check errors
        
    if (empty($_POST['sender_name']) || empty($_POST['sender_email']) || empty($_POST['friend_name']) || empty($_POST['friend_email']))
        {
            
    $TPL_error_text $ERR_031;
        }
        if (!
    preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i'$_POST['sender_email']) || !preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i'$_POST['friend_email']))
        {
            
    $TPL_error_text $ERR_008;
        }
    if (
    $system->SETTINGS['spam_sendtofriend'] == 2  && ($resp == null || !$resp->success))
            {
                
    $ERR $recaptcha_error;
            }
    elseif (
    $system->SETTINGS['spam_sendtofriend'] == && !$resp->check($_POST['captcha_code']))
            {
                
    $ERR $MSG['752'];
            }
        if (!empty(
    $TPL_error_text))
        {
            
    $emailsent 1;
        }
        else
        {
            
    $emailsent 0;
            
    $emailer = new email_handler();
            
    $emailer->assign_vars(array(
                    
    'S_NAME' => $_POST['sender_name'],
                    
    'S_EMAIL' => $_POST['sender_email'],
                    
    'S_COMMENT' => $_POST['sender_comment'],
                    
    'F_NAME' => $_POST['friend_name'],
                    
    'TITLE' => $TPL_item_title,
                    
    'URL' => $system->SETTINGS['siteurl'] . 'item.php?id=' $id,
                    
    'SITENAME' => $system->SETTINGS['sitename'],
                    
    'SITEURL' => $system->SETTINGS['siteurl'],
                    
    'ADMINEMAIL' => $system->SETTINGS['adminmail']
                    ));
            
    $emailer->email_sender($_POST['friend_email'], 'friendmail.inc.php'$MSG['905']);
        }
    }
    if (
    $system->SETTINGS['spam_sendtofriend'] == 2)
    {
        
    $capcha_text $spam_html;
    }
    elseif (
    $system->SETTINGS['spam_sendtofriend'] == 1)
    {
        
    $capcha_text $spam_html;
    }
    $template->assign_vars(array(
            
    'ERROR' => $TPL_error_text,
            
    'ID' => intval($_REQUEST['id']),
            
    'CAPTCHATYPE' => $system->SETTINGS['spam_sendtofriend'],
            
    'CAPCHA' => $spam_html,
            
    'TITLE' => $TPL_item_title,
            
    'FRIEND_NAME' => (isset($_POST['friend_name'])) ? $system->cleanvars($_POST['friend_name']) : '',
            
    'FRIEND_EMAIL' => (isset($_POST['friend_email'])) ?  $system->cleanvars($_POST['friend_email']) : '',
            
    'YOUR_NAME' => ($user->logged_in) ? $system->cleanvars($user->user_data['name']) : '',
            
    'YOUR_EMAIL' => ($user->logged_in) ? $system->cleanvars($user->user_data['email']) : '',
            
    'COMMENT' => (isset($_POST['sender_comment'])) ? $system->cleanvars($_POST['sender_comment']) : '',
            
    'EMAILSENT' => $emailsent
            
    ));
    include 
    'header.php';
    $template->set_filenames(array(
            
    'body' => 'friend.tpl'
            
    ));
    $template->display('body');
    include 
    'footer.php';
    ?>
    PS
    i haven't any errors on admin log or when i send emails.
     
  8. hhavatar

    hhavatar Donor Donor

    Joined:
    Jul 28, 2014
    Messages:
    747
    Likes Received:
    74
    Wrong file. You need to put the captcha in friend.tpl
     
  9. hhavatar

    hhavatar Donor Donor

    Joined:
    Jul 28, 2014
    Messages:
    747
    Likes Received:
    74
    Quick note. The images on item.tpl are a bit small on a phone. Recommend the following for the gallery.
    Code:
    <div class="col-md-2 col-xs-3 col-sm-2">
    
    instead of
    Code:
    <div class="col-md-2 col-xs-2 col-sm-2">
    
     
  10. Dominik

    Dominik New Member

    Joined:
    Dec 28, 2015
    Messages:
    17
    Likes Received:
    1
    Why in friend.tpl? I'm using system spam settings for reCaptcha (noCaptcha) and it works on register page (i edited only register.php). I tried to use the same method to friend.php.
    I have the same problem with secureimage when i try use Send to Friend option (mail was sended, no matters secureimage was resolved or not)
     
  11. hhavatar

    hhavatar Donor Donor

    Joined:
    Jul 28, 2014
    Messages:
    747
    Likes Received:
    74
    It's worked for me perfectly in the tpl. The way I understand it That handles the display/layout info. Php is more the engine, guts. This theme is tpl only so stands to reason that's where you need to make any changes. Make sure you have the Built in captcha turned off.
     
  12. Dominik

    Dominik New Member

    Joined:
    Dec 28, 2015
    Messages:
    17
    Likes Received:
    1
    Ok, i figured it out. My fiend.php modification works. I don't want to change enything in friend.tpl file because i need system (build in) captcha on. If anybody need help with this please feel free to ask me.
     
  13. hhavatar

    hhavatar Donor Donor

    Joined:
    Jul 28, 2014
    Messages:
    747
    Likes Received:
    74
    Anyone managed to get the bootstrap carousel working for featured items or item gallery?
     
  14. hhavatar

    hhavatar Donor Donor

    Joined:
    Jul 28, 2014
    Messages:
    747
    Likes Received:
    74
    *bump*
     
  15. kanra

    kanra Member

    Joined:
    Jun 2, 2016
    Messages:
    32
    Likes Received:
    3
  16. hhavatar

    hhavatar Donor Donor

    Joined:
    Jul 28, 2014
    Messages:
    747
    Likes Received:
    74
  17. kanra

    kanra Member

    Joined:
    Jun 2, 2016
    Messages:
    32
    Likes Received:
    3
    after cheking permissions on the bootstrap theme folder i found that apache user was not being allowed to access it, just changed the permission and it works now, thanks for your reply
     
  18. hhavatar

    hhavatar Donor Donor

    Joined:
    Jul 28, 2014
    Messages:
    747
    Likes Received:
    74
    My pleasure.
     
  19. kat_wild

    kat_wild New Member

    Joined:
    Jun 26, 2016
    Messages:
    3
    Likes Received:
    1
    Hi,
    question about images. Uploaded fine, but when i press on image, pop up window does not load image. Any solution to that?
    2. Is there option/add on/ change that will show image proportional in the list of listings.
    Thank you.
     
  20. Alejandro Landini

    Alejandro Landini Donor Donor

    Joined:
    Aug 21, 2016
    Messages:
    9
    Likes Received:
    0
    i'm downloading!
     

Share This Page