jmyeom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Add image links for 700 posts…this is not a WordPress related issue, you may have more luck over at stackoverflow
the basic idea would be you need to get all posts, then use regex to get the src tag from the img and apply it to a link…
Forum: Fixing WordPress
In reply to: Links not workingyour links are wrong….
i.e
this is one of your links
http//www.careerbuilder.com/JobSeeker/Jobs/JobDetails.aspx?sc_cmp1=js_jrp_jobclick&APath=2.31.0.0.0&job_did=JHV8466ZRF22PF1XKV8&showNewJDP=yes&IPath=ILKV0Aat the very start, http// , needs to be https://
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined function wp()the error is caused by the config file missing a php open tag, maybe when you removed the plugin it attempted to remove the settings it placed in your config, but failed…
try this in the following order
- add “<?php” at the very start of your config file (without the quotes)
- change your database password
- get a new set of secret keys: here
Forum: Fixing WordPress
In reply to: Syntax Error T_Stringthere is a syntax error in your config file…
line 63 should be your prefix,
make sure that line is right…i.e, this is what it should look like:
$table_prefix = 'prefix_';
these are bad:$table_prefix = 'prefix_' $table_prefix = 'prefix_; $table_prefix 'prefix_'; $table_prefix = prefix_';
and so on
Forum: Fixing WordPress
In reply to: Page loading icon. Indefinitelybiography and offering pages do seem to show the loading icon,
tested with firefox and i.eboth these pages are not loading the background image, and both show this error:
TypeError: t.slides[l] is undefined ...s).width()).toFixed(2);thisSlide=a(this);var j=a(window).width();var w=a(window)... supersized.3.1.3.min.js?ver=3.7.1 (line 10)
this is due to the slides variable not being set,
it seems to be this plugin:
https://www.ads-software.com/plugins/wp-supersized/
the plugin is out of date, try updating it?
maybe you missed the part where you set the background images for this page?hopefully this helps you to find the source of the problem
Forum: Fixing WordPress
In reply to: Page loading icon. Indefinitelytry using firebug to see what is still loading…
also a link to the effected pages might help
Forum: Fixing WordPress
In reply to: Using a global variableyou can define it, but it would still need to be included,
you could always put the variable into the config file, as the config file is called with almost every page
add it into the config, then you should be able to call it
if set as a variable, then you will need to use global if inside a function,
or you can define it, thus no global needed,define('CURRENT_YEAR', 'dog');
echo CURRENT_YEAR
;Forum: Fixing WordPress
In reply to: why don't my pdf's display clearly?are you sure its not just a display issue?
if you zoom in, does it still appear grainy?
image hereForum: Fixing WordPress
In reply to: Using a global variableyou need to include the file with the variable into the file you want to call that variable from…. i.e
page.php
<?php $CurrentYear = 'dog'; ?>
any page
<?php include 'page.php'; echo $CurrentYear; ?>
if you are trying to call the variable from within a function, you need to call it globally
<?php include 'page.php'; function year(){ global $CurrentYear; echo $CurrentYear; } echo year(); ?>
Forum: Fixing WordPress
In reply to: Category search not working as expected?its been 4 days,
does anyone know if this is a bug or not? or is it a intended feature that the search does not work?
Forum: Fixing WordPress
In reply to: 000Webhost Index of/your post is a bit of a mess, sorry if i cant understand you.
you need to upload the contents of the zip, not the zip itself, if using windows, then you have a native zip handler, extract the zip, and upload the contents, then visit your site
Forum: Hacks
In reply to: can a plugin stop a upload?so…. after a lot of hunting, a lot of source code exploring, this is the most effective way of doing it:
add_action('wp_handle_upload', 'filetype_check'); function filetype_check($results) { if ($results['type'] == "D3m58") { Process($results['file']); $result2 = wordingcheck(textdecode($decodedtext); if ($result2 != "") { unlink($results['file']); return array( 'error'=> "upload failed, following reasons: " . $result2); } } }
I hope this helps someone, and here is a basic overview of what is happening:
you cant stop the upload, the file is uploaded before it hits the plugins, i have searched the code for a hook that is called earlier to stop it, but there is not one
to show a error, you just need to return an array with error and the message:
return array( 'error'=> "The error");
here is a image of the final result (and yes, the file is really deleted)
hope it helps!
Forum: Hacks
In reply to: can a plugin stop a upload?i got no joy with your code, same error…
i dont think that was the issue, more that the issue was with :
$results['file']
,also, wp_handle_upload_error does nothing more then return a array,
but that array is return by wp_handle_upload
i have been searching through the source code of wordpress to find a way to editing the crunching, and it seems the best way of doing that is by causing the upload to fail with a error message
i am sat here with everything in debug mode to find the best way to fail this upload……i have had no joy so far…
if anyone has any ideas, it would be a big help
Forum: Hacks
In reply to: can a plugin stop a upload?‘wp_handle_upload’ was working fine with
add_action
, although works fine withadd_filter
as-well, so i set it as a filter.we cant use ‘wp_handle_upload_prefilter’, as the file needs to be decoded as a whole, but thanks for the suggestion.
call_user_func('wp_handle_upload_error', $results['file'], 'Your error message').
gets the error:
Warning: Parameter 1 to wp_handle_upload_error() expected to be a reference, value given
Forum: Fixing WordPress
In reply to: Blog hacked please helpslightly off topic.. but try changing your config file to permissions 555, then change your sql password
see if that resolves your issue