FelixSima
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Shortcode conflict.I fixed it. I checked again, and the template was in ‘wp-job-manager-resumes’ instead of ‘job_manager’. My bad.
But here comes the tricky question. How should I define this repeatable language field for admin side?Forum: Plugins
In reply to: [WP Job Manager] Shortcode conflict.That’s the path.
Forum: Plugins
In reply to: [WP Job Manager] Shortcode conflict.What do you mean by adding the link to the template file? I already created a new file ‘languages-field.php’ based on ‘education-field.php’ and this doesn’t work, though I don’t really understand why.
public static function get_field_template( $key, $field ) { switch ( $field['type'] ) { case 'education' : case 'experience' : case 'links' : get_job_manager_template( 'form-fields/' . $field['type'] . '-field.php', array( 'key' => $key, 'field' => $field ), 'wp-job-manager-resumes', RESUME_MANAGER_PLUGIN_DIR . '/templates/' ); break; default : get_job_manager_template( 'form-fields/' . $field['type'] . '-field.php', array( 'key' => $key, 'field' => $field ) ); break; } }Shouldn’t this function be able to find the ‘languages-field.php’ as long as the new field specified type is set to ‘languages’?
I’m past my deadline and I have several issues with the plugin. Is there anyway we could talk real-time, skype or smth? I’m willing to pay for your real-time support.
Thank you!Forum: Plugins
In reply to: [WP Job Manager] Shortcode conflict.Hi. Thank you for the reply.
At the moment I have a bigger issue. I am trying to add a new custom repeatable field using the ‘submit_resume_form_fields’ filter.This is the code I use:
add_filter( 'submit_resume_form_fields', 'language_repeatable_field' ); language_repeatable_field( $fields ) { $fields['resume_fields']['languages'] = array( 'label' => __( 'Language(s)', 'wp-job-manager-resumes' ), 'type' => 'languages', 'required' => false, 'placeholder' => '', 'priority' => 11, 'fields' => array( 'language' => array( 'label' => __( 'Language', 'wp-job-manager-resumes' ), 'type' => 'text', 'required' => true, 'placeholder' => '' ), 'level' => array( 'label' => __( 'Level', 'wp-job-manager-resumes' ), 'type' => 'text', 'required' => true, 'placeholder' => '' ) ) ); FB::log($fields); return $fields; }For type I used “languages”. I created a new template called ‘languages-field.php’ following the existing ‘experience-field.php’. The Label is printed on front end, but the actual link that should add the repeatable field is not there. Should the new field be registered somehow? What am I missing?
Thank you!
Forum: Plugins
In reply to: [WP Job Manager] Shortcode conflict.PS: I’ve set the ‘.fieldset-resume_content’ as ‘display:none’ for now (in the sign up modal). You can find it right after ‘.fieldset-candidate_video’
Thanks!
Forum: Plugins
In reply to: [WP Job Manager] Shortcode conflict.Hey.
http://scoot.my/This is a live site so I can’t display them in plain sight. I added a ‘display:none’ div in the footer, right before the body closing tag. Its id is ‘hidden_job_manager’ so you can easily display it with jquery.
Also, another bug I’m facing is tinyMCE related. If you click on the “SIGN UP” button on the top nav, select “I’m a candidate looking for a job”, the submit resume form will display. ‘The Resume Content’ section is unusable, you can’t type anything in it.
In this pop up, both the sign up and the submit resume forms are being fully displayed. That’s because I added the submit resume form somewhere in the header, and used “.appendTo()’ on ‘.ready()’ to move it inside the pop up. I’m guessing this might be the cause of the tinyMce bug, so it could be related with the first bug.I hope I make sense. Thank you!
Forum: Plugins
In reply to: [File Away] Username dynamic path bugNo worries man. I appreciate your help and dedication!
PS: I added your movies on my watchlist 😀Forum: Plugins
In reply to: [File Away] Username dynamic path bugYou’re a generous god!
One question though. Should I avoid updating the plugin or will you inlcude this in the next update?Forum: Plugins
In reply to: [File Away] Username dynamic path bug$login = $u->user_login;
instead of :
$login = str_replace(array(‘.’,”‘”,'”‘), ”, $u->user_login);Would this pose a security risk?
Forum: Plugins
In reply to: [File Away] Username dynamic path bugI would rather have the manager use the user full username (dot included) if it’s possible and not a big security risk. I also have thought about adding the id to the path, but I am affraid that would be a bit confusing for some of the admins that will manage the files (they will need to download the files users upload, make some changes and then upload it back to the users folder).
Forum: Plugins
In reply to: [File Away] Username dynamic path bugOk, now it works. But what happens if at some point there will be 2 users, one testtest and the other one test.test . Wouldn’t that result in mixing their files?
Forum: Plugins
In reply to: [File Away] Username dynamic path bugoh, sorry, I missed that. Just a sec
Forum: Plugins
In reply to: [File Away] Username dynamic path bugNo, no, the file up I mean.
[fileup sub=”/fa-userrole/fa-username” makedir=”true” theme=”silver-bullet”]
[fileaway_extended fadein=”opacity” makedir=”true” fadetime=”500″ theme=”silk” bulkdownload=”on” manager=”on” name=”files” password=”wp!@#$%^” user_override=”fa-userid”]
These are the 2 shortcodes I’m currently using.
Forum: Plugins
In reply to: [File Away] Username dynamic path bugOk, now it works, but the problem is that the extended plugin function removes the dot while the uploader uses the users name as it is (with dot included), so I still have 2 different folders (test.test and testtest). Would it be posible for the manager to use the users name as it is (dot included)?
Forum: Plugins
In reply to: [File Away] Username dynamic path bugclass my_fileaway_extension
{
public function __construct()
{
add_shortcode(‘fileaway_extended’, array($this, ‘sc’));
}
public function sc($atts = array())
{
if(!class_exists(‘fileaway’) || !is_user_logged_in()) return;
$u = wp_get_current_user();
$login = str_replace(array(‘.’,”‘”,'”‘), ”, $u->user_login);
if(isset($atts[‘sub’])) unset($atts[‘sub’]);
$atts[‘sub’] = ‘fa-userrole/’.$login;
$fileaway = new fileaway;
return $fileaway->sc($atts);
}
}
new my_fileaway_extension;It’s only one functions.php, and yes, it is between php tags