Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/24/2015 in all areas

  1. @mr-fan one point less for linking to bild
    2 points
  2. OT: @mr-fan, thanks for the "reminder"! Forgot to implement this myself. (I need to add some noscript - background url images!)
    2 points
  3. the whole site breaks if js is off...for my personal minds it is always not right if js is off that the whole site is not usable...there should always be a fallback...especially on a big player's site.. e.g. without js works: http://www.nytimes.com/ http://www.bild.de/ but it seems on the "fashion side of life" there is nothing to see without js: http://www.cosmopolitan.com/ (menu works no pictures) http://www.elle.com/ (the same not usable) only http://www.vogue.de/ seems to look good without JS on... just my 2 cents...JS is nice for fancy things, applications, tracking, shops and ajax stuff....but a website should always tell a story even JS is off. regards mr-fan
    2 points
  4. just tried it and i like it! (no wonder ) update from the previous version on dev went smoothly. thanks for implementing this into your module! on my live server i got this error on installation: Error: Class Fredi contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ConfigurableModule::getModuleConfigInputfields) (line 159 of /var/www/vhosts/+++/httpdocs/site/modules/Fredi/Fredi.module) This error message was shown because you are logged in as a Superuser. Error has been logged. PHP Version 5.3.10, ubuntu
    1 point
  5. Its a CSS pseudo element: /* display paused text on top of paused slideshow */ .cycle-paused:after { content: 'Paused'; color: white; background: black; padding: 10px; z-index: 500; position: absolute; top: 10px; right: 10px; border-radius: 10px; opacity: .5; filter: alpha(opacity=50); } http://jquery.malsup.com/cycle2/demo/demo-slideshow.css
    1 point
  6. After some thought: I'm a little undecided as to how much functionality I would want in this monitor. Currently, Jumplinks serves its purpose, and adding to much to it might not be the greatest idea. That said, I would be prepared to release a separate 404 monitor module that includes this functionality. Firstly, Jumplinks would be able to tie into this module if it exists. Secondly, I'd be able to add certain security features to it without bloating Jumplinks. Preferably, I'd want to implement this module in such a way that it modifies the .htaccess file in the following way: when browsing the log, a user with the relevant permissions would be able to blacklist a certain URI for a fixed/indefinite period of time. They'd also be able to block an IP (based on the findings in the log) for a certain/indefinite amount of time. When these 'blocks' are defined/modified, they'd be added to the .htaccess file, and the module would periodically check (lazy-cron-like, say twice a day) to see if the file is up to date. An example would look like this: #< BEGIN ModuleName <last-check: <time>> Redirect 410 /wp-admin # always Redirect 410 /etc # <time>-<time> Redirect 410 /etc.php <time>-<time> Require all granted Require not ip xxx.xxx.xxx.xxx # <time>-<time> Require not ip xxx.xxx.xxx.xxy # always #> END ModuleName For me, this is a performance thing - i.e. booting up the whole PW system just to block/limit access is unnecessary. With the above in mind, this may land up becoming an .htaccess security-driven module, similar to those made for WP (the bain of my existence); however, it would only include essentials. (It would more than likely not be called '404Monitor'.) As said, the added benefit would be that the module can provide a 'safe' list of 404s from which Jumplinks can derive it's data. Thoughts?
    1 point
  7. This is nothing that urges. In the past (not a PW site!) I simply logged all 404 to 2 files, one with only the urls. Then, from time to time, I have manually loaded it into my editor which has a function to make all entries (lines) unique (drop all copies). From the resulting lines I created entries for the htaccess like: Redirect gone /admin/ Redirect gone /db/ Redirect gone /dbadmin/ Redirect gone /ecommerce/ Redirect gone /sqlmanager/ Redirect gone /typo3/ Redirect gone /webstats/ Redirect gone /wordpress/ Redirect gone /connector.php Redirect gone /index2.php Redirect gone /wp-login.php This way my 404 log becomes more and more clean and the attackers hopefully gets a feeling like "Damn, to late again!" A 404 monitor module that determine a scan attack optionally can send 410 headers for the next 5 or 10 minutes to the originating IP. No more editing the htaccess for this. I will send you the sqlite wrapper. I have looked at it, but currently it depends on a subclass of mine in regards to filelocking. I will change this to result in a single class before sending.
    1 point
  8. I'm just wondering if I should maybe integrate the monitor with the new 404 logger by kixe. What do you think? Scratch that. Unfortunately, the logger doesn't capture as much information as I'd like to show. An SQLite-base solution will be better. Edit: Perhaps a separate module, included in the package, will be best. Let me think on this.
    1 point
  9. I plan to give this all some serious attention next week. I'll get some updates out soon.
    1 point
  10. I know I am enjoying the recent changes to this module. Thanks for the new edit links.
    1 point
  11. this is a great module snippet - basically allows you to control edit access on a page using any php/api; +1 vote for this to be on Processwire recipes, if it isn't already
    1 point
  12. Just pushed version 1.1.0 to github. It adds options to hide tabs, but also new nice feature where edit area and links are shown on when hovering (fallback to normal links when using touch enabled device).
    1 point
  13. Updated my fork to 1.2.6: https://github.com/rolandtoth/ProcessWire-MarkupSitemapXML/tree/master The readme file is updated with info on the new features: auto generate sitemap on module submit ajax button to generate sitemap comments feature in exclude list
    1 point
  14. This is certainly possible, but should most likely not be done as part of the admin backend, but via modules. There are various point where you can hook into the core functions to inject your validation rules. The most obvious would be Inputfield(Name)::processInput or Pages::save.
    1 point
  15. Issue was fixed by Ryan. $options = $fieldtypes->get('FieldtypeOptions')->getOptions('YOURFIELDNAME'); foreach($options as $option) { echo $option->id; echo $option->value; echo $option->title; } This output all your options (id, value or title). This piece of code doesnt work multilingual. It only outputs the default language. If you have a multilingual site you have to output value and title in the specific language. //get value and title in different languages; if ($user->language->name != 'default') { $title = "title{$user->language}"; $value = "value{$user->language}"; } else { $title = 'title'; $value = 'value'; } $options = $fieldtypes->get('FieldtypeOptions')->getOptions('YOURFIELDNAME'); foreach($options as $option) { echo $option->id; echo $option->$value; echo $option->$title; }; Hope this is useful for others!
    1 point
  16. I am not the best friend of tags which are translated later in html, that is one reason I stay with processwire. Do you remember? {{contao::*}} <TYPO3></TYPO3> <jdoc:include joomla! /> Thats why I don't like hannacode or something similar. Except with images I would like to have option to give customers simple tags to put images in a textfield. Diogos Module seemed to be a good and simple way to put an image in a textarea in PW-Surrounding. Thanks I customized it for my use and want to share it. It works in PW 2.4. Didn't tested it with other Versions. Syntax includes an image-tag in the Textfield by using [[fieldname(optional),number(optional),class(optional)]] if using this module Names of Imagefields shouldn't start with a number If a class (CSS) is added Fieldname and/or Number and/or leading Comma is mandatory Comma is mandatory from two Parameters and up Look at the Examples for easy understanding. Examples [[]] matches the first or only one picture in the first or only one image-field if exists [[images]] matches the first or only one picture in the named image-field [[4]] matches the fourth picture in the first or only one image-field [[3,left]] matches the third picture in the first or only one image-field and adds the class left [[,right]] matches the first or only one picture in the first or only one image-field and adds the class left [[images,3,top]] matches the third picture in the image-field named 'images' and adds the class top I replaced the single curled brackets with double square brackets to keep brackets usable. In contrast to Diogos Module here it's not possible to set more than one image within one tag. (never needed a list of images in a textarea) Adding an optional class was important for me. I am thinking about integration of resizing. FEEL FREE TO USE IT! EDIT: 06/09/15 updated configurable version go here
    1 point
  17. <?php /** * Page edit per user created id * */ class PagesCreatedEdit extends WireData implements Module { /** * getModuleInfo is a module required by all modules to tell ProcessWire about them * * @return array * */ public static function getModuleInfo() { return array( 'title' => 'Pages created edit', 'version' => 1, 'summary' => 'Page edit only for created pages by user', 'href' => '', 'singular' => true, 'autoload' => true, ); } public function init() { // add edit permission hook for admin pages $this->addHookAfter('Page::editable', $this, 'editable'); } public function editable($event){ $page = $event->object; if(!$this->user->hasRole("editor")) return; if($event->return) { // only if edit rights are true if($page->created_users_id == $this->user->id){ $event->return = true; } else { $event->return = false; } } } } THis will get you there, not many different from frontend coding.
    1 point
×
×
  • Create New...