[ABD] F2I in Topic Mouseover 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.
Locked
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by 4_seven »

takes a time ~ 1-2 hours..
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] First 2 [img] in Topic Mouseover v.0.0.1

Post by 4_seven »

http://www.loaditup.de/files/553583.zip

here is the [dev] file with you personal configuration.
zip-pw: over7mouse

it's an early v.0.0.2 dev-version with a 2-way basic-check:
check 1 = checks dns-A-record of [img] first (if (domain exists || is on air))
before any other check is made
check 2 = checks if the [img] link is proper and [img] file exists *

* this is a fast check function, which goes instead of file_exists or @getimagesize.
- it is error-free and fast, bcs. it checks only a few bytes of file, enough for an if_exist.
- only then it goes to the "classic-check". if one of the new 2 checks failed, no further action is taken.
- if the first [img] is broken, no check for the 2nd [img] takes effect, so if u have no thumb there, you know what to do.

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

edit: i found a little boop in my linked file and upload it again (03:28 MEZ). so re-download it.

- also i have insert a function, that shows instantly, when problem files exists, even if all checks failed
- see http://4seven.kilu.de/phpbb3/viewforum.php?f=14 over forum header
- it shows u exact, what happens and why your forum hang.
- also u have direct links to jump to post and edit this post instantly
- so u can stay on this site and can jump to all problem-files in new tabs and remove 'em

again, note, that this is a very earl version, which will be full optimized in v.0.0.2
and may more effectice in the next days after more tests..
Current Mods | Mod Base | php(BB) programming | No help via PM
baller1234
Registered User
Posts: 129
Joined: Sat May 29, 2010 9:43 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by baller1234 »

Hey thx.. it works a little better. But do i have to replace it with older version to get rid of the erros? Or can i comment some line out? because now i get a lot of errors about unthumbed or dead pics but theres nothing bad about it.. Most of the warnings are about unthumbed because the seccond image is a small icon..

also, when i have pictures where the width is smaller then 450 it doesnt show a thumb. This is a problem because its an image that should be shown to.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by 4_seven »

Or can i comment some line out?
just comment out this two echo's with //

Code: Select all

// echo '<span style="position:relative;left:50px"><strong>Un-Thumbed or Dead-Link Image found</strong> in Topic ID: ' . $row['topic_id'] . ' | Its the <strong>1st</strong> [img] in First Post | Go to <strong><a href="' .  append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $row['topic_id']) . '">Topic</a></strong> | Edit <strong><a href="' .  append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=edit&f=' . $forum_id . '&p=' . $row['post_id']) . '">Post</a></strong> | Image Link: <a href="' . $m_remote_raw_pic1 . '">' . $m_remote_raw_pic1 . '</a></span><hr style="border:solid lightgrey 1px;height:1px;">';

Code: Select all

// echo '<span style="position:relative;left:50px"><strong>Un-Thumbed or Dead-Link Image found</strong> in Topic ID: ' . $row['topic_id'] . ' | Its the <strong>2nd</strong> [img] in First Post | Go to <strong><a href="' .  append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $row['topic_id']) . '">Topic</a></strong> | Edit <strong><a href="' .  append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=edit&f=' . $forum_id . '&p=' . $row['post_id']) . '">Post</a></strong> | Image Link: <a href="' . $m_remote_raw_pic2 . '">' . $m_remote_raw_pic2 . '</a></span><hr style="border:solid lightgrey 1px;height:1px;">';
also, when i have pictures where the width is smaller then 450 it doesnt show a thumb. This is a problem because its an image that should be shown to.
then reduce the $m_convert_min_size = 450; and $m_convert_size = 450;.
no other way. when u only reduce the $m_convert_min_size = 450;, may to 200, it enlarge pics to 450 if they are between 200 and 450. and thats not looking good. my choice and best looking is a size between 80 and 120 (my opinion).
Current Mods | Mod Base | php(BB) programming | No help via PM
baller1234
Registered User
Posts: 129
Joined: Sat May 29, 2010 9:43 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by baller1234 »

OK thanx! that works!

Im sorry to ask you so many qstions but i really like this mod. But it is still slow when entering a forum where the mod is active.. Is there anyway to remove certain checks so that going in a specific forum speeds up?

I can give you my forum url so you can see whats happening.. Ill do this a PM.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by 4_seven »

But it is still slow when entering a forum where the mod is active.
for me it works in all forums normal. again: u must remove all [img], which are noticed in the echo-checkup. so remove the comment out as i tell here: http://www.phpbb.com/community/viewtopi ... #p12893501
load file up again and remove all [img] noticed there (or give them alternativ tag eg. [imgs]) and all will be 99% normal.
(look here, the board is loading fast http://4seven.kilu.de/phpbb3/viewforum.php?f=14 and it should be no matter, how many topic-overview sites are there, bcs. the mod only acts on the topic-overview site u view)

the reason for slowdowns on topic-overview site affected by this mod are up to 99% dead pictures or remote protected pictures. remove them and all is fine.

so a possible way for u is:
- switch forum-ids on, one by one. wait, till one topic-overview site react "normal"(!)
- if this one topic-overview site is to slow, look what the echo tells u and delete all noticed [img]
- comment out the echo again.
Is there anyway to remove certain checks so that going in a specific forum speeds up?
as i say, it seems that no one (but you) have the problem, for me it works fast as it can be, with those kind of mod. normally those kind was near impossible before, so i build it. the checks are security relevant and very important. u should not switch them to off. if u make that, someone can link eg. an .exe as .jpg or similar.

a bit more performance and comfort will come with v.0.0.2 - but that costs time
http://www.phpbb.com/community/viewtopi ... #p12893004
Current Mods | Mod Base | php(BB) programming | No help via PM
oikos
Registered User
Posts: 78
Joined: Fri Sep 19, 2008 3:31 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by oikos »

baller1234 wrote:OK thanx! that works!

Im sorry to ask you so many qstions but i really like this mod. But it is still slow when entering a forum where the mod is active.. Is there anyway to remove certain checks so that going in a specific forum speeds up?

I can give you my forum url so you can see whats happening.. Ill do this a PM.
i'd like to test the speed as welll... can u PM me ur site? thanx
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by 4_seven »

ok, i make a cut here and recode the mod. the functions mode will be the same and not the same. with an increase of performance.

working mode:
- files don't be auto-thumbed anymore
- on each site a link appears, where u can thumb manually the viewforum-site u look at
- if thumbing is ready, the link changed

see screens to understand (see red mouseover link)
unthumbed
http://www.loaditup.de/files/553942.jpg
thumbed
http://www.loaditup.de/files/553943.jpg

this kind of function mode is realized first in
in demo of this mod you see a button at the right corner.

of course the new mode for this mod here will be the viewforum-site instead.
even when u only view a viewforum-site a very thin script is checking if a thumb is present and display it. thats it. hope u understand the new mode. if u have questions and suggestions post it here.
the suggestions named here will become in a later version of the 'new' mod.

the "old" version will be available parallel to the new version which will come out soon......
Current Mods | Mod Base | php(BB) programming | No help via PM
baller1234
Registered User
Posts: 129
Joined: Sat May 29, 2010 9:43 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by baller1234 »

I saw the screenshots. Looks ok. But this button or link is only available for admins?
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by 4_seven »

baller1234 wrote:But this button or link is only available for admins?
shure..
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] First 2 [img] in Topic Mouseover v.0.0.1

Post by 4_seven »

[dev] announcement v.0.0.2

in the next time the new release comes with fundamental changes named here
http://www.phpbb.com/community/viewtopi ... #p12893831

changes and improvements in v.0.0.2

- fundamental performance improvement on viewforum
- no 'viewforum hangs' anymore
- thumbing of viewforum-sites one-by-one without making all viewforums unusable
- re-thumbing and deleting 'by click' on eg. size-changes of thumbs without deleting all thumbs (site by site change)
- brandnew checkup page with overview of all thumbs on viewforum site and show-up of dead-links
- admin or admin/mod only thumbing
- more 4 public later

v.0.0.2 beta-test

- first version goes as beta-test-package to baller1234
- other beta-testers as request via pm (only img big-boards)
Last edited by 4_seven on Sat Nov 13, 2010 12:22 pm, edited 2 times in total.
Current Mods | Mod Base | php(BB) programming | No help via PM
baller1234
Registered User
Posts: 129
Joined: Sat May 29, 2010 9:43 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by baller1234 »

nice :P

cant wait!
oikos
Registered User
Posts: 78
Joined: Fri Sep 19, 2008 3:31 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by oikos »

congrats on v.0.0.2 4seven! can't wait for the sister [attachment] mod!! :D :D :D i'd definitely support u 100%

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

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by 4_seven »

thx oikos for laudation. the sister will be born soon.

newest sreens (rc-look)

unthumbed status with 'Make Thumbs on this Site' link
http://www.4seven.de/2_unthumbed.png
after click on 'Make Thumbs on this Site' u be redirected to 'Thumb Check Page"
http://www.4seven.de/2_checkup_page.png
thumbed status with 'Go to Thumb Check Page' link
http://www.4seven.de/2_thumbed.png
delete confirm of site thumbs
http://www.4seven.de/2_del_top.png
delete confirm of all thumbs
http://www.4seven.de/2_del_all.png

test package is available in the next days..
Current Mods | Mod Base | php(BB) programming | No help via PM
baller1234
Registered User
Posts: 129
Joined: Sat May 29, 2010 9:43 am

Re: [DEV] First 2 [img] in Topic Mouseover v.0.0.1

Post by baller1234 »

good work 4_seven..

I was wondering, can you already give me the script modifcations to only view images?

Also, i had some extra ideas.

- Should be different:
Only 1 creation of a thumbnail even the size have changed. Becuase when you change it again, you need to reindex all the images.. This is a pain if you have a large forum..

Admin panel options:
- Give height or width in admin panel
- run a index script with a cronjob (update interval) in minutes or hours.
- Option how many images to index in a topic. Eg 1, 2 , or 3 images etc.(mod name should be changed :) )
- Option how to show multiple images. Horizontal or Vertical.
- Option to allow text in preview and how many characters.

User panel options:
- Give user option to disable or enable preview in UCP (there are users that dont like it)
Locked

Return to “[3.0.x] Abandoned MODs”