jack3

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 64 total)
  • Author
    Posts
  • in reply to: Featured Places showing in my Favorites? #10863

    jack3
    Buyer
    Post count: 67

    Thanks Guust – it appears that when I click login – it takes me to the home page. The difference that I’ve done is that I don’t need to use the widget anymore. I didn’t like having it there because I didn’t want the users to have the other options. Even though you can turn them all off – I didn’t like the way the interface looked at that point with just one dropdown for one CPT.

    in reply to: Favorites Page uses location and switches to directory #10856

    jack3
    Buyer
    Post count: 67

    Thanks – so the question is, if you have more than one city should it be considered multiple locations? It is all geographically in the same area (northern Kentucky). Or should I only add the Multi Location feature if we branch out to other parts of KY and have a Central Kentucky one and so on?

    Thanks,

    Jack

    in reply to: Favorites Page uses location and switches to directory #10714

    jack3
    Buyer
    Post count: 67

    Hi,

    Do you mean the “Location Manager” plugin? Should I disable it? Or is there another setting? Everything I see currently looks like location services are disabled.

    Thanks,

    Jack

    in reply to: Available Developer? #10706

    jack3
    Buyer
    Post count: 67

    Hey there!

    I believe I have been able to knock out a lot of my request – the one thing I am still having problems with is creating a page that will show all places that have not been “Favorited” yet. Would anyone be willing to reverse engineering the My Favorites page for a “Not in my Favorites” page? Or point me in the right direction?

    Thanks,

    Jack

    in reply to: Featured Places showing in my Favorites? #10687

    jack3
    Buyer
    Post count: 67

    OK So I created a new template page called “Where You’ve Been” and put in some code:

    
    
    <?php /*  
    Template Name: Favorite Redirect
    */ 
    // get header
    get_header(); 
    
    if (is_user_logged_in()){
    
    global $current_user;
          get_currentuserinfo();
    $user_ID = get_current_user_id();
    $user_info = get_userdata($user_ID);
    
    function curPageURL() {
     $pageURL = 'http';
     if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
     $pageURL .= "://";
     if ($_SERVER["SERVER_PORT"] != "80") {
      $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
     } else {
      $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
     }
     return $pageURL;
    }
    
    $favorite_url = 'http://www.eatlocalnky.com/author/'. $user_info->user_nicename .'/?geodir_dashbord=true&stype=gd_place&list=favourite';
    
    if(curPageURL()!=$favorite_url){
    ?>
    <script>
    window.location = "<?php echo$favorite_url;?>";
    </script>
    <?php
    }
    }
    else {
    ###### WRAPPER OPEN ######
    // this adds the opening html tags to the primary div, this required the closing tag below :: ($type='',$id='',$class='')
    do_action( 'geodir_wrapper_open', 'signup-page', 'geodir-wrapper','');
    	
    	###### TOP CONTENT ######
    	// action called before the main content and the page specific content
    	do_action('geodir_top_content', 'signup-page');
    	// template specific, this can add the sidebar top section and breadcrums
    	do_action('geodir_signin_before_main_content');
    	// action called before the main content
    	do_action('geodir_before_main_content', 'signup-page');
    
    			###### MAIN CONTENT WRAPPERS OPEN ######
    			// this adds the opening html tags to the content div, this required the closing tag below :: ($type='',$id='',$class='')
    			do_action( 'geodir_wrapper_content_open', 'signup-page', 'geodir-wrapper-content','geodir-content-fullwidth');
    			
    			// this action adds the top sidebar
    			do_action( 'geodir_sidebar_signup_top');
    ?>
    <h4>You must be logged into the site to view this page. Please login or sign-up below. </h4>
    				<form name="loginform" class="loginform1" action="<?php echo get_option('home').'/index.php?geodir_signup=true'; ?>" method="post" >
    					<div class="geodir_form_row"><input placeholder="<?php _e('Email', GEODIRECTORY_TEXTDOMAIN);?>" name="log" type="text" class="textfield user_login1" /> <span class="user_loginInfo"></span> </div>
    					<div class="geodir_form_row"><input placeholder="<?php _e('Password', GEODIRECTORY_TEXTDOMAIN);?>" name="pwd" type="password" class="textfield user_pass1" /><span class="user_passInfo"></span>  </div>
    					
    					<input type="hidden" name="redirect_to" value="<?php echo geodir_curPageURL(); ?>" />
    					<input type="hidden" name="testcookie" value="1" />
    					<div class="geodir_form_row clearfix"><input type="submit" name="submit" value="<?php echo SIGN_IN_BUTTON;?>" class="b_signin"/><p class="geodir-new-forgot-link">   
                        <a href="<?php echo home_url(); ?>/?geodir_signup=true&page1=sign_up" class="goedir-newuser-link"><?php echo NEW_USER_TEXT;?></a>  
                        <br>
                        <a href="<?php echo home_url(); ?>/?geodir_signup=true&page1=sign_in"class="goedir-newuser-link"><?php echo FORGOT_PW_TEXT;?></a> </p> </div>
    				 </form> 
    <?php				 
    			###### MAIN CONTENT WRAPPERS CLOSE ######
    			// this adds the closing html tags to the wrapper_content div :: ($type='')
    			do_action( 'geodir_wrapper_content_close', 'signup-page');
    			   
    ###### WRAPPER CLOSE ######	
    // this adds the closing html tags to the wrapper div :: ($type='')
    do_action( 'geodir_wrapper_close', 'signup-page');
    get_footer();  
    };
    

    I know it isn’t full proof. But it creates the user’s URL for a favorites page and sends the user to that page. If they are not logged in it only shows the User Login page.

    I wanted it to show the full page with registration – but that didn’t work for some reason. Whenever I put in the username and password it would clear the selection but take them anywhere. If you have an idea on how to fix that – awesome. If not this will suffice for now.

    Thanks!

    Jack

    in reply to: Featured Places showing in my Favorites? #10659

    jack3
    Buyer
    Post count: 67

    Hey Guust – I’ve played around with that before but still no luck.

    I’m wanting to add a “My Favorites” link in my menu bar. Or some page that is a landing page for the individual user that shows what they like and haven’t liked – maybe even a list of reviews they’ve made.

    I’ve added the login link to the header, but still doesn’t give the desired effect. I would want the page to say “Please Login to view this information” and have a login/sign up page. Does this make sense? As of right now there doesn’t seem to be a good one-stop shop for users…

    Thanks,

    Jack

    in reply to: Featured Places showing in my Favorites? #10550

    jack3
    Buyer
    Post count: 67

    Hi Guust – I don’t think the Claim Listing add on is what I’m needing. I want to put a link in my menu bar that will take the user to their “Favorite” places – I don’t want to have them use the Dashboard Widget. Any way we can make this work?

    Thanks,

    Jack

    in reply to: Featured Places showing in my Favorites? #10446

    jack3
    Buyer
    Post count: 67

    Ok I found out why – the link that is created when you use the dashboard has the user’s display name built into it, it isn’t bring processed on the page. So I have it going to the admin page.

    The question now is: Can we force it to look up the user somehow? Put some php script in the page to find user name and build the link? Or what would be the best way for this? Any thoughts?

    Thanks,

    Jack

    in reply to: Featured Places showing in my Favorites? #9852

    jack3
    Buyer
    Post count: 67

    I don’t think so – I got this link from the login widget/dashboard where you click on the drop down for “my favorites” and select places. What link could I give people to show them their places? Showing a list of every place people like is weird – especially if there isn’t a count or ranking by number. Someone could go in and like every place then everyone would see it in their favorites section…

    in reply to: Featured Places showing in my Favorites? #9849

    jack3
    Buyer
    Post count: 67

    That’s a good question. I thought that link was for the logged in user’s favorite places – so they can keep track… If it shows all user’s favorites no matter what we may have a problem. hmmm

    in reply to: Featured Places showing in my Favorites? #9841

    jack3
    Buyer
    Post count: 67

    No – I was looking at it before I made the change. I posted this then decided to make the change. I can revert it if you’d like. But one way to tell is if you aren’t logged in to the site, then it still shows the featured item there. But it should ask you to log in…

    in reply to: Popular Post View issue #8198

    jack3
    Buyer
    Post count: 67

    OK so I got to messing around and realized I was using the main framework – I switched to the Child Framework (is this recommended? What is the difference and why?) and now it appears that the widgets look nice everywhere.

    My OCD still has an issue because on the complete directory the widget titles now have an underline where they don’t on the regular pages. I added this to the CSS script section:

    .geodir-sidebar-wrap .widget .widget-title{border-bottom: none;}

    And that fixed it. Just wanted to give you a heads up for future updates.

    Thanks for your help!

    Jack

    in reply to: Popular Post View issue #8193

    jack3
    Buyer
    Post count: 67

    Hey Guys – any way to get this looked at? I found a way to tweak it a little by adding this css to it:
    .widget {margin: 0px;}

    But even then when I look at I noticed its more than spacing – the font colors and sizes are different and everything else. Is there a way to fix this? And am I the only one seeing this issue?

    Thanks,

    Jack

    in reply to: IE 8 compatibility issues #8132

    jack3
    Buyer
    Post count: 67

    Thanks – I went to the GDF_Child folder in themes and took the style.css file but it was blank. I added it to this file but it doesn’t appear to have fixed it. Should I do it in a different style.css file?

    Thanks again,

    Jack

    in reply to: IE 8 compatibility issues #8113

    jack3
    Buyer
    Post count: 67
    This reply has been marked as private.
Viewing 15 posts - 31 through 45 (of 64 total)