[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 »

lustucrus wrote:The mod can show by forums ID ???
since the first day

open

includes/last_x_img_on_forum.php

Code: Select all

//---------SETTINGS------------------
// here u can enter the foren id's to show
$forum_idz_to_show = '9,11,13';
// enter as given: '7,9,10'
and edit SETTINGS area
Current Mods | Mod Base | php(BB) programming | No help via PM
lustucrus
Registered User
Posts: 45
Joined: Tue Dec 06, 2011 12:39 pm

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

Post by lustucrus »

thank's for your quick answering

sorry my english is poor i have made a bad explanation of my request ...

i want to show the img of one forum only in the top of that forum in viewforum.php?=X , where X is the ID of the forum.

exemple :

° In forums 'Actu' show only the Images of post in 'actu' at the top ...
° In forums 'youtube' show only the pics of post in 'youtube' ...
° etc

...

:D
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 »

as i say: just enter the forum-id, where it should appear..

edit: now i understand. i see, what i can do.
Last edited by 4_seven on Thu Apr 12, 2012 12:14 am, edited 1 time in total.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Strappado
Registered User
Posts: 99
Joined: Sun Feb 12, 2012 11:53 am
Location: Sweden

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

Post by Strappado »

Hi this MOD have worked totally fine until this morning. It now takes about 1-2 minutes to load the page where the script is added. I haven't installed any MODS or edited anything recently.

See here: http://heavymetalrarities.com/forum/index2.php

Do you know what may causing it?
User avatar
Strappado
Registered User
Posts: 99
Joined: Sun Feb 12, 2012 11:53 am
Location: Sweden

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

Post by Strappado »

NVM! seem to work now.
However I am still interested to know what caused the long loading time by your MOD 8-)
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 »

A long loading time is not normal, bcs. there is a dead link check. So the only cause can be, that there are img/s present, but they lay on a restricted or very slow server, so the mod try again and again to thumb. find out these img/s, remove them from post/s and all should be fine.
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 »

Strappado wrote:Hi this MOD have worked totally fine until this morning. It now takes about 1-2 minutes to load the page where the script is added. I haven't installed any MODS or edited anything recently.
Hi again, Strappado,

i checked it again on testserver with bad reachable img servers and comes to the same result. Unfortunely it gives no if not reachable() function, but i have fiddle a while and think, i have a solution. On the testserver the time to load a site shrinks on bad img requests (which is normally not the base situation) from ~1 min, to ~0,5 - 1,3 sec..

The new script triggers only on those img files, which are not thumbed already, so the check goes only to the failed ones. It checks the time, the server responds and if the respond is to late (editable, (standard > 200 msec = 1/5 sec.)) it stops trying. If the server is more fast in future, it trys again. I make some further tests and add it to the mod core then.

Also i should build an information about stubborn imgs, which are checked and checked again. One other reason beneath not or bad reachable can be, that the img are to small. The thumbing engine works in this case right. If img is too small = no thumbing, but the check if its alright goes on again on reload.

Here you see a basic visual example of the new check engine.
http://www.4seven.de/forum/media/viewfo ... yle=1&f=13

Note: The following site loads before this change ~1min as explaned above. If you reload from time to time, you see the reachability status, visual look of img, which is better as the filename and a link to where the stubborn img is located. Its experimental, so i build this later in a popup or similar.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

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

Post by Mess »

lustucrus wrote:exemple :

° In forums 'Actu' show only the Images of post in 'actu' at the top ...
° In forums 'youtube' show only the pics of post in 'youtube' ...
° etc
I'm looking for the same feature.

Also Looking forward to v.0.0.3! :D
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 »

it comes as contrib after v.0.0.3
Current Mods | Mod Base | php(BB) programming | No help via PM
lustucrus
Registered User
Posts: 45
Joined: Tue Dec 06, 2011 12:39 pm

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

Post by lustucrus »

4_seven wrote:it comes as contrib after v.0.0.3
do you have a beta version for that ?

I can try it on live forums with 213 Mods if you want ?? :D
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 »

lustucrus wrote:do you have a beta version for that ?
no.
Current Mods | Mod Base | php(BB) programming | No help via PM
iamthestreets
Registered User
Posts: 244
Joined: Fri Feb 24, 2012 4:35 pm

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

Post by iamthestreets »

Is there any way to display only the first image of the topic?

This mod shows every image in the topic.
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 »

it takes the last x [img] from a forum, as the name describes. an update, which goes in that direction, is planned for v.0.0.3 (read topic)
Current Mods | Mod Base | php(BB) programming | No help via PM
iamthestreets
Registered User
Posts: 244
Joined: Fri Feb 24, 2012 4:35 pm

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

Post by iamthestreets »

This is not taking the last image from a forum it is taking every image that was posted in the topic. Do you have a time frame on when this updated version will be released? You make some awesome mods, I can't wait for the updated version.
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 »

iamthestreets wrote:This is not taking the last image from a forum it is taking every image that was posted in the topic.
Forum, .. Forum
Last X [img] on Forum
It takes the last x img from a defined forum. If these last x img are all posted in one topic of a forum, than it shurly comes from that topic in that forum. I repeat: It takes the last last x img from a forum, not only the one last img from one topic in that forum.

That was the intention from the first day. Only bcs. some user ask for that, i think about a little rebuild.
Current Mods | Mod Base | php(BB) programming | No help via PM

Return to “[3.0.x] Abandoned MODs”