Jump to content

Gazley

Members
  • Posts

    526
  • Joined

  • Last visited

Everything posted by Gazley

  1. Hi there, I use Kongondo's blog module and I want to start adding links at the bottom of the posts that reference other posts/resources that the reader may be interested in. I see this on many sites, particularly blog based sites. I have the standard Blog module 'Categories' and 'Tags'. I have also added 'People' and 'Brands'. In this case, a single Blog post will always have a Category, it might have zero or more Tags, People or Brands associated with it. I'll refer to these labels as "categorizations" in the rest of this message. Right there, I can obviously detect posts that are related by these four different categorizations. However, this suggests numerous questions! What is the ideal total number of "related" posts? Should this number be split across all the categorizations? Should some categories be given more prominence/weight than others? For example, if a post has a single category of "Fashion" and there are two tags, "Makeup" and "Hair" (specified in that order), would you give more priority to other posts tagged as "Makeup" rather than "Hair"? Also, you (the post's Author) may want to specifically/manually select a Page(s) as a "You may be interested in" topic(s) if there is some connection that is not highlighted by the various additional categorizations. For the additional structure in each page, I'm seeing the possibility of various additional Fields: Maximum Number Of "You may be interested in" topics, irrespective of categorization Maximum Number Of "You may be interested in" topics, per categorization (in total not exceeding the above) List of categorizations to exclude on this particular post (the post may be in certain categorizations but for the purposes of related posts, you may not want all of the current posts' categorizations to be considered) Specific author selected pages Boolean to suggest that when there is specific author selected pages, the automatic selection of related categorized pages is suppressed. Am I over thinking this? Any thoughts, suggestions as to how the good folk on this forum approach this requirement? Many thanks!
  2. Hi @Pierre-Luc Despite using Foundation, I have never used its grid - I've always used Susy in version 1 and latest projects in Susy 2. Never used the Bourbon stuff before, look very cool! Cheers
  3. Hi Mike - thanks for the confirmation!
  4. Hi there, Is JumpLinks activated when a page is accessed via $pages->get($url)? I have some code calling a page using $pages->get() and the "old" url. The get() is returning a null page. The jumplink works if I access the page with the "old" URL in the browser address bar. Any advice appreciated! Many thanks.
  5. @FrancisChung - many thanks for this tip! You are right, there are many great examples
  6. A great and really informative answer, Tom! Very many thanks for taking the time to explain all of this for me. This is really where it's at - a real users perspective, warts 'n all. Cheers!
  7. Hi Tom What are the missing modules that are important to you? Ta!
  8. Hi there, Does anyone know of a really good search box component? The one at http://www.vogue.co.uk/ looks good. It starts out small, expands when you type, has clearing "X" option and other bits and pieces. I want to add search to the site I'm working on but don't want to have to start from scratch coding all of this stuff! Any recommendations would be appreciated Many thanks.
  9. @LostKobrakai It's half-assed in that it is precisely a mediocre compromise from a framework that claims to be the "The most advanced responsive front-end framework in the world" (this claim is on their homepage). It's not just the way Off Canvas is implemented but the fact that they haven't officially published definitive recipes for having both a regular NavBar working in tandem with the Off Canvas menu/trigger. Don't mean to bash Foundation - I've been using it for several years now but, it seems to be getting a bit long in the tooth.
  10. @OrganizedFello OffCanvas is pretty half-assed in Foundation. You have to arrange your markup containership in a certain way. In both UIKit & Semantic UI, you only need to add your OffCanvas div almost anywhere, set some properties and your away. Also Parallax and Sticky control are better. @MikeRockett The grid in Semantic UI is Bootstrap-like in that you still have to create non-semantic markup to create rows that contain columns. I don't think UI Kit needs the concepts of "row" divs. Currently, I don't use Foundation's grid and use the Susy 2 framework for my grids, doing away with non-semantic markup, at least where grids are concerned. UI Kit and Semantic UI both look really good but there must be a compelling reason to use one over the other, hence the question
  11. Hi there, I've been looking at these two CSS frameworks and wonder whether anyone uses them and has recommendations? I currently use Foundation but it lacks in V5 and some of the stuff I want to do seems so easy in the two frameworks I've mentioned. Many thanks!
  12. This is the error message I get with the attributes on the <head> element and it works OK without any attributes. Warning: preg_replace(): Compilation failed: missing ) at offset 17 in /Applications/MAMP/htdocs/iconic/ProcessWire/site/modules/ProCache/ProCache.module on line 1065 If I put these attributes on the <html> element, the page generates OK although I don't know whether this is suboptimal so far as Facebook is concerned.
  13. Ah, just found this: https://developers.facebook.com/docs/reference/opengraph/object-type/website/ Seems to suggest that these declarations be specified in the <head> element. However, ProCache in HTML minification mode strips out the <head> element. Any thoughts? Cheers!
  14. Hi there, At http://ogp.me/# it shows the following "og" namespace definition in the html element. <html prefix="og: http://ogp.me/ns#"> If I want to specify the Facebook App Id, I also need to define the "fb" namespace too. However, I can't see any definite HTML5 based example of how to do this. So, I think the following should be OK but would appreciate any advice around this: <html lang="en-GB" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#" > Sorry about the bizarre colours! Thanks.
  15. Hi @Tom. Thanks for sharing your experiences with WP and I am happy to hear about your blossoming affair with Processwire! Cheers!
  16. @teppo That's a really good point. I use a few PW Pro Modules (FormBuilder, ProFields, ProCache) and haven't hit this as an issue with PW other than a few months back when I did hit an issue with FormBuilder and Ryan thought it was an incompatibility issue with the Spex module I also used throughout all my development. As a result, I ended up ripping Spex out, creating my own partials module and reverted back to a more traditional PW templating approach. So, I think any system that uses plugins is going to run into some issues if the authors of the plugins don't keep them upto date with the underlying core platform or, the core platform isn't stringent enough to specify and enforce plugin compatibility guidelines across its plugin ecosystem. On saying that, you'd expect premium plugins where you're paying good money to remain compatible both vertically and horizontally. I think the bigger problem comes when you use contributed plugins that may not be of commercial quality, not supported or both. I appreciate your insights! @adrian Never used WP so have no concept of whether it's hard to make changes, so if that was your experience, that is also a great point!
  17. Hi there, I've been using PW for a good few years now and think it is a splendid system. Recently, I've been looking at some SEO strategies from a number of consultants. I was pretty surprised at how many of them built sites very quickly indeed using Wordpress using some pretty high quality plugins from companies like ThriveThemes (content builder, landing pages) and the general "quick to assemble" approach due to the number of cool plugins. I know that I tend to do a lot of coding when building my PW sites (probably because I'm a developer) but these guys I've seen seem to build their ranking, professional looking Wordpress sites really quickly and just get on with the process of developing the SEO and commercials of the site without getting bogged down with a lot of code, whether that be back or front end development. I've just put a new version of an older site live using latest ProCache and it really quick and I'm using things like it's HTML, CSS & JS compression features -- really good stuff. I don't know how Wordpress guys do this kind of lower level optimisation but for sure, I can see why Wordpress is used to build sites very quickly. I'd be interested to hear the views of those who have used Wordpress and whether any I have seen rings true or whether it's drawbacks (whatever they may be) outway it's apparent efficiency at putting sites together? Many thanks!
  18. Cheers Guys! Thought I was going crazy. @tsdtsdtsd As LostKobraki mentioned, H1 are OK inside of Article elements. Googlebot is OK with this but BingBot complains like it hasn't ever heard of HTML5 !
  19. Hi, I've hit a funky issue when using Chrome on Mac, specifically, when the screen width is 1100px or more. The content at the following link may possibly be deemed NSFW so please take care if you are prepared to take a look on my behalf! http://www.iconicboudoir.co.uk/blog/ Scroll down to the Blog entry titled: "A Little Bit Of Fashion With A Little Bit Of Glamour" If you mouse over the H1 Title/Anchor from the left, the cursor doesn't change nor does the link actually work until you get to the first instance of the word "Bit"? I only see this behaviour in Chrome, it seems to work OK in Firefox. If anyone has a Mac with Chrome and enough screen width to get the viewport 1100px or more, if you see the same behaviour, I'd appreciate your thoughts as to what might be going on. BTW, this site uses latest ProCache but I see the same issue when I turn ProCache off and use vanilla CSS/JS elements. Many thanks indeed!
  20. About 10 pages. When you linked me to your demos, I immediately thought it must be Textile or Hanna but it wasn't. I was surprised to see Autolinks being the issue. Obviously, the other two will add some processing overhead but nothing like Autolinks in this particular circumstance.
  21. @kongondo Many thanks for looking into this! So, I looked at my blog_body field's text formatters. I had three specified in the following order: Hanna Code Text Formatter Textile Profield: Autolinks <-- This guy hurts! When I removed "Profield: Autolinks", the whole page load speeded up to something like I would have expected to see. So, the culprit here is Autolinks -- go figure? I wouldn't have expected that but with Autolinks, it takes an absolute age for the $page->blog_body to be rendered before it is passed into the strip_tags() function. I guess you don't notice this when rendering a single page but when on a tight'ish loop, you clearly see the performance hit caused by Autolinks. Wow. Cheers!
  22. Hi Guys, I've just deployed my first site built with the Blog Module and on the surface all is well. However, when ProCache is turned off, the blog summary page loads awfully slowly despite there only being ten or so short blog summaries displayed (at this moment in time). It would be unacceptable performance if it weren't for ProCache. I looked into what the bottleneck was and the Blog pages are being returned by ProcessWire in an instant so, it's not data retrieval. When I stepped into the MarkupBlog.module, renderPosts method with small set true, around line #746 there is the following line: $summary = strip_tags(substr($page->blog_body, 0, $summaryLimit), $options['post_small_allowable_tags']); With summary limit set at 450, I noticed that the PHP strip_tags() function takes an absolute age to run! As far as I can see, this is the line of code that creates the bottleneck I am seeing without ProCache. Has anyone else come up against this as a performance bottleneck? Look forward to hearing from you. Cheers and thanks!
  23. Hi there, I've just copied a new site from development to a server and when I tried to run from the server, there was no styling or javascript. After doing some digging about, I noticed that the AllInOneMinify .css and .js files were both empty (zero file length). All is fine on the local machine. Any idea what might be causing this? The module seems to be running OK because if you delete the files, it recreates them when you try and load the site. It's just that they are empty? Any suggestions much appreciated! Many thanks.
  24. Hmmm, so I looked further through my code where I was subsequently used a DOMDocument that set its own encoding. I had to do pass the string in as: mb_convert_encoding($blogData, 'HTML-ENTITIES', 'UTF-8') This made everything happy Thanks.
  25. Sorry Guys, This is a refinement of an earlier question that introduced Textile as a bit of a red-herring! It's nothing to do with Textile. You can see below, the words "touch up" are wrapped with the funky "â" character. Sometimes, you just need a digital âtouch upâ, just to bring out the very best in you. This is the same for apostrophes too: As Iâve said in This text is stored in a TextArea field that uses Textile to process text, not TinyMC or CkEditor. When it renders, the various pieces of punctuation are rendered on the page using "â". Any ideas how I can just get the proper punctuation to show? Thanks!
×
×
  • Create New...