51 (edited by Limber 2005-07-30 00:04)

Re: OLD TOPIC TO DELETE

Still having the same problem with not being able to post images. Anyone else? Is there a solution?

Getting the error message:
Fatal error: Call to undefined function imagecreatefromjpeg() in C:\www\gallery_post.php on line 220

Aftonbörsens skapare. Var med och starta något roligt och stort du med!

52 (edited by Limber 2005-08-02 18:56)

Re: OLD TOPIC TO DELETE

The simple answer was that I had not enabled gd2 support in php.ini.

There was no mention of this in the installation instructions, and I had no idea what you meant when you said "GD function" earlier. Sorry about that.

Aftonbörsens skapare. Var med och starta något roligt och stort du med!

53

Re: OLD TOPIC TO DELETE

darn it..
now if i want to add pic, it says:
No input file specified. ???

whats wrong?

54

Re: OLD TOPIC TO DELETE

I seem to be having some trouble - http://www.theprotected.com/forum/gallery.php. This was all working yesterday, and I installed that easy smilies mod today. All seemed to be fine until I noticed that I couldn't view images within categories anymore. I didn't alter any scripts, but I suppose it's possible that the easy smilies mod could have screwed with the tables in some way.

Any ideas?

55

Re: OLD TOPIC TO DELETE

If you have phpMyAdmin installed you can easily check out if anything is wrong with your tables.

Aftonbörsens skapare. Var med och starta något roligt och stort du med!

Re: OLD TOPIC TO DELETE

Nuphor wrote:

I seem to be having some trouble - http://www.theprotected.com/forum/gallery.php. This was all working yesterday, and I installed that easy smilies mod today. All seemed to be fine until I noticed that I couldn't view images within categories anymore. I didn't alter any scripts, but I suppose it's possible that the easy smilies mod could have screwed with the tables in some way.

Any ideas?

First, when i go on your site, i have this : Poki BB Gallery is not installed correctly. Please make sure you have launch install_mod.php

Please make sure you have install correctly PBB gallery

57

Re: OLD TOPIC TO DELETE

Apologies, I was just making some adjustments and reinstalling PBB Gallery to see if I could fix the problem. It's now back in it's original state, and still the problem persists. Thumbnails display in the category selection screen, but nothing at all is displayed within the category.

58

Re: OLD TOPIC TO DELETE

Pokemon_jojo, how's it going? Are you any closer to releasing the next version? Which features have been implemented?

Hope everything is going good, wish you luck.

Aftonbörsens skapare. Var med och starta något roligt och stort du med!

Re: OLD TOPIC TO DELETE

Hi,

  Great mod. Exactly what I was looking for. But, could you please tell me,

   Will this mod effect punbb tables?
    If later I want to uninstall, what is the procedure ?

Thanks a lot

Re: OLD TOPIC TO DELETE

Superb work, Pokemon_jojo. Works so much like the forum, you feel at home straight away. Styles all work nicely etc. I am excited to see the final release ....

I particularly want to be able to incorporate it with the forum, so that a member can include a gallery image in their post easily. My site is math-oriented, and sometimes people want to post messages like "how do I calculate the area in the following diagram". Any ideas?

61

Re: OLD TOPIC TO DELETE

Looks really good!  Some suggestions:

Sort by title, date, # of views.

Make it searchable.

Allow people to post photo sets within a category.  For example a category can have multiple topics, and each topic is an album of photos.

Thanks!

Re: OLD TOPIC TO DELETE

I would like to be able to upload .bmp files to my gallery.  What code modifications do I need to make?

63 (edited by CodeXP 2005-08-22 11:55)

Re: OLD TOPIC TO DELETE

Really nice gallery, and I can't wait to see how it turns out when it's done!

Also, as I'm working on a PunBB portal system, here's a block I wrote that you can use on your frontpage to display the latest X images from category Y.

<?php
/*************************************
 Front page image block for PunBB by
         Öyvind A. Sörensen
     oyvind.andre.sorensen@gmail.com
 
REQUIRES the gallery mod by pokemon_jojo
Get it from: 
http://www.punres.org/files.php?pid=70
**************************************/

// Configuration
$img_num = '5'; // Number of images to get
$cat = '1'; // Category to get images from

// Get the latest images from selected category function.
function get_latestimg($cat_id)
    {
        global $db, $pun_config, $img_num; // Global variables
        
        // Select the latest images from the gallery
          $result = $db->query('SELECT id, subject, posted, poster, poster_id FROM '.$db->prefix.'gallery_img WHERE cat_id='.$cat_id.' ORDER BY posted DESC LIMIT 0, '.$img_num.'') or error('Unable to fetch required information from gallery', __FILE__, __LINE__, $db->error());
            echo '<ul>';
              while ($img = $db->fetch_assoc($result))
            {
                if (file_exists(''.$pun_config['g_rep_upload'].'/'.$img['poster_id'].'_thumbs_'.$img['posted'].'.gif')) { 
                    $ext = '.gif';
                } else if (file_exists(''.$pun_config['g_rep_upload'].'/'.$img['poster_id'].'_thumbs_'.$img['posted'].'.jpg')) { 
                    $ext = '.jpg';
                } else if (file_exists(''.$pun_config['g_rep_upload'].'/'.$img['poster_id'].'_thumbs_'.$img['posted'].'.png')) { 
                    $ext = '.png';
                }
                echo '<li><a href="gallery.php?pid='.$img['id'].'"><img src="'.$pun_config['g_rep_upload'].'/'.$img['poster_id'].'_thumbs_'.$img['posted'].''.$ext.'" alt="'.$img['subject'].'" /></a></li>';
            }
            echo '</ul>';
    }
    
?>

<h2>Latest images</h2>
    <div class="block">
        <div class="box">
            <div class="inbox">
                <?php get_latestimg($cat) ?>
            </div>
        </div>
    </div>

Hope someone finds it useful smile

[Click here] to see it in action, along with a couple other block I'm working on.

64

Re: OLD TOPIC TO DELETE

Your gallery would be "in advance" if you used DOM, XMLHTTPREQUEST to see your pics ... although I'm amazed by your stuff, your gallery is "old school" system : I click to see the gallery page, I click to see the category, I click to see the albums, I click to see the images ... 4 clics for ONE photo (and I don't count the BACK buttons !) ... is it possible to "innove" by coding a dynamic gallery ?

I think it's no, or ... version 3 maybe smile

65

Re: OLD TOPIC TO DELETE

A wonderful mod,
and if there's any possible to quota a category?
for example, limit to 5MB to a category.

Thanks!

66

Re: OLD TOPIC TO DELETE

Really nice gallery, I'm really impressed of your work.

[img]http://vendetek.supernoova.info/img/pub/pub.gif[/img]

67

Re: OLD TOPIC TO DELETE

Don't work on my forum. Is not possible to upload picture over 800x600 size hmm
Look at http://anges.gocity.fr/punbb/gallery.php et test with sending one picture upper 800x600.

Re: OLD TOPIC TO DELETE

Can you give us an idea on when we get a final release, pokemon_jojo? I am itching to use it!

(Xarkam - I recall there were options for limiting file size, maybe you are running into that.)

Re: OLD TOPIC TO DELETE

When ? sorry but i don't know ^^ because actually i have lot of work, and i can't made th finale release, but if it's possible i want to finish her before december.

70

Re: OLD TOPIC TO DELETE

MathsIsFun wrote:

(Xarkam - I recall there were options for limiting file size, maybe you are running into that.)

The maximum size defined in options of gallery is 1280x1024.
Despite everything the upload of picture running only with picture as size of 800x600 hmm

Re: OLD TOPIC TO DELETE

December? Oh noooo ...  *goes into corner and cries*

Re: OLD TOPIC TO DELETE

Looking good pokemon, hope one day I will find a use to get some photos on my board wink

73

Re: OLD TOPIC TO DELETE

How about a mod to show a random image from the gallery on the forums index somewhere?  Not necessarily a block (For those of us who have not implemented the 'Frontpage' mod), but like, 3/4 images in a table the width of the table forum....on the bottom, or the top of the forum.

74 (edited by CodeXP 2005-09-07 14:11)

Re: OLD TOPIC TO DELETE

Just a small suggestion. The quality of the thumbnails could be a lot better, and it's very easy to change. Just open up gallery_post.php in a editor, and use "search and replace" to change the following:

imagecopyresized to imagecopyresampled

The difference is quite dramatic, and here's an example:

With imagecopyresized:
http://beta.tasarinan.com/img/gallery/2_thumbs_1124603295.jpg

With imagecopyresampled:
http://beta.tasarinan.com/img/gallery/2_thumbs_1126102035.jpg

Re: OLD TOPIC TO DELETE

wow, what a difference.. good hint!