Hello i would be very happy to help you translate the plugin in french , but where is the pot file?
]]>Is there any doc how to install shortcodes for “New Ad”, “listing page”, Settings-Page”, etc. ? And how to tweek the main pages of the plug in?
]]>If You are interested in a German translation let me know.
John
]]>I am using “Boss” theme which is related to buddyPress. I have create a child theme of “Boss”. Now, I want to do direct overriding like this
https://wensolutions.com/documentation/classified-developers/#doc-direct-overriding-13.
But I am not able to override files. I have created “classified” folder in my theme and create “templates” folder in it and putting my “frontend-submission-aditem.php” file in it. But it is also calling plugin files not mine override theme files. Can you please help me in these.
Hi There, I have installed the plugin wp classified and all seems to be ok apart from the search bar moving from the right to the left, below the test ads which I have added on the classified shop page.
Hope you can help
Chris
I’m trying to use WP Classified and I’ve been creating the categories of ad that I need. However, maybe I’m being really stupid but I cannot work out how to go from having created the categories to having them actually appear on the live site. I can’t see any way of assigning them to a page, or creating them as a page, or publishing them or activating them. I’m sure it’s a simple step but I cannot find out what.
]]>I’ve downloaded WP Classified and I’ve been building up the categories of ad that I need. However, maybe I’m being really stupid but I cannot work out how to go from having created the categories to having them actually appear on the live site. I can’t see any way of assigning them to a page, or creating them as a page, or publishing them or activating them. I’m sure it’s a simple step but I cannot find out what.
]]>Hi I need help, for some reason the upload on the form is not working is there any option todo why its not working, when I tried to upload an image from the front end nothings happen after browsing image
Please let me know thanks
]]>Hello,
I want to take payment from user depedends on category bases. If User has selected category as A then it should redirect to payment gateway (Paypal) and after successful payment, listing can be add. For category B, User can upload free ads.
Kindly assist me for the same.
Thanks !
Hardik
Hello,
I’ve faced an issue with uploading pictures with “customer” role user.
After browsing the image nothing happens.
Should I change permission on any folders or something like this?
Please help.
Also started to translate Your Plugin to Hungarian. Can I choose this the language somewhere?
Thanks in advance
]]>Hello,
At first, I would like to commend your work, but I have several problems.
The first one is that I don’t know how to add Search Bar widget on the page. Sidebar with widget works on every page of my website (home, but on the register, ad item and profile too) but only on the page Classified Shop and after searching some products it doesn’t. And there is footer which is not on any other page of my website – I have no idea why, I don’t have even widgets in footer.
The second one is that user can’t register via classified registration because “User registration is disabled.” – Where can I allow registration please?
And the last one – can I somehow change that when someone is going to add item, and he is not registrated – there is only – please log in – can I somehow add – please log in or sign up – ? But this is not so important, so.. you know just if there is some option for it..
I hope you can help me fix it ??
thanks
<?php
/**
* Classified Aditem Functions.
*
* Functions for aditem specific things.
*
* @author WenSolutions
* @category Core
* @package Classified/Functions
* @since 1.0.0
*/
if ( ! defined( ‘ABSPATH’ ) ) {
exit; // Exit if accessed directly
}
/**
* Main function for returning aditems, uses the WSC_Aditem_Factory class.
*
* @param mixed $the_aditem Post object or post ID of the aditem.
* @param array $args (default: array()) Contains all arguments to be used to get this aditem.
* @return WSC_Aditem
*/
function wsc_get_aditem( $the_aditem = false, $args = array() ) {
if ( ! did_action( ‘classified_init’ ) ) {
_doing_it_wrong( __FUNCTION__, __( ‘wsc_get_aditem should not be called before the classified_init action.’, ‘classified’ ), ‘2.5’ );
return false;
}
return WSC()->aditem_factory->get_aditem( $the_aditem, $args );
}
/**
* Get the placeholder image URL for items etc.
*
* @access public
* @return string
*/
function wsc_placeholder_img_src() {
return apply_filters( ‘classified_placeholder_img_src’, WSC()->plugin_url() . ‘/assets/images/placeholder.png’ );
}
/**
* Get the placeholder image.
*
* @access public
* @return string
*/
function wsc_placeholder_img( $size = ‘shop_thumbnail’ ) {
$dimensions = wsc_get_image_size( $size );
return apply_filters(‘classified_placeholder_img’, ‘‘, $size, $dimensions );
}
/**
* This will insert Single Product Views detail to classified_view_counter Table.
* @since 2.0.0
* @return Void
*/
function wsc_view_insert(){
if( !is_main_query() )
return;
if(!is_singular(‘aditem’))
{
return;
}
$user_details = wp_get_current_user();
if( !empty( $user_details->roles ) && ‘administrator’ == $user_details->roles[0] )
return;
global $post, $wpdb;
require_once( ‘class-wsc-user-agent.php’ );
$ua_info = new WSC_User_Agent();
// require_once( ‘wsc-user-agent-functions.php’ );
// $ua_info = parse_user_agent();
$table = $wpdb->base_prefix.’classified_view_counter’;
$current_date = date( ‘Y-m-d H:i:s’ );
$view_year = date( ‘Y’ );
$view_month = date( ‘m’ );
$view_day = date( ‘d’ );
$view_week = date( ‘W’ );
$wpdb->insert(
$table,
array(
‘post_id’ => $post->ID,
‘ip_address’ => $_SERVER[‘REMOTE_ADDR’],
‘browser’ => $ua_info->browser(),
‘platform’ => $ua_info->platform(),
‘view_date’ => $current_date,
‘view_year’ => $view_year,
‘view_month’ => $view_month,
‘view_day’ => $view_day,
‘view_week’ => $view_week,
),
array(
‘%d’,
‘%s’,
‘%s’,
‘%s’,
‘%s’,
‘%s’,
‘%s’,
‘%s’,
‘%s’
)
);
}
/**
* Hook to insert
*/
add_action( ‘template_redirect’, ‘wsc_view_insert’ );
function classified_get_view_count(){
global $post, $wpdb;
$table = $wpdb->base_prefix.’classified_view_counter’;
$total_views = $wpdb->get_var( “SELECT COUNT(*) as total_view FROM $table where post_id= $post->ID” );
return esc_attr( $total_views );
}
// Fixed shop page current_page_parent class not showing
function add_parent_url_menu_class( $classes = array(), $item = false ) {
// Get current URL
$current_url = classified_current_url();
// Get homepage URL
$homepage_url = trailingslashit( get_bloginfo( ‘url’ ) );
// Exclude 404 and homepage
if( is_404() or $item->url == $homepage_url )
return $classes;
if ( get_post_type() == “additem” )
{
unset($classes[array_search(‘current_page_parent’,$classes)]);
if ( isset($item->url) )
if ( strstr( $current_url, $item->url) )
$classes[] = ‘current-menu-item’;
}
return $classes;
}
function classified_current_url() {
global $wp;
return trailingslashit( home_url(add_query_arg(array(),$wp->request)) ); //get current url
}
add_filter( ‘nav_menu_css_class’, ‘add_parent_url_menu_class’, 10, 3 );
I noticed that all my registered users don’t have the added capability to post ads Only one does. Why is this and how do I fix it?
EXTREMELY NSFW LINK DELETED
]]>The add classified form appeared thrice, two of them above the “main site”
https://gardenztalk.com/classified-post-ad/
Thank you
]]>