Mimbo

Skinning and designing Serendipity (CSS, HTML, Smarty)
Eni
Regular
Posts: 62
Joined: Thu Jan 27, 2005 10:47 pm
Location: Münster, Germany

Mimbo

Post by Eni »

Hi :mrgreen:

A quick question:
Neither static pages nor category icons work out of the box with Mimbo, it seems? They just won't work. Are those deactivated in the code, and if yes, where do I have to look to active them?

If I just overlook something simple in the ACP, I'm sorry. I feel like I looked everywhere by now and just can't find the "let it work"-switch .__.

~eni
Sorry, I'm Late. But I Got Lost On The Road Of Life.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Mimbo

Post by yellowled »

Eni wrote:Neither static pages nor category icons work out of the box with Mimbo, it seems? They just won't work. Are those deactivated in the code, and if yes, where do I have to look to active them?
I'll have to check category icons, but if so, they are probably not included in the template files since they a) don't make much sense and b) are not included in the original design (Mimbo is a wp port, and it has always been my policy to try and port themes as accurately as possible). So there's nothing to activate, you'd have to add tpl code and most likely CSS as well to make them work.

As for static pages, they should work out of the box. Please specify "won't work". Do you have an URL to a blog or are you just testing it on a test installation?

YL
Eni
Regular
Posts: 62
Joined: Thu Jan 27, 2005 10:47 pm
Location: Münster, Germany

Re: Mimbo

Post by Eni »

Hi,

thank you for responding.

I played around with the MimboImages now and I think this actually works nice enough to not need category icons. It bothered me at first to always have to find, upload, re-size and add an icon per individual entry, which is why I preferred to just have category icons. But thinking about this blog concept (e-portfolio and cv), I now think that I should invest that time to have the entries presented nicely on the frontpage and rather include larger images, if needed, in the project entries. So I'm good on this topic now, thanks :)

As for the static pages. They just won't show up. When I create a static page and try the link:
http://localhost/~serendipity/index.php ... title.html

... it just stays on the main page (or brings me there when I try it in an empty tab), while keeping the static page url in the bar. The page is set to "publish" and I see no other setting that could prevent it from being shown :?

I'm testing on my local system at the moment because I customize the design. But I didn't touch anything yet but background settings in style.css and adding a container div around the pages div in index.tpl, that shouldn't affect the plugins, IMHO. I only added few plugins for testing anyways. Hmm.

//edit... no, it's not working on a fresh installed serendipity with a default mimbo either. Am I stupid? I just set it to publish and copy the static page link and it should work, no? It apparently does recognize the link somehow since any change in it results in "Not Found".

//edit2... works instantly when I use another theme. Can anyone reproduce this problem? If it's just me, I really don't understand where it's coming from :|

Tried with same results on:
Serendipity 1.5.4 and PHP 5.2.14-pl0-gentoo
Serendipity 1.6 and PHP 5.3.6-13ubuntu3.2


~eni
Sorry, I'm Late. But I Got Lost On The Road Of Life.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Mimbo

Post by yellowled »

Eni wrote:It bothered me at first to always have to find, upload, re-size and add an icon per individual entry, which is why I preferred to just have category icons.
It's been some time since I worked on Mimbo, but I'm not sure you actually have to have an image per entry. It might work just as well without an image.
Eni wrote://edit2... works instantly when I use another theme. Can anyone reproduce this problem? If it's just me, I really don't understand where it's coming from :|
That's odd. Please post a list of all event plugins this installation uses in the order they are placed in the events plugin list.

In some cases, the order of event plugins is important. Usually, this is documented in the plugin configuration, but in some cases, it can just have weird side effects to place a plugin after another one. You could also try and move or deactivate some of the event plugins to see if that changes anything. Also try installing the static pages sidebar plugin. Do the links generated by that plugin work?

Since no one ever reported a similar issue, I'm pretty confident this is not a template issue, at least not template-only. Might be related to the .htaccess or server setup. I take it this is a linux machine, not a xampp or mampp?

YL
Eni
Regular
Posts: 62
Joined: Thu Jan 27, 2005 10:47 pm
Location: Münster, Germany

Re: Mimbo

Post by Eni »

yellowled wrote:It's been some time since I worked on Mimbo, but I'm not sure you actually have to have an image per entry. It might work just as well without an image.
No no, I wanted too. I saw your example screenshot where it showed icons next to the three right row entries and I liked this a lot, just wanted to have this per category instead of per entry. But it's fine now :)
yellowled wrote:Please post a list of all event plugins this installation uses in the order they are placed in the events plugin list.
I'm using a fresh install right now without any other added plugins but Spartacus and the Static Pages. It works on any other template I tested but not with Mimbo. The order with this fresh install is:
  • Markup: Serendipity
  • Markup: Emoticate
  • Markup: NL2BR
  • Spam Protector
  • Spartacus
  • Static Pages
yellowled wrote:You could also try and move or deactivate some of the event plugins to see if that changes anything.
Moving Static Pages and/or Spartacus around doesn't have any affect. Removing the Markups and the Spam Protector, only leaving Spartacus and Static Pages (and switching those both), has no effect either.
yellowled wrote:Also try installing the static pages sidebar plugin. Do the links generated by that plugin work?
I tried that to make sure I use the correct links but same thing. It's not related to my browser either. I tried with Chromium, Firefox and Midori.
yellowled wrote:I'm pretty confident this is not a template issue, at least not template-only. Might be related to the .htaccess or server setup.
I tried with several random templates and Mimbo is the only one where it doesn't work. What I discovered now is that the Discussion Forums plugin has the same problem. It shows up on every template but Mimbo. On the other hand, the FAQ plugin shows up perfectly fine. I didn't want to use either but was curious how the event Static Page plugins react. If the FAQ works but not the Forum nor normal static pages, I wonder if the problem lies somewhere in the display settings afterall.
yellowled wrote:Might be related to the .htaccess or server setup. I take it this is a linux machine, not a xampp or mampp?
My local PC where I test right now with the recent Serendipity 1.6 runs Ubuntu 11.10 with lighttpd, PHP5 and MySQL. A quick test with an older Serendipity (1.5.4) on my Laptop running Gentoo with lighttpd/PHP5/mysql shows the same phenomenom.

I can debind my local server and PM you the link to the testblog, if you want.

~eni
Sorry, I'm Late. But I Got Lost On The Road Of Life.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Mimbo

Post by yellowled »

Eni wrote:What I discovered now is that the Discussion Forums plugin has the same problem. It shows up on every template but Mimbo. On the other hand, the FAQ plugin shows up perfectly fine. I didn't want to use either but was curious how the event Static Page plugins react. If the FAQ works but not the Forum nor normal static pages, I wonder if the problem lies somewhere in the display settings afterall.
So it's very likely not a side-effect of other plugins, although those do create static pages as well (technically). How about /archive/, does that work?

I'm thinking it might be an issue with lighthttp, but I'm not familar with that at all. I will check Mimbo again in my local test blog, but that's running on Apache.

Maybe Garvin or anyone else has an idea on this?

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Mimbo

Post by yellowled »

yellowled wrote:I will check Mimbo again in my local test blog, but that's running on Apache.
Still working with s9y 1.6 and static pages. Hmmm.

YL
Eni
Regular
Posts: 62
Joined: Thu Jan 27, 2005 10:47 pm
Location: Münster, Germany

Re: Mimbo

Post by Eni »

yellowled wrote:How about /archive/, does that work?
You mean the customarchives plugin? It works fine :?
Guestbook and Downloadmanager pages don't.
yellowled wrote:I'm thinking it might be an issue with lighthttp, but I'm not familar with that at all.
Hmm. I'm only a semi-experienced user myself. I can set up and run my system but when it comes to problems which aren't covered by any FAQs... ehehe ^^;

Here's my lighttpd config, just in case:
http://pastebin.com/f8eCaHh0

It's just how it comes when newly installed. I didn't really configure it aside from activating php support and adding the phpadmin line, as instructed in a small server setup howto. Everything else worked just out of the box.
yellowled wrote:Still working with s9y 1.6 and static pages. Hmmm.
Apache's settings are a bit too advanced for me, else I would try it here :(

Thank you for taking your time.

//edit
I just saw this while searching the forum for lighttpd issues:
http://www.s9y.org/119.html

It's old and everything covered in there seems to be working for me. Is that still an recommended configuration for the lighttpd server config? The forums contribution is from 2005.

~eni
Sorry, I'm Late. But I Got Lost On The Road Of Life.
Eni
Regular
Posts: 62
Joined: Thu Jan 27, 2005 10:47 pm
Location: Münster, Germany

Re: Mimbo

Post by Eni »

Good Morning ^__^

Yellowled, one small question on a different issue. I get a perfect validation for the blog (yay!) with one exception: the MimboImages have no ALT attributes. I've set "Depiction (summary for ALT-Attribute)" in the settings for each uploaded image, removed them and re-added them. But it won't be included by the MimboImages custom field.

Is there any way to have the ALT attribute appear? :?

I really love this theme. Thank you so much for porting it. I customized it a bit (not done yet, especially not with the images). Now if only the static pages would work, I'd be happy. But for now I abuse the FAQ plugin as temporary replacement for static pages, so if it's unsolvable due to lighttpd or whatever, I will stick to this solution.

~eni
Sorry, I'm Late. But I Got Lost On The Road Of Life.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Mimbo

Post by yellowled »

Eni wrote:
yellowled wrote:How about /archive/, does that work?
You mean the customarchives plugin? It works fine :?
Actually, no. By adding /archive/ to your blog URL, you get to the standard archives, but I guess that doesn't work anyway since you don't seem to use URL rewriting.
Eni wrote:Is that still an recommended configuration for the lighttpd server config?
I'm not sure we even have a recommended configuration for lighthttpd, it's kind of rarely used.

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Mimbo

Post by yellowled »

Eni wrote:I've set "Depiction (summary for ALT-Attribute)" in the settings for each uploaded image, removed them and re-added them. But it won't be included by the MimboImages custom field.

Is there any way to have the ALT attribute appear? :?
Not that easy, unfortunately, since these images are not inserted via the standard media db insertion mechanism but via a custom field.

You'll have to add a second custom field called i.e. MimboImageAlt. Three tpl files actually use these images – entries_lead.tpl, entries_lcol.tpl and entries_rcol.tpl. Edit these tpl files like this:

Code: Select all

<a href="{$entry.link}" rel="bookmark" title="Permanent link: {$entry.title}"><img src="{$entry.properties.ep_MimboImage}" alt="{$entry.properties.ep_MimboImageAlt}" /></a>
(The code is a little different in entries_lead.tpl, but you'll get the picture.)

I'll see what I can do to figure out the static pages issue, but this is a bit hard to figure out. Might have to set up a lighthttpd myself locally.

YL
Eni
Regular
Posts: 62
Joined: Thu Jan 27, 2005 10:47 pm
Location: Münster, Germany

Re: Mimbo

Post by Eni »

yellowled wrote:Actually, no. By adding /archive/ to your blog URL, you get to the standard archives, but I guess that doesn't work anyway since you don't seem to use URL rewriting.
Ah. Yes, that doesn't work.
yellowled wrote:You'll have to add a second custom field called i.e. MimboImageAlt. Three tpl files actually use these images – entries_lead.tpl, entries_lcol.tpl and entries_rcol.tpl. Edit these tpl files like this:
I suppose I was too long awake yesterday. So simple. It works like a charme. Thank you :mrgreen:
yellowled wrote:I'll see what I can do to figure out the static pages issue, but this is a bit hard to figure out. Might have to set up a lighthttpd myself locally.
I tried to compare the working things to the ones not displaying but I can't figure out what setting or line could make the difference. Sorry for the trouble :(

~eni
Sorry, I'm Late. But I Got Lost On The Road Of Life.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Mimbo

Post by yellowled »

Eni wrote:I suppose I was too long awake yesterday. So simple. It works like a charme. Thank you :mrgreen:
You're welcome. Beware, this is not update-safe, i.e. in case of an update to Mimbo (kind of unlikely unless I resolve the static pages issue by editing the tpl files after all), these changes will be overwritten, which is easy to overlook given it's not a visible change. Make sure you keep backups of the tpl files you edited or create a copy of the Mimbo template and edit just that one in your installation. (But since you edited the CSS etc., you'll most likely already be aware of that.)
Eni wrote:I tried to compare the working things to the ones not displaying but I can't figure out what setting or line could make the difference. Sorry for the trouble :(
No trouble, just something to figure out. :) Unfortunately, running a lighttpd next to an Apache seems not trivial on Ubuntu. Might take me some time depending on my workload over the next few days.

Still hoping for Garvin's input on this.

YL
Eni
Regular
Posts: 62
Joined: Thu Jan 27, 2005 10:47 pm
Location: Münster, Germany

Re: Mimbo

Post by Eni »

yellowled wrote:Beware, this is not update-safe, i.e. in case of an update to Mimbo (kind of unlikely unless I resolve the static pages issue by editing the tpl files after all), these changes will be overwritten, which is easy to overlook given it's not a visible change. Make sure you keep backups of the tpl files you edited or create a copy of the Mimbo template and edit just that one in your installation. (But since you edited the CSS etc., you'll most likely already be aware of that.)
Don't worry. I work with a copy of the Mimbo folder (called Mimbeni :mrgreen: ) and keep a log with all changes and the used code snippets, so I can easily re-add everything to an eventual update.

I saw that Darren's Mimbo 3.0 has a tabbed top menu which looks really good. That would be the only thing I may would like to use but I know how to add it myself, if I really wanted it, to the current port, so it's okay. I actually like the current port better in looks.
yellowled wrote:No trouble, just something to figure out. :) Unfortunately, running a lighttpd next to an Apache seems not trivial on Ubuntu. Might take me some time depending on my workload over the next few days.
No rush. I'm abusing the FAQ plugin for now to 'simulate' me static pages while testing :)

It does actually work really nice since I don't need static page menus and child pages. But I encountered a strange bug. Aside from the very first FAQ category I created, every other vanishes from the category list in the ACP. I can still edit them by clicking on the remaining one and changing the number, and of course also access them via their links. But they vanished from the internal list. Weird.

The Ubuntu wiki says to only change the port of lighttpd to e.g. 8080 to run it parallel with an Apache, but that's about all the lighttpd howto says on that issue :/

~eni
Sorry, I'm Late. But I Got Lost On The Road Of Life.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Mimbo

Post by garvinhicking »

Hi!

Didn'T fully read through the thread, but yellowled asked me to check here.

Do you have modified anything in the permalink and/or path configuration?

Does the staticpage work if you call it via index.php?serendipity[subpage]=pagetitle ? Replace "pagetitle" with the "URL shorthand title" of the specific staticpage.

If that works, there's some problem in PHP passing on the $_SERVER['REQUEST_URI'] probably. I myself haven't really worked with lighttpd, so I don't really know how/if it needs to be configured to pass along certain variables.

Do staticpage only not work with mimbo? You might want to check by temporarily renaming the config.inc.php of mimbo just to see if this changes things.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply