Frage zu First Topic [img] on Forum Index

Archived support topics

Re: Frage zu First Topic [img] on Forum Index

Postby 4seven » Thu 24. Dec 2009, 01:03 | Userzeit: +1.00 / Do 24. Dez 2009, 01:03

the "Last 5 Attachments in Forum " in threads is part of First Topic IMG MOD?


no, it is a seperate mod and will came out @ "Last X Attachments in Forum",
so the X will autodetect by size-of-thumb and screen-resolution ;)

in other words: it's in dev
User avatar
4seven
Administrator
 
Posts: 427
 
Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...
 
Joined:
Sun 13. Jan 2008, 23:44
 
Letzter Login:
Mon 1. Aug 2022, 16:40
 
Posted:
Thu 24. Dec 2009, 01:03 +1.00
Userzeit: Do 24. Dez 2009, 01:03

Re: Frage zu First Topic [img] on Forum Index

Postby 4seven » Thu 24. Dec 2009, 01:14 | Userzeit: +1.00 / Do 24. Dez 2009, 01:03


dkdkdkdk wrote:
I will try your mod + HSplugin on clear forum and then add the other mods. Maybe they are colliding somehow.


when u build it new, take the new slim version of this mod (general instruction will be updated soon)


new part of mod

Code: Select all
if (!file_exists($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic)){
if (!empty($remote_clr_pic) && @getimagesize($remote_raw_pic)){

$convert_only_size = getimagesize($remote_raw_pic);

//---------SETTINGS---------
// make the setting, if you desired width or height here
$width_or_height  = 'width';
// i find width more attractiv ;)
//----------------------------------
// if u enter height, than the pic should be centered ? (yes or no)
// $center_or_what   = 'yes';
// for future releases / don't ask
//----------------------------------
// make the setting of max px here (counts for width or height)
$convert_max_size = 80;
// don't make it to big
//---------SETTINGS---------

if ($width_or_height == 'width'){
$convert_only_sizing = $convert_only_size[0];}
else {
$convert_only_sizing = $convert_only_size[1];}

if ($convert_only_sizing > $convert_max_size){

if (!function_exists('simpleresize')) {
include($phpbb_root_path . 'thumb_resize.' . $phpEx);}

$image = new simpleresize();
$image->load($remote_raw_pic);
if ($width_or_height  == 'width'){
$image->resizeToWidth($convert_max_size);}
else{
$image->resizeToHeight($convert_max_size);}
$image->save($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);}}}}}

else{
$remote_clr_pic = '';
$remote_raw_pic = '';
$rowz['post_id'] = '';}
// 4seven / First Topic [img] on Forum Index  / 2009   


old part of mod

Code: Select all
if (!file_exists($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic)){
if (!empty($remote_clr_pic) && @getimagesize($remote_raw_pic)){

copy($remote_raw_pic, $phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);

$convert_only_size = getimagesize($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);

//---------SETTINGS---------
// make the setting, if you desired width or height here
$width_or_height  = 'width';
// i find width more attractiv ;)
//----------------------------------
// if u enter height, than the pic should be centered ? (yes or no)
// $center_or_what   = 'yes';
// for future releases / don't ask
//----------------------------------
// make the setting of max px here (counts for width or height)
$convert_max_size = 80;
// don't make it to big
//---------SETTINGS---------

if ($width_or_height == 'width'){
$convert_only_sizing = $convert_only_size[0];}
else {
$convert_only_sizing = $convert_only_size[1];}

if ($convert_only_sizing > $convert_max_size){

if (!function_exists('simpleresize')) {
include($phpbb_root_path . 'thumb_resize.' . $phpEx);}

$image = new simpleresize();
$image->load($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);
if ($width_or_height  == 'width'){
$image->resizeToWidth($convert_max_size);}
else{
$image->resizeToHeight($convert_max_size);}
$image->save($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);}}}}}

else{
$remote_clr_pic = '';
$remote_raw_pic = '';
$rowz['post_id'] = '';}
// 4seven / First Topic [img] on Forum Index  / 2009   


edit: i correct the highslide bbcode to % - fit :

viewtopic.php?p=1006#p1006
User avatar
4seven
Administrator
 
Posts: 427
 
Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...
 
Joined:
Sun 13. Jan 2008, 23:44
 
Letzter Login:
Mon 1. Aug 2022, 16:40
 
Posted:
Thu 24. Dec 2009, 01:14 +1.00
Userzeit: Do 24. Dez 2009, 01:03

Re: Frage zu First Topic [img] on Forum Index

Postby dkdkdkdk » Thu 24. Dec 2009, 04:59 | Userzeit: +1.00 / Do 24. Dez 2009, 04:59

I dont know what to say :-(
Step 1: Clear install of phpbb3.0.6
Step 2: adding this threads -
- 1. text + [IMG]picture[IMG]
- 2. text + no picture attachment
- 3. text + picture attachment
Step 3: First Topic IMG mod

I get the same error - same thumb picture for all of the 3 threads
Tried on slim and old version.

EDIT: It´s running, but only when I delete and upload the attachement in thread 3. again and delete and rewrite the thread nr.2 . So, in live-forum, where I have pictures with [img], picture attachments and threads without any picture, It´s inconceivable. I would have to edit each of thread without [img] cause otherwise there will be the "double-thumb" error :-( . Just try for yourself.

...and the
Code: Select all
Fatal error: Cannot redeclare class simpleresize in D:\ComplexWebServer\http_docs\thumb_resize.php on line 10

is there again after clearing the caches and "orphan"

...on clear forum or forum, where are the attachments prohibited from first day and each thread must have a [img] picture in it, will this mod for now work like a charm. :icon_thumleft:
dkdkdkdk
 
Posts: 18
 
No Topics
 
Joined:
Tue 22. Dec 2009, 13:57
 
Letzter Login:
Fri 14. May 2010, 19:27
 
Posted:
Thu 24. Dec 2009, 04:59 +1.00
Userzeit: Do 24. Dez 2009, 04:59

Re: Frage zu First Topic [img] on Forum Index

Postby dkdkdkdk » Sat 2. Jan 2010, 18:20 | Userzeit: +1.00 / Do 24. Dez 2009, 04:59

Can we try it somehow else? Can you post me the viewforum.php, acp_attachments.php and viewforum_body.html (prosilver) from clean installation of phpbb3.0.6 and edited with your MOD? I will try them on my test board. It´s the only thing getting on my mind, I´m doing something wrong from the start :-?
dkdkdkdk
 
Posts: 18
 
No Topics
 
Joined:
Tue 22. Dec 2009, 13:57
 
Letzter Login:
Fri 14. May 2010, 19:27
 
Posted:
Sat 2. Jan 2010, 18:20 +1.00
Userzeit: Do 24. Dez 2009, 04:59

Re: Frage zu First Topic [img] on Forum Index

Postby 4seven » Sat 2. Jan 2010, 18:47 | Userzeit: +1.00 / Do 24. Dez 2009, 01:03

forget the acp_attachments, bcs. it's easy and no error-source.
i post the both files asap..
User avatar
4seven
Administrator
 
Posts: 427
 
Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...
 
Joined:
Sun 13. Jan 2008, 23:44
 
Letzter Login:
Mon 1. Aug 2022, 16:40
 
Posted:
Sat 2. Jan 2010, 18:47 +1.00
Userzeit: Do 24. Dez 2009, 01:03

Re: Frage zu First Topic [img] on Forum Index

Postby 4seven » Sat 2. Jan 2010, 19:52 | Userzeit: +1.00 / Do 24. Dez 2009, 01:03

here are the both files:

- viewforum.php
- viewforum_body.html (prosilver)

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

the rest by normal instruction
viewtopic.php?f=8&t=327&p=930#p930
User avatar
4seven
Administrator
 
Posts: 427
 
Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...
 
Joined:
Sun 13. Jan 2008, 23:44
 
Letzter Login:
Mon 1. Aug 2022, 16:40
 
Posted:
Sat 2. Jan 2010, 19:52 +1.00
Userzeit: Do 24. Dez 2009, 01:03

Re: Frage zu First Topic [img] on Forum Index

Postby dkdkdkdk » Sat 2. Jan 2010, 20:47 | Userzeit: +1.00 / Do 24. Dez 2009, 04:59

So, only changed the (7,8,9) to my (2) in the viewforum.php, purged the caches and when I Submit the Orphaned Attach. and reload forum with F5 , this pops-out (on the right side is content of viewforum_thumbs)
Image

then after another F5, the second picture is there too (only have 2 pictures on the board), although with my favorite error - double pictures :-?
Image
...names of the threads are showing whats inside.

When I write some responce in the "plain text" and "attachment" threads, they will jump above the "img_img" ones and the false thumbs are gone. Then add some text in them too, they jump above the rest and bad thumbs are there again.

Changing the
Code: Select all
if (!function_exists('simpleresize')) {
include($phpbb_root_path . 'thumb_resize.' . $phpEx);}
to
Code: Select all
include_once($phpbb_root_path . 'thumb_resize.' . $phpEx);
mentioned before Christmas is removing the "Fatal error: Cannot redeclare..." error, but "double-thumbs" are still there. ...just trying and reporting this ;-)

I would not bother with it, If we have on our live board only IMG files, but we have attachments threads too mixed with them, so maybe I will wait for your attach. release of this MOD.
dkdkdkdk
 
Posts: 18
 
No Topics
 
Joined:
Tue 22. Dec 2009, 13:57
 
Letzter Login:
Fri 14. May 2010, 19:27
 
Posted:
Sat 2. Jan 2010, 20:47 +1.00
Userzeit: Do 24. Dez 2009, 04:59

Re: Frage zu First Topic [img] on Forum Index

Postby 4seven » Sat 2. Jan 2010, 20:59 | Userzeit: +1.00 / Do 24. Dez 2009, 01:03

to figure this out i need ftp- and admin-access.
on no-one of the many live- and testboards the mod is installed, this behavior is reported..
i can't figure it out. must test it out live with named access..
User avatar
4seven
Administrator
 
Posts: 427
 
Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...
 
Joined:
Sun 13. Jan 2008, 23:44
 
Letzter Login:
Mon 1. Aug 2022, 16:40
 
Posted:
Sat 2. Jan 2010, 20:59 +1.00
Userzeit: Do 24. Dez 2009, 01:03

Re: Frage zu First Topic [img] on Forum Index

Postby dkdkdkdk » Sat 2. Jan 2010, 23:51 | Userzeit: +1.00 / Do 24. Dez 2009, 04:59

On 1 test forum its running, on the other not. The only difference is in Database server:
- MySQL 5.0.80-enterprise-gpl-log : running
- MySQL(i) 4.1.22-community-nt : failed
- MySQL(i) 5.0.51a-24+lenny2 (live forum) : failed

Can this be the problem? If yes, is there any "cure" for it?
dkdkdkdk
 
Posts: 18
 
No Topics
 
Joined:
Tue 22. Dec 2009, 13:57
 
Letzter Login:
Fri 14. May 2010, 19:27
 
Posted:
Sat 2. Jan 2010, 23:51 +1.00
Userzeit: Do 24. Dez 2009, 04:59

Re: Frage zu First Topic [img] on Forum Index

Postby 4seven » Sun 3. Jan 2010, 00:06 | Userzeit: +1.00 / Do 24. Dez 2009, 01:03

maybe it works only on rel. current sql-versions

- MySQL(i) 4.1.22 / is a little "out of date"

- MySQL(i) 5.0.51a / is an A-Version (maybe no major-release)

It's possible (but i dont think so) that it is a MySQL vs MySql(i) Problem, bcs. of symple sql-request in the mod..
User avatar
4seven
Administrator
 
Posts: 427
 
Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...
 
Joined:
Sun 13. Jan 2008, 23:44
 
Letzter Login:
Mon 1. Aug 2022, 16:40
 
Posted:
Sun 3. Jan 2010, 00:06 +1.00
Userzeit: Do 24. Dez 2009, 01:03

PreviousNext

Return to Support



Who is online

Users browsing this forum: No registered users and 0 guests

cron