Jump to content

Manaus

Members
  • Posts

    212
  • Joined

  • Last visited

Everything posted by Manaus

  1. Nostalgica: "Ho bisogno di un anno sabaudo"

  2. Hi, I'm using this code to get the only file of a page. I uploaded the file using the admin pages. <? if ($page->name == "myproject3"): $myfile = "somefile.pdf"; $myfile = $page->documents->get('name='.$myfile); echo $myfile->url; But I get nothing, not even null... Thanks for any suggestion
  3. RT @mynameischrisd: .@sainsburys not sure this is supposed to be in your window... http://t.co/Zk9GCliIWO

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

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

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

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

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

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

  11. 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
  12. @Soma yes, of(true) was the problem Thanks everybody
  13. 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
  14. RT @fostertype: Why do typefaces cost money? Go try to make one and find out.

  15. 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!
  16. 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!
  17. 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
  18. Miglior acquisto del mese, +4gb di ram

×
×
  • Create New...