-
Posts
198 -
Joined
-
Last visited
Everything posted by Zahari M.
-
Hey guys... Just came across this looking for an internet radio station that plays a little Cha Cha... Looking at the domain name... I just had to click on it! Check it out! With Soma's abundant skills here I wouldn't be surprised at all if he knocked this one up too! http://somafm.com/listen/ I really dig the Illinois Street Lounge channel... Happy listening guys!
-
- 2
-
-
Adrian! That's such an awesome function! Oh so elegant! And here I was trying to bust my head with preg_split As always... thank you thank thank you!!
-
Hi guys Thanks for looking at this! A Hanna code question for you gents... In WordPress, one of the things you can do inside the main text editor is that you can add a read more tag anywhere inside your blog posts. Usually you might insert it after say the end of the first paragraph. And so if you set up WordPress such that it displays your blog posts as a list of excerpts or teasers, then should it come across a post that has a read more tag, it will display the contents of that post from the beginning as an excerpt right up to the point where you placed that read more tag. Finally WordPress turns that read more tag into a link such that if you click on it it takes you to the complete blog post. So my question is gents, if we create a [[readmore]] hanna code, how do we go about replicating this WordPress functionality? As my coding skills are not very good, I thought that there could be two approaches. One would be to somehow break out of the body field once it reached our [[readmore]]. How to do this I do not know how. I tried getting my [[readmore]] to simply echo return; but it ignored that! The other I guess would be to use our [[readmore]] as a "marker" of sorts and somehow extract the section between the beginning of the body field up until it sees our [[readmore]] marker. I'm thinking this might need an explode implode kind of approach but I have never ever done anything like that before and so I am really quite clueless on this one. Or maybe there is a smarter way? Any tips or suggestions or code chunks much appreciated! Cheers guys!
-
Hi Teppo! Thanks for the explanation. Much appreciated. Somewhat sad as it means we are stuck with html4 content sandwiched between html5 frameworks!! So I guess the moral to the story here is that if someone needs html purifier and html5, start learning Hanna codes That being the case I shall join you and just switch the thing off just like you! Thanks Teppo !
-
Hi Manfred62 Thanks for your reply and looking in to this too. I too wondered earlier how we can extend Purifier to allow for some extra tags. But I'm also thinking out aloud and asking or wondering or suggesting it works like this... If HTML Purifier is turned off then no filtering. If HTML Purifier is turned on then it is filtered with some internal list. If HTML Purifier is turned on and extra tags are added in Extra Allowed Content, then it is filtered with the internal list of tags plus the tags we defined within Extra Allowed Content. The way I understand it now, we have to deactivate a useful tool and lose some helpful protection just to allow the use of even one extra tag!! Seems a very extreme selection case no? As an aside Manfred's question is interesting... how do we add some extra tags to the current HTML Purifier list? Or have I totally misunderstood how to use the interface and set it up!! Always possible with me... Thanks guys
-
Hi Teppo Thanks for clarifying that the buttons are working as they are. That certainly helps. A silly question for you. Or maybe I don't understand how things are supposed to be. I'm one slow learner!!! I would say that turning on HTML Purifier is a good thing and if possible it would be good to keep it on most all the time. But lets say that I really need CKEditor to allow me to use the <figure> element or tag. So to allow me to use the <figure> element or tag inside my CKEditor content area without it being stripped away and replaced with <p></p> tags, I need to go to Extra Allowed Content and add <figure> here. Now to actually have usage of <figure> or anything inside Extra Allowed Content I am now forced to turn off HTML Purifier for them to work! Would it not be better that whatever is typed into Extra Allowed Content is added to the list of allowed HTML tags inside Purifier? Then we can keep HTML Purifier on and just extend it with whatever tags we entered in Extra Allowed Content! Hope what I am asking is clear.. Thanks Teppo!
-
Hi Kongondo and Adrian So after playing with CKEditor for a couple of days trying to configure it here are some observations... If you look at the "Extra Allowed Content" input area, it says... "Applies only if the "Use ACF" checkbox above is checked. You may enter multiple rules by putting each on its own line". This is good. Some of us need a few extra gfs tags So I added figure and figcaption here to the "Extra Allowed Content" input area. Now what I have found is that if "Use HTML Purifier?" is turned "Off", then CKEditor will allow these tags to exist in our editor. But It does not matter if "Use ACF?" is switched on or off. CKEditor still accepts and keeps the figure and figcaption tags when we save the page. So what I gather here is that "Use ACF?" is not switching on and off whatever tags we put into "Extra Allowed Content". So... the user interfaces help tips are worded in a way that make me believe that if I need my editor to acknowledge and respect the existence of certain tags, I should add them in the "Extra Allowed Content" input area and turn on "Use ACF?". But this is not the case. However, if the interface help tips said something like this... "Need additional tags? Then turn off HTML Purifier and add any extra needed tags, one on each line in the Extra Allowed Content area",..... then the current functionality of the radio buttons make sense! So guys... what do you all think its supposed to be? Are the ACF & Purifier radio buttons doing all that they should? Or are the interface "help / instructions" in need of some rewording?
-
Hi guys For some reason I wasn't getting the latest dev version. I do now and all is well. I can add multiple tags now. Thanks a lot Kongondo & Adrian. You guys rock!
-
Hi Kongondo Just a quick question for you... The screenshot that you just showed where you had a field for Extra Allowed Content.... your field looks like it is a text area around ~6 rows high. On my installation, for some reason.... the Extra Allowed Content field is a single row in height. So, I can, following your instructions, add the figure tag and it does indeed work! But the problem I have now is that since the Extra Allowed Content input is only 1 row high, I can only enter 1 tag!! Hitting enter does not give me a line return to add another tag beneath it. Hitting enter ends up saving the page. Any ideas why this is so? Strange!
-
Really Appreciate you looking into this... Will try what you said. I need to head home now.... will be back at this later! Thanks mate!!
-
Hi kongondo Thanks so much for looking at this. Much appreciated. If I use div, that does work for me too. But what I really want to try and add are some html5 tags like figure and video. I don't have any luck adding these type of tags in. Does your setup allow these types of tags? Cheers!
-
Thanks Kongondo! I dont know if it's my setup or what.... but when I add some new tags.... when I go to edit a page all the text in the CKE editor field goes blank! If I remove the tags back to the default set then the text returns.... Could you, if at all possible... pretty please... consider having a try and see if you can add tags there Kongondo and see if your editor still works? If I add a div tag things still work but if I add say figure or figcaption, then the text in my editor disappears. Or is it just mine that hides my body text after adding new tags?? Im using latest PW dev 2.4 Cheers
-
Hi guys Been trying out and been busy configuring CKEditor for the first time and it is going well! Thanks to all of you who have done so much work here integrating CKEditor into ProcessWire! Just one question. I was trying to swap out the automatically applied <p> tags that surround each <img> tag by changing them instead to <figure> tags. To do this, I click on the source button and just delete the two p's and insert in their place figure. As soon as I close the source modal, CKE has swapped the <figure> tags back to <p> tags. Currently I have ACF and HTML Purifier turned on as I believe that's a good thing. I'm just wondering how we can white list or configure CKE to allow any extra tags we might need such as <figure> and <figcaption> whilst still keeping ACF and Purifier on. Any suggestions / thoughts how we can configure what tags are allowed and not automatically swapped to p tags? Cheers guys!
-
Apple truly excel at this. One marvels at how many people they've made believe the sun shines outta Apples *** and will defend Apple's every move / decision, no matter how restrictive and limiting it is to others... Very nice artwork in that article and ya gottta love that websites name too.... stopthecyborgs.org Love this threads title by the way, horst !!!
-
Hi guys A new version of Apple's OS X is coming along.... http://www.apple.com/osx/preview/ I really can't stand Apple's new Interface aesthetics.... Upgrading from iOS 6 to iOS 7 on my iPhone was a huge downgrade in my opinion. The phone just isn't quite as nice and friendly to use anymore. Sure, there are some improvements here and there, but the overall impression is it is a step backwards in many ways. So whilst they seem to be glowing with praise how wonderful OS X Yosemite is going to be.... I look at it all with great skepticism. What I fear is that once Apple makes you upgrade the operating system, they may make it irreversible, i.e. you can't reinstall the previous operating system. The way things are going, it makes me appreciate Windows somewhat more in that you can buy your Windows operating system and install it on a myriad of cheap or expensive, new or not so new hardware. I am beginning to really dislike the way Apple is going these days. I've just ditched my iPhone and am switching over to Android. Getting ones data out of the iPhone is a pain in the ass. Apple want to sue people for putting rounded corners on their devices. But I really don't see anything innovative from them at all of late... I'm looking now towards Linux, Android and Windows... I'm personally getting sick of all the Apple bullshit and glass ceilings... So.... how do you guys look at all this?
-
How do we emulate WordPress "post author selection" in Processwire?
Zahari M. replied to Zahari M.'s topic in API & Templates
Ha ha! Good tag line that one, Pete. Awesome! That's exactly what I need! Cheers! -
How do we emulate WordPress "post author selection" in Processwire?
Zahari M. replied to Zahari M.'s topic in API & Templates
Hi Guys Thanks so much for the replies! diogo... I like your approach! But question for you. If we create a page reference field for our author and add this field to our article template, how do we prevent the authors from being able to see this author field? I only want the administrator role to be able to see it. How do we hide some fields from some user roles? Ryan... thanks for that nugget! Look forward to checking it out. Cheers guys! -
Hi Guys! Hope someone can help me with this one. I'm on the last legs of setting up my website and this is one of the few remaining things to do! In WordPress, one of the things you can do from the admin pages for a blog post or page is change who the author of an article is, at any time. I need to be able to achieve this functionality with Processwire too! But am not too sure how to do it as I'm sure it involves hooks. And I don't quite get hooks in Processwire yet. So best to ask here if there is some kind soul can assist me! Why the need arises is this. I want to get some people to contribute some articles to my site. As some of them are not too "site admin" savy, what i do is create the article with the necessary titles, urls, summary etc all sorted for them. They just need to add in their content! Whilst I create a user account for each of my contributors and assign them to a "contributor" role, sometimes I forget to log in to their account when I create first their articles. As my articles display the authors name in the byline, this is not acceptable as their articles end up display my name.... Oops! Since my site is running locally and still in development, I can go into the database and change the user id for the affected page. But once I go live, I dont want to be doing that! So.... how do we go about achieving this? Well I believe the first step would be to create a page reference field. We could set it up such that it accesses pages from the hidden user template. This would give us a drop down list of users in the system. We could then add this field to our articles template. Now when we first create and save a page, I believe that an internal field that holds the id of the user / author is set. And conveniently for us, at the same time our custom author page reference field will be empty. If we were logged in as the correct user when the page was saved, then nothing else needs to be done! But if we got it wrong, or we wish to subsequently change the author of a page, then the idea is we can use our author field to select from the list of users who we now wish the desired author to be and then save the page. But here is where I am now rather helpless. I dont know how to add a hook that will trigger upon a page save for my "article" template when there is now an author value present! Also, we dont want our guest contributors being able to see the author selection field in their "Processwire interface". I gather we need another hook here such that we will only display our author page reference field for users who are of the role "administrator" Could anyone help me out with this one? Really appreciate you looking at this... Cheers!
-
Hi Guys! Didn't know you guys are appreciative of good sound n gear... awesome! Gee... there are some brands you mention here that I have never even heard off! Ryan - I tried on a pair of those Grado's a couple of occasions many years ago and my ears found them physically very uncomfortable after a while. Actually I have actively avoided any headphones that sit on ones ears as a result of that Grado "experience" and only go for ones that go around the ears. Perhaps my ear lobes are more sensitive to external physical pressure then other people ears...? Thanks for the tip on those Panasonic ear buds Ryan. Awesome! I shall seek them out! Your right. At 8 bucks they would seem to be an excellent bargain and would make for a great gift item too! There are a few people who I can see myself giving them to if they sound good... Just bought your Pro Cache module. It's taken me nearly a year to build my website... oh the shame of it! Look forward to firing it up soon! And love the form builder module. I bought that maybe 5 months ago but never really used it till last week when trying to set up a contact form. Option C and an hour later and I had myself an awesome contact form. Great stuff Ryan!! Renobird - Those headphones you linked to look very interesting. Never heard of em. Those are exactly the kind of headphones and generally audio equipment I am interested in! I will try and seek them out although I don't think they are available here in Malaysia. Renobird & Joss - Quite some years ago, I bought some AKG's. These are the 501's. They have really been bashed about over the years as I carry them in my back pack wherever I go on a daily basis. Usually to a cafe or coffee shop as I like to work from these environments as opposed to home. A cup of good coffee a day is nice and with internet radio... aahhh! When I bought them, they were not very popular as they don't have much apparent bass. But AKG promoted them at the time more as a set of headphones for the classical music lover. They are very comfortable and they sound wonderful. Wonderful in that they are very very transparent - unusually they do not achieve this transparency by a skewed high frequency response / artificial highs. I would meet quite a few people with all sorts of high end - designerish headphones and these would always keep their own. Sometimes the owners of these designer-ish headphones acknowledged that my 501's are perhaps better then theirs. One thing about them is that they are somewhat hard to drive so some mobile devices just don't have enough voltage / current output to make them work properly. And they aren't very energetic phones. But for human voice, baroque music, chamber music, solo instruments, brass, woodwinds, acoustic guitar, harpsichord, interviews, training videos and background listening.... they are awesome! At the time of purchase I also bought a spare set of ear pads. Bad things? The only bad things about them were that the 501 labels that were stuck on where these "gold anodized AKG 501 labels" and they very quickly fell off! Also the cable relief where the cable enters the headphone wasn't very durable. After a couple of years it progressively broke up. After a couple more years the cable failed there. But it wasn't too hard to open it up and just cut it, dress up the tips and resolder the cable back on. For strain relief, this time I just tied a single knot on the cable and stuffed it in the housing I did not change the cable, but I did notice that the copper in it was beginning to oxidise quite a bit. I would like to replace it with a new cable that has similar physical properties but this is a lil hard to do here. I went to a well known dedicated headphone shop but they are still audiofools there. Their concern is more how the cable "sounds". All the replacement cable offerings they have are so stiff or some "young punks" shade of neon or coiled up to the buggery as a spring.... What I did admire about the first good pair of Beats Audio headphones that I saw was not the audio quality but rather it had a female socket on it so that the headphone cable was instantly replaceable. I thought to myself one day I will modify my 501's with a socket in it so that I can readily swap the cable if it fails... A question... Maybe you guys can help me on this audio question.... maybe not! But I will still ask... ha ha! I want to be able to do some short high quality video interviews using a combination of a simple video camera, but a good audio recorder and a couple of good microphones. So I want to look for some good audio gear to help me do this. And so I would like to buy myself an audio recorder. Now... I am somewhat of a fish out of water / dinosaur. These days, everyone here (Malaysia) in the industry assumes recorder mean only two things.... they push you towards a usb interface for your computer. Or you buy a Zoom H* type recorder! That's what the few pro audio shops that we have here carry and do. All their customers are happy with this. But I am not. The reason is that I come from the days of 3 head analog tape machines. And whilst I bought one of those Zoom H2 recorders when it first came out, I have over the passing of time come to absolutely hate their interfaces. There is an elegant simplicity to the operating of an old tape recorder in that you had a play and record button. If you wanted to record, you just moved the necessary PHYSICAL buttons and they looked and stayed "out of place" signalling you at any time the exact mode your device is operating in! When you were recording, you knew you were. You never suffered a "non recording"!! Screw all this deep software menus operational shit with cheap skate fragile micro miniaturised sliding switches is what I say!! I would like to be able to operate this recorder WITHOUT needing my glasses on. So my question would be, Joss and Renobird, do you or any of your mates have any suggestions on any good standalone digital recorder that would suit my needs? One that was easy to operate, writes the recording to an external media card and has a couple of XLR mic inputs. Just wondering.... Cheers guys!
-
Hi PhotoWebMax I use Sublime Text for the occasional little snippets of code creating that I do... The color syntax highlighting really helps you spot all your typos! And the multi point cursor is great. You can configure the interfaces look and adjust most every aspect of it. As a result, its an editor that you can look at for hours on end with no fatigue.... Have a look at this if you can.... it will give you a good idea about Sublime Text: http://code.tutsplus.com/articles/perfect-workflow-in-sublime-text-free-course--net-27293 But I always keep Text Wrangler nearby and handy too! When it comes to finding, search and replace etc, it's really easy to use. I also use Text Wrangler as my main program to keep notes. If I buy a piece of software or register in a forum, I will create a simple txt file with those details copied in and then save them in a folder. The Text Wrangler interface is nice for certain text operations. I just bought YummyFTP yesterday to work alongside these two editors. Sure, Text Wrangler has built in FTP and you can get a FTP plugin for Sublime Text. But a dedicated FTP and Syncing tool makes life easier for someone like me who doesn't do this stuff very often... its very intuitive once you spend a short while learning it. Hope you find the one you like!
-
Hi netcarver Yes! Boleh! Terima Kasih!!
-
Hi guys! I was trying to develop a new site based on an old sites template files etc and I ended up getting a blank white screen! What happened was that my template files were calling for Comments and All in One Minify. As it was a new site being brought to life, I had not yet activated these two modules. So my question is... how can I use something like an if {...} statement to check if the Comments module and the All In One Minify module have been activated? Cheers guys!
-
Sorry for the delay guys. Been so busy having a look at those new fangled page tables Also.... wanted to shoot some pics and post them up here. Sorry for the somewhat bad quality! But it would draw the wrong attention if it looked like I was taking proper pictures. So these were done somewhat covertly... The most expensive pair here were the AKG K551s. at 400 USD at todays exchange rate. These were nice headphones but a little bit bass shy. As they were the most expensive, they represented a starting point. So my own priorities are as follows.... I wanted to find a pair of headphones for my dad. He uses an iPad and listens to quite a lot of things on YouTube. As the speaker on the ipad isn't the best, what I was looking for needed to meet these requirements.... 1. Fits around the ears. Not on the ears. Not in the ears. 2. Is comfortable. 3. Not too heavy. 4. Not too tight fitting. 5. Not too loose fitting. 6. Sounds good. 7. is efficient. You can get good sound levels, drive, and bass when plugged into small mobile devices. 8. Doesn't have too stiff a cable. 8. Isn't too expensive. So as I mentioned.... I listened to nearly all the headphones there! In a past life, I used to be an audiophile audiofool. I learned many things in that lifetime. Amongst them were that most reviews cannot be relied on. Anyways... here are my impressions using non audiofool terms... For a base line here, I am interested in things sounding natural and clear. Good fidelity and clarity is what I am looking for in a pair of headphones. Meaning to say, if I put a friend in the same room with me and I recorded him saying A B C repeatedly,.... if he said A B C to me directly, and then I asked him to stop talking and then put some headphones on to now listen to a recording of him just saying A B C, then what I am after is a minimal or better still no difference in sound quality.... i.e. When I hear A B C, it sounds identical if it were to come directly out of his mouth, or the headphones... For those of you who are somewhat into audio, I used to use the original Quad Electrostatic loud speakers and they had this quality.... I mention this for a reason. The whole audio world today is fixated on extra bass... super powerful bass.. blah blah bass... and to me so many of them sound fcking awful. Out of the 20 to 30 or so headphones there, only 5 of them actually sounded good. Most of them have serious resonances in them. What that means is that they sound very echoey... like you'd experience to listening to familiar sounds in a tunnel or the sound character experienced whilst your busy depressurizing over a porcelain bowl! Or they sound very muffled as thought there are lots of super thick sound absorbing towels placed between the headphone and your ears! I would say that one of the best sounding headphones in that group was the Audio Technica ATH-M50 CWH. It sounded very "clear" with very clean and nicely weighted bass. It had a good balance to the sound. But it was not the most comfortable and being white... it's going to look grubby very quick! I think they sounded comparable and in some ways just as good as the AKG's mentioned earlier and they were 230 USD. Not bad considering that they are almost half the price of the AKG's! What were a very nice sounding and very comfortable pair of headphones were the Audio Technica ATH-TAD500 headphones. These worked out at around 120 USD. But the great news was that I found these headphones... the Audio Technica ATH-TAD300 headphones. They sound great, and meet all the criteria I set above. The fact that I got them home delivered to me in Malaysia by shopping online locally and paying 34 USD is simply amazing!!! So guys.... there you go. The Audio Technica ATH-TAD300 headphones at 34 USD are an amazing bargain. Sure there are better headphones in every which area that you want to compare them at. But then... they wont be costing 34 bucks! If you loose them, then no worries..... get a new pair. Hope that helps someone out there. By the way... I was at the Sony shop after this... and their were many headphones there that feature super duper extra bass. Most don't sound that great. But there were one or two that had really weighty bass that also provided really great mid range clarity. Not something I commonly hear. So there are a few hidden gems in the current Sony lineup if some of you need that extra bass. Cheers!
-
Hi codewire.co code-wire.com Wonder where that idea comes from Nico, if you don't know, may I suggest that you try and punch in any of the possible domain names at GoDaddy.coms homepage. Don't login thou. Reason is the Godaddy site as it is today is very helpful in automatically suggesting all these new domain extensions and even alternative names! Cheers