2 of 4
2
Extension: Publish Tweeks
Posted: 21 January 2009 02:43 PM   [ Ignore ]   [ # 19 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  522
Joined  07-16-2005

@notacouch Not sure the exact differences. I don’t think Publish Improvements keeps you on the editing page, while we cancel the redirect. We actually use the Fil Upload link sometimes and don’t want to kill it. You’re welcome to edit your copy though!

 Signature 

Travis Schmeisser // rockthenroll


Structure is a powerful add-on that lets you create pages, generate navigation, manage content through a simple interface and build robust sites faster than ever.
http://buildwithstructure.com

Profile
 
 
Posted: 21 January 2009 06:43 PM   [ Ignore ]   [ # 20 ]  
Grad Student
Rank
Total Posts:  99
Joined  03-06-2008

Ohhhh this keeps you on the same page. Excellent.

Alright.  No time at the moment but I’ll let you know if I modify it to optionally take out the Upload File link as PI does. 

thanks

Profile
 
 
Posted: 26 January 2009 02:53 PM   [ Ignore ]   [ # 21 ]  
Grad Student
Rank
Total Posts:  99
Joined  03-06-2008

hi. just installed this with no problems. great stuff, thanks. =D

Quickest way to remove the Upload File link/button:

ext.publish_tweeks.php (version 0.7.1)
line 112
Change:

<div class="uploadBox"'; 

To:

<div class="uploadBox" style="display:none;"'; 
Profile
 
 
Posted: 27 January 2009 09:36 AM   [ Ignore ]   [ # 22 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  522
Joined  07-16-2005

LG Addon support added: Download v0.7.2 + Change Log: http://www.ngenworks.com/software/ee/publish-tweeks

 Signature 

Travis Schmeisser // rockthenroll


Structure is a powerful add-on that lets you create pages, generate navigation, manage content through a simple interface and build robust sites faster than ever.
http://buildwithstructure.com

Profile
 
 
Posted: 27 January 2009 11:59 AM   [ Ignore ]   [ # 23 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  175
Joined  05-25-2002

@rockthenroll: Please, could you check download link? I get “Page Not Found”. Thanks.

 Signature 

+ CM faviconizEE
+ CM Nice URL
+ CM Strange URL Interpreter
+ CM Textarea Resizer
+ CM Template Editor

Profile
 
 
Posted: 27 January 2009 12:02 PM   [ Ignore ]   [ # 24 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  522
Joined  07-16-2005

Fixed. Sorry, moving too fast!

 Signature 

Travis Schmeisser // rockthenroll


Structure is a powerful add-on that lets you create pages, generate navigation, manage content through a simple interface and build robust sites faster than ever.
http://buildwithstructure.com

Profile
 
 
Posted: 27 January 2009 12:19 PM   [ Ignore ]   [ # 25 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  519
Joined  10-09-2007

Just wanted to poke my head in here again and say thanks for the great extension, it’s been a real time saver plus cuts out confusion with multiple publishers.  Should be a default for EE installs, it’s now mine!

 Signature 

Vancouver Travel & Tourism http://www.discovervancouver.com/

Profile
 
 
Posted: 02 February 2009 06:39 PM   [ Ignore ]   [ # 26 ]  
Grad Student
Rank
Total Posts:  99
Joined  03-06-2008

Hi,

Have a problem with this extension and some weblog pages going completely blank.
(See: http://expressionengine.com/forums/viewthread/104378/)

Upgraded from 0.7.1 to 0.7.2 and the problem persists.

Any ideas where the problem might be or where to start looking to fix? Work day is over for now, would be great if I could get this enabled again soon. =)

thanks

Profile
 
 
Posted: 02 February 2009 08:09 PM   [ Ignore ]   [ # 27 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  522
Joined  07-16-2005

@notacouch check your PMs

 Signature 

Travis Schmeisser // rockthenroll


Structure is a powerful add-on that lets you create pages, generate navigation, manage content through a simple interface and build robust sites faster than ever.
http://buildwithstructure.com

Profile
 
 
Posted: 11 February 2009 10:07 AM   [ Ignore ]   [ # 28 ]  
Grad Student
Rank
Total Posts:  63
Joined  06-09-2007

I get this error when I get to the Edit page:

Notice: A session had already been started - ignoring session_start() in /home/xxxxxx/public_html/xxxxx/extensions/ext.publish_tweeks.php on line 151

And the this error when I press update :

Notice: A session had already been started - ignoring session_start() in /home/xxxxxx/public_html/xxxxx/extensions/ext.publish_tweeks.php on line 185

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/xxxx/extensions/ext.publish_tweeks.php:185) in /home/xxxx/public_html/xxxx/extensions/ext.publish_tweeks.php on line 191

I m running EE 1.6.6 with forum module, i dont know if that has to do anything with it. On another install I got 1.6.7 it works fine!

Profile
 
 
Posted: 11 February 2009 10:12 AM   [ Ignore ]   [ # 29 ]  
Grad Student
Rank
Total Posts:  63
Joined  06-09-2007

ok commented the session start(); on line 145 and 185 and now it seems it works fine.

Profile
 
 
Posted: 17 February 2009 09:40 PM   [ Ignore ]   [ # 30 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  450
Joined  02-16-2007

The extension adds a nice touch, but I ran into an odd issue. See this thread:

http://expressionengine.com/forums/viewthread/106076/

 Signature 

@litzinger
Bold Minded add-ons

Profile
 
 
Posted: 18 February 2009 01:07 AM   [ Ignore ]   [ # 31 ]  
Grad Student
Rank
Total Posts:  99
Joined  03-06-2008
tilzinger - 18 February 2009 02:40 AM

The extension adds a nice touch, but I ran into an odd issue. See this thread:

http://expressionengine.com/forums/viewthread/106076/

It is probably the same isolated bug I got with sequential gallery related entries.

I changed the regex slightly and that did the trick. If the author doesn’t mind I’ll post the edit for that.

How I managed to bring it down to that is the returned html is via preg_replace, when that function fails it returns NULL (iirc). In my own code I forgot to check if the preg replace fails but changing the regex somehow did the trick (makes no sense since the html it is searching is *exactly* the same).

Profile
 
 
Posted: 18 February 2009 10:58 AM   [ Ignore ]   [ # 32 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  522
Joined  07-16-2005

@tilzinger sorry for the trouble, we’ll look at the issue
@notacouch go ahead and post and we’ll look at your edit for the next version. Thanks!

 Signature 

Travis Schmeisser // rockthenroll


Structure is a powerful add-on that lets you create pages, generate navigation, manage content through a simple interface and build robust sites faster than ever.
http://buildwithstructure.com

Profile
 
 
Posted: 18 February 2009 01:38 PM   [ Ignore ]   [ # 33 ]  
Grad Student
Rank
Total Posts:  99
Joined  03-06-2008

Publish Tweeks 0.7.2

$new 'div class="submitBox">
      <input class="submit" type="submit" value="' 
$value '" name="submit" /></div>
      <div class="uploadBox"'
$find "#div class='submitBox'.+div class='uploadBox'#is"
return preg_replace($find$new$html); 

My ‘fix’ (now updated to work around preg_replace errors)

$new 'div class="submitBox">
        <input class="submit" type="submit" value="' 
$value '" name="submit" /></div>';

    
$find "#div class='submitBox'.+?</div>#is";

    
$temp_html preg_replace($find$new$html);
    
$html = ($temp_html === NULL ) ? $html $temp_html;

    return 
$html
Profile
 
 
Posted: 18 February 2009 01:42 PM   [ Ignore ]   [ # 34 ]  
Grad Student
Rank
Total Posts:  99
Joined  03-06-2008

If you want to add a setting to remove the Upload File box:

Replace in ext.publish_tweeks.php
(in the fix above)

return $html

with

// Remove upload box?
    
if( isset( $this->settings['other_settings_remove_upload_box') AND ( $this->settings['other_settings_remove_upload_box'=== 'y' ) )
    
{
        $new 
'';
        
$find "#<div class='uploadBox'.+?</div>#is";
        
$temp_html preg_replace($find$new$html);
        
$html = ($temp_html === NULL ) ? $html $temp_html;
    
}
    
    
return $html

and

// Close Form 

With

// Other Settings

    
$DSP->body .= $DSP->table_open(
                                       array(
                                           
'class'  => 'tableBorder',
                                           
'border' => '0',
                                           
'style' => 'margin-top:18px; width:100%'
                                       
)
                                   );

    
$DSP->body .= $DSP->tr()
                . 
$DSP->td('tableHeading''''2')
                . 
$LANG->line("other_settings_title")
                . 
$DSP->td_c()
                . 
$DSP->tr_c();

    
$DSP->body .= $DSP->tr()
                . 
$DSP->td('tableCellOne''60%')
                . 
$DSP->qdiv('defaultBold'$LANG->line("other_settings_remove_upload_box_label"))
                . 
$DSP->td_c();

    
$DSP->body .= $DSP->td('tableCellOne')
                . 
'<select name="other_settings_remove_upload_box">'
                
$DSP->input_select_option('y'$LANG->line('yes'), ($current['other_settings_remove_upload_box'== 'y' 'y' ''))
                . 
$DSP->input_select_option('n'$LANG->line('no'),  ($current['other_settings_remove_upload_box'!= 'y' 'y' ''))
                . 
$DSP->input_select_footer()
                . 
$DSP->td_c()
                . 
$DSP->tr_c();

    
$DSP->body .= $DSP->table_c();
    
    
// Close Form 

in language/english/lang.publish_tweeks.php:

replace

/* END */ 

with

// -- Other settings

'other_settings_title' =>
'Other Settings',

'other_settings_remove_upload_box_label' =>
'Remove "Upload File" box?',

/* END */ 
Profile
 
 
Posted: 25 February 2009 03:53 PM   [ Ignore ]   [ # 35 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  229
Joined  03-01-2006

I think I found an issue with this extension and the Playa extension.  While this was enabled, any weblogs that have more than 1 playa field just output a blank cp screen. tried updating to 0.7.2, same result. Just FYI

Profile
 
 
Posted: 25 February 2009 03:56 PM   [ Ignore ]   [ # 36 ]  
Grad Student
Rank
Total Posts:  99
Joined  03-06-2008
they inspire - 25 February 2009 08:53 PM

I think I found an issue with this extension and the Playa extension.  While this was enabled, any weblogs that have more than 1 playa field just output a blank cp screen. tried updating to 0.7.2, same result. Just FYI

try the above modification?
http://expressionengine.com/forums/viewreply/534348/

Profile
 
 
   
2 of 4
2