Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 15:38

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 20 Jun 2014, 00:19 
Offline
Tiptop
Tiptop

Joined: 20 Jun 2014, 00:11
Posts: 6
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


Top
 Profile  
Reply with quote  
PostPosted: 20 Jun 2014, 17:02 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
original-version works perfect on all my projects, so no clue...

_________________
Current Mods | Mod Base | php(BB) programming | No help via PM


Top
 Profile  
Reply with quote  
PostPosted: 29 Jun 2014, 15:56 
Offline
Tiptop
Tiptop

Joined: 20 Jun 2014, 00:11
Posts: 6
problem is solved, only some errors in mysql query (for my databse)


thanks


Top
 Profile  
Reply with quote  
PostPosted: 13 Jul 2014, 01:06 
Offline
Tiptop
Tiptop

Joined: 20 Jun 2014, 00:11
Posts: 6
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?


Top
 Profile  
Reply with quote  
PostPosted: 13 Jul 2014, 13:36 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
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


Top
 Profile  
Reply with quote  
PostPosted: 15 Jul 2014, 03:55 
Offline
Tiptop
Tiptop

Joined: 20 Jun 2014, 00:11
Posts: 6
Hi, i have tried... yes, filmaffinity has changed something....

I have tried some scripts and with:

Code:
<?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


Top
 Profile  
Reply with quote  
PostPosted: 19 Jul 2014, 15:52 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
sorry, no time for private codings

_________________
Current Mods | Mod Base | php(BB) programming | No help via PM


Top
 Profile  
Reply with quote  
PostPosted: 24 Jul 2014, 10:14 
Offline
Tiptop
Tiptop

Joined: 20 Jun 2014, 00:11
Posts: 6
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


Top
 Profile  
Reply with quote  
PostPosted: 25 Jul 2014, 23:18 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.011s | 23 Queries | GZIP : Off ]