Jump to content

Zahari M.

Members
  • Posts

    198
  • Joined

  • Last visited

Everything posted by Zahari M.

  1. Hi Tom! Thanks for the reply. Very much appreciated! I have tried to implement what you have said but I am unsure if it is working as it should. I am using the default admin theme. That being the case, in Admin Custom Files I have a file named AdminThemeDefault.js. I have added your code into this file but only changed the selector class to .InputfieldDatetimeDatepicker just to get going first. The only "option" I have activated or configured in Admin Custom Files is checking the "Include theme based files". Is there anything else I am supposed to set or do in Admin Custom Files? I created a datetime field named timepicker and in the Input tab set Date Picker to Date/time picker on field focus. So when i go to a page with my timepicker field and click on it I do indeed get just the time picker. I can slide the sliders and input the time into the field. But once I save the page, the field populates with the date and time. I was hoping I would only see time and no date! Is this how it's supposed to be or am I doing something wrong? Cheers!
  2. Hi Renobird I love the screenshot that you provided and would very much like to create a field exactly like the one you did for starting and ending times. Perfect! The only problem is it is a bit beyond me how you actually did it! I would be most greatful if you could share a bit more info on how you did all this. Did you copy the InputfieldDatetime module over to site/modules and then rename it? If so, what items in the module do we need to rename? Also that javascript... where exactly does it go? Any assistance to replicate the functionality of your module would be much appreciated! Thanks Tom Cheers!
  3. Hi Guys For any amateurs like me who have an interest in typography and ended up having a play with Glyphs but couldn't quite figure out how to use certain aspects of it like masters and other family things, since we are amateurs, there is a proper training course available for Glyphs at lynda dot com here I haven't seen it myself, but having subscribed to lynda in the past I feel confident it should be of some good value for sure! Cheers!
  4. Hey guys No problems now... Just sharing to the collective knowledge pool should someone do a search... My site was unencrypted http and I was using Zoho Mail with no problems. Here is what I set things to and all was ok: Outgoing Server Name: smtp.zoho.com Port: 587 & Use START_TLS The problem came when I decided to switch the site over to a https site. And once I did that I was not getting any emails sent. Using "Test settings now" showed that I had some authorisation issues. After much experimentation, the issue turned out to be that SMTP user and Sender emailaddress have to be the same value. Previously they were different email address values and worked just fine when the site was http over TLS. And so by making sure that SMTP user and Sender emailaddress are identical, setting the Port to 465, using SSL, and allowing self signed certificates, all is good again when sending via WireMail SMTP and Zoho Mail. At least for me! Hope that saves someone 15 to 30 mins Have a great week everyone, especially all the Mods! Oh and P.S. Thanks horst for this great module!
  5. Very thorough of you Adrian to raise the issue in Github! Your absolutely right in doing so as one would be expecting such a highly favoured / liked module such as AIOM to work with all the profiles in a fresh site install. That backspace trick of yours sure is really handy to know should we / anyone else run into a similar issue of class not found! Thanks again mate!
  6. Hi Adrian! Great diagnosis there! Yes I was using PW3 latest dev version when trying this. Adding the backspace fixes the problem Adrian! Thanks for that. From what I see Adrian, when we install ProcessWire 3 dev version, the basic profile is not namespaced whilst the default profile is namespaced. As I was using the latest dev version and the default profile Adrian, the template files were already namespaced. I am not too sure if that's what you mean by manually adding the namespace. Also I assume the file compiler is on but I have to admit I don't know how to check if it is on or not! Anyways, just to clarify Adrian, if we install a fresh pw3 site with the default profile that already has namespaced template files and we then install the AIOM module, what should we do to solve this issue? Just add the backspace as you have done? Or remove the namespaces from the default template files? What is your suggestion? Anyway thanks again for the fix, Adrian. Brilliant! Cheers!
  7. Hi everyone and thanks for reading this! Feel kind of dumb so I have come to ask for some guidance! The problem I am having is trying to get the All In One Minify module working in a PW site having selected the default profile during installation. Here's the issue... The default profile has an append and prepend file arrangement. All the html to generate the page is located inside the _main.php file which is appended to the main template files i.e. home.php and basic-page.php. When we install the All In One Minify module we need to add this to our <head> section... <link rel="stylesheet" type="text/css" href="<?php echo AIOM::CSS('css/stylesheet.css'); ?>"> Unfortunately when we do this we get a blank screen! Turning debug on gives us the error... Error: Class 'ProcessWire\AIOM' not found (line 41 of /Applications/MAMP/htdocs/pw.dev/site/templates/_main.php) So I guess this AIOM class is out of scope and we probably need to use wire() somehow or other? The problem is I don't know how to write it out! I would be very grateful if someone could show me how we would rewrite the above using wire to get the class in scope. Thanks again everyone!
  8. Sorting by page is a great idea and would be wonderful! Great thought there Robin!! Hope it happens one day!
  9. Hi Peter This answer might not apply directly to you... but I put it here for the benefit of the wonderful group of positive contributors here in PW land I've started to get into more serious audio visual recordings now.... The brief summary is yes you need a good mic. Congratulations Peter on deciding this! So many people use their in-device mic and things just sound awful. Most experienced people will tell you that sound quality is way way WAY more important than the video quality. But of course you and I want both! So the big problem on the internet is what they don't talk about much at all is that to get the best results you really need to equalise your recordings with audio editing software. You can easily research and find yourself a great mic yet be totally unhappy with your recording played back. Even with a good mic, some things like your environment, distance from mic, alignment to mic, your voice, your mouth teeth toungue profiles, the way you speak, the language spoken and the devices your target audience will ultimately play it on means that to get the best results, equalisation is required. Software equalization can and does come in the form of plugins. Good audio editors will accept plugins. So the idea is to find an audio editor that you like using and find the appropriate plugins for it. The plugins come in various formats. Since I use a mac, I look for audio plugins that come in the AU format. So Peter... if your happy with the sound straight out from your mic, great! But if your not, then look for an audio editor and some equalisation plugins and have a fiddle. For audio production, one paid software plugin suite that I think highly of is iZotope Nectar. It's not cheap Peter. But it has a ten day trial. If you have a play with it during those ten days... you will be able to play with a whole lot of modules and equalisation and presets and from there you will know what kind of plugins that you are looking for and seek them elsewhere. There are various standalone 3rd party discrete plugins that you can buy for affordable prices. In my case Peter, I really need a de-esser with my recordings. I use a cardioid mic thats great for field recordings and has great noise rejection. But I've come to the realisation that that noise rejection quality of the mic comes at the expense of a problem created elsewhere! In my case that cost is a high frequency peak in the sibilance region. By de-essing my recordings and selecting the male radio announcer voice in iZotope to deepen the midrange of my voice and give it a bit of extra body I can actually listen to my own voice quite comfortably and not cringe! Perhaps a solid choice for a bloke you should ask for actual mic suggestions would be our fellow member Joss. He is a real audio guy! Happy recording Peter!
  10. Hi Peter I can share with you my Mailgun journey.... I have: FormBuilder PW 3 latest dev Mailgun account Horst's wonderful WireMailSmtp module As you say mate, lots of moving static parts What stumped me was that I too was not getting any mails sent. Now I develop sites locally in MAMP and for some reason, the "sending of emails" did not work when I tried to get ProcessWire to send an email out from within my development environment. What I ended up doing was uploading the site to a live server and once I did that, mails were sent instantly! I am not sure what exactly causes the MAMP environment to have trouble sending things out Peter, but that just tells me maybe you should not trust your development environments settings to be able to send out emails. Try a live server Peter. The parts you have do work, as I have gotten them to wok and I'm just a dummy ( but a persistent one ) Hope that helps! For others that are looking into this in the future.. those of you that are using Digital Ocean, so much of the documentation for Digital Ocean and Mailgun focuses on using your existing DNS settings for your domain but adding records into it for a Mailgun subdomain. This approach really caused me lots of headaches so here is how I got it all working... My domain name is www.mysite.com. Let's use this as a base. First thing in Digital Ocean is to create a brand new domain to create a subdomain. This is not commonly mentioned in Digital Oceans docs or all the Digital Ocean - Mailgun tutorials out there. So, I have departed from everyone else by NOT touching my main website's ( www.mysite.com ) records. So I created a brand new domain called mail.mysite.com. The "mail" bit is my chosen subdomain. But as I said, I created a brand new domain to create that desired subdomain. Now, in Mailgun, I created an account with the domain mail.mysite.com to match the new domain I created in Digital Ocean. When you create the account in Mailgun, you will get two text values and one cname value. Head over to Digital Ocean and for your domain entry ( mine being the mail.mysite.com domain entry ), we edit the DNS entries and add the two text records and add a single cname record. Go back to Mailgun and hit the Check DNS Records Now button and the 3 entries mentioned earlier should light up green. Sometimes we may need to press the button two or three times Next in Mailgun go to Manage SMTP credentials and create a new user. Take note of this and the password it generates. We take these to our site and punch them into Horst's WireMail user credentials along with setting the Port to 587 and the SMTP hostname to be smtp.mailgun.org. There is also the local hostname field and I set that to www.mysite.com. After doing all this, it works great! Just a side note. What I have done is used a nice paid email service called FastMail. And so how I have set things up is I edit my main site's DNS records ( www.mysite.com ) and add two text records pointing to FastMail. So.... my domain mail.mysite.com sends out mails via Mailgun and by configuring things in WireMailSmtp I have set the sender address for these emails as: admin@mysite.com Should someone reply to one of these emails, then Fastmail picks that up via mysite.com's records and routes it to my email client. They have a really nice iOS app for business accounts by the way. And what is not apparent from signup is that you can pay for 6 months first. Apologies if the above helps no one and or contains lots of errors!
  11. Hi flydev! Very clever & works great. Thanks! Cheers
  12. Hey flydev Glad you got your problem solved! Yes, I have tried adding quite a few things there. But still can't get it to work
  13. hi flydev I'm not sure about your particular error. So I can't offer much advice. Sorry. But I have been spending a lot of time working on my problem. What I have discovered is that if we use the core CommentForm.php file to generate our comment form, then threaded comments work perfectly. We also need to follow the instructions in the module and make sure we are linking to the needed js file. But if we wish to create a much more customised comment form, then making a copy of CommentForm.php and placing it in our site directory as described a few times in this thread does not actually work the way we want! The comment form gets displayed, and it does submit and generate comments, yes. But the threaded functionality no longer works and I'm not sure why So if anyone knows how to make another copy of CommentForm.php, place it in our site directory and still get threaded comments to work, I would be most appreciative! In version 3.0 it seems we can make a copy of the comments module and place it in /site/modules and customise our copy there. PW seems to automatically make any core module copies placed in our sites/modules folder the active copy. So we just edit our copy. Yay! Also... does anyone know what exactly to enter into our comments date/ time format box to display our comments actual post time? I seem to be only able to show relative times
  14. Hi Gents Along similar lines to Marco's observation above, has anyone gotten threaded comments working in a fresh install of 2.7.3? I have tried entering 2 and 4 for the Reply depth value yet it still behaves as if it has been set to 0!
  15. Hi I was looking in the forums for a solution to this problem I had... The error message was Unable to complete this request due to an error. A forum search showed me that a few others have been perplexed by this problem too. Having tried clearing the sessions folder, checking file permissions and the .htaccess file contents, still no luck. And like someone else, no error messages to help out. This problem happened when I tried to migrate a site from one server to another. Until today, this has always gone smoothly for me, but for some reason I could not get rid of the error message. When we migrate, chances are great that we will have to use a different database name, database user and database password. And so we edit our config.php file. I'm sure many of you do this all the time. I recently updated my Mac to El-Capitan and after lots of tests, I found my problem was related to editing the config.php file... What was happening was that when I edited the config.php file in Text Edit, some of the single quotes that surround each of the new values for our database configuration suddenly ended up changing shape from a perfectly vertical single quote into a slanted single quote. One needs to look extremely closely at every single quote that surrounds every value you edited. So, the next time you change any values in your config.php file, pay extremely close attention to those single quotes! In my case I ended up copying a perfectly vertical single quote and using that to paste replace all those slanted ones that appeared. Sometimes I had to repeat the operation. Buggy TextEdit program? Buggy Keyboard? Wrong settings? Wrong keyboard language? Not sure what is the reason. Just check each and every single quote after you have edited config.php Hope this saves someone half a day! Cheers
  16. Thanks so much Adrian! Ok folks... just for anyone else who stumbles over here.... What I was trying to do was to use a single image field for 3 common things. The usual way would be to create 3 unique image fields. By using tags, i wanted to be more resourceful and keep it simpler by getting away with using just one image field. Now thanks to Adrian and SiNNut I have been able to do just that! What I needed... 1. Upload image/s for articles 2. Upload a single featured image for listings in other pages. Think YouTube video listings with the video thumbnails 3. Upload images to show up in an image gallery. In case 1 above, these images are untagged. In case 2 above, the desired "representative" image for the article is tagged with featured. In case 3 above, any image that is tagged with exclude will NOT show up in the image gallery. Where the problem lied originally was that if an image had more then one tag, I could not filter out what images I did not want. They all appeared! This was because I actually had an image that was both tagged 'featured' and 'exclude'. Adrian's last solution enables me to tag an image with exclude and even if the image has been tagged with something else, it still filters out the image from the gallery. Yay! Here is part of what I did.... it should provide you with enough to get the idea! foreach ($page->images as $image) { if (!$image->hasTag("exclude")) { // Adrian's Magico Any images tagged with exclude will not show up below... $thumbnail = $image->width(320); $content .= "<figure class='block thumbnail' itemprop='associatedMedia' itemscope itemtype='http://schema.org/ImageObject'>"; $content .= "<a href='{$image->url}' itemprop='contentUrl' data-size='{$image->width}x{$image->height}'>"; $content .= "<img src='{$thumbnail->url}' itemprop='thumbnail' alt='{$image->description}'>"; $content .= "</a>"; $content .= "<figcaption itemprop='caption description'>{$image->description}</figcaption>"; $content .= "</figure>"; } } Thanks to the ProcessWire Support team. All of you... World class awesomeness.
  17. Ok guys... after digging around and finding something Adrian mentioned elsewhere, this works... $images = $page->images->find("tags!=exclude"); One very important things to take note. This only seems to work when each image has a single tag. If an image has more then one tag, it will not work! Hope that helps! Thanks to SiNNut for the prompt help and of course Adrian! Cheers
  18. Hi SiNNuT Thanks for helping out! Unfortunately I still can't get it to work. I have looked at the documentation where you pointed me to. But as you say, it does not indicate how to exclude any images using a particular tag I have used this as per the documentation to find any images that have a particular tag. In this case my tag is "featured". $images = $page->images->findTag('featured'); I have been trying to write an equivalent selector to the above example that uses an equal sign. If I can do that and select only images that are tagged with 'featured' then hopefully I can try and negate the equals to do what I asked earlier. Here is what I have tried to display any image that has been tagged 'featured'... . But I can't seem to create a selector that works... No images are shown. $images = $page->find("images.tags=featured"); Any other suggestions SiNNuT? Many thanks!
  19. Hi Gents! Question for you... When we do something like this... foreach ($page->images as $image) { blah blah blah } We will be able to get all the images on a page. Kewl But if we wish to use image tags for our images and we tag a couple of images with say the tag "Exclude", how do we write our selector such that all images except those tagged "Exclude" are selected? Many thanks! Regards Zahari
  20. Hi matjazp A late answer to your question. I came across the same issue as you. I wanted to set the width attribute of my images to 1280. But what I found was that CKEditor has a maximum allowable value for the width attribute. And that maximum value is 1200 pixels. If you go to: wire/modules/Markup/MarkupHTMLPurifier/htmlpurifier/standalone/HTMLPurifier/ConfigSchema/schema.ser There look for this bit... "HTML.MaxImgLength";i:1200 Change 1200 to your desired maximum value. Worked for me at least! Hope that helps Regards Zahari M.
  21. Great looking module, Adrian! Question for all you clever gents here.... Has anyone here installed ffmpeg and ffmpeg-php inside MAMP PRO on their Macs? I would love to install them such that they work with MAMP PRO but I have no idea where they both actually go! Any help would be muchly appreciated! Thanks!
  22. Hi Guys! Been using the new threaded comments module / system and it's working out really nicely! Currently when we set the the date / time format of our comment field to relative, it outputs things like 5 minutes ago, 5 hours ago, 5 months ago etc... I'm trying to build a single language non-English site. The question is how can we change the language that it outputs? If anyone could show me some sample code that translates these relative time descriptors to another language, I would be most grateful!! Cheers and thanks for looking!
  23. Hi everyone! Merry x-mas and happy new year! Just want to share something with those of you that like high quality acoustical music recordings. If that's not your thing, then this post is of no use to you. But if you do, then you might find this useful.... ? Sony have released some new high quality / resolution Walkmans and I am on the look out for some high quality monitoring headphones and the need had arisen to be able to have access to some super high quality high resolution well recorded "real music" such that I / some others could use these recordings to better judge just what you are hearing when auditioning gear.... And luckily for me, Linn Records are actually giving away, until the 6th of January, a free high resolution christmas album. Awesome!!! If you go to http://www.linnrecords.com/ and click on the banner that says 24-Bits of Christmas, you can start your journey. You will need to register and buy the album at $0.00 via their checkout. But you do not need to provide any card details when you register. It is a very painless registration. No verification needed. I bought, for free, both the 24bit / 192kHz alac and flac studio master versions of the album! So now, I have my first ever high resolution audio files! Mind you they are big! This album clocks over 4 Gigs of disk space! If your just after the christmas music to play on your mobile device, then just buy the mp3 version of the album at $0.00 Hope it is of use to some of you. Cheers Zahari
  24. Kewl Joss! How would you say it tastes? Acidic? Nutty? Managed to try it with your French press? Does it work well with that? It's exciting to get coffee from different regions, more so when sent from a friend!
  25. Hi Guys! If any of you are looking for a monospaced font you might want to check this out: http://www.myfonts.com/fonts/jan-fromm/camingo-code/ You get a free and nice looking monospaced font in regular, italic, bold and bold italic. All in Desktop and Webfont. Useful for those of you thinking of putting up some ProcessWire snippets on your website Cheers P.S. For any typography buffs.... this is, for a week or so more... a great deal: http://www.myfonts.com/fonts/latinotype/texta/
×
×
  • Create New...