edit signup form

This topic contains 7 replies, has 2 voices, and was last updated by  Paolo 9 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #30846
    #30852

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you can do this. Create a folder within your active theme called geodirectory.

    Take a copy of geodirectory-templates/geodir-signup.php and paste in the new theme folder.

    In this file you can add whatever you like.

    For example if you want to leave a welcome note you can add before
    ###### MAIN CONTENT ######

    echo '<h1>welcome to our website!</h1>;

    And you will get this: http://wpgeo.directory/?geodir_signup=true

    Let us know how you went.

    Thx

    #30861

    ray-ramon-r
    Free User
    Post count: 101

    I get this error:
    Parse error: syntax error, unexpected ‘<‘ in /home4/instcert/public_html/encuentramaz.com/wp-content/themes/myencuentramaz/geodirectory/geodir-signup.php on line 25
    I attached the file

    #30862

    ray-ramon-r
    Free User
    Post count: 101

    tried to upload, but would not permit it

    #30863

    Paolo
    Site Admin
    Post count: 31206

    my bad it was:

    echo '<h1>welcome to our website!</h1>;
    #30865

    ray-ramon-r
    Free User
    Post count: 101

    I don’t see a difference in the code.

    #30879

    ray-ramon-r
    Free User
    Post count: 101

    I figured it out, but it’s still not working even with the code you corrected.

    #30906

    Paolo
    Site Admin
    Post count: 31206

    Hi Ray,

    as you can see, it is working here: http://wpgeo.directory/?geodir_signup=true&redirect_add_listing=http%3A%2F%2Fwpgeo.directory%2Fadd-listing%2F%3Flisting_type%3Dgd_place

    So you must be doing something wrong.

    1) Create geodirectory folder in your active theme
    2) inside the new folder create a file called geodir-signup.php
    3) copy following code in it:

    
    
    <?php 
    if(get_current_user_id()){wp_redirect( home_url(), 302 ); exit;}
    
    // call header
    get_header(); 
    
    ###### 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');
    
    // This is the line of code added to create the welcome message
    echo '<h1>Welcome to our website!</h1>';
    
    					###### MAIN CONTENT ######
    					// this call the main page content
    					do_action( 'geodir_signup_forms');
    
    			###### 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();  

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket