-
Posts
2,318 -
Joined
-
Last visited
-
Days Won
2
Everything posted by pwired
-
Hi I have following code below and this line: return '<ul>'.do_print_categories_list(explode("\n", $cats), $stack=array(0), $arr=array(), $cat_params).'</ul>'; throws following warning: Strict Standards: Only variables should be passed by reference in /function.list_categories.php on line 32 I did my home work with google and found 2 possible causes: 1. You get the report when you are trying to use a reference as an argument to function, without storing it at variable first. 2. In php 5.xx you are not allowed to change the return value of a function. So far my efforts to change the code with these 2 hints are without success but maybe someone with more php expierence can see what needs to be changed. <?php /** * ------------------------------------------------------------- * File: function.list_categories.php * Type: function * Name: list_categories * Purpose: print out the comment form * * @param string after * @param string before * ------------------------------------------------------------- */ function smarty_function_list_categories($params) //, &$smarty) { $cat_params = array( 'ild'=>'<li>','ird'=>"</li>\n", 'old'=>"<ul>\n",'ord'=>"</ul>\n", 'name' => isset($params['name'])? $params['name'] : '', 'selected' => array() ); //list($catId) = each($categories); $cat_params = array_merge($cat_params, $params); // makese 'selected' an arr $cat_params['selected'] = (array)$params['selected']; //echo "<pre>" . print_r(entry_categories_get()) . "</pre>"; if (file_exists(CONTENT_DIR . 'categories.txt')) { $cats = trim(io_load_file(CONTENT_DIR . 'categories.txt')); this line => return '<ul>'.do_print_categories_list(explode("\n", $cats), $stack=array(0), $arr=array(), $cat_params).'</ul>'; } else { global $lang; $content = '<a href="'.BLOG_BASEURL.'">Unfiled</a>'; if (isset($lang['admin']['entry']['publish']['nocategories'])) $content = $lang['admin']['entry']['publish']['nocategories']; return '<ul><li>' . $content .'</li></ul>' ; } //<label><input name="cats[{$catId}]" //{if (bool)array_intersect(array($catId),$categories) } //checked="checked"{/if} type="checkbox" /> {$cat} </label><br /> }
-
Yes I was searching in that direction. Chyrp looks pro and less than 1Mb. Just got an email from somebody who pointed me to here: http://en.wikipedia.org/wiki/User:DavidB64/FlatPress http://wiki.flatpress.org/ I know this was a border line post but needed a quick blog escape. Thanks everybody for the replies and links.
-
Thanks I am contacting my hoster if they allow installing node.js Perhaps someone knows something more easy ?
-
Hi Adrian, sorry I forgot to mention that in this case I am not using processwire, so I am looking for something that I can use in a non processwire website/shop. Also nothing related with wordpress. Something that I can host on the same sever as the shop, or code that makes up a blog that I can integrate in my webshop. By the way the webshop I am working on is abantecart but they don´t have anything for a blog.
-
Hi, Searched for a long time with google but could not find anything. Does anyone know a simple self hosted Blog that I can integrate in a website or webshop ?
-
Did something get lost during ftp upload to your host or when extracting pw package ? Did your host upgrade something inside a fancy cloud ? Can cause things like that. Try local first with wamp and see if same error is there.
-
5-1 Polonaise Hollandaise
-
Ha ha - good one Martijn. Yes I may live in Spain (17 years now) but I will always stay a Dutch guy I always put my bets without doubt on the Netherlands when it comes to football. Talking about it, I am not the only Dutch guy here. Heck there are even lots of dutch bars and restaurants here. I have learned to know lots of dutch people here. We always read dutch newspapers to know what is going on in "Holland" and have long discussions. Spanish locals call us "cabezas de queso" which means "kaaskoppen". In some dutch bars here dutch people now show up with orange wooden shoes which are "klompen" in orange color specially for the Dutch - Spanish football. It is going to be a long orange week-end here
-
http://www.smashingmagazine.com/2008/12/05/20-vector-graphic-editors-reviewed/ Are you the happy owner of after effects ? How much did you pay for it.
-
It's Sunday morning, time to relax and go easy http://www.youtube.com/watch?v=a-YQfkqXg8o
-
- 3
-
-
I have only following Tabs in phpmyadmin: Databases SQL Status Export Import Settings Variables More So there is no Operations Tab (or maybe you mean the SQL Tab) But something tells me I have to open the SQL Tab where I see following: Run SQL query/queries on server Go Do I have to enter here ALTER TABLE `orders` AUTO_INCREMENT = 101; what I found with google ? I´ll wait your answers first before I do anything there. Edit: On the left side inside phpmyadmin I didn´t select first the target database! Now I see new Tabs with also the Tab Operations! Whoa - I did it - both SQL and Operations let you change a table value ALTER TABLE orders AUTO_INCREMENT = 15000; Learned something new about databasing today
-
The shop system I use is AbanteCart. The admin has no option to give the id_order a start number or prefix e.g. 100 so I have to do this in the database directly. With google I found the following: run this on your mysql ALTER TABLE `orders` AUTO_INCREMENT = 101; How do I do this in CPanel under phpmyadmin ?
-
Hi, My question is not directly related with processwire but indirectly yes. I have to change a value in a database of a webshop. I have never done this before. I have looked many times in databases with phpmyadmin on servers but never changed a value in a table. I am sure that for most of you here this is peace a cake so I was hoping someone can tell me how to do it. I have to change the value AUTO_INCREMENT; to the new value AUTO_INCREMENT = 101; If I go in the database to the Table "orders" where I have to be in "order_id" I see this: Name Type Collation Attributes Null Default Extra Action order_id INT(11) No None auto_increment In the column Action there is an edit icon with the word "change", when I click on that a new window opens where I can edit many things but I don´t see the value auto_increment nowhere to edit. What am I missing ? I know this can be done also with tools like heidi sql but I really would like to know how to do this directly in CPanel with phpmyadmin.
-
Google and Apple just know how to social engineer their products and services.
-
VMWare workstation/server http://www.vmware.com/products/workstation/features.html http://www.vmware.com/products/vsphere-hypervisor
-
re-edited my 2 posts about that.
-
the us, overthrowing and destabilizing foreign governments to save their virtual petrodollar, the fed's Debt ceiling money-printing absurdity, monsanto, 911, patriot-act, nsa, anyone ? europe and the navo are only 10 years behind the us and same things will happen here too. the sad thing is that we the people think we are safe behind our computers, playstations, tv's at least in thailand and vietnam people stand up and fight against government enslavement.
-
Edit: when setting up websites for clients, hosting management, redundancy and local laws should be in compliance in the best possible way.
-
Edit: when setting up websites for clients, hosting management, redundancy and local laws should be in compliance in the best possible way.
-
Interesting Defense Advanced Research Projects Agency (DARPA), is going to use oculus rift to train cyber soldiers to hack. http://www.wired.com/2014/05/darpa-is-using-oculus-rift-to-prep-for-cyberwar/
-
Great site but why are the fonts in the left vertical menu looking so ugly and garbled ? Using firefox 28 here on laptop with 15 inch screen at 1024x768 res. Tried something here: #nav-main ul li a { font-weight: normal; removing normal already improves. .navbar .nav.main-menu > li > a { font-size: 14px; body.left-menu #nav-main ul.nav.main-menu li a { padding: 10px; text-align: right; Edit: just arrived at work where I use an Acer aspire all in one 23 inch screen same res 1024x768 fonts look better here.
- 25 replies
-
- responsive
- bootstrap
-
(and 4 more)
Tagged with:
-
Thanks for the replies, I learned a next step into php.
-
Hi, I found this code inside a template of a webshop. what is this php code doing ? <?php }?> There is no echo and no print so what is this } character doing there. I´m sure there is a good reason but my php skills lack to know the right answer.
-
Welcome Argus. PW is going to save you a lot of time and headaches compared to the "others" out there and introduces you automatically into php (p.s. dutch power is growing here )
-
Chat including statistics. This looks good at first sight for an online shop. Haven´t installed it yet so if anyone might know it there is a catch here. https://www.mylivechat.com/default.aspx Edit: just saw that this is not a self hosted chat so probably the statistics are not yours. Better stick to piwik.