Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Allen

    (@amweiss98)

    go into the import_posts.php file and find this line:

    $post[‘post_title’] = trim($items[“mytitle”]);

    change that to:

    $post[‘post_title’] = $items[“myGroup”].’ ‘.date(‘Y-m-d H:i:s’,$items[‘mystrdate’]);

    that should work…you’ll need to save this since would be a hard coded change and will be overwritten if you upgrade later on

    Thread Starter namsterdamus

    (@namsterdamus)

    thanks for the code but it had a problem and broke the site.

    This worked
    $post['post_title'] = $items["myGroup"]

    but once i put the date in it breaks. I think it has something to do with the concatenation of the two. Any suggestions?

    thanks

    Thread Starter namsterdamus

    (@namsterdamus)

    Everything was working fine then all of a sudden it broke the page, the odd thing was that I haven’t even touched it for 3 days. so why would it stop, here’s the thing if i deactivate the plugin the homepage is fine, if i reactivate i only get a blank page.

    Seems that only the homepage and one category is broken but the others if i manually go there work fine.

    blog.lollimobile.com homepage is broken
    http://blog.lollimobile.com/category/cute-asian-fashion/ is broken
    http://blog.lollimobile.com/2013/04/10/cute-asian-fashion-401_738/ specific post are fine.

    http://blog.lollimobile.com/category/cute-jewelry/ however is fine if you go there with a direct link. all post seems fine too even.

    Any ideas?

    Plugin Author Allen

    (@amweiss98)

    can you put here the exact code you are using…you may have an error in the code that is breaking the site.

    Thread Starter namsterdamus

    (@namsterdamus)

    this is the only thing that was changed

    $post['post_title'] = $items["myGroup"]

    Plugin Author Allen

    (@amweiss98)

    Did you put a semi-colon at the end of that line?

    Thread Starter namsterdamus

    (@namsterdamus)

    yes he is the code before and after it so you can see

    if ($overridedate==1){
    		$post['post_date'] = $rightNow;
    	}else{
      		$post['post_date'] = date('Y-m-d H:i:s',$items['mystrdate']);
    	}
    
    	$post['post_title'] =($items["myGroup"]);
    
    	$authorPrep="By ";
    
    		if(!empty($items["myAuthor"]) && $addAuthor==1){
    		 	$thisContent .=  '<span style="font-style:italic; font-size:16px;">'.$authorPrep.' <a '.$openWindow.' href='.$items["mylink"].' '.($noFollow==1 ? 'rel=nofollow':'').'">'.$items["myAuthor"].'</a></span>  ';
    			}
    Plugin Author Allen

    (@amweiss98)

    the code looks fine…not sure what’s going as

    blog.lollimobile.com

    doesn’t look broken at all.

    Thread Starter namsterdamus

    (@namsterdamus)

    we figured it out, we had to increase the memory allocation from 128MB to 256MB in the php.ini because we had just way too many post and it could not handle it. that fixed it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Change Post Title’ is closed to new replies.