| Author |
Message |
marcelvk
Joined: 19 Jun 2008 Posts: 14
|
|
Gallery question? |
|
I have 2 questions:
First i am testing with cutenewsru and this gallery and i love it but
i was wondering and hoping if its possible and so yes how to add 1 gallery to a story and not the whole gallery
Last edited by marcelvk on Mon Jun 23, 2008 5:12 pm; edited 1 time in total |
|
| Thu Jun 19, 2008 10:15 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
marcelvk
Joined: 19 Jun 2008 Posts: 14
|
|
|
| Mon Jun 23, 2008 5:11 pm |
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 172
|
|
|
|
Do you mean a single image? Have you tried the internal image-uploader in CNR?
_________________
Mini-me |
|
| Mon Jun 23, 2008 8:26 pm |
|
 |
marcelvk
Joined: 19 Jun 2008 Posts: 14
|
|
|
|
No, i mean like:
i have a story and i want to insert
all the image in gallery A
Or even better would be
that i can pic categories like adding
a story
|
|
| Mon Jun 23, 2008 8:29 pm |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
|
He has a few stories.
Story A, B, C and D.
Every story is on a different page.(this can be done with different categories)
What he wants to do is that Story A has a gallery. But that gallery can only be shown at stort A. And the same for the other three.
for example:
Story A
- Gallery A/1
- Gallery A/2
- enz
Story B
- Gallery B/1
- enz
Story C
- Gallery C/1
- Gallery C/2
- Gallery C/3
- enz
Story D
- Gallery D/1
- enz
@marcelvk ik help je wel hoor marcel 
|
|
| Tue Jun 24, 2008 3:18 pm |
|
 |
marcelvk
Joined: 19 Jun 2008 Posts: 14
|
|
|
|
finnaly someone who understands me!!
only he can't help
@spoon dank je lepel 
|
|
| Tue Jun 24, 2008 5:26 pm |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
|
i have an other problem.
The ligthbox effect doesnt work with me. I debugged the site with firefox and i got this as an error
the first
 |  | Fout: uncaught exception: script.aculo.us requires the Prototype JavaScript framework >= 1.4.0
|
the second
 |  | Fout: parent.initLytebox is not a function
Bronbestand: http://www.secondchain.nl/admin/pics.php
Regel: 1 |
can someone help me and Marcelvk ?
|
|
| Wed Jun 25, 2008 8:20 am |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
Sorry I've been gone for awhile.
It isn't that easy to just insert a single album into a post at this point, marcelvk, unless your server allows URL wrappers for the PHP function file_get_contents. To use that, just add  |  | <?php echo file_get_contents("http://www.yourdomain.com/mygallery/gallery.inc.php?mggal=2"); ?> | will display the 2nd album and link directly to your MyGallery installation (not to the embedded album in Cutenews). I'll see what I can do for future development to make it easier to include a single album.
---------------------------------------------------------------------------------------------------
 |  | i have an other problem.
The ligthbox effect doesnt work with me. I debugged the site with firefox and i got this as an error |
Regarding the lightbox stuff, it looks like the javascripts are not being loaded. I see that you linked to the scripts again, but you are missing a "/" in your prototype.js link. You have:
 |  | <script type="text/javascript" src="http://www.secondchain.nl/admin/plugins/mygallery/lightbox/jsprototype.js"></script>
<script type="text/javascript" src="http://www.secondchain.nl/admin/plugins/mygallery/lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="http://www.secondchain.nl/admin/plugins/mygallery/lightbox/js/lightbox.js"></script>
</head>
<body style="background-color:#333333" onLoad="parent.initLytebox();"> |
but they should be:
 |  | <script type="text/javascript" src="http://www.secondchain.nl/admin/plugins/mygallery/lightbox/js/prototype.js"></script>
<script type="text/javascript" src="http://www.secondchain.nl/admin/plugins/mygallery/lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="http://www.secondchain.nl/admin/plugins/mygallery/lightbox/js/lightbox.js"></script>
</head>
<body style="background-color:#333333" onLoad="parent.initLightbox();"> |
|
|
| Wed Jul 02, 2008 1:06 am |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
|
wow... it took me a while to see the difference.
But i changed the link and it still doesnt work.
The feedback i get from firefox is this" onload parent init lightbox is not a function".
I dont know what i did wrong :S...
is there somebody with a working iframe mygallery that is willing to send me their code?
Thnx!
|
|
| Thu Jul 03, 2008 8:02 am |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
Read my post above again, Spoon!
You also have Lightbox spelled wrong. Your code reads:  |  | onLoad="parent.initLytebox();" | when it should be:  |  | onLoad="parent.initLightbox();" |
|
|
| Thu Jul 03, 2008 5:46 pm |
|
 |
Superdok
Joined: 07 Feb 2008 Posts: 25
|
|
|
|
Hi, i have one little question. Normally the Text under the Lightbox Image looks like this:
filename
Caption
Image x of x
Ex.:
Tree.jpg
This is a beautiful tree
Image 1 of 10
Is it possible to show it like this:
Caption
Image x of x
Ex.:
This is a beautiful tree
Image 1 of 10
So just remove the filename. I already tried it but i failed.
EDIT: Problem:
I have a problem with deleting pictures out of a gallery. I made two screenshoots so that you can see what i mean:
1.) Ill open my Gallery
2.) Everything is shown.
3.) I try to delete one picture out of a gallery: (I translated Mygallery to German AND im using the "old" version of the mygallery plugin
4.) After i press "Save Changes" the image is deleted BUT two new "images" are created. Both of them have the ending:
/plugins/mygallery/images/6/thumb_.nfs72CCF14
The two images look like this:
http://www.pictureupload.de/pictures/090708180429_Delete2.jpg
So whats wrong? I chmodded everyfile which is said in the tutorial to 777
|
|
| Wed Jul 09, 2008 1:26 pm |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
Superdok,
Regarding the filename, you can just simply remove it from the title tag in your 'template.tpl' file. Look for something like:
 |  | <a href="{urlpicture}" <? if($mgConf['lightbox']){?>rel="lightbox[serie]"<? }?> title="<?=str_replace("thumb_", "", basename("{urlthumb}", ".jpg"));?></br>{captionpicture}" id="mgImage{cycle}"><img src="{urlthumb}" border="0" class="mgimgbrd"></a> | and remove the <?=str_replace("thumb_", "", basename("{urlthumb}", ".jpg"));?></br> from the title, like so:
 |  | <a href="{urlpicture}" <? if($mgConf['lightbox']){?>rel="lightbox[serie]"<? }?> title="{captionpicture}" id="mgImage{cycle}"><img src="{urlthumb}" border="0" class="mgimgbrd"></a> |
Regarding the double images on delete, I have not run into that before. What are the filenames that you are trying to delete?
|
|
| Thu Jul 17, 2008 11:44 pm |
|
 |
Partyism
Joined: 25 Sep 2007 Posts: 268
|
|
|
|
still a .zip file isnt working in the latest update. Max_file_size is 10mb, however when i upload a 1mb zip file is still says wrong file format!
|
|
| Fri Jul 18, 2008 7:51 am |
|
 |
Superdok
Joined: 07 Feb 2008 Posts: 25
|
|
|
|
sidtheduck,
the filnames, which im trying to delete is for example thumb_3.jpg (Thumbnail) and 3.jpg (Big Picture)
may this problem be caused because of my hoster?
I think they are deleted after a while... So if i try to delete a picture, first the two pictures (e.g. thumb_.nfs2783054) are created. After 1 or 2 minutes everything works (the two buggy images are delted...)
|
|
| Fri Jul 18, 2008 2:16 pm |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
 |  | still a .zip file isnt working in the latest update. Max_file_size is 10mb, however when i upload a 1mb zip file is still says wrong file format! |
Is your server set up to recognize MIME types of .zip files? And how are they recognized? You can find out by opening config.inc.php and looking for this line:
 |  | $mgConf['error']['badfile'] = ">> Wrong file format! Please select a .zip or .jpg file!"; |
and edit it to read:
 |  | $mgConf['error']['badfile'] = ">> Wrong file format `".$_FILES['mgfile']['type']."`! Please select a .zip or .jpg file!"; |
and then see what MIME format is output (should be something like ">> Wrong file format `application/octect_stream`! Please select a .zip or .jpg file!"
------------------------------------------------------------------------
Superdok,
I think it may be an issue with your host, especially if it goes away after a little while.
|
|
| Fri Jul 18, 2008 10:27 pm |
|
 |
|