Jump to content

benbyf

Members
  • Posts

    796
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by benbyf

  1. Hi all,

    Not sure if this has been asked already but...

    Recently came across an agency with a build script for PW! I was amazed and also bemused, as alot of the script was used to create the right fields and templates in the DB from other local copies, and they'd done this by separating out tens of JSON files with individual field / template export data and sticking it back together on deploy creating new id's adhocly. (a far as i could see as id's were ommited)

    Anyway, in my experience I've always felt that export profile and profile installing has worked well for buiding for live as you get a stable install with your site template, fields and pages.

    If anyone has any scripting experience with PW I would love to know:

    Anyone else use build tools?

    What do you use them for with PW?

    and what languages/environment you use to create them?

    • Like 1
  2. whats the intagram strategy, its like they're locking it down more and more with the new approval process and new sandbox mode. https://www.instagram.com/developer/sandbox/

    also do you create one client, or multiple clients - new one for each site? If multiple its almost impossible to do as each time you have to setup, submit to approve with instagram (including a step that asks you to submit a video of how your using instagram...) and wait.

    :( boo instagram boo!

    this still the case or am i missing something?

  3. HELLO!

    I'm using $user->isLoggedin() three times on one template (in the head.inc, template-page.php and foot.inc). I'm using a custom login in my template file:

    // If they aren't logged in, then show the login form
    if(!$user->isLoggedin()){
    
    	// check for login before outputting markup
    	if($input->post->user && $input->post->pass) {
    
    		$user = $sanitizer->username($input->post->user);
    		$pass = $input->post->pass;
    
    		if($session->login($user, $pass)) {
    			// login successful
    			$session->redirect($homepage->url);
    		} else {
    			// login error
    			$session->login_error = 'Login Failed. Please try again, or use the forgot password link below.';
    		}
    	}
    	if($input->post->user && $input->post->pass) {
    		$login = "<p class='error'>" . $session->login_error . "</p>";
    	}
    	$login .= "<form action='./' method='post'><div class='login'>
    			<input type='text' id='user' name='user' placeholder='Enter your SP Company Code' />
    			<input class='hidden' type='password' name='pass' value='' />
    			<p><input type='submit' class='btn' name='submit' value='Login' /></p>
    		</div></form>";
    
    } // end !logged in
    
    

    Using the correct logins works and everything is cool, but putting the wrong passwords in creates a Internal server error on both the head.inc and foot.inc $user->isLoggedin() functions.

    I'm probably doing something absurdly stupid here, any ideas?

    thanks

  4. anyone have any thoughts or examples of tutorials for theme building in PW, just about to write mine as part of a series on envato. Ideally I'm looking to make my tutorial about making a complete theme for a simple website based from PW's site-default.

    • Like 1
  5. Hi!

    I'm writing some tutorials for Tuts+ and I'll put some information here when I have it. Love to hear your suggestions, and I think a couple of other people are wirting tutorials there and of course many other places.

    • Like 4
  6. Usually if I have a client who has used Wordpress or Drupal I just up sell them on the factor we can make it less cumbersome to use, which is generally to case. There's of course lots of other reasons too.

    If they haven't used any cms before then but have heard of Wordpress etc I generally list off pros and cons of the each and generally walk on Drupal 7 or lower projects a they require more effort in my experience and money.

    • Like 1
  7. whats the intagram strategy, its like they're locking it down more and more with the new approval process and new sandbox mode. https://www.instagram.com/developer/sandbox/

    also do you create one client, or multiple clients - new one for each site? If multiple its almost impossible to do as each time you have to setup, submit to approve with instagram (including a step that asks you to submit a video of how your using instagram...) and wait.

    :( boo instagram boo!

  8. HI!

    Having real issues exporting from 2.3 to 2.6.

    Moving to a new server as current one is runing php 5.3.3.

    The PW2.3 install wont support modules site profile export or pw upgrade. I've tried moving wholesale the files and db to the new server with php 7 but getting this error from MySQL on import:

    SQL query:
    
    CREATE TABLE `fieldgroups` (
      `id` int(10) UNSIGNED NOT NULL auto_increment,
      `name` varchar(255) CHARACTER SET ascii NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    
    MySQL said: Documentation
    #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
    

    Any help would be ace.

×
×
  • Create New...