-
Posts
597 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Frank Vèssia
-
I'm using the new comments system and I'm trying to figure out how to display votes. Looking into the module I found the options but it seems it's not working <?php echo $page->comments->render(array( 'headline' => '<h4 class="small-title">Comments</h4>', 'commentHeader' => '<a href="/profile/{cite}/">{cite}</a> <span class="timeago text-muted" title="{created}">{created}</span>', 'dateFormat' => 'c', 'encoding' => 'UTF-8', 'admin' => false, 'useVotes' => 1, 'upvoteFormat' => '↑{cnt}', 'downvoteFormat' => '↓{cnt}', )); ?> In comment field options votes are enabled also and both css and js are included...any idea?
-
Any idea? Maybe they are still in development and some functions don't work?
-
Get the date when a pagearray item has been added
Frank Vèssia replied to Frank Vèssia's topic in General Support
wow, this is exactly what I was looking for, amazing thanks for the link -
yes of course...I can display correctly all notifications
-
I tried to use ->slice assuming notifications were WireArray but I get error $notifications = $user->notifications->slice($start,$limit); Catchable fatal error: Argument 1 passed to NotificationArray::__construct() must be an instance of Page, none given,
-
How to get the time (in any format) when a pagearray item has been added or removed? I don't think is possible since the data stored into db are just references of the page with no info about the date, maybe writing a custom FieldTypePage module?
-
Is there a way to limit/sort/paginate the new notifications system? I'm using notifications in front end like so <?php foreach($user->notifications as $no) { } ?> I tried ->slice with no effect...
-
I’m in the process of rebuilding what I started almost 3 years ago, a social network using PW. Since 2012 many things are changed in PW core so I decided now to rewrite everything with different approach. Since I have a tight deadline I need help in developing some modules. Right now I need: Media uploader module, a front end image/video uploader and editing interface with these features: - Multiple upload via input file and drag and drop interface - Support for mobile devices (access to phone/tablet media library) - Option to store files into PW assets or external disk like Amazon S3 - Resize and watermark on the fly before save the final image - For Video, send file to encoding.com and manage all the workflow - General validation, both server and user side (jquery) Inside the social, a media content (image or video) is a PW page and not a direct file, with a series of specific fields. Therefore an image is a page with some fields, the most relevants are: - title - description - image, the file field composed of two files, the image and a copy of it, with mosaic effect, for guest users there are other fields not relevant for the module… The workflow is like so: Picture: - the user uploads one or more pictures - the interface shows the progress - the files are temporary uploaded in a secure directory - a page is created, each per picture, with a temporary name - the files, resized and watermarked are saved into the respective pages or into amazon s3 bucket (maybe can be a parameter the admin can choose inside the module option) - temp files are deleted - photo pages are saved with unpublished status because each photo needs at least a title. - the user is redirect to the “edit photos” page where he can sees the list of unpublished photos which need at least the title to be published. - the user can click a thumbnail and go into a page with a simple form, with a photo preview and some fields he can fill, only the title is mandatory for publication. - the other fields are saved normally into the picture page. In case files are uploaded into amazon there should be the possibility to access to the files, later inside any templates, with similar pw api and resize functions, (p$age->image->size / $page->image->url) creating the versions into pw assets and leave the original big image into amazon. Video: same as the picture with the only difference the video file is not saved into the PW assets directory but into amazon s3 bucket, not optional. only the thumbnails are saved into the pw assets. The encoding of the video (save in two different formats, for desktop and mobile, watermark and thumbnails creation) is processed by encoding.com via api and cUrl functions After files upload the user is redirect into the “edit video” page where he can sees a default thumbnail for each video is in the encoding process with a label (encoding in process). When the encoding is finished, encoding.com send a callback to a specific url, the module saves the thumbnails into the video page, links the amazon s3 video and the user can now publish the video adding at least the title into a form similar to the one for the photos. I also have a licence for http://fineuploader.com/ i think is very good for this and I already used it for the previous version, he supports upload into amazon buckets as well. I think this is pretty much everything, maybe something can be different and I’m open to suggestion for the workflow of course My budget for this module is 400 eur. If someone is interested please contact me via forum or via email at complementaryart [at] gmail.com Thanks
-
I don't know where to post this... Maybe I found a "bug" using this selector $pages->find("template=picture,image.count=2,limit=10,parent=[pagefield1.pagefield2=xxx]"); What happend here is it I call this selector from an url segment like /photos/new-users/ where "new-users" is the segment. If I'm logged in with admin role I can see the result, otherwise (other role or guest) not. I already checked all my roles and they are ok with permissions, and removing the subselector get me the result for every role or guest. It's something related with this subselector and roles I guess...any idea? I'm using latest dev 2.5.14 pagefield1 is a pagefiled connected with user template. pagefield2 is normal pagefiled. Edit: removing the urlSegment1 doesn't affect the result, so it's roles/subselector
-
MarkupSEO - The all-in-one SEO solution for ProcessWire.
Frank Vèssia replied to Nico Knoll's topic in Modules/Plugins
Nico, I'm using your module in many sites, it's great...but just one think, what about pagination? I would like to add something like {pageNum} or similar into title format like {title} - {sitename} - {pageNum} Other idea: what about having a title format based on template? I have a photo website and and I would like to create custom title for each photo, I cannot edit each photo one by one, right now I detect the template in my head.inc and for those pages I add a custom title but could be nice having something inside your module example: I have "picture" template and I would like the title as: {phototitle} - This is a Photo by {author} for category {category.title} where phototitle & author & (category is a pagefield so I can access other data like title) are fields of picture template -
after years working on PW it's always a bit difficult get in mind all the new stuff inside new versions, but it's a pleasure of course
-
wow, i didn't know about this...thanks
-
Hi, I need to select pages with a specific selector, going back to parent and find values inside two pagefields. I can obtain pages with first pagefield like $pages->find("parent.pagefield.name=value"); but I need to go deeper with $pages->find("parent.pagefield.pagefield.id=value"); Any idea how to get this? -------------------------------------------- Solved in this easy way: $var = $pages->find("pagefield=value"); $pages->find("parent.pagefield=$var"); That's why I love PW
-
@joer80 I think the purpose of this module is exactly to avoid certain users to access to the standard PW admin, it's not an issue.
-
As i wrote before the only error i get is: Uncaught ReferenceError: initPageEditForm is not defined. Anyway right now I solved installing the AdminThemeReno, therefore It was something related with the admin/modules cache which I was not able to delete in any usual way...strange thing, reactivating the default theme i get again the issue...
-
Thanks guys
-
I'm wondering what's the best practice (in terms of performances) for obtaining total values. For example in my site I show to my users some stats based on their activities, like uploaded photos, total friends etc...I usually get this totals using a simple $pages->find("...limit=2")->getTotal() Could be more effective instead having a specific field just for the total, increasing its value on each action ? Of course with this solution I have to update this value on each user action...so I don't know if it's worth it...
-
@renobird, awesome....I just used your hook directly in my module...so it's working fine. Thanks
-
It's for the admins (superuser), other users access only in the front end. I just want a different page after login, in this dashboard I have a lot of stats about the site so it's cool the have these info right after login, having the page tree every time is not the best.
-
Is there a way to have different "home page" after login into the PW admin? I'm creating a module with a dashboard and I would like to go directly there after I login into PW and not into /page
-
I'm sorry guys but it's not a question of cache...and I certainly didn't open a thread for asking how to refresh a page or empty the system cache
-
I tried with the dev, same story.
-
ah ok, so yes, i tried hard reload...
-
2.5.3. A couple of autoload modules. hard reload? I don't know this procedure
-
Hi, I have a problem with the admin interface, at certain point the wiretabs stopped working, if I click on any tab I get nothing, so I can't open collapsed tabs. I tried to remove all installed modules, remove any custom css and jquery from the site, also export the entire site profile and import with a fresh install, but nothing... I attached a picture for better understanding, you can see the down arrow icon is also attached to the label... in some pages i get this jquery error: Uncaught ReferenceError: initPageEditForm is not defined. any suggestion?