2 questions regarding gallery and others

Creating and modifying plugins.
Post Reply
alef
Regular
Posts: 17
Joined: Tue Jul 25, 2006 12:44 pm

2 questions regarding gallery and others

Post by alef »

2 questions:

I'm fiddling with getting gallery implemented and it seems to go pretty well.

1. How do i disable the gallery icon in a nice way? Don't need that extra icon in my embedded page, make it look sloppy.
2. Why do i all of a sudden get 2 embedded gallerys below each other when i call http://localhost/~mysite/index.php?/gal ... _itemId=21 ?
3. How do i get all of gallery, not just the theme in the same colorscheme? Right now it only gets the right colors once i actually go into the album.
4. I still need to find a good way of getting links like photoalbum,aboutme,guestbook and contactform in my sidebar. I can't seem to find a proper way. All the plugins either don't work, or i'm not getting it.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I'm going to have to try this myself someday, just so I can answer questions more coherently.

The only one of your questions I can really answer is 4. The Link List plugin detects a few of the other plugins and automatically adds them to the list. However, the most reliable way to add links is to add an HTML nugget plugin to your sidebar and add whatever links you want.

I'll take a quick stab at 3 while I'm at it. The embedded Gallery tries to use Serendipity's CSS. There's nothing there for it, so it gets rendered plain or default. When you enter the gallery, you've left Serendipity, so Gallery's CSS takes over and gives you the Gallery theme you selected.

To get the Gallery CSS in Serendipity, you'd have to copy the contents of the Gallery stylesheet into the Serendipity style.css (located in your template's directory: template/{Your Template}/). That may cause some problems if Gallery tries to style standard stuff, so you may want to try including only the rules specific to Gallery classes.
Judebert
---
Website | Wishlist | PayPal
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

The Link List plugin detects a few of the other plugins and automatically adds them to the list.
*grin* Sorry Judebert, but nope...

The static_page sidebar plugin auto detects some links (At least, I think that is the one you are thinking of).

But I would definitely recommend looking at LinkList if you are going to have a large list of links (it is much easier than html nugget when you use the backend management system).

Unfortunately, I can't help with the gallery questions either...
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Whooops. :oops:

Matt is right; I was thinking of the static page sidebar plugin.

But Matt's code is generally awesome, so I'm surprised his LinkList doesn't do that!
Judebert
---
Website | Wishlist | PayPal
alef
Regular
Posts: 17
Joined: Tue Jul 25, 2006 12:44 pm

Post by alef »

htmlnugget is the answer indeed. That works fine. But can someone tell me when i add another html nugget and i put this code in there, it doesn't work?

<img src=http://localhost/~alefveld/index.php?/g ... _show=none>

Should work fine no ?

As why gallery showed up 2 times, it was because i had the plugin installed 2 times :-P. As to the colorscheme of gallery, i just needed to set that at the global option instead of just theme specific.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

First off, I'd add quotation marks to the src attribute:

<img src="http://localhost/~alefveld/index.php?/g ... _show=none">

If that doesn't work, I'd try fetching the URL in the "GO" field of my browser. If no image appears, you're fetching the wrong URL or retrieving a blank image.

Finally, I'd try escaping the & as & instead.

And if none of that worked, I'd come back and ask me again. :wink:
Judebert
---
Website | Wishlist | PayPal
alef
Regular
Posts: 17
Joined: Tue Jul 25, 2006 12:44 pm

Post by alef »

i tried the option as entering it as a url in my url field of the browser before, wasn't a problem, worked fine.

I tried your suggestions with the & instead of just &, no go either.

The quotations i also tried before, no go either. wtf?

thanks for your help
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Hmmm. Is it a relative URL or an absolute URL with http://, as you have it here?

Is it really on localhost, or is there some way we can look at it?

Do you have markup enabled for the nugget?
Judebert
---
Website | Wishlist | PayPal
alef
Regular
Posts: 17
Joined: Tue Jul 25, 2006 12:44 pm

Post by alef »

I did it differently, i just added the gallery plugin, that worked. Solved.
Post Reply