Jump to content

horst

PW-Moderators
  • Posts

    4,064
  • Joined

  • Last visited

  • Days Won

    87

Everything posted by horst

  1. That's right. My bad, I have selected the wrong type. Will correct it with the update. 1) Will be done by the importer. Is allready prepared to run, but yet not enabled, because I first want to have all other stuff stable. BTW, what do you think is better: should I create a separate script what only import a cover for each album. It could be called automatically at the end of the importer script. Or should it better be together with the importer script as a single script? 2) Where is it stored? ID3v2 only, or could it be into ID3v1 too? Is it called bpm or BPM or BpM (maybe you can pm me a sample mp3 where it is set)
  2. It was that thing with that a selector query for titles longer than 50 chars haven't found allready existing pages. After Soma has found the answer for that, I have rewritten that part, because the pages of type genre and artist have to be unique whereas the pages for albums and songs could have duplicate titles. This is working now. Gladly!
  3. horst

    Firebug Lite

    Ok, you are right. All the advantage is only for people who are allready use and know Firebug.
  4. Oho! I have allready noticed that the (page) fields are not set correct. But I also have solved the importer problem. Should I wait with updating the Profile until you have checked that with the genre field? --------------------------------------------------------- I also have found some nice audioplayers: about Sounds in HTML-Pages: www.w3schools.comand some Players:yahoo webplayer audio.js SoundManager 2 awesome Demo another awesome Demo MediaElement.js -----------------------------------------------------------
  5. horst

    Firebug Lite

    I'm using Firebug with Firefox since a long time, - I don't have the need to (often) test Websites in different Browsers, but if I had the need to do that I would find this interesting: Firebug Lite: doing the Firebug way, anywhere. Compatible with all major browsers: IE6+, Firefox, Opera, Safari and Chrome Same look and feel as Firebug Inspect HTML and modify style in real-time Powerful console logging functions Rich representation of DOM elements Extend Firebug Lite and add features to make it even more powerful https://blog.getfirebug.com/2013/05/02/future-of-firebug-lite/
  6. Never heard about Andrew Duhon "The Moorings", but now I [ listen to | like ] it, (- and of course you can call me modest)
  7. <multo obrigado>Diogo, I have taken that for firefox.</multo obrigado>
  8. Hey, I was in the Netherlands today and have seen this grooveshark-thing. Cool, to bad that they have stopped the service in germany. I have made an account and created a playlist that I can share now : listen to the women Hopefully I have done everything right so that others can listen to it now ?!
  9. currently [listening | switching] [to | between] http://www.wdr.de/wdrlive/media/global_player_selector.m3u http://www.wdr.de/wdrlive/media/world_live.m3u http://www.wdr.de/wdrlive/media/funkhauseuropa_5planeten.m3u (http://funkhauseuropa.de/sendungen/index.phtml)
  10. Uuh, this is a security restricted thing, but, sorry, I have no clues about that. search?q=iframe+cross+domain+http+https
  11. Hi Brian, you may use a .htaccess snippet to solve that? The following one I use to solve exactly that, but with http instead of https. If you try it and it doesn't work with HTTPS, sorry, you must refer to the Apache httpd manual. <IfModule mod_rewrite.c> RewriteEngine On # Domain-name without WWW RewriteCond %{HTTP_HOST} ^www\.childdomainname\.com$ RewriteRule ^(.*)$ http://childdomainname.com/$1 [L,R=301] </IfModule> This way, I think, PW always is invoked _after_ the domain name is sanitized.
  12. Maybe you try it with http://mods.pw/Z (Site Profile Exporter Module) You have to copy a fresh PW-Installation and change the default site against your exported one. Do a normal install run and after that you are ready to go online!
  13. Alan, have you seen this thread: http://processwire.com/talk/topic/3476-fixed-image-size/#entry34110 ?
  14. unsanitized pass ? $pass = $input->post->pass; if ($session->login($user, $pass)) { or does $session->login keep care?
  15. @Soma: Boah! works great and on a 'per field basis'! absolute great!
  16. Hi Thomas, welcome. Sorry, I'm a bit short with time. Assuming with 'should be rejected' you mean on upload of images, I think [best way | one way] [w|c]ould be to write a simple and small module that must hook somewhere into Uploadprocess of images and check with PHP's getimagesize() the dimensions. And if not suite the minimums, delete the file and throw a message to the user. Unfortunately I actually don't know which Hook would be the best for that. So, if you are not familiar with PW-modules (as of you are new to PW), you may wait until one of the forum pro's come along here, - or later todays afternoon I can spent some time on looking to that, because I will need an upload module for myself in the near future.
  17. Hi Alan, I have tried it here and it works! Does you try it online or local? Maybe one/some needed folder isn't availbale or not writeable. Any entry in errors.log? Turn on debug?
  18. was looking into DB: pages.name is VARCHAR with length 128 Thank's Soma!
  19. I have sanitized with: $artist = 'Sabine Meyer/Academy Of St Martin-In-The-Fields/Kenneth Sillito'; $title = preg_replace('/[^a-zA-Z0-9 _-]/', '', $artist); It break ?? = drop the rest or = wrap into lines ?? EDIT: Ah, you have edited your post when I was allready answering!
  20. This is exactly what I've tried after I run into the unwanted duplicate titles. But I got errors that looks much like the first ones with other files and (I think I was to confused) that I have not look close enough to it and have discarded it. It will have to do something with that I run the same function for 4 different pagetypes, whereas three of them have to be unique but the 4'th could have duplicate titles (Tracks with same title but on different Albums). I think that has generated the Errors I haven't looked to, and not when trying to get a page of artist. So, now, besides all the facts about DB and Selectors, I have learned something new, too: Also if it looks weird, keep a cool head Great that it is solved!
  21. Hhmm ?? (böhmische Dörfer ??) I have tried %= and it works, ^= work's too. But I do not understand why I have to do it this way ? (wait, go looking into DB, okay I'll be back:) DB says Datatype of field is TEXT, hmm. %= looks for text somewhere in the field ^= matches if fieldtext begins with it, so $= should match too, but doesn't !?? (why not?) And at least, I cannot really understand why it not matches with the simple = as of data='complete title string with spaces-and-dashes' will work. ---------------------- Ah, - and many thanks for testing Soma, - and for finding a solution!
  22. Hi Soma, it's not a stupid question at all, but it isn't the thema here. If you look to the very first post of this thread I describe that I have used the query $p = wire('pages')->get("template=$template,title=".wire('sanitizer')->selectorValue($title)); to get an allready existing page. Because the query returns a NullPage, I want to create a new one (assuming that there is no one stored in the DB, because the query doesn't returns one). Then, when trying to save() the new created page it crashes with an Error. It currently runs with creating multiple pages of the same (title) artist is just to avoid the unhandled errors! That's not the behave I want. But what is just weird is that the Selector-query doesn't return the page not any, even if there are more than one!
  23. No, there isn't anything hidden or unpublished. As I've said before I have run this with ~ 5000 files and there are some (~30) where it behaves like this. I also have set up a new fresh DB with my SiteProfile of the MP3-DB and imported only 6 files whereas 3 of them are from that album. Same strange behave as before! Here is the install.sql () from the fresh DB including the 6 imported tracks. If someone want to check it he can change the install.sql from SiteProfile against this one. --------------------------------------------- EDIT: I have on another PW-Install (BasicProfile) created a single page just with the title "Sabine MeyerAcademy Of St Martin-In-The-FieldsKenneth Sillito" and on another page I have ran that code: (Template: basic-page.php) <?php if('Child Page 4'===$page->title) { echo "<p>"; $title = 'Sabine MeyerAcademy Of St Martin-In-The-FieldsKenneth Sillito'; $p = wire('pages')->get("title=".wire('sanitizer')->selectorValue($title)); echo $p->id; echo "<br />"; $p = wire('pages')->get("title=$title"); echo $p->id; echo "<br />"; // a direct query $q = "SELECT pages_id FROM field_title WHERE data='$title'"; $r = wire('db')->query($q); if($row = $r->fetch_row()) { echo $row[0]; echo "<br />"; } echo "</p>"; } Would be nice if someone could test this, too. (it drives me crazy)
  24. I have ran this code: <?php // three selector queries $title = 'Sabine MeyerAcademy Of St Martin-In-The-FieldsKenneth Sillito'; $template = 'artist'; $p = wire('pages')->get("template=$template,title=".wire('sanitizer')->selectorValue($title)); echo $p->id; echo "\n\n"; $p = wire('pages')->get("title=".wire('sanitizer')->selectorValue($title)); echo $p->id; echo "\n\n"; $p = wire('pages')->get("title=$title"); echo $p->id; echo "\n\n"; // and one direct query $q = "SELECT pages_id FROM pw5.field_title WHERE data='$title'"; $r = wire('db')->query($q); if($row = $r->fetch_row()) { echo $row[0]; } the output of all 3 selector queries is 0 the output of the direct query is 40813 (the id of the page) So, any ideas?
×
×
  • Create New...