Jump to content

Warran

Members
  • Posts

    24
  • Joined

  • Last visited

Profile Information

  • Location
    Manchester, UK

Recent Profile Visitors

825 profile views

Warran's Achievements

Full Member

Full Member (4/6)

5

Reputation

  1. Thanks all I've been on holiday. Sorry for not replying sooner. cURL has worked now. It didn't work until the external file was a text file. Then I used curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); to get the contents and used filePutContents and a save path with a new extension of .php. <?php $externalFileURL = 'https://domain.com/files/filename.txt'; $ch = curl_init($externalFileURL); curl_setopt($ch, CURLOPT_URL, $externalFileURL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $fileContents = curl_exec($ch); curl_close($ch); $savePath = $config->paths->templates . 'filename.php'; $files->filePutContents($savePath, $fileContents); include $savePath; ?> Thanks again
  2. Hi, We have a web application and I am trying to use external php files as includes within templates. This is so we can centralise certain files that all instances of the web application commonly use. I am trying to work around the setting allow_url_fopen=0 which the host does not allow to be changed. So, something like this, after checking if the file exists, doesn't work. <?php $filename = "/some/external/path/external_file.php"; include($filename); Also tried with cURL to bypass allow_url_fopen=0. Any help would be appreciated. Thanks.
  3. Are you using the latest version of TextFormatterVideoEmbed 2.0.2 ? Is 'body' a CKEditor field? Also is the YT URL within <p> tags? Pretty obvious things but worth checking.
  4. Quick update: All works fine with the latest version from Ryan.
  5. Thanks kp52. I'll have a look at that too.
  6. I've made that mistake before now ?. But it is applied to the field.
  7. Hi Adrian Thanks for you reply. Could be, I'll take a look. Yes. The module looks for either a Youtube or Vimeo url between <p> tags and knows to output it as an embedded video. This isn't happening. It just outputs the url as plain text. I'll have a look at the module. Thanks again.
  8. Hi, I'm having an issue with TextFormatterVideoEmbed. Never had any problems with this before but it's not picking up the Youtube or Vmeo urls when it's in <p> tags, as it should do. Has anyone experienced this too? I'm using PW v3.0.165, TextFormatterVideoEmbed v1.1.1 in CKEditor (core within PW 3.0.165). Thanks Warran
  9. Hi DrQuincy You've asked the same question that I am interested in. The project was taken over by 'kongondo'. You may have already seen this thread, but just in case. https://processwire.com/talk/topic/19912-future-of-padloper-new-project-lead-announcement/ Warran
  10. Hi Thanks - I'll try that and report back.
  11. Hi I've searched the forum for an answer to my question so apologies if this has been answered and I haven't found it. I'm also a newbie so please forgive my ignorance. This is my problem: I have child pages and each of the child pages (amongst other things) has a file field with one PDF in it. I'm trying to pull a 'list' of the pdfs from each child page onto their parent page. Using $examplefield->url returns 403 forbidden so I tried using $examplefield->httpUrl but this just returns nothing. Any help would be appreciated. Here's my code: $newsletters=$page->children; foreach($newsletters as $pdf){ $doc=$pdf->newsletterfile; echo"<div class='news-link'> <a href='{$doc->httpUrl}' target='_blank'> <img src='{$pdf->newsletter_thumb->url}' alt='{$pdf->newsletter_thumb->description}' /> <h3>{$doc->description}</h3> </a> </div>"; } Warran
  12. Thanks for your reply wbmnfktr I contacted the hosting company and it is indeed them. It's being caused by the host's DDoS protection system. They are working on a fix. Thanks again.
  13. Thanks for your reply wbmnfktr I've raised the query with the host 123 Reg. I'll post an update when they come back and hopefully resolve it. Thanks again.
  14. Hi First of all apologies, I'm a relatively new to Processwire and have always found the answers I needed by searching the forum - hence my first request for help. I have a legacy website using v2.8 and all seems fine except that when first loaded unusual URL endings appear. For example, the home page for www.example.com would load as www.example.com/?LMCL=wUl1nh&LMCL=YsYQdx. Although, it isn't always the same letters. I'd be grateful if anyone could help me resolve this problem and once again sorry if I'm missing the obvious!
×
×
  • Create New...