[ABD] Last X [attachments] on Forum v.0.0.4

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

[ABD] Last X [attachments] on Forum v.0.0.4

Post by 4_seven »

Last X [attachments] on Forum

MOD-Title: Last X [attachments] on Forum
MOD-Version: 0.0.4
MOD-Author: 4seven

Credits: irdem for a code-part of Attached taken photos by you
Credits: John Davenport Scheuer for Crawl Script
Credits: Beta-Tester: jonnilaumann

MOD-Description: This Mod shows the last X [attachments] on Viewforum or Index

phpBB-Version: phpBB 3.0.x
phpBB-Languages: en (at this time hardcoded, bcs. of little language entrys), de follows
phpBB-Styles: all Styles, that are based on prosilver, subsilver2

Demos:
http://www.4seven.de/forum/media/index.php ----------------------- (Crawl-Script - prosilver)
http://www.4seven.de/forum/media/index.php?style=3 -------------- (Crawl-Script - subsilver2)
http://www.4seven.de/forum/media/index.php?style=4 -------------- (Crawl-Script - AeroBlue)

New! - Last [attachments] in this Topic
http://www.4seven.de/forum/media/viewto ... f=13&t=219

Image (follows)

Image (follows)

Download: http://www.4seven.de/forum/6test/viewtopic.php?f=3&t=31

Features:
- shows the last X [attachments] from topics on viewforum or index
- attachments only shown from forums the user have rights to read
- if user have no rights to read in any forum the div was invisible (new in v.0.0.2)
- auto-fit the number of thumbs to screen-resolution
- real attach-thumbs without client-resizing
- centered and prosilver-styled
- thread-title in link title-tag
- direct link from attach to post
- dead link check
- min-thumbing -function
- cleaned and optimized script
- two versions available (Standard Script and Crawl Script)

NEW in v.0.0.3
- subsilver added
- css added (now it looks like on testforum (css-image-hover))
- Little structural changes to main includes
- Delete-orphaned-thumbs Module in Postbox (under 'Lock topic' in 'Options')

NEW in v.0.0.4 ( Update Instruction > http://www.phpbb.com/community/viewtopi ... #p12044505)
- min-thumbing -function
no pic is thumbing under given size of $convert_mx_size = 100; - adjustable in include/last_x_attachments_on_forum.php and include/last_x_attachments_on_forum_crawl.php - no matter if its the width or height that is under 100
- increase performance of thumbing-process bcs. of new include/thumb_resize.php
- increase board performance bcs.of smaller pic-size:
http://www.phpbb.com/community/viewtopi ... #p11908835

Planned for v.0.0.5
- new "mix" size-option - squares pics to exact fit (takes the center-part (if not squared allready))
- time-controlled orphan function by request: http://www.phpbb.com/community/viewtopi ... #p11909265

Planned:
- ACP??
- ??
Last edited by 4_seven on Mon Nov 14, 2011 11:28 am, edited 20 times in total.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Dangerell
Registered User
Posts: 89
Joined: Mon Oct 13, 2008 7:05 am
Location: Romania
Name: Cristi

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by Dangerell »

download link ? :idea:
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by 4_seven »

Main Link follows not until 0.0.4 Version is ready
Last edited by 4_seven on Sat Feb 13, 2010 5:23 pm, edited 1 time in total.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Dangerell
Registered User
Posts: 89
Joined: Mon Oct 13, 2008 7:05 am
Location: Romania
Name: Cristi

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by Dangerell »

Hi,
It's a great mod, I installed it but a few things i didn't liked:

1. I don't liked that when i load the site it goes white page for a sec and then it full loads.. i guess it is from the script that determines the resolution.
2. On view_forum, the GO TO function doesn't work anymore.. it says "Forum doest not exist" when i want to fast navigate to another forum.
3. I have the dg_topic_thumbs mod and after i've installed your Last X attachments mod ... it stopped working.. i ain't getting no more topic thumbs.. just last x attachments. But I want to use them both:
one for last attachments and one for topic thumbs.

Any fixes for this ?

Thank you.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by 4_seven »

1. I don't liked that when i load the site it goes white page for a sec and then it full loads.. i guess it is from the script that determines the resolution.
you can allready set the detection to off und enter the max number u want to show in settings area manually.

and, shure some pics must load the first time, till they chached. it's normal.
if u plug them by hand in the template it will be the same..
2. On view_forum, the GO TO function doesn't work anymore.. it says "Forum doest not exist" when i want to fast navigate to another forum.
it's the java-screen-detection in viewforum-include.
i think i can figure it out, so the best temp-fix is to set the detection to off in viewforum.php and enter max count of pics manually. i dont use this "jump to", so i turn it on first time and now i know why i dont see this behavior before.

note: in index.php u can let detection set to on, so it works well there

thx for reporting ;)
3. I have the dg_topic_thumbs mod and after i've installed your Last X attachments mod ... it stopped working.. i ain't getting no more topic thumbs.. just last x attachments. But I want to use them both:
one for last attachments and one for topic thumbs.
i don't have this mod installed - bcs. of this i can't figure it out..

by the way:
this version dont have conflicts and make also afterward thumbs
http://www.phpbb.com/community/viewtopi ... #p11832965
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Dangerell
Registered User
Posts: 89
Joined: Mon Oct 13, 2008 7:05 am
Location: Romania
Name: Cristi

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by Dangerell »

Hmm i worked to much on the dg topic thumbs to fix its issues to change it now.. cause it works perfectly.. i just wanted to use them both combined. I don't know what's the conflict between them cause topic thumbs mod has no javascript.

I'll try to figure it out when i have time. Thanks for replying.

Edit: Found the problem, now it works like a charm. The preloading white page disappeared after i set detect resolution to "no" and my topic_thumbs appear normally . :mrgreen:

I had to put this part of the code:

Code: Select all

// 4seven / Last X [attachments] on Forum / 2010
include_once($phpbb_root_path . 'includes/last_x_attachments_on_forum.' . $phpEx);	
// 4seven / Last X [attachments] on Forum / 2010
not here:

Code: Select all

	$s_type_switch = 0;
	foreach ($topic_list as $topic_id)
	{
but after the syntax closes:

Code: Select all

	$s_type_switch = 0;
	foreach ($topic_list as $topic_id)
	{      .
          .
          . 
          . 
          .
   }
here
Wish you the best.
Dennis Jizzle
Registered User
Posts: 3
Joined: Sun Dec 13, 2009 12:23 am

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by Dennis Jizzle »

I havn't got the chance to check out your mod.

But things that could be nice:

- Option for the auto scroll on the last attached pics.
- Option that all the thumbs would be the excact same size, for example 150x100 or 100x100, because it looks much more nice :) (like this site: http://forums.cgsociety.org/forumdisplay.php?f=121)

Anyway, thanks for making this mod, I think that it is really great that some people take the time and make this stuff.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by 4_seven »

half-false mod-topic. u mean this > http://www.phpbb.com/community/viewtopi ... &t=1953215
in the demo u show, shure not all pics have the same width or height.
you see little black bars left/right up/down of some pics to fake the correct fit.
greez, 4seven......
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 [attachments] on Forum v.0.0.4

Post by 4_seven »

update

i found a little, but important boob.

u can increase the performance and the visual display time of thumbs up to 3-5 times, if u do the following

open

thumb_resize.php

find

Code: Select all

   function save($filename, $image_type=IMAGETYPE_PNG, $permissions=null)
replace with

Code: Select all

   function save($filename, $image_type=IMAGETYPE_JPEG, $permissions=null)
clear all caches and delete all files in thumb folder in root/images

install package will updated asap
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Dangerell
Registered User
Posts: 89
Joined: Mon Oct 13, 2008 7:05 am
Location: Romania
Name: Cristi

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by Dangerell »

Can you please make an option to automatically delete orphan thumbs at the end of a day for example ? Cause its pretty annoying to delete them manually all the time.. cause i get hundreds of thumbs per day.

Thank you.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by 4_seven »

allready thinked about it.
added on to-do-list ;)
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Dangerell
Registered User
Posts: 89
Joined: Mon Oct 13, 2008 7:05 am
Location: Romania
Name: Cristi

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by Dangerell »

4_seven wrote:allready thinked about it.
added on to-do-list ;)
Great, look forward to see it.

Btw: Way better with the JPG format instead of PNG... all my thumbs are now under 10KB, instead of 30-40KB.
radhuza
Registered User
Posts: 42
Joined: Sat Dec 12, 2009 4:26 pm

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by radhuza »

Hello, thank you for the nice mod. :) I do not know why I do not want to run just fine? I did everything as instructed, but the index forum nothing is displayed. Can not you help me please? Thanks :)
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [attachments] on Forum v.0.0.4

Post by 4_seven »

check the install and make shure u have choose the right install-version 4 your needs:
- crawl in index / standard in index etc. and the right style-instruction 4 this

further check (again) the "normal" install-instructions

but, the very important thing is: clear all board- and browser-caches after install
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 [attachments] on Forum v.0.0.4

Post by radhuza »

Still nothing! :( I did check, but I think everything is fine. These instructions but I seem strange, repetitive ... I do not know if I can ignore it or what should I do?

I have not tried to change the properties >> where id is set for viewforum. Does it then appear on the index, or to just where viewforum?

Thanks much :)

Return to “[3.0.x] Abandoned MODs”