Jump to content

formmailer

Members
  • Posts

    319
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by formmailer

  1. Yes, the example site that comes with the installation covers the basics pretty wel. The Processwire website contains many examples as wel (check out the API section). And of course you have this forum with many friendly users who will answer most (if not all) of your questions. /Jasper
  2. I did some quick tests with a view browsers and I didn't experience any problems with them. I tested: Internet Explorer 8, Firefox 8.0.1 and Chrome 15.0.874.121 m. At this moment I don't have more browsers on my system to test with. /Jasper
  3. The current demo version on the TinyMCE site doesn't seem to have this issue, but it might be interesting to see if the example page of TinyMCE that comes with the version PW is using has the same problem. If that's the case it would rule out a PW problem (other than not using the latest version). I checked if I could download the package from the TinyMCE site, but I couldn't find it. The files included in PW seem to use another folder structure, so that example page isn't working. Ryan, do you still have the original package somewhere? /Jasper
  4. I have tested now, but it doesn't solve the problem.
  5. Ryan wrote recently in another topic (http://processwire.com/talk/index.php/topic,702.0.html):
  6. I haven't had time to check if it works, but a possible workaround would be to disable the "Inline popups" plugin for TinyMCE.
  7. Not that it helps much, but isn't this the same problem as the one described in this topic: http://processwire.com/talk/index.php?topic=230.0 ?
  8. Thought I could learn something more today, so I created a Github repository for this module. Updated the first post with the link to the Github repository. /Jasper
  9. Hi! I just finished the first release of my first PW module: Piwik Top Keywords: https://github.com/f...ik-Top-Keywords This module can be used to create a tag cloud based on the keywords that visitors use to find your site (referrer keywords). These keywords are fetched from your Piwik installation. For those that don't know Piwik, it's an open source alternative for Google Analytics, more info on http://piwik.org. The keywords are, as a query, linked to ProcessWire's search page.* The module can be configured from the admin area, but it's also possible to configure it in your template. In order to reduce the load on your Piwik installation and avoid delays when rendering your pages, it makes sense to use it on cache enabled templates only. I am sure that the code can be improved, since it is my first module and because of the fact that I am not an experienced PHP developer. If you have any suggestions, please let me know. To Install: 1. Download the file attached (PiwikTopKeywords.module) to this post and place in /site/modules/. Go to Modules in the admin, 'Check for new modules' and click install for Piwik Top Keywords under the Piwik section. 2. Add the following to your CSS style sheet: #PiwikTagcloud {list-style-type:none; margin:0px; padding:0px; text-align: center;} #PiwikTagcloud li {display:inline !important; margin-right:15px; line-height:1.5em;} #PiwikTagcloud li a {display:inline; text-decoration: none;} #PiwikTagcloud a:hover {text-decoration: underline;} #PiwikTagcloud .smallest {font-size: 100%;} #PiwikTagcloud .small {font-size: 125%;} #PiwikTagcloud .medium {font-size:150%;} #PiwikTagcloud .large {font-size:170%;} #PiwikTagcloud .largest {font-size:200%;} To use: Add the following to your template: $PiwikTopKeywords = $modules->get("PiwikTopKeywords"); $PiwikTopKeywords->DisplayTopKeywords(); I also attached a screenshot of the output and a screenshot of the admin area: I'm not sure how many of you use Piwik and how many will use this module, but if it's helpful to anyone I am more than happy! //Jasper * Edit: I just realised that is your site doesn't have a search page, you might want to link the keywords to a Google site-search. Simply use the following Search URL in the config: http://www.google.com/#q=site:yoursite.com+
  10. You are right Ryan, it will be a front end module. Hopefully the result will be a tag (or keyword) cloud with popular searches that users used in search engines to find the site. I'll start working from the MarkupRSS module and will see where it brings me. /Jasper
  11. Beautiful site Soma! This is excelent work, just tested it and it works great! /Jasper
  12. Hi, I am planning to build a module to get the Top Keywords for a page from Piwik (open source alternative for Google Analytics, http://piwik.org) When finished the module should provide the same as the code below + css class references in order to make a tag cloud possible. <?php // This function will call the API to get best keyword for current URL. // Then it writes the list of best keywords in a HTML list function DisplayTopKeywords($url = "") { // Do not spend more than 1 second fetching the data @ini_set("default_socket_timeout", $timeout = 1); // Get the Keywords data $url = empty($url) ? "http://". $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] : $url; $api = "http://www.my-statistics-domain.com/piwik/?module=API&method=Referers.getKeywordsForPageUrl&format=php&filter_limit=10&token_auth=f0b2a0sfhgsfga4523675ab4c01aff6d4a&date=previous1&period=week&idSite=3&url=" . urlencode($url); $keywords = @unserialize(file_get_contents($api)); if($keywords === false || isset($keywords["result"])) { // DEBUG ONLY: uncomment for troubleshooting an empty output (the URL output reveals the token_auth) // echo "Error while fetching the <a href='$api'>Top Keywords from Piwik</a>"; return; } // Display the list in HTML $output = "<h2>Top Keywords for <a href='$url'>$url</a></h2><ul>"; foreach($keywords as $keyword) { $output .= "<li>". $keyword[0]. "</li>"; } if(empty($keywords)) { $output .= "Nothing yet..."; } $output .= "</ul>"; echo $output; } DisplayTopKeywords(); Since I am new to making moldules I figured that using an existing module as an example would be a good idea. I looked at some modules and found that Ryan's MarkupRSS module might be a good example to start with (since it contains a way to configure some settings from the adminarea, in my example would the Piwik URL be something that should be configured from the admin). But before I start I would like to ask if there are special things to keep in mind and check if you agree that the MarkupRSS module would be a good example for my module. Thanks in advance! /Jasper Updated "goal of the module"
  13. Thanks everyone! Everything seems fine now. //Jasper
  14. I'm not sure... but some family members say so... ;D
  15. Thanks Antti for your reply. I thought about posting in the Pub forum first, but thought it might be boring... talking about CSS in a Pub. /Jasper
  16. Hi! I am not sure if this is the right forum for my question that is actually quite PW unrelates (except for the fact that the site runs on PW). If not, I apologize and a moderator can hopefully move it. My problem CSS related, but I can't seem to fix it (although I am sure it's just minor thing I am missing). I added AddThis buttons after my body (content) and before the Comments section, but suddenly the Comments section moved to the botton, below under the sidebar containers. The cause is probably that the DIV doesn't fit where it's supposed to be. I assume it has something to do with the floating of the DIVs. I tried to solve it with an empty "clear: both;" DIV, but that didn't work (or I placed it at the wrong position). You can see the problem on the following page: http://www.stockholm-stedentrip.nl/activiteiten/gamla-stan/ If someone can give me a clue on how to fix this I would be very grateful. Thanks in advance, Jasper
  17. I think Ryan meant that he just uploaded a fix (about an hour ago). Did you pull this update from Github?
  18. Glad I could help! /Jasper
  19. Hi! It should be in the php5-mysql package. Have you installed that? /Jasper
  20. And Ryan doesn't account for more than a 3rd longer, actually just under a 3rd now. Congrats to Ryan and the PW community. /Jasper
  21. You can't just echo an array, but you need to walk through all the records in the array. It should be something like this: if($page->children) { echo "<table width='100%'><tr><td class='room_no'>Room No.</td><td class='cont_info'>Contact Info</td></tr>"; foreach($children as $child) { echo "<tr><td> </td>"; echo "<td> </td></tr>"; echo "<tr><td class='room_no'><br />{$child->title}</td><td class='cont_info'><p>{$child->ten_pri_name}<br />"; echo "{$child->ten_first_name} {$child->ten_last_name}"; echo "<br /><a href='{$child->ten_website}'>"; echo "See website</a><br />"; echo "<a href='mailto:{$child->ten_email}'>{$child->ten_email}</a><br />"; echo "{$child->ten_phone_no}<br />{$child->Media_Business}</p></td>"; echo "</tr><tr><td> </td></tr>"; } echo "</table>"; } If you want don't want the website field being displayed when empty, try something like this: echo "{$child->ten_first_name} {$child->ten_last_name}<br />"; if ($child->ten_website) { echo "<a href='{$child->ten_website}'>"; echo "See website</a><br />"; } I didn't test the code, just wrote it quickly in the browser, but I hope it helps. /Jasper @Diogo: you were too quick for me...
  22. Looks very nice! I like the fresh look of the site (and the fruit and veggies... ) /Jasper
  23. Hi! Today I found a page (on a non-PW site) that contained old information and links. This gave me the idea for a new feature in PW (probably a module): Wouldn't it be nice to have a warning (e-mail and/or notification in the admin area) about pages that are older than x days since they were last saved? I think it would be a great help to page editors. My suggestion would be to have a default value (eg. 120 days) that can be overrided on template level (maybe page level). At the same time we can change the behaviour, so the page gets unpublished. All of this can of course be done in the templates with a check when the page is loaded, but a module seems like a better solution. The check could be started by a cron job or just running a manual check by requesting an URL. As for myself I haven't jumped into making modules (but I certainly will in the future), so if anyone thinks this is a good idea, feel free to use it. /Jasper
  24. Thanks for the suggestion. Fixed that as well. /Jasper Edit: just realised that I didn't have link to ProcessWire in the footer site... That's fixed now. A few extra backlinks to ProcessWire.com won't hurt, will it? 8)
×
×
  • Create New...