Home >


  • Kohana htaccess and index_file doesn't works as I expectAugust 6

    php 5.6.18 and apache 2.4.18 under freeBSD, trying to start kohana wellcome controller with user-friendly URLs. Kohana::init(array( 'base_url' => '/', 'index_file' => true, )); and standart htaccess file: # Turn on URL rewriting RewriteEngine On # I

  • Meta Box Plugin - Adding field value inside echoJuly 18

    I am using Meta Box Plugin to add some custom options to my Page Edit. I added a field to add an image background to the header which is working great. This image background has a parallax background effect. I have the following code: <div class="

  • Shortcode for Visual Composer Grid fails turning string to integerMay 14

    I am working in a shortcode for visual composer grid. I want to show the list of terms of a taxonomy (portfolio_tag) associated to a custom post type (portfolio). The shortcode gets the ID from the post correctly, but it is a string, not a number. Wh

  • Does wp_query and query_posts affect website performance? May 12

    This question already has an answer here: When should you use WP_Query vs query_posts() vs get_posts()? 7 answers I've been aware about the difference of wp_query and query_posts. I just want to know what impact does both query methods to the perform

  • wp_query (or hook) posts by date (id) in array then set post_typeMay 11

    Hi I am building a plugin and am not as familiar with wordpress hooks as I would like. The code would not be used to display on a page rather just setting in the database. I am looking for a hook or snippet that will help me do the following: grab al

  • WooCommerce - Customer Order History PaginationMay 10

    I'm trying to implement pagination into WC's customer order history that can be seen on the "My Account" page using woo_pagination(). https://docs.woothemes.com/document/woo_pagination/ The template file I'm trying to edit is - woocommerce/templ

  • I need help implement a Javascript code into the PHP fileMay 10

    I need help implementing a Javascript code into my PHP file that would replace the default search box with a new one. Do I have to use echo? How would it look like? Thanks in advance or your help, I've been trying for hours now. $(function () { $('a[

  • A Dockerfile for Composer (a dependency manager for PHP)March 15

    I recently built a Docker image for Composer, and I'd love to get a review of the image, the bash based wrapper script, it's recomended use, and the repository structure. Here's the Dockerfile for the latest tag: FROM alpine:edge MAINTAINER Samuel Pa

  • How to get 10 random rows from MySQL database and put it into an output variable? [on hold]March 15

    The code below selects rows from the DB random rows.I want to select 10 random rows and then in an output variable like the code below. First i want to select ten random rows then output them in something like the code above. My code: <?php DEFINE ('

  • Using a separate class in Symfony to handle a list of entities with controller injectionMarch 14

    In my Symfony (v2.7.9) project I have a set of entities which share some view functionality i.e being displayed in a table with some of their values as columns. Following the separation of concerns principle, I've made a ListTable class which handles

  • Better way for securing direct access to php filesMarch 14

    I don't know if this method uses a lot of time to process, or if it is bad but I wanted to know if there is any better way of actually doing this? I have a few class files that I want to stop users viewing through the browser, and only allowing them

  • Is there any limit of product can store in woocommerce?

    Is there any limit of product can store in woocommerce?February 25

    I have 330000 products in excel sheet and i am importing this into wordpress woocommerce. I had already imported 138245 using custom php script, but if i will import more 50 record the product table is crashed and shows blank page. see: thanks.

  • Trying to allow user to upload a profile pic to a mysql databaseFebruary 24

    I'm attempting to make a simple web app. I'm at the stage of creating the user profile section of it, and I'm stuck at allowing the user to upload their own profile picture. please see below for the query I'm using. $username = $_SESSION['username'];

  • php variable to url in address barFebruary 24

    I have the code echo(' <div class="row"> <div class="col-sm-2" > <form method="POST" action="plan.php"> <p>Selectati data raportului:<br> <select name="SelectDR" onchange=&

  • Are Robots.txt and metadata tags enough to stop search engines to index dynamic pages that are dependent of $_GET variables?February 23

    I created a php page that is only accessible by means of token/pass received through $_GET Therefore if you go to the following url you'll get a generic or blank page http://fakepage11.com/secret_page.php However if you used the link with the token i

  • Memcached problems on my Mac OSFebruary 23

    I just installed memcached on my Mac OS. It installed perfectly and when I type in memcached in Terminal I get this: failed to listen on TCP port 11211 tcp listen: Address already in use And I have a script in my localhost that contains this: $memcac

  • Display related data Yii 1February 22

    I have this in my model: public function relations() { return array( 'role' => array(self::BELONGS_TO, 'MedRoles', 'role_id'), ); } Also I have this in my controller: public function actionIndex() { $criteria = new CDbCriteria; $criteria->join = &qu

  • Strange thing with Google nocaptchaFebruary 22

    I have a strange problem with Google Captcha. I've tried all kinds of php codes from different tutorials, but the result is exactly the same every time... The problem is this: it shows up correctly if you check the box, it works correctly if you then

  • Modx plugin resource returnFebruary 18

    I need to return to user whole resource in his own template via plugin, which handles on OnPageNotFound event. It can be diifferent pages, depends on link. I will parse it and get resource needed. How can i do it?

  • Redirect to Specific Artile when user login Joomla 3.4.1February 18

    I want to redirect a specific user in a specific article in Joomla 3.4.* I tried in controller like this templates/html/com_login/controller.php public function login() { // Check for request forgeries. JSession::checkToken('request') or jexit(JText:

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 13 q. 0.331 s.