Forum Replies Created

Viewing 15 Topics - 1 through 15 (of 21 total)
Author Posts
March 1, 2014 at 11:54 pm in reply to: Glocal Directory + WP User Frontend 16040
elenanik elenanik

Can you please help? Can’t find any solution!

Thanks in advance.

February 18, 2014 at 3:08 pm in reply to: Glocal Directory + WP User Frontend 15574
elenanik elenanik

I tried this plugin but there are some selection boxes and a google map that I can’t fint how to configure WPUF Form.

There is an option Portfolio Hide/Display, I am creating a dropdown with the values and the metafield and doesn’t work.

February 18, 2014 at 3:02 pm in reply to: Glocal Directory + WP User Frontend 15572
elenanik elenanik

ok I’ll try this…
thanks

February 18, 2014 at 1:50 pm in reply to: Glocal Directory + WP User Frontend 15567
elenanik elenanik

I am trying to create a submit listing form – front end. Nothing works…

February 18, 2014 at 1:49 pm in reply to: Glocal Directory + WP User Frontend 15566
elenanik elenanik

Hi, can you please give me an answer if you are able to help or not? I have to give an answer to my client too.. Thanks a lot!

February 9, 2014 at 12:58 am in reply to: Glocal Directory + WP User Frontend 15247
elenanik elenanik This reply has been marked as private.
January 21, 2014 at 6:47 pm in reply to: Dashboard show posts by category 14663
elenanik elenanik

I am using this shortcode:
[wpuf_dashboard post_type=”post”]

is there a way to add the category id of the post I want the user to edit?

Thanks!!!

January 21, 2014 at 6:44 pm in reply to: Dashboard show posts by category 14662
elenanik elenanik

Hi, thanks but where do I have to add this code? wpuf functions or to my templates functions?
There is a shortcode to do this job?

December 11, 2013 at 8:49 pm in reply to: Integration with Directory Theme? 13627
elenanik elenanik

About the FrontEnd posting, this plugin is the best I ever tried, user friendly and easy to set it! It integrates perfect with this theme! You can do everything you need.

December 11, 2013 at 8:40 pm in reply to: Integration with Directory Theme? 13626
elenanik elenanik

Hi, I am using paid memberships pro because this plugin has members levels to district some content and has it’s own registration for packages that the user creates a profile.
But I don’t know what you exactly want to do and what limitations you want members have. I think WPUF is ok for your site.

About the Login You have to change the file in:
directory/AIT/Framework/Widgets/ait-directory-login-widget.php

but before you did it back up your original file 🙂

here’s the code
you’ll find <a href="your-url-here"> there you have to add your own url.

<?php
/**
 * Creates widget with login or register to direcotry portal theme
 */
class Directory_Widget extends WP_Widget {
	/**
	 * Widget constructor
     *
	 * @desc sets default options and controls for widget
	 */
	function Directory_Widget () {
		/* Widget settings */
		$widget_ops = array (
			'classname' => 'widget_directory',
			'description' => __( 'Register or login directory users form', 'ait')
		);

		/* Create the widget */
		$this->WP_Widget( 'ait-directory-widget', __( 'Theme &rarr; Directory Login', 'ait'), $widget_ops );
	}

	/**
	 * Displaying the widget
	 *
	 * Handle the display of the widget
	 * @param array
	 * @param array
	 */
	function widget( $args, $instance ) {

		extract( $args );
	
		$title = apply_filters('widget_title', $title, $instance, $this->id_base);

		echo $before_widget;
		if ( $title) {
			echo $before_title . $title . $after_title;
		}

		if ( is_user_logged_in() ){
			echo '<div class="logged">';
			global $wp_roles;
			$currUser = wp_get_current_user();
			echo $instance['description_logout'];
			echo '<div class="profile-info clear">';
			echo '<div class="profile-name"><span>'.__('UserName: ','ait').'</span>'.$currUser->user_nicename .'</div>';
			if(isset($currUser->roles[0])){
				echo '<div class="profile-role"><span>'.__('Package: ','ait').'</span>'.$wp_roles->role_names[$currUser->roles[0]] .'</div>';
	}
			

			echo '<a href="'.wp_logout_url(get_permalink()).'" title="Logout" class="widgetlogin-button-logout">'.__('Logout','ait').'</a>';
			echo '</div></div>';
		} else {
			?>
			<div class="not-logged">
			<div id="ait-login-tabs">
				

<h3 style="color:#666;">If you already have an account Login here</h3>
                 <h3 class="widget-title"><span>MEMBER LOGIN</span></h3>
				<?php wp_login_form( array( 'form_id' => 'ait-login-form-widget' ) ); ?>
<br />
<div style="background:#f4f4f4; width:100%; padding:10px; margin:0px;">
<a href="your-url-here" style="color:#c81f93!important;">I Forgot Password!</a><br /><br /><h3 style="color:#666;">You are not member? Register Here!</h3><a href="your-url-here" style="color:#c81f93!important;">Click here to register</a>.</div>

             

				<script>
				jQuery(document).ready(function($) {
					var tabRegister = $('#ait-dir-register-tab'),
						tabLogin =  $('#ait-dir-login-tab'),
						linkLogin = $('#ait-login-tabs .login'),
						linkRegister = $('#ait-login-tabs .register');
					linkLogin.click(function(event) {
						linkRegister.parent().removeClass('active');
						tabRegister.hide();
						linkLogin.parent().addClass('active');
						tabLogin.show();
						event.preventDefault();
					});
					linkRegister.click(function(event) {
						linkLogin.parent().removeClass('active');
						tabLogin.hide();
						linkRegister.parent().addClass('active');
						tabRegister.show();
						event.preventDefault();
					});
					// init and change
					var select = tabRegister.find('select[name=directory-role]'),
						buttonSubmit = tabRegister.find('input[name=user-submit]'),
						freeTitle = '<?php _e('Sign up','ait'); ?>',
						buyTitle = '<?php _e('Buy with PayPal','ait'); ?>';
					if(select.find('option:selected').hasClass('free')){
						buttonSubmit.val(freeTitle);
					} else {
						buttonSubmit.val(buyTitle);
					}
					select.change(function(event) {
						if(select.find('option:selected').hasClass('free')){
							buttonSubmit.val(freeTitle);
						} else {
							buttonSubmit.val(buyTitle);
						}
					});
				});
				</script>

			</div>
			</div>
			<?php
		}

		echo $after_widget;

	}

	/**
	 * Update and save widget
	 *
	 * @param array $new_instance
	 * @param array $old_instance
	 * @return array New widget values
	 */
	function update ( $new_instance, $old_instance ) {
		$old_instance['title'] = strip_tags( $new_instance['title'] );
		$old_instance['description_login'] = $new_instance['description_login'];
		$old_instance['description_logout'] = $new_instance['description_logout'];
		$old_instance['description_register'] = $new_instance['description_register'];

		return $old_instance;
	}

	/**
	 * Creates widget controls or settings
	 *
	 * @param array Return widget options form
	 */
	function form ( $instance ) {
		$instance = wp_parse_args( (array) $instance, array(
        	'title' => '',
        	'description_login' => '',
        	'description_logout' => '',
        	'description_register' => ''
        ) );
		?>
		<p>
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php echo __( 'Title', 'ait' ); ?>:</label>
			<input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>"class="widefat" style="width:100%;" />
			<label for="<?php echo $this->get_field_id( 'description_login' ); ?>"><?php echo __( 'Login Description', 'ait' ); ?>:</label>
			<textarea class="widefat" rows="5" cols="20" id="<?php echo $this->get_field_id( 'description_login' ); ?>" name="<?php echo $this->get_field_name( 'description_login' ); ?>"><?php echo htmlspecialchars($instance['description_login']); ?></textarea>
			<label for="<?php echo $this->get_field_id( 'description_logout' ); ?>"><?php echo __( 'Logout Description', 'ait' ); ?>:</label>
			<textarea class="widefat" rows="5" cols="20" id="<?php echo $this->get_field_id( 'description_logout' ); ?>" name="<?php echo $this->get_field_name( 'description_logout' ); ?>"><?php echo htmlspecialchars($instance['description_logout']); ?></textarea>
			<label for="<?php echo $this->get_field_id( 'description_register' ); ?>"><?php echo __( 'Register Description', 'ait' ); ?>:</label>
			<textarea class="widefat" rows="5" cols="20" id="<?php echo $this->get_field_id( 'description_register' ); ?>" name="<?php echo $this->get_field_name( 'description_register' ); ?>"><?php echo htmlspecialchars($instance['description_register']); ?></textarea>
        </p>
        <?php
	}
}
register_widget( 'Directory_Widget' );
December 9, 2013 at 5:11 pm in reply to: Custom post type 13540
elenanik elenanik

Yes, you have to create a Custom Post Type and create a form for this Custom Post Type in front end to allow users publish.
Use the plugin http://wordpress.org/plugins/custom-post-type-ui/ as @DenisCGN wrote and then create your form on WPUF.

December 9, 2013 at 4:55 pm in reply to: Integration with Directory Theme? 13539
elenanik elenanik

Hi! see my answers below

1. I am using Paid Memberhips Pro plugin to create my packages and user levels, so I have a user registration form that the user adds his password there to avoid e-mail confirmation. This plugin keep a history of transactions, user profile edit page, account page so I don’t use the directory mechanism at all. I change a little bit the code of login widget in the directory theme and works perfect for me in a combination with the Theme My Login plugin. So everything done on the front end.
If you want I can send you the code.

Check my login here : http://fitnesslife.gr/αρχική/
on the righs sidebar is the login area of the Directory that I have change the code 🙂
Asks the user if has an account to login here else below sais that if you don’t have an account select your package. Is in Greek now but I hope to understand.

2. To avoid the dublication, in WPUF settings–>general options there is an option Custom Fields in post, uncheck Show custom fields on post content area and it’s done!

3. I used WPUF Shortcodes to show the meta on front end like this:
Map: <?php echo do_shortcode('[wpuf-meta name="location" type="map" height="380" width="300" zoom="14"]'); ?> and I don’t use the neon file of directory at all. Everything done with this super wow perfect plugin 🙂

See my example of single item page here : http://fitnesslife.gr/item/fitness-club/

December 7, 2013 at 8:54 pm in reply to: Limit user posting on custom post type 13467
elenanik elenanik

I’ve found a solution with Bainternet Posts Creation Limits and works with WPUF like a charm!!!

December 7, 2013 at 8:27 pm in reply to: Integration with Directory Theme? 13466
elenanik elenanik

Hi! I am using the same theme Directory 🙂
About the map, I created a field Google Map and Meta Key “location” and works perfect!

December 7, 2013 at 8:18 pm in reply to: Limit user posting on custom post type 13465
elenanik elenanik

Thanks for your response! I know that… but I am using Paid Membership Pro to do create my package levels. I’ve bought your addon for Paid Membership Pro but I can set only the number of post categories and not custom post types.

So, I would like you to help me with the filter I have to add on wpuf-functions.php to limit the post number on a custom post type “ait-dir-item” that I am using to create items (listings) on my directory.

I’ve found this example. Can you please help me to figure out how to fix it to work on my custom post type?

Thanks 🙂

Viewing 15 Topics - 1 through 15 (of 21 total)