jmyeom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Need help with pluginsForum: Fixing WordPress
In reply to: Problem with thumbnailmaybe this?:
your url is not url encoded, i.e
http%3A%2F%2Fsite.ru%2Fwp-content%2Fuploads%2Fimage.jpgthe error:
Could not find the internal image you specified.
says internal image, maybe it cant reference external images?Forum: Fixing WordPress
In reply to: This code works alone, but it doesn't work implemented in WordPressyou set output as jpeg as the header, so the browser is expecting a image,
instead, you are sending HTML as-well,
instead (this may not work, untested and just a guess)
<?php /* Template Name: Tarjetas */ ob_start(); //Set the Content Type header('Content-type: image/jpeg'); $user = wp_get_current_user(); $id = $user->id // Create Image From Existing File $jpg_image = imagecreatefromjpeg('https://www.alvarols.com/califica/wp-content/themes/mexicotecalifica/images/tarjeta.jpg'); // Allocate A Color For The Text $white = imagecolorallocate($jpg_image, 255, 255, 255); // Set Path to Font File $font_path = 'https://www.alvarols.com/califica/wp-content/themes/mexicotecalifica/font.TTF'; // Set Text to Be Printed On Image $text = $id; // Print Text On Image imagettftext($jpg_image, 25, 0, 75, 300, $white, $font_path, $text); // Send Image to Browser imagejpeg($jpg_image, NULL, 100 ); // Clear Memory imagedestroy($jpg_image); $i = ob_get_clean(); ?> <?php get_header(); ?> <div class="containing"> <?php echo "<img src='data:image/jpeg;base64," . base64_encode( $i )."'>"; ?> </div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Non Descriptive Error Messagewhat is the error?
screenshot pleasewe need more info,
where is the error happening?
what is the error?please provide all info needed when making a topic, thanks.
Forum: Fixing WordPress
In reply to: Demo Locally Created Pages As Postswordpress will parse it to prevent injection,
this may helpForum: Fixing WordPress
In reply to: WordPress shop and blogdon’t use the same database for two sites,
if you want this, look into multisite
Forum: Fixing WordPress
In reply to: Font won't change from bold, adjusted all font-weights.@-moz-document
Any CSS rule that starts with @-moz- is a Gecko layout engine specific rule, not a standard rule. That is, it is a mozilla specific extension.
Forum: Fixing WordPress
In reply to: Will WordPress scrap the use of mysql_ functions?why would it need attention for 5.5?
it is marked as deprecated as of 5.5, but it will still work.
Forum: Fixing WordPress
In reply to: Font won't change from bold, adjusted all font-weights.https://new.kuumba.tv/wp-content/themes/architecture-v1-04/stylesheet/superfish.css?ver=3.8
#main-superfish-wrapper ul.sf-menu{ display: inline-block; font-weight: 600; } @-moz-document url-prefix() { #main-superfish-wrapper ul.sf-menu{ font-weight: 400 !important; } }
font size of 400 only applies to Firefox, else its 600
Forum: Fixing WordPress
In reply to: Font won't change from bold, adjusted all font-weights.yes sorry, i only tested it on firefox, the other 3 it is showing in bold, let me see if i can pinpoint it for you ??
firefox 26.0
safari 5.1.7
IE 11.0.2
chrome 31.0Forum: Fixing WordPress
In reply to: Site redirects to old subdomainworks fine from here, have you tried clearing your cache?
firefox 26.0
safari 5.1.7
IE 11.0.2
chrome 31.0Forum: Fixing WordPress
In reply to: Font won't change from bold, adjusted all font-weights.the floating menu is not in bold, it is normal,
the text is set at a weight of 400, and that is “normal”
Forum: Fixing WordPress
In reply to: WP site high cpu usage & brings server down !i dont think this would be a “one fix and your done” type job.
there are different things you can do to reduce load.
i would first look at php APC,
maybe move your database onto another server, to reduce the load on one serverits a php memory limit thing,
it it happens again, up your memory limit using php.ini, there are loads of examples on google