redirect after log in not working?
-
hey
I checked __ after the registration or confirmation the user will be redirected to the address where was exactly before clicking on the registration linkbut neither after login nor after registration does it redirect to the main page or any page from my site, any reason why???
-
Also is there a way for me to make sure the image that a user uploads is given has a specific name
username.extension I mean
pleaseeeeeeeeee help me
Marco I know I am really pissing you off now. But I really need your help at the soonest possible time!!
I am working for free as this is a client project at my college. I have loads of other assignments too and im really running out of time..
1. Have to double check, are you using other plug-in’s that may affect this?
2. You can fix the extension as WRITTEN IN THE PLUG-IN:With file: you can preload a default file putting url in Value; ‘min,exact,max size’ are in KB; under equal TO can be specified allowed extensions separated by comma, example: zip,pdf,doc
3. Do not talk to me like you are my employer: I did NOT sign anything to make your website working, I did NOT sign to work for you, I did NOT sign to answer “at the soonest possible time”.
The plug-in is provided “AS IS”, read the license and if you do not understand it, ask someone else that can explain it to you.From now on you’ll be ignored by me due to:
a) not reading anything you have in front of you
b) wasting my time
c) treating me like your employee, while I am not.Bye
Noooo you are seriously misreading the tone of my messages to you. If I really could express my need to be helped urgently and excused for lack of spending extra time in finding out how to do it, I would. In no way do I demand your help. Please forgive me if it sounded like that. I have utmost respect for d effort ou have put in to the plugin. Please do not cut of support for me on a misunderstanding.
honestly, I am extremely sorry. :'( Please try to understand, I am lost at this moment, I came across your plugin really late. its just bad luck on my part…
as for 1. I am using “Personal Fundraiser Plugin” that does have a register form if user isnt logged in. and Login directs to wp-login and on signing in it directs back to the page we were at (its the Write A Story Page)
2nd issue: no I meant to give it the file name as username
so i would want the images to be uploaded
for eg:in the cimy uploads folder
under the gojonami folder
with gojonami.jpg forhey I figured out renaming the image from your response and the other post
http://wordpress.org/support/topic/plugin-cimy-user-extra-fields-advanced-options?replies=6
thanks for all your help.
still have the redirect issue, trying to find out what messes it.. 🙁
Is there anyone else who has witnessed the same issue?
Very few ppl use Personal Fundraiser Plugin, so the likelihood for the issue resolved is unlikely.Redirect issue works perfectly for me, likely another plug-in is misbehaving or tricking my plug-in.
Please disable all the plugins, one by one, to isolate which one is.Hi Marco,
thanks for looking into it,
i started of by deactivating all the plugins, it still didnt work.
It goes straight to profile page for me.
Could it be some hooks or functions that were added by me ??<?php //Add support for WordPress 3.0's custom menus add_action( 'init', 'register_my_menu' ); //Register area for custom menu function register_my_menu() { register_nav_menu( 'primary-menu', __( 'Primary Menu' ) ); register_nav_menu( 'secondary-menu', __( 'Secondary Menu' ) ); register_nav_menu( 'sidebar-menu', __( 'Sidebar Menu' ) ); } //Code for custom background support add_custom_background(); // Enable post thumbnails add_theme_support('post-thumbnails'); set_post_thumbnail_size(700, 300, true); // Enable custom post types /*add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'features', array( 'labels' => array( 'name' => __( 'Features' ), 'singular_name' => __( 'Features' ) ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'Feedback'), 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), ) ); }*/ //change the howdy to anything we want function replace_howdy( $wp_admin_bar ) { $my_account=$wp_admin_bar->get_node('my-account'); $newtitle = str_replace( 'Howdy,', 'GoJo', $my_account->title ); $wp_admin_bar->add_node( array( 'id' => 'my-account', 'title' => $newtitle, ) ); } add_filter( 'admin_bar_menu', 'replace_howdy',25 ); //sidebar-index if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Sidebar Index', 'id' => 'sidebar_index', 'description' => 'Appears as the sidebar on the custom index homepage', 'before_widget' => '<div style="height: 0px"></div><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); } //sidebar-fund if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Sidebar Fund', 'id' => 'sidebar_fund', 'description' => 'Appears as the sidebar on the custom index homepage', 'before_widget' => '<div style="height: 0px"></div><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); } //sidebar-pitches if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Sidebar Pitches', 'id' => 'sidebar_pitches', 'description' => 'Appears as the sidebar on the custom index homepage', 'before_widget' => '<div style="height: 0px"></div><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); } //sidebar-published if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Sidebar Published', 'id' => 'sidebar_published', 'description' => 'Appears as the sidebar on the custom index homepage', 'before_widget' => '<div style="height: 0px"></div><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); } //sidebar-suggestions if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Sidebar Fund a Stroy', 'id' => 'sidebar_fundastory', 'description' => 'Appears as the sidebar on the custom index homepage', 'before_widget' => '<div style="height: 0px"></div><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); } //sidebars function gojo_widgets_init() { // Area 1, located at the top of the sidebar. register_sidebar( array( 'name' => __( 'Primary Widget Area', 'gojo' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary widget area', 'gojo' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'gojo' ), 'id' => 'secondary-widget-area', 'description' => __( 'The secondary widget area', 'gojo' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 3, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'gojo' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'gojo' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 4, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'gojo' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', 'gojo' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 5, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'gojo' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area', 'gojo' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 6, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'gojo' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area', 'gojo' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } /** Register sidebars by running gojo_widgets_init() on the widgets_init hook. */ add_action( 'widgets_init', 'gojo_widgets_init' ); /*WP Media Uploader for the logo*/ require_once( 'wptuts-options/wptuts-options.php' ); /*SUCCESSFULLY ADDS NEW TEMPLATES FOR CAUSES AND CAMPAIGNS*/ add_filter( 'page_template', 'pfund_custom_page_template' ); function pfund_custom_page_template($current_template) { global $post; if ( $post && $post->post_type == 'pfund_campaign' ) { return locate_template( 'campaign-template.php' ); } elseif ( $post && $post->post_type == 'pfund_cause' ) { return locate_template( 'cause-template.php' ); } else{ return $current_template; } } /*HIRE A WRITER PAGE*/ function contributors() { global $wpdb; $authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users WHERE display_name <> 'admin' ORDER BY display_name"); foreach ($authors as $author ) { echo "<li>"; echo "<a href=\"".get_bloginfo('url')."/author/"; the_author_meta('user_nicename', $author->ID); echo "/\">"; echo get_avatar($author->ID); echo "</a>"; echo '<div>'; echo "<a href=\"".get_bloginfo('url')."/author/"; the_author_meta('user_nicename', $author->ID); echo "/\">"; the_author_meta('display_name', $author->ID); echo "</a>"; echo "<br />"; echo "Website: <a href=\""; the_author_meta('user_url', $author->ID); echo "/\" target='_blank'>"; the_author_meta('user_url', $author->ID); echo "</a>"; echo "<br />"; echo "Twitter: <a href=\"http://twitter.com/"; the_author_meta('twitter', $author->ID); echo "\" target='_blank'>"; the_author_meta('twitter', $author->ID); echo "</a>"; echo "<br />"; echo "<a href=\"".get_bloginfo('url')."/author/"; the_author_meta('user_nicename', $author->ID); echo "/\">Visit "; the_author_meta('display_name', $author->ID); echo "'s Profile Page"; echo "</a>"; echo "</div>"; echo "</li>"; } } /*DISABLING THE TOP ADMIN BAR FOR USERS*/ add_filter( 'show_admin_bar', '__return_false' ); /*ADDING CATEGORY TO THE CAMPAIGNS & CAUSES ALONG WITH POSTS*/ /*add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && false == $query->query_vars['suppress_filters'] ) $query->set( 'post_type', array( 'post', 'page', 'pfund_campaign', 'pfund_cause' ) ); return $query; } >>>> OTHER METHOD */ /*add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query() ) $query->set( 'post_type', array( 'post', 'page', 'campaigns' ) ); return $query; } /*ADD CATEGORIES TO CUSTOM POSTS*/ /*add_action('init', 'campaigns_add_default_boxes'); function campaigns_add_default_boxes() { register_taxonomy_for_object_type('category', 'campaigns'); register_taxonomy_for_object_type('post_tag', 'campaigns'); }*/ /*BELOW METHOD WORKED*/ function add_custom_types_to_tax( $query ) { if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { // Get all your post types $post_types = array( 'post', 'pfund_campaign' ); $query->set( 'post_type', $post_types ); return $query; } } add_filter( 'pre_get_posts', 'add_custom_types_to_tax' ); /*ADDING THE LOG IN AND LOG OUT BUTTON ON MENU*/ add_filter( 'wp_nav_menu_items', 'add_loginout_link', 10, 2 ); function add_loginout_link( $items, $args ) { if (is_user_logged_in() && $args->theme_location == 'primary-menu') { $items .= '<li><a href="'. wp_logout_url() .'">Log Out</a></li>'; } elseif (!is_user_logged_in() && $args->theme_location == 'primary-menu') { $items .= '<li><a href="'. site_url('wp-login.php') .'">Log In</a></li>'; } return $items; } ?>or is there any other way I could force it to redirect??
The topic ‘redirect after log in not working?’ is closed to new replies.