Jump to content

Manaus

Members
  • Posts

    209
  • Joined

  • Last visited

Everything posted by Manaus

  1. RT @mynameischrisd: .@sainsburys not sure this is supposed to be in your window... http://t.co/Zk9GCliIWO

  2. RT @MailUp: Quanto rende 1€/$ investito in Email Marketing? Scoprilo qui: http://t.co/9QxhfY9b5Q http://t.co/bUq0J5vubg

  3. RT @drmonkeyninja: RT @ElSatanico: Something to bear in mind when you use a grandiose title on LinkedIn.... http://t.co/bhUbT3c8IZ

  4. Ten years of Textpattern! #Happy10Txp 10 years it's being a better Cms world!

  5. Very interesting articles ChiefPundit, I feel some RSS might be beneficial to the overall project.
  6. RT @_nilswerner: Hah, all you Angular JS guys are actually doing what XSLT has been doing for years!

  7. RT @jonathangmeyer: Look at the definition of "necklace" in this Hello Kitty children's book: http://t.co/6Owkj9WyjZ

  8. RT @ZuckerbergCEO: - Qual è la password Wi-Fi? - Abbi rispetto siamo al funerale di tuo nonno. - Tutto attaccato?

  9. Hello, I have a function trying to print the current user name, but I can't manage to get something. This is my code: function dothing($thepage) { echo $thepage->title; if ($user->isSuperuser()) { // do different } } Tried also function dothing($thepage) { if ($wire->user->isSuperuser()) { // dodo } } But no avail Thanks for any suggestion
  10. @Soma yes, of(true) was the problem Thanks everybody
  11. Hello, I have some troubles on adding an uploaded file to a page, here is the code: <? $theReply = new Page(); $theReply->parent = $theparentPage; $theReply->template = $templates->get("mytemplate"); $theReply->of(false); $theReply->name = $sanitizer->name(first_n_words($input->post->reply, 5)); $theReply->save(); $theReply->of(true); if ($_FILES['attachment']['size'] > 0) { $upload_path = $config->paths->assets . "files/attachments/"; $doc_Upload = new WireUpload('attachment'); $doc_Upload->setMaxFiles(1); $doc_Upload->setOverwrite(false); $doc_Upload->setDestinationPath($upload_path); $doc_Upload->setValidExtensions($allowedExtensions); $doc_Uploaded = $doc_Upload->execute(); foreach ($doc_Uploaded as $du) { $pathname = $upload_path . $du; $theReply->documents->add($pathname); // <===== Call to a member function add() on a non-object unlink($pathname); } $theReply->save(); [...] } $theReply exists, $doc_Uploaded exists, still I get the error in the comment Any help would be greatly appreciated Thanks
  12. RT @fostertype: Why do typefaces cost money? Go try to make one and find out.

  13. Ciao 3fingers, well thats the usual compromise between getting less money or getting no money. An external source could prove that my estimate was not self-serving but objective. I'm going to make the video of the public and admin side Grazie!
  14. Hello, I'm making a website (it's now almost complete), and the client is giving an estimate of the job done which is quite inferior to my request. I told him I might seek help from an independent developer to make an estimate, can any one help me? The assessment should be made considering the context Italian/European market. Thanks!
  15. Hi, what I really find myself missing often is the ability to switch from page editing to template editing in a single link. is there any admin tweak module allowing this? Thanks
  16. Miglior acquisto del mese, +4gb di ram

  17. Thanks Macrura, I only wish it was so easy... The script is in a code I include in many pages, so it's highly dynamic I tried $page->rootParent->child, but I get the first element of the array, which is always blue.
  18. Hello, I have a site hyerarchy like this: /projects/blue/ /projects/blue/posts/ /projects/blue/posts/comments/ How can I get always 'blue', wherever I am? Mind that I have many colors... Thanks!
  19. Ok got it, foreach page { if it has children print children } and so on...
×
×
  • Create New...