Page 1 of 1

First topic pic strange behavior

PostPosted: 20 Jun 2014, 00:19
by tdguchi
Hi, I have a website (versionoriginal.org) and I have used your mod, to put the front img of the films posted, in the viewforum near the his topic title.

I have modified the php to get ride of [rimg] instead of [img] and, only some pics are picked, and only picks for the first page of a forum, it I click on the second, any pic is shown

I think that is not problem of my modification... do you have any idea?

Using:
phpbb 3.0.12
Theme: metro_blue
Changed regex from [img] to [rimg]

url where mod is used:

http://versionoriginal.org/seccion-hd-h ... n-f55.html

I have checked for strange characters in the img url (all are caught from the same place) and checked also any diferences in phpbb_post text by phpmyadmin everything looks the same.

thanks

Re: First topic pic strange behavior

PostPosted: 20 Jun 2014, 17:02
by 4seven
original-version works perfect on all my projects, so no clue...

Re: First topic pic strange behavior

PostPosted: 29 Jun 2014, 15:56
by tdguchi
problem is solved, only some errors in mysql query (for my databse)


thanks

Re: First topic pic strange behavior

PostPosted: 13 Jul 2014, 01:06
by tdguchi
4seven, I have another issue.... I am taking pictures from filmaffinity.com/es everything worked great...but since a few days ago, the new images no longer appear in the forum (pictures from other websites, are listed) I have no changed anything in config since it worked... filmaffinity might have something to do?

Re: First topic pic strange behavior

PostPosted: 13 Jul 2014, 13:36
by 4seven
seems the provider have security mechanism against remote copy.
take another provider, bcs. in this case we have no no workaround.

Re: First topic pic strange behavior

PostPosted: 15 Jul 2014, 03:55
by tdguchi
Hi, i have tried... yes, filmaffinity has changed something....

I have tried some scripts and with:

Code: Select all
<?php
$path 
'/images/one.jpg';
$opts = array(
  
'http'=>array(
    
'method'=>"GET",
    
'header'=>"Accept-language: en\r\n" .
              
"Accept:image/png,image/*;q=0.8,*/*;q=0.5 \r\n".
              
"Host: www.allamoda.eu\r\n" .
              
"User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0\r\n"
  
)
);

    
$context stream_context_create($opts);
    
$imm 'http://pics.filmaffinity.com/El_abuelo_que_salto_por_la_ventana_y_se_largo-395077157-large.jpg';
    if( 
$content file_get_contents($imm,false,$context) ){   

    
file_put_contents($path$content);   
    echo 
"Yes";

    }else{
    echo 
"No";
    }
?>


I could download $imm via php script.... could you tell me how (and where) to insert that script? the trick is using an user agent to cheat the server.... could you help me? I only need to insert that... the rest of your script its the same

Re: First topic pic strange behavior

PostPosted: 19 Jul 2014, 15:52
by 4seven
sorry, no time for private codings

Re: First topic pic strange behavior

PostPosted: 24 Jul 2014, 10:14
by tdguchi
Private coding? Are you serious? Im giving you the solution to avoid problems with protected image links.... It should be inserted, and you should update to next version. Its not only for me, Its a big improve ti the mod

I hace inserted it, deleting some lines , anda ir works perfectly, any image protected ir not, is shown

Think about it

Re: First topic pic strange behavior

PostPosted: 25 Jul 2014, 23:18
by 4seven
got it now. you're right, from this point of view.
thanks for showing this direction ;)