[ABD] Last X [img] on Forum v.0.0.2

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

forum where many pictures it will not sustain
i see that late..

so click sometimes f5 in browser, so the error will evtl. move..

otherwise bcs. i see u have many many many forum ids in config,
remove some of them in config and than enter them bitwise back to config..

the mod works not backward, so it transform only a pic, that is now posted ;)

give me a testuser, so i can check
Last edited by 4_seven on Tue Mar 23, 2010 12:28 am, edited 2 times in total.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

remove..
Current Mods | Mod Base | php(BB) programming | No help via PM
fasko
Registered User
Posts: 185
Joined: Wed Jan 28, 2009 9:49 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by fasko »

forum_id 20 - 5210post -- 5210images
forum_id 23 - 3320post -- 3320images
Sorry for my english
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

4_seven wrote:the mod works not backward, so it transform only a pic, that is now posted ;)

give me a testuser, so i can check
understand, that this mod not transform backward, so it doesn't mater how many pics there are..

so (theoretical) it can not give a hang..

have u test this?
http://www.phpbb.com/community/viewtopi ... #p12410545

or add the forum-id's bitwise, slowly...
first only one. than enter the next forum-id etc etc

and, report what is happen then..
Current Mods | Mod Base | php(BB) programming | No help via PM
Generator2009
Registered User
Posts: 9
Joined: Wed Sep 23, 2009 10:16 pm

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by Generator2009 »

I use this mod on a quiet graghically heavy forum and it works sweet.. I cannot vouch for ppl with high screen resolutions (which would mean more pics per 'bar') if maybe that causes the problem but on a site with 500+ visitors a day it works really well for us...

the site with it in-use is VirtualCustoms.net if you need proof :D (The index has the scrolling piccy mod and the themes/wallpaper threads benefit from the thumbnails mod)

Just a thought.. are you running your server locally or are you renting space at the time of testing? My test site is ran locally using Xampp which seems to bug-out on certain requests, but upon loading it from the 'real' online site, it copes with ease.. if it's hosted on 'real' webspace then there shouldn't be any probs really unless something is wrong on the server-side of things IMO but I'd wait and see what others say on my comments before acting upon them.

Hope you manage to sort it, this mod is great and the community I'm involved with love it so far :)
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

thanks for reporting your experience with this mod,
but what u installed is Last X [attachment] on Forum ;)
so it is a bit other situation. bcs. of this it will be interesting, if u can test this mod..

on all my test-boards it works, also on live-boards. so i am interested in any feedback from other boards.
Current Mods | Mod Base | php(BB) programming | No help via PM
NucleA
Registered User
Posts: 14
Joined: Thu Sep 03, 2009 6:16 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by NucleA »

I have installed the mod and cleared all cache but the my site is not loading now..

Only when i include the last_x_img_on_forum.php file in either index.php or viewforum.php, the page is not loading. The problem is with the settings..

If i place correct forum IDs the pages does not load but if i leave the default settings, the pages load but the img frame does not show up.

My forums contains many images, there is a minimum of 10 000 posts in each forum and all contains images. Thats why the page is not loading.

What needs to be done is to set a limit of how many images to show. And this limit must be set in the sql query when querying the database. For example query only the top 5 recent images.

In addition, i don;t want all images from a post to be shown. FOr example there are the following images in a post:

.Cover of a movie.
.Screenshots of movie.
.NFO image.

So, i want only the cover of the image to be shown not all of the images. Or there is the following image in a post

Image

I don't want these images in the img frame. If a panel could be coded so as the admin of the site can choose which image to display according to new posts, it would be better.

OR if you could add a simple and more manual tool where admin can put the image link and the topic link. This is for big sites where the frame shows only the best posts images not all of them..


Thanks and have a niice day! :)
radhuza
Registered User
Posts: 42
Joined: Sat Dec 12, 2009 4:26 pm

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by radhuza »

4_seven wrote:read the install ;)
#
#-----[ CREATE FOLDER ]------------------------------------------
#

images/last_x_img

#
#-----[ GIVE CHMOD via FTP ]------------------------------------------
#

images/last_x_img > 777
Well that's what I did, but still I'm reporting this bug. I do not know what to do with it. Thank :)

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php  on line 191: copy() [function.copy]: Unable to access http://i44.tinypic.com/23mq8w0.jpg
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 27: getimagesize() [function.getimagesize]: Unable to access ./images/last_x_img/23mq8w0.jpg
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 27: getimagesize(./images/last_x_img/23mq8w0.jpg) [function.getimagesize]: failed to open stream: No such file or directory
Excuse my English
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

radhuza wrote:Well that's what I did, but still I'm reporting this bug.
this is not a bug, you dont have give chmod 777 to the folder images/last_x_img via your ftp-program

further..
4_seven wrote:
radhuza wrote:

Code: Select all

getimagesize(./images/last_x_img/23mq8w0.jpg
also it seems to be you have the update v.0.0.2 * not installed
* http://www.phpbb.com/community/viewtopi ... #p12408435

bcs. the file-name syntax now is another = images/last_x_img/2141_23mq8w0.jpg

------------------------

on my forum it works well with this pic: http://i44.tinypic.com/23mq8w0.jpg
Last edited by 4_seven on Tue Mar 23, 2010 2:46 pm, edited 5 times in total.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

What needs to be done is to set a limit of how many images to show. And this limit must be set in the sql query when querying the database. For example query only the top 5 recent images.
the sql limit is allready in both main-files. it limits the output to a number of thumbs, that u set in "$max_img_to_show" or automatically via javascript (eg (screen-resolution 1024x768 and $convert_mx_size ~ 100) = 9 thumbs) and it doesn't matter, how many forum-ids u add in "$forum_idz_to_show": it will be in all cases only affects 9 thumbs. the only thing that can give a overkill, is when u enter eg 50-100 forum-ids (depending on the power of your server). but (for me) that is nether practical or sane. i show pics only from special and best forums (5 or 6 forum_ids). not every fuc.... pic in the forum should show in index. that was never the intention of this mod.
I don't want these images in the img frame. If a panel could be coded so as the admin of the site can choose which image to display according to new posts, it would be better.
you can only have such a thing if i program a special-version just for u, so the only way for u is: put all pics u dont want to show up in an extra bbcode eg. [img_2]. than only the given pics show up. this mod is dynamic and force no action from the admin, an the name is "last x img on forum", not "manual chosen image display".
OR if you could add a simple and more manual tool where admin can put the image link and the topic link. This is for big sites where the frame shows only the best posts images not all of them..
as i say one above: i don't program this kind of mod. for me it works perfect this way.
Current Mods | Mod Base | php(BB) programming | No help via PM
radhuza
Registered User
Posts: 42
Joined: Sat Dec 12, 2009 4:26 pm

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by radhuza »

Is futile. :( I tried to install it again (new version), I set last_x_img component 777, I tried to let her 755th Still, it did not help. I do not know. Thanks for your help :)

Again after the page loads this message appears:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php  on line 191: copy() [function.copy]: Unable to access http://ziki.netii.net/obal/brutus_best_of.gif
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 27: getimagesize() [function.getimagesize]: Unable to access ./images/last_x_img/2122_brutus_best_of.gif
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 27: getimagesize(./images/last_x_img/2122_brutus_best_of.gif) [function.getimagesize]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 25: getimagesize() [function.getimagesize]: Unable to access ./images/last_x_img/2122_brutus_best_of.gif
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 25: getimagesize(./images/last_x_img/2122_brutus_best_of.gif) [function.getimagesize]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 49: imagesx(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 60: Division by zero
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 52: imagesy(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 65: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 49: imagesx(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 52: imagesy(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 66: imagecopyresampled(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 37: imagejpeg(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 46: imagedestroy(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 191: copy() [function.copy]: Unable to access http://i33.tinypic.com/zilj5c.jpg
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 27: getimagesize() [function.getimagesize]: Unable to access ./images/last_x_img/2083_zilj5c.jpg
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 27: getimagesize(./images/last_x_img/2083_zilj5c.jpg) [function.getimagesize]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 25: getimagesize() [function.getimagesize]: Unable to access ./images/last_x_img/2083_zilj5c.jpg
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 25: getimagesize(./images/last_x_img/2083_zilj5c.jpg) [function.getimagesize]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 49: imagesx(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 60: Division by zero
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 52: imagesy(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 65: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 49: imagesx(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 52: imagesy(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 66: imagecopyresampled(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 37: imagejpeg(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 46: imagedestroy(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 191: copy() [function.copy]: Unable to access http://img222.imagevenue.com/loc186/th_75743_Nejkr71sn24j7094_v18no99n56_p92sn06_122_186lo.jpg
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 27: getimagesize() [function.getimagesize]: Unable to access ./images/last_x_img/1851_th_75743_nejkr71sn24j7094_v18no99n56_p92sn06_122_186lo.jpg
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 27: getimagesize(./images/last_x_img/1851_th_75743_nejkr71sn24j7094_v18no99n56_p92sn06_122_186lo.jpg) [function.getimagesize]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 25: getimagesize() [function.getimagesize]: Unable to access ./images/last_x_img/1851_th_75743_nejkr71sn24j7094_v18no99n56_p92sn06_122_186lo.jpg
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

have u really give chmod 777 to folder images/last_x_img with this settings in eg. filezilla:

Rightclick on folder images/last_x_img > Recurse into subdirectories > Apply to all files and directories

Image

if yes read further: if the mod is right installed and u exactly follows the instruction and u have no "problem-board" with server-restrictions or chmod-problems or server-side chmod-restrictions this error never appears. i must have ftp-access and a testuser. otherwise i can't help u
Current Mods | Mod Base | php(BB) programming | No help via PM
radhuza
Registered User
Posts: 42
Joined: Sat Dec 12, 2009 4:26 pm

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by radhuza »

Great work, thanks again for your help! I just wanted to ask what to do to the [DEV] Last X [img] Forum v.0.0.2 he was seen for unregistered / visitors? Thank you... :)

You deserve a reward! ;)
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

all that u have to control over the forum specific group right > guests > (can download /see attachments) or similar
Current Mods | Mod Base | php(BB) programming | No help via PM
radhuza
Registered User
Posts: 42
Joined: Sat Dec 12, 2009 4:26 pm

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by radhuza »

Thanks a lot, now it works :)

Return to “[3.0.x] Abandoned MODs”