Neerav D.
Forum Replies Created
-
A quick workaround:
Earlier [sc:SHORTCODE] was working but not after WP 4.4 However, [sc name=SHORTCODE] is still working. If you are using very few shortcodes, you can replace it manually.If you have lots of shortcodes like me, manual update is impossible and error prone. To do it fast and error free, download this script(stable 2.1 version) and upload it to root of your WP installation: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Open the file in browser and go through each step(read carefully each and every instruction as it could permanently damage your database, test run on dev site highly recommended)
then search for “[sc:” and replace it with “[sc name=”
Hope it will help!
Forum: Plugins
In reply to: [SEO Redirection Plugin - 301 Redirect Manager] SuggestionI managed to add these two features myself. Here is the updated code for ‘WPSR_redirect’ function in ‘seo-redirection.php’.
function WPSR_redirect() { global $wpdb,$table_prefix,$util ; $table_name = $table_prefix . 'WP_SEO_Redirection'; $link = parse_url( $util->get_current_URL() ); $permalink = rtrim($link['path'],'/'); $querystring = $link['query']; if($util->get_option_value('plugin_status')=='1'){ if (($util->get_option_value('redirect_control_panel')!='1') || ($util->get_option_value('redirect_control_panel')=='1' && !preg_match('/^' . str_replace('/','\/', get_admin_url()) . '/i', $permalink) && !preg_match('/^' . str_replace('/','\/', site_url()) . '\/wp-login.php/i', $permalink))){ $theurl = $wpdb->get_row(" select * from $table_name where enabled=1 and regex='' and TRIM(TRAILING '/' FROM redirect_from)='$permalink' "); if($wpdb->num_rows>0 && $theurl->redirect_to!=''){ $redirect_to = $theurl->redirect_to; if(!is_null($querystring)) $redirect_to = $redirect_to.'?'.$querystring; WPSR_make_redirect($redirect_to,$theurl->redirect_type,$permalink,$theurl); } $theurl = $wpdb->get_row(" select * from $table_name where enabled=1 and regex<>'' and '$permalink' regexp regex order by LENGTH(regex) desc "); if($wpdb->num_rows>0 && $theurl->redirect_to!=''){ $redirect_to = $theurl->redirect_to; if(!is_null($querystring)) $redirect_to = $redirect_to.'?'.$querystring; WPSR_make_redirect($redirect_to,$theurl->redirect_type,$permalink,$theurl); } if(is_404()) { if($util->get_option_value('p404_discovery_status')=='1'){ WPSR_log_404_redirection($permalink); } $options= $util->get_my_options(); if($options['p404_status']=='1'){ WPSR_make_redirect($options['p404_redirect_to'],'301',$permalink); } } } } }If you like to add it in next release!
Cheers!Forum: Plugins
In reply to: [WP Post to PDF] Feature Request: A Shortcode to use for Manual modeNew version has this feature! Will be releasing 2nd week Jan 14.
Forum: Plugins
In reply to: [WP Post to PDF] Contributed update availableHey Lewis,
WOW! This’s some brilliant work. I didn’t even know till now about this thread.
I’ll include your changes in next release which is scheduled for March 1st Week.
I salute you for your effort!
Thanks and keep up the good work.
Regards,
NeeravForum: Plugins
In reply to: [WP Post to PDF] Add the category of the postget_the_category returns list of categories as array. You have to create string from that array first.
Forum: Plugins
In reply to: [WP Post to PDF] Add the category of the postYou need knowledge of php as well as WP a little.
See this,
http://plugins.trac.ww.wp.xz.cn/browser/wp-post-to-pdf/trunk/wp-post-to-pdf.php#L318First 5 line add author to PDF, you can try similar approach to add category.
Forum: Plugins
In reply to: [WP Post to PDF] 500 Server errorSeems issue of memory with your server. Please set allowed memory limit to 128MB or more in php.ini. You might have to ask your host to do that for you.
Forum: Plugins
In reply to: [WP Post to PDF] TCPDF ERROR: Can't open image fileIf directory is owned by apache, 755 will be sufficient else try 777.
Forum: Plugins
In reply to: [WP Post to PDF] Youtube and shortcodesYoutube videos will not work but for other short codes, there is option in settings page to enable it. Please have a look.
Forum: Plugins
In reply to: [WP Post to PDF] Header image sizeHi Guter,
You also have to increase top margin in this file,
http://plugins.trac.ww.wp.xz.cn/browser/wp-post-to-pdf/trunk/tcpdf/config/tcpdf_config.phpLine number 171.
Regards,
NeeravForum: Plugins
In reply to: [WP Post to PDF] BackgroundWith limitation of PDF library, it’s not possible at the moment.
Forum: Plugins
In reply to: [WP Post to PDF] unicode fonts problemThere is a help available for creating TCPDF fonts from ttf file, http://www.tcpdf.org/fonts.php If you are knowledgeable enough you can try that. Let me know if you need my help somewhere.
Forum: Plugins
In reply to: [WP Post to PDF] New errorSeems the image referenced does not exist, 404 error on URL, and that’s why you are getting this error.
Forum: Plugins
In reply to: [WP Post to PDF] [Plugin: WP Post to PDF] Add page url in footerSorry! No option at the moment and not plan in near future either.
You may settle with having page URL at end of PDF document. Following thread might help you with it,
http://ww.wp.xz.cn/support/topic/plugin-wp-post-to-pdf-displaying-a-simple-text-footerForum: Plugins
In reply to: [WP Post to PDF] TCP ERROR Unable to get Image – Please helpGlad to know that you were able resolved your issue! Don’t forget to rate and review.