PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#151 2010-02-06 05:36:47

DirtyDeeds
New member
Registered: 2009-11-15
Posts: 3

Re: Automatic Image Upload with Thumbnails 1.3

Hello,

Very nice script...

If I wanted to add the upload link to a user's profile page, how would I do this?

Offline

 

#152 2010-08-21 01:31:50

Pame
Member
Registered: 2009-03-26
Posts: 19

Re: Automatic Image Upload with Thumbnails 1.3

Do you know if it's possible to use your great mod... with this new Fluxbb v1.4.x ?

it's one of my favorite mod... for v1.2 but! how do... I'm realy not a php expert to do all that !

bye and see you soon ;-) I hope

Offline

 

#153 2010-09-13 02:49:35

oli_v_ier
New member
Registered: 2010-09-13
Posts: 1

Re: Automatic Image Upload with Thumbnails 1.3

Pame wrote:

Do you know if it's possible to use your great mod... with this new Fluxbb v1.4.x ?

Tested on fluxbb 1.4.2, it works ! But have a little bug: when I clic on "Upload Image", the title of the page gives a horrible:

Code:

<br /> <b>Warning</b>: array_reverse() [<a href='function.array-reverse'>function.array-reverse</a>]: The argument should be an array in <b>/homez.28/randonner/www/forum2/include/functions.php</b> on line <b>538</b><br /> <br /> <b>Warning</b>: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in <b>/homez.28/randonner/www/forum2/include/functions.php</b> on line <b>543</b><br /> :

How to fix this ?

http://nsa20.casimages.com/img/2010/09/13/100913035358959986.jpg

Last edited by oli_v_ier (2010-09-13 03:39:55)

Offline

 

#154 2010-10-07 02:24:10

Xcom
New member
From: Australia
Registered: 2010-10-07
Posts: 1
Website

Re: Automatic Image Upload with Thumbnails 1.3

oli_v_ier wrote:

Pame wrote:

Do you know if it's possible to use your great mod... with this new Fluxbb v1.4.x ?

Tested on fluxbb 1.4.2, it works ! But have a little bug: when I clic on "Upload Image", the title of the page gives a horrible:

Code:

<br /> <b>Warning</b>: array_reverse() [<a href='function.array-reverse'>function.array-reverse</a>]: The argument should be an array in <b>/homez.28/randonner/www/forum2/include/functions.php</b> on line <b>538</b><br /> <br /> <b>Warning</b>: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in <b>/homez.28/randonner/www/forum2/include/functions.php</b> on line <b>543</b><br /> :

How to fix this ?

http://nsa20.casimages.com/img/2010/09/ … 959986.jpg

you need to open up a couple of files and change some lines.

edit uploadimg_view.php

around like 43-44 you should have something talking about the title, replace it with this

$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_uploadimg['Upload image']);

also if your getting that error on the uploadimg.php you will have to do the same

$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_uploadimg['Upload image']);

hope this helps or gets you on the right track

Offline

 

#155 2013-03-17 01:51:55

doki
Member
Registered: 2007-04-30
Posts: 225

Re: Automatic Image Upload with Thumbnails 1.3

Hi koos,

This mod seems not to work on 1.5.x . Do you have plans to upadate it to work with the latest version of flux?

Thanks

Offline

 

#156 2013-03-19 18:42:37

Koos
Administrator
Registered: 2007-01-14
Posts: 525
Website

Re: Automatic Image Upload with Thumbnails 1.3

It should work in FluxBB 1.4/1.5. Just make the changes mentioned by Xcom above to fix the display of the page title. I did however notice that the deprecated split() function gets used. I will try to fix this in an update soon.

Offline

 

#157 2013-04-21 04:49:31

doki
Member
Registered: 2007-04-30
Posts: 225

Re: Automatic Image Upload with Thumbnails 1.3

hi koos,

1.3.7 Limit version of this mod has lot of error on PHP version 5.3.9

ex.

Code:

Deprecated: Function split() is deprecated in C:\wamp\www\uploadimg.php on line 872

Thanks.

EDIT:

I've replaced all instances of split to explode and the error is gone. Please confirm if this is the correct way to fix the error.

Thanks

Last edited by doki (2013-04-21 05:20:09)

Offline

 

#158 2013-04-23 20:57:15

Koos
Administrator
Registered: 2007-01-14
Posts: 525
Website

Re: Automatic Image Upload with Thumbnails 1.3

That's correct. I will fix this in the next version which I will release soon.

Offline

 

#159 2013-04-23 22:16:34

doki
Member
Registered: 2007-04-30
Posts: 225

Re: Automatic Image Upload with Thumbnails 1.3

Thanks Koos!

Offline

 

#160 2013-04-24 23:29:38

1pnt2_4life
New member
Registered: 2013-04-22
Posts: 2

Re: Automatic Image Upload with Thumbnails 1.3

Koos wrote:

That's correct. I will fix this in the next version which I will release soon.

Thanks for keeping 1.2 alive BTW koos, I have a good basic understanding of PHP and have already customized your script into my live punbb board... is there any way you could give a changelog or something so I can look over and add in your updates?

Offline

 

#161 2013-04-29 23:14:44

volvo_owner
New member
Registered: 2013-04-29
Posts: 4

Re: Automatic Image Upload with Thumbnails 1.3

Hello

Im trying to add Automatic Image Upload with Thumbnails 1.3 to PunBB 1.3.6

Nothing happends.

Can someone help me to do a readme file that i can use to install it.

Best regards Niklas

Offline

 

#162 2013-04-30 01:03:35

doki
Member
Registered: 2007-04-30
Posts: 225

Re: Automatic Image Upload with Thumbnails 1.3

Hi volvo_owner, this version of mod is compatible to 1.2.x version of punbb & fluxbb. Im not sure if koos has a version that is compatibke with 1.3.

Offline

 

#163 2013-05-03 16:57:35

Koos
Administrator
Registered: 2007-01-14
Posts: 525
Website

Re: Automatic Image Upload with Thumbnails 1.3

Automatic Image Upload with Thumbnails 1.3.8 now available.

Here are the changes made:

1. Replaced all instances of the deprecated split() function with explode()

2. Moved a </div> bracket in uploadimg_view.php to it's correct location

3. Added a blank index.html file to the /upload and /upload/thumbs directories

Offline

 

#164 2013-05-03 17:02:29

Koos
Administrator
Registered: 2007-01-14
Posts: 525
Website

Re: Automatic Image Upload with Thumbnails 1.3

1pnt2_4life wrote:

I have a good basic understanding of PHP and have already customized your script into my live punbb board... is there any way you could give a changelog or something so I can look over and add in your updates?

I recommend that you use a file compare program like Beyond Compare to see the changes made between versions.

volvo_owner wrote:

Hello

Im trying to add Automatic Image Upload with Thumbnails 1.3 to PunBB 1.3.6

Nothing happends.

Can someone help me to do a readme file that i can use to install it.

Best regards Niklas

As doki said, this version is only compatible with PunBB 1.2. However I created a version compatible with PunBB 1.3 for someone previously. You can download it here (have updated it to v.1.3.8 for you): Automatic Image Upload 1.3.8 for PunBB 1.3

Offline

 

#165 2013-05-03 19:59:33

volvo_owner
New member
Registered: 2013-04-29
Posts: 4

Re: Automatic Image Upload with Thumbnails 1.3

thanks so mutch.....

I have uppload the script and it works great, is there anyway to make this script so the guest can go and se the image.
And the user can create there own album and uppload image ????

Last edited by volvo_owner (2013-05-03 21:48:53)

Offline

 

#166 2013-05-04 01:03:18

doki
Member
Registered: 2007-04-30
Posts: 225

Re: Automatic Image Upload with Thumbnails 1.3

And the user can create there own album and uppload image ????

You can try PBB Gallery (like below), koos created a version that has capability to add folder(category). This version is for 1.5.x but this will work to 1.2.x with few modification.

http://www.punres.net/viewtopic.php?pid=27834#p27834

Last edited by doki (2013-05-04 01:06:34)

Offline

 

#167 2013-05-04 10:00:09

volvo_owner
New member
Registered: 2013-04-29
Posts: 4

Re: Automatic Image Upload with Thumbnails 1.3

when i run the install_mod.php i get :

The constant FORUM_ROOT must be defined and point to a valid PunBB installation root directory.

in the install_mod.php

Code:

define('PUN_ROOT', './');
require PIN_ROOT.'include/common.php';

UPPDATE :

I fix it my self...
But now i get one more error....

Fatal error: Call to a member function end_transaction() on a non-object in install_mod.php on line 353

Code:

<?php

// End the transaction
$db->end_transaction();

// Close the db connection (and free up any result data)
$db->close();

and after i install:

Fatal error: Call to a member function table_exists() on a non-object in install_mod.php on line 26

Code:

//New Install
    if (!$db->table_exists('gallery_cat'))
    {

shoude i use PUN_ or FORUM_

I have change every pun_ to forum_ and try to install it.
I get : An error was encountered

And i make a link in the admin: X = <a href="gallery.php">Gallery</a>
And on that page is say: Poki BB Gallery is not installed correctly. Please make sure you have launch install_mod.php

My db is:

Code:

REATE TABLE IF NOT EXISTS `gallery_cat` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_name` varchar(80) NOT NULL DEFAULT 'New gallery',
  `cat_desc` text,
  `moderators` text,
  `num_img` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `last_post` int(10) unsigned DEFAULT NULL,
  `last_poster` varchar(200) DEFAULT NULL,
  `last_poster_id` int(10) unsigned NOT NULL DEFAULT '1',
  `disp_position` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

Code:

CREATE TABLE IF NOT EXISTS `gallery_img` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `poster` varchar(200) DEFAULT NULL,
  `poster_id` int(10) unsigned NOT NULL DEFAULT '1',
  `poster_ip` varchar(39) DEFAULT NULL,
  `poster_email` varchar(50) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `message` text,
  `posted` int(10) unsigned NOT NULL DEFAULT '0',
  `num_views` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `cat_id` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

Code:

CREATE TABLE IF NOT EXISTS `gallery_perms` (
  `group_id` int(10) NOT NULL DEFAULT '0',
  `cat_id` int(10) NOT NULL DEFAULT '0',
  `read_cat` tinyint(1) NOT NULL DEFAULT '1',
  `post_cat` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`group_id`,`cat_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

Where can i have the error....

Last edited by volvo_owner (2013-05-04 23:25:52)

Offline

 

#168 2013-05-05 17:20:59

Koos
Administrator
Registered: 2007-01-14
Posts: 525
Website

Re: Automatic Image Upload with Thumbnails 1.3

You will have to make a lot of additional modifications to make the PBB Gallery mod compatible with PunBB 1.3. Why don't you instead make use of the Gallery add-on for the Automatic Image Upload mod. You can download a version compatible with PunBB 1.3 here: Gallery add-on for PunBB 1.3. You can then link to a user's gallery from their profile using uploadimg_gallery.php?id=x (where x is the user's user id).

Offline

 

#169 2013-05-05 18:30:38

volvo_owner
New member
Registered: 2013-04-29
Posts: 4

Re: Automatic Image Upload with Thumbnails 1.3

thanks works great....

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.