We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Nested Weblogs

Development and Programming

stinhambo's avatar
stinhambo
1,268 posts
15 years ago
stinhambo's avatar stinhambo

Thank you Mark, it is an awesome Extension which my customers love!

I’ll look forward to a fix when you have the time 😊

       
stinhambo's avatar
stinhambo
1,268 posts
15 years ago
stinhambo's avatar stinhambo

Still not getting any joy with version 2.0 using build 20071204.

I am using the following extensions -

Add Sitename (v.1.1.2) Checkbox (v.1.0.1) Edit Remember (v.1.1.0) Ctegory Checkboxes (v.1.1.2) Field Header (v.1.0.1) File (v.3.1.1) Multi Relationship (v.1.0.6) Multi Text (v.1.1.0)

I just get a big blank CP.

       
ignite's avatar
ignite
149 posts
14 years ago
ignite's avatar ignite

Just curious, have the fixes been implemented?

       
Laisvunas's avatar
Laisvunas
879 posts
14 years ago
Laisvunas's avatar Laisvunas

Hi Mark,

It seems that Nested Weblogs extension is quite dangerous to use.

After enabling it on EE v1.61 I got blank screen and could not log into Control panel anymore because system/index.php also produced only blank screen. Deleting extension’s files did not help - after deleting I got error message about those files missing. Fortunately I was trying extension on localhost, so I did not cripple any website.

The idea behind Nested Weblogs extension is sound and functionality is really needed, but in its current state it poses real danger for anyone who would like to try it.

If this extension is not dead, I will wait impatiently for any fixes.

       
ira42's avatar
ira42
167 posts
14 years ago
ira42's avatar ira42

I think I’ve tracked down the issue, and have a partial fix.

What I know: - This issue only started for me when upgrading to PHP5 - The div containing the publish tab is rendered very differently when you’re on the Publish page itself, versus any other CP page (there’s no id=”publish” and the rendering of the line-breaks are different) - The issue is most likely due to a REGEX in the extension - I know NOTHING regarding Regex syntax (makes me run screaming to the hills)

BUT… around line 200 in ext.nested_weblog.php is the following:

$out = preg_replace("/((?:class=.cpNavOn.|class=.cpNavOff.|id=.publish.).*?>.*?Publish.*?<\/div>)/s","$1".$ul, $out);

I believe that the problem is with the .).*?> , which PHP5 may be interpreting as the closing php tag. Or, it could just be that the linebreaks aren’t taken into account in the reg ex above. Lastly, it could also be that there is no ID field in the publish DIV, when you’re on the publish page.

Hopefully someone with more (or some) knowledge of regex can find a real fix, but in the meantime, I’ve changed the line to:

$out = preg_replace("/((?:class=.cpNavOn.|class=.cpNavOff.|id=.publish.)..>.*?Publish.*?<\/div>)/s","$1".$ul, $out);

This will disable the Publish rollover altogether once you click the publish tab, but it won’t tank your entire control panel (and isn’t such a bad usability issue, at least for my needs), and the rollover menu and extension function well everywhere else.

Cheers,

  • Ira
       
Nico Smit's avatar
Nico Smit
48 posts
13 years ago
Nico Smit's avatar Nico Smit

I’ve adjusted some code so the extension only shows Channels (weblogs) that what a member (group) is allowed to see.

       
First 4 5 6

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.