-
Posts
585 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Frank Vèssia
-
error in selector: unknown column in where clause
Frank Vèssia replied to valan's topic in General Support
Any news ? I got the same error today.. -
Thanks guys, even it's not the best practice I'll do it via sql, i'll do just one time for the import, it's a waste of resources creating another field, especially after the import the new articles will use default field for the date.
-
Hello, i'm in the process of migrating and old Drupal website into PW. I'm pretty done but my only problem is the "created" field. I would like to edit this filed during the import to match the old existing date content. It's possible? I've tried with $article->created=$oldDate but i guess this field it's read only. I know i can create another custom field and using this one but could be nice using the default one.
-
Thanks
-
Hello, it's possible to access at response of login throttle module to show messages on custom login form?
-
@wanze, thanks but of course I know that... the problem is not here...before changing hard disk the code worked good...
-
Today i changed the hd on my server, from a sata2 to an SSD. Now I'm experiencing some errors from PW likes: Error Call to a member function size() on a non-object coming from this code: <? $others=$pages->find("template=profile,sort=-created,limit=8"); foreach($others as $p){ if(!$p instanceof NullPage){ $thumb = $p->images->first()->size(104,104)->url; echo "<a href='/{$p->name}/' class='profilemini' rel='nofollow' style='margin:6px'>"; echo "<img src='{$thumb}'rel='tooltip' /></a>"; } } ?> I tried to check the php config but I really don't know why i got this error....the only thing changed is the php version from 5.2 to 5.4... edit: mmm making some test i figure out the problem is here "sort=-created". With this, the result of the query is null for this reason inside the loop i got the error. Some database issue??
-
-
Thanks Nik
-
@WillyC: I didn't understand anything but adding the trackChange now the code works. Thank you so much!!
-
I've already debugged all...any error, all the variables are ok @arjen: according to what Ryan said: "When output formatting is OFF then your images field will always behave as an array. The single-image reference (with setting 1) is primarily for front-end syntactic convenience so that you can do echo $page->image->url rather than $page->image->first()->url. But behind the scenes, it's still always an array. " @wanze: I check the user with if($m->id) ...
-
I'm freaking out with this piece of code, cannot find the problem here, I just want to edit the description of an image. if ($input->urlSegment1!=''){ $action = $input->urlSegment1; $action = explode("-",$action); $userID = (int)$action[1]; $m = $users->get($userID); if($m->id){ $m->of(false); if ($action[0]=='accept'){ $m->imageverify->first()->description = "verified"; $m->addRole("verified"); }elseif ($action[0]=='reject'){ $m->imageverify->first()->description = "rejected"; } $m->save(); $m->of(true); $session->redirect("/backend/",false); } } The description remains as it is, any change....
-
Hello, is there a way to customize the default error messages of the wireUpload ?
-
Ok i found out the solution, using start=0 inside the selector
-
Happy new year to everybody! I have a problem counting pages. I have a page with a list of paginated "messages" (pages). This works pretty good. In top of the website there is always the navbar with other staff, one of those is the "Messages" link with a small count on the side for the not read emails. I count the total messages using this code inside an external file, not in the page template. function getIncomingmessages(){ if (wire('user')->id){ $userid = wire('user')->id; $member = wire('pages')->get("userid=$userid"); if ($member->id){ return $member->find("template=message,messagetype='inbox',read='',limit=2")->getTotal(); } } } This works pretty good until I go to the next page on my messages page, the pageNum affects also this function in some way, so the total messages return null. I thought the getTotal() always return the total.
-
Thanks Ryan, I copied the comment module and modified as my needs, that's the best solution
-
It's possible to add an hook to comments module for adding additional status values ? I need to add 2 status to comments, "system comment" and "quote comment", status=2, status=3.
-
@Soma, I used your code, it works good but I found just an error, it seems the ->setMaxFileSize() doesn't exist...
-
Got it, it's first() not last()
-
it doesn't work
-
Hello, how can I get the latest comment ID after his creation? $commentPage->comment->add($c); if ($commentPage->save('comment')){ // get comment id }
-
Great, thanks
-
It's possible to find comments of different fields and have one mixed result? FieldtypeComments::findComments('commentfield', $selector); Whit this code I can only insert one comment field, i tried with the pipe with no luck, like field1|field2
-
I'm using a nice variation of the infinite scroll http://www.fieg.nl/i...a-jquery-plugin This plugin it's really easy to use, it doesn't requires any particular modification in the code because it uses the pagination links to generate the infinite scroll, in this way also google is happy because I generate my content with pagination as usual and the users have the enhanced version.
- 12 replies
-
- 6
-
- ajax
- infinite scroll
-
(and 2 more)
Tagged with:
-
Thanks, I was looking for the Soma's url