Jump to content

sevfurneaux

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by sevfurneaux

  1. Hi Mindplay, I attempted to use your script however am having issues. I dropped it into the root folder but it seems to break the site (site is then blank). Here is what warnings I get when I first run it: Warnings class-name "WireArray" is inconsistent with file-name "wire/core/Array.php" class-name "Breadcrumb" is inconsistent with file-name "wire/core/Breadcrumbs.php" File "wire/core/Breadcrumbs.php" contains 2 type-declarations class-name "WireData" is inconsistent with file-name "wire/core/Data.php" class-name "WireDatabaseException" is inconsistent with file-name "wire/core/Database.php" File "wire/core/Database.php" contains 2 type-declarations class-name "WireException" is inconsistent with file-name "wire/core/Exceptions.php" class-name "WirePermissionException" is inconsistent with file-name "wire/core/Exceptions.php" class-name "Wire404Exception" is inconsistent with file-name "wire/core/Exceptions.php" File "wire/core/Exceptions.php" contains 3 type-declarations class-name "FieldgroupsArray" is inconsistent with file-name "wire/core/Fieldgroups.php" File "wire/core/Fieldgroups.php" contains 2 type-declarations class-name "FieldsArray" is inconsistent with file-name "wire/core/Fields.php" File "wire/core/Fields.php" contains 2 type-declarations class-name "WireInputData" is inconsistent with file-name "wire/core/Input.php" class-name "WireInput" is inconsistent with file-name "wire/core/Input.php" File "wire/core/Input.php" contains 2 type-declarations class-name "InputfieldHasArrayValue" is inconsistent with file-name "wire/core/Inputfield.php" File "wire/core/Inputfield.php" contains 2 type-declarations class-name "InputfieldsArray" is inconsistent with file-name "wire/core/InputfieldWrapper.php" File "wire/core/InputfieldWrapper.php" contains 2 type-declarations class-name "Saveable" is inconsistent with file-name "wire/core/Interfaces.php" class-name "HasRoles" is inconsistent with file-name "wire/core/Interfaces.php" class-name "HasLookupItems" is inconsistent with file-name "wire/core/Interfaces.php" class-name "TrackChanges" is inconsistent with file-name "wire/core/Interfaces.php" class-name "FieldtypePageTitleCompatible" is inconsistent with file-name "wire/core/Interfaces.php" File "wire/core/Interfaces.php" contains 5 type-declarations class-name "ConfigurableModule" is inconsistent with file-name "wire/core/Module.php" File "wire/core/Module.php" contains 2 type-declarations class-name "Notice" is inconsistent with file-name "wire/core/Notices.php" class-name "NoticeMessage" is inconsistent with file-name "wire/core/Notices.php" class-name "NoticeError" is inconsistent with file-name "wire/core/Notices.php" File "wire/core/Notices.php" contains 4 type-declarations class-name "NullPage" is inconsistent with file-name "wire/core/Page.php" File "wire/core/Page.php" contains 2 type-declarations class-name "ProcessController404Exception" is inconsistent with file-name "wire/core/ProcessController.php" class-name "ProcessControllerPermissionException" is inconsistent with file-name "wire/core/ProcessController.php" File "wire/core/ProcessController.php" contains 3 type-declarations class-name "WireSaveableItems" is inconsistent with file-name "wire/core/SaveableItems.php" class-name "WireSaveableItemsLookup" is inconsistent with file-name "wire/core/SaveableItemsLookup.php" class-name "SelectorEqual" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorNotEqual" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorGreaterThan" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorLessThan" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorGreaterThanEqual" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorLessThanEqual" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorContains" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorContainsLike" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorContainsWords" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorStarts" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorEnds" is inconsistent with file-name "wire/core/Selector.php" class-name "SelectorBitwiseAnd" is inconsistent with file-name "wire/core/Selector.php" File "wire/core/Selector.php" contains 13 type-declarations class-name "TemplatesArray" is inconsistent with file-name "wire/core/Templates.php" File "wire/core/Templates.php" contains 2 type-declarations class-name "WireUpload" is inconsistent with file-name "wire/core/Upload.php" class-name "CommentFormInterface" is inconsistent with file-name "wire/modules/Fieldtype/FieldtypeComments/CommentForm.php" File "wire/modules/Fieldtype/FieldtypeComments/CommentForm.php" contains 2 type-declarations class-name "CommentListInterface" is inconsistent with file-name "wire/modules/Fieldtype/FieldtypeComments/CommentList.php" File "wire/modules/Fieldtype/FieldtypeComments/CommentList.php" contains 2 type-declarations class-name "PagerNavItem" is inconsistent with file-name "wire/modules/Markup/MarkupPagerNav/PagerNav.php" File "wire/modules/Markup/MarkupPagerNav/PagerNav.php" contains 2 type-declarations Be great if I could get this working. Thanks
  2. Hi all, I'm currently working on a 'Blog' section. Each article can be tagged and also shows the 'Author' of the post. The tags are currently working with URL segments (almost identical to Ryan's post http://processwire.com/talk/index.php/topic,87.0.html). And the tagging code looks like this: if($tag = $sanitizer->selectorValue($input->urlSegment1)) { $matches = $pages->find("tags*=$tag"); echo $matches->render(); // or loop through and print on your own } Can the same be done for the 'Author' link? So if I created a author template that had URL segments, when Author link was clicked it would filter by createdUser. I assume it would have to use $pages->find to find the createdUser somehow? Cheers, Sev
  3. Hey all, Is it possible to show the 'Author' of who created a particular page? For example, when creating a Blog article it would show the user who created this page (or most recently edited it) on the frontend. I've assumed it could work like this, but obviously the below code only shows the user who is currently logged in: foreach($children as $child) { echo "<h2><a href='{$child->url}'>{$child->title}</a></h2>"; echo "<p>{$child->summary}</p>"; echo "<p>Author {$user->name}</p>"; } Cheers, Sev
  4. Works perfectly – Thanks Soma!
  5. Hi there, I'm relatively new to Processwire (and PHP!) and have the following question: I'm currently looping through the images field as shown below: foreach($page->images as $image) { $large = $image->size(1200, 795); echo "{$large->url},"; } You'll notice that there is a comma after the {$image->url}. I would like to be able to check in the loop if it is the last image and if so, the comma is not shown. Would appreciate the help! Cheers, Sev
×
×
  • Create New...