First topic pic strange behavior

Mod Support

Moderators: BNa, Sekuro, 4seven

First topic pic strange behavior

Postby tdguchi » 20 Jun 2014, 00:19

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
tdguchi

Tiptop

Tiptop
 
Posts: 6
Joined: 20 Jun 2014, 00:11
 
Resolution: 1366x768


Re: First topic pic strange behavior

Postby 4seven » 20 Jun 2014, 17:02

original-version works perfect on all my projects, so no clue...
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: First topic pic strange behavior

Postby tdguchi » 29 Jun 2014, 15:56

problem is solved, only some errors in mysql query (for my databse)


thanks
tdguchi

Tiptop

Tiptop
 
Posts: 6
Joined: 20 Jun 2014, 00:11
 
Resolution: 1366x768

Re: First topic pic strange behavior

Postby tdguchi » 13 Jul 2014, 01:06

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?
tdguchi

Tiptop

Tiptop
 
Posts: 6
Joined: 20 Jun 2014, 00:11
 
Resolution: 1366x768


Re: First topic pic strange behavior

Postby 4seven » 13 Jul 2014, 13:36

seems the provider have security mechanism against remote copy.
take another provider, bcs. in this case we have no no workaround.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: First topic pic strange behavior

Postby tdguchi » 15 Jul 2014, 03:55

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
tdguchi

Tiptop

Tiptop
 
Posts: 6
Joined: 20 Jun 2014, 00:11
 
Resolution: 1366x768


Re: First topic pic strange behavior

Postby 4seven » 19 Jul 2014, 15:52

sorry, no time for private codings
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: First topic pic strange behavior

Postby tdguchi » 24 Jul 2014, 10:14

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
tdguchi

Tiptop

Tiptop
 
Posts: 6
Joined: 20 Jun 2014, 00:11
 
Resolution: 1366x768


Re: First topic pic strange behavior

Postby 4seven » 25 Jul 2014, 23:18

got it now. you're right, from this point of view.
thanks for showing this direction ;)
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080



Return to Support Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron