[ABD] First Topic [pic] on Forum Index v.0.0.6

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 Topic [pic] on Forum Index v.0.0.6

Post by 4_seven » Sun Jul 10, 2011 11:50 am

Danny Y wrote:If we take a look on your demo board, the bird image in the thumbnail shows with half the head cut off and the tail. Vertical shots also show as a cropped square.
now i realize ... oh man, i personally prefer the "mix-mode" in demo, but you have normally three modes to display (width, height and mix). so check out the other two modes before.
first post wrote:- "width" and "height" size-option (adjustable for each mode: "width", "heigt" or "mix")
- "mix" size-option squares the pic to exact fit (if not squared allready)
so may read the first post for feature-list again.
Danny Y wrote:I was just wondering if the scale could be kept as the original image, if its horizontal or vertical.
as i say
4_seven wrote:all the named things (double-img, simple width/height mode, etc.) i had in dev version pre 0.0.1/2,
but was not my style. so i changed to a more professional look.
shure i dont wan't turn back to my old-code. may in a later version i setup a fourth mode (currently three), which do the scale as-the-image-is (4:3 or 3:4), but not in the nearly future. personally i find this look unprofessional.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Lobster79
Registered User
Posts: 56
Joined: Fri Sep 26, 2008 9:34 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by Lobster79 » Sat Jul 16, 2011 2:30 pm

Very good mode thank you!!!!

A am waiting(very badly) the display_propety function!!! It does not work now yes?

User avatar
Lobster79
Registered User
Posts: 56
Joined: Fri Sep 26, 2008 9:34 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by Lobster79 » Wed Jul 20, 2011 8:21 am

I have a problem! Some times the topic list with pics opens too many time2-4 minutes!

I think its becouse script tries too extract fotos from post evry time and some urls wont opens! Can i extract fotos only one time and wab do it onb demand from some setting in First Topic [pic] on Forum Index v.0.0.6 config file en relouding the topics lisT?

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

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by 4_seven » Wed Jul 20, 2011 12:16 pm

Lobster79 wrote:II think its becouse script tries too extract fotos from post every time
No, each pic which is once thumbed, is ignored by the script.
First Post wrote:Note:
- No display of protected remote pics
So remove the protected pic or the pic from a bad-performed server and choose another.
Current Mods | Mod Base | php(BB) programming | No help via PM

0dd0ne
Registered User
Posts: 123
Joined: Thu Aug 14, 2008 1:27 pm

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by 0dd0ne » Sat Jul 23, 2011 11:38 pm

I have a suggestion / idea with this mod.

I notice with your site 4_seven that when viewing a post and you hover the mouse over the content the user name / details appear and disappear on mouse over/out.

Would that be something integrateable with this mod, a show/hide function on mouse over the topic rows?

P.s. Once again another top mod by 4_seven, fantastic contributions! :)

Poulg
Registered User
Posts: 99
Joined: Sat May 07, 2011 5:17 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by Poulg » Sat Jul 30, 2011 11:37 am

Hi 4_seven;

Thanks for this great great mod,

I have a little problem;
I have three bbcode for images [img] [imgleft2] [imgleft3]
I try to add in first_x_in_forum_index.php in line 198:

Code: Select all

OR		post_text LIKE "%[imgleft2:%]%JPG[/imgleft2:%]%"
OR      post_text LIKE "%[imgleft2:%]%jpg[/imgleft2:%]%"
OR      post_text LIKE "%[imgleft2:%]%PNG[/imgleft2:%]%"
OR      post_text LIKE "%[imgleft2:%]%png[/imgleft2:%]%"
OR      post_text LIKE "%[imgleft2:%]%GIF[/imgleft2:%]%"
OR      post_text LIKE "%[imgleft2:%]%gif[/imgleft2:%]%"
OR		post_text LIKE "%[imgleft3:%]%JPG[/imgleft3:%]%"
OR      post_text LIKE "%[imgleft3:%]%jpg[/imgleft3:%]%"
OR      post_text LIKE "%[imgleft3:%]%PNG[/imgleft3:%]%"
OR      post_text LIKE "%[imgleft3:%]%png[/imgleft3:%]%"
OR      post_text LIKE "%[imgleft3:%]%GIF[/imgleft3:%]%"
OR      post_text LIKE "%[imgleft3:%]%gif[/imgleft3:%]%"
and in line 227:

Code: Select all

preg_match('/\[imgleft2:(.*?)\](.*?)\[\/imgleft2:(.*?)\]/', $rowz['post_text'], $rowz_text);
preg_match('/\[imgleft3:(.*?)\](.*?)\[\/imgleft3:(.*?)\]/', $rowz['post_text'], $rowz_text);
But it work only for imgleft3

It's possible to add bbcode image or it work only for one bbcode?

other little problem:
i have images in png with background transparent, and in forum index, the background of the thumb become black, it's normal?

thanks in advance for your help ;)

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

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by 4_seven » Sat Jul 30, 2011 11:42 am

you can try to change these parts in all files, where it appears

Code: Select all

"%[img:%]%JPG[/img:%]%"
"%[img:%]%jpg[/img:%]%"
"%[img:%]%PNG[/img:%]%"
"%[img:%]%png[/img:%]%"
"%[img:%]%GIF[/img:%]%"
"%[img:%]%gif[/img:%]%"
to this parts

Code: Select all

"%[img%:%]%JPG[/img%:%]%"
"%[img%:%]%jpg[/img%:%]%"
"%[img%:%]%PNG[/img%:%]%"
"%[img%:%]%png[/img%:%]%"
"%[img%:%]%GIF[/img%:%]%"
"%[img%:%]%gif[/img%:%]%"
it should work for all bbcodes, which starts with [img******]
i have images in png with background transparent, and in forum index, the background of the thumb become black, it's normal?
no, on my boards this appears normal. make shure you have 24bit png.
also it works with GD Lib 2.0+ only.
Current Mods | Mod Base | php(BB) programming | No help via PM

Poulg
Registered User
Posts: 99
Joined: Sat May 07, 2011 5:17 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by Poulg » Tue Aug 02, 2011 10:37 am

thanks 4_seven;

Code: Select all

"%[img%:%]%JPG[/img%:%]%"
"%[img%:%]%jpg[/img%:%]%"
"%[img%:%]%PNG[/img%:%]%"
"%[img%:%]%png[/img%:%]%"
"%[img%:%]%GIF[/img%:%]%"
"%[img%:%]%gif[/img%:%]%"
the code with % don't work, I will try to modify my bbcode image ;)

ok for the png images

h-a-c
Registered User
Posts: 21
Joined: Sun Jul 03, 2011 9:56 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by h-a-c » Fri Aug 05, 2011 3:32 pm

i have it trouble

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/first_x_in_forum_index.php on line 247: copy() [function.copy]: Unable to access http://sito.altervista.org/forum/styles/skyblue/imageset/site_logo.gif
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 31: getimagesize() [function.getimagesize]: Unable to access ./images/img_thumbs/1974_site_logo.gif
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 31: getimagesize(./images/img_thumbs/1974_site_logo.gif) [function.getimagesize]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 34: exif_imagetype() [function.exif-imagetype]: Unable to access ./images/img_thumbs/1974_site_logo.gif
[phpBB Debug] PHP Notice: in file /includes/thumb_crop.php on line 34: exif_imagetype(./images/img_thumbs/1974_site_logo.gif) [function.exif-imagetype]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 17: getimagesize() [function.getimagesize]: Unable to access ./images/img_thumbs/1974_site_logo.gif
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 17: getimagesize(./images/img_thumbs/1974_site_logo.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 71: 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 73: imagecopyresampled(): supplied argument is not a valid Image resource
[phpBB Debug] PHP Notice: in file /includes/thumb_resize.php on line 29: imagejpeg(): supplied argument is not a valid Image resource
here you can see a demo of the error, http://catcom.altervista.org/forum/viewforum.php?f=2

please can you help me?
Sorry for my bad english

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

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by 4_seven » Fri Aug 05, 2011 6:58 pm

Code: Select all

http://sito.altervista.org/forum/styles/skyblue/imageset/site_logo.gif
remove the non existing img in post. thats it...
Current Mods | Mod Base | php(BB) programming | No help via PM

h-a-c
Registered User
Posts: 21
Joined: Sun Jul 03, 2011 9:56 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by h-a-c » Fri Aug 05, 2011 8:38 pm

it is not the trouble is only an example because i tried to use another image ,situate on imageshack server, and the error is the same , you can see this error here: http://catcom.altervista.org/forum/view ... 289da6b657
Sorry for my bad english

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

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by 4_seven » Fri Aug 05, 2011 8:42 pm

as i wrote in first post
Note:
- No display of protected remote pics
Make shure the Image Server is not restricted, so search for another instead of 2.bp.blogspot.com.
Also make shure the relevant thumb folders have the right chmod. In rare cases the server is restricted, so nothing to do for me.
Current Mods | Mod Base | php(BB) programming | No help via PM

h-a-c
Registered User
Posts: 21
Joined: Sun Jul 03, 2011 9:56 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by h-a-c » Sat Aug 06, 2011 3:47 pm

i tryed to use an image that is situated in to the imageshack server, this image http://img263.imageshack.us/img263/5700/schermata21.png
but the result is always the same , the error continous to exist, i gived the cmod value 777 to the folder dedicated to img resize pic ,as you can see here,Image

i use the version 0.0.6 maybe i must try with an older version?
Sorry for my bad english

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

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by 4_seven » Sat Aug 06, 2011 5:27 pm

the mod works on most servers, but not on all .
may some kind of server/folder restriction or fopen() disabled.
First Post wrote:Requirements: fopen()
So it seems i can't help you. so all you can do is, activate it for attachments only.
Current Mods | Mod Base | php(BB) programming | No help via PM

Darkvelvet
Registered User
Posts: 94
Joined: Sat Jul 16, 2011 5:48 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.6

Post by Darkvelvet » Sun Aug 07, 2011 8:47 pm

Hello, any ideas why it look like this on my site? Install everything correctly, it showing thumbnail but the alignment is all messup.


Image


Full Clear Picture is here:
https://camo.phpbb.com/d7009562b26a7d845277519d0593e193a27b4b09/687474703a2f2f696d673639342e696d616765736861636b2e75732f696d673639342f3636332f38363438383432382e6a7067

Locked

Return to “[3.0.x] Abandoned MODs”