mediatribe.net - Drupal http://mediatribe.net/en/taxonomy/term/1/0 en A hosting platform -- the end of an experiment http://mediatribe.net/en/node/29 <p>Last year we launched a beta version of Qumbia, a platform for creating Drupal sites easily. Today we are definitely shutting it down. I'll attempt to explain how it worked, why we're shutting it down, and what will replace it.</p> <p>Here's how it worked:</p> <ul> <li>one "master" site, with all the basic functionalities you'd want in a basic website (wysiwyg editing, captcha, blog, events, store etc.) was kept up to date. </li> </ul><p><a href="http://mediatribe.net/en/node/29" target="_blank">read more</a></p> http://mediatribe.net/en/node/29#comments Aegir Drupal Wed, 29 Sep 2010 14:22:06 +0000 Albert 29 at http://mediatribe.net Displaying the total number of rows in a view http://mediatribe.net/en/node/27 <p>Put a pager, make sure your items to display is not set to unlimited, and put this in your header or footer:<br /> <div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> $view </span><span style="color: #007700">= </span><span style="color: #0000BB">views_get_current_view</span><span style="color: #007700">();<br />print </span><span style="color: #0000BB">$view</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">total_rows </span><span style="color: #007700">. </span><span style="color: #DD0000">' ' </span><span style="color: #007700">. </span><span style="color: #0000BB">t</span><span style="color: #007700">(</span><span style="color: #DD0000">'items in this category'</span><span style="color: #007700">); <br /></span><span style="color: #0000BB">?&gt;</span></span></code></div></p> http://mediatribe.net/en/node/27#comments Drupal Sat, 26 Jun 2010 22:29:28 +0000 Albert 27 at http://mediatribe.net Adding content (text and images) to a Drupal site via email http://mediatribe.net/en/node/25 <p>In my experience, there are several users who don't feel comfortable using the standard Drupal interface to create content on their website. I've noticed that this is the case with reforestation.net, I site I manage: even though I provide users with accounts and training, almost all users end up sending me their content (including images and text) via email, and I have to upload it myself to the Drupal site. The main reasons cited for not posting content to Drupal are: it's too complicated, connection too slow (especially in Africa and the Caribbean); and it does not work as expected.</p> <p><a href="http://mediatribe.net/en/node/25" target="_blank">read more</a></p> http://mediatribe.net/en/node/25#comments Drupal Thu, 10 Jun 2010 19:17:50 +0000 Albert 25 at http://mediatribe.net Creating actions for use with views bulk operations http://mediatribe.net/en/node/24 <p>You can combine <a href="http://drupal.org/project/views_bulk_operations">Views bulk operations</a> with your own code to make powerful actions which can be applied to several nodes at the time.</p> <p>Here is some sample code to create an action:</p> <p><code><br /> /* describe your action(s) */<br /> function mymodule_action_info() {<br /> return array(<br /> 'mymodule_action_callback' =&gt; array(<br /> 'type' =&gt; 'node',<br /> 'description' =&gt; t('My action description.'),<br /> 'configurable' =&gt; FALSE,<br /> )<br /> );<br /> }</code></p> <p>function mymodule_action_callback(&amp;$node, $context) {</p> <p><a href="http://mediatribe.net/en/node/24" target="_blank">read more</a></p> http://mediatribe.net/en/node/24#comments Drupal Wed, 05 May 2010 15:48:43 +0000 Albert 24 at http://mediatribe.net Displaying a block with a field from the current node using Views 2 and Drupal 6 http://mediatribe.net/en/node/21 <p>I have a CCK field with an image on my page nodes. I want to display a block with the CCK field value on its related node, but nothing on non-pages.</p> <p>This often works in the views preview, but not on the actual page. This was driving me nuts and I spent a few hours finding this solution:</p> <p>Create view with</p> <ul> <li>Filter: node nid &gt; 0</li> <li>Argument: node nid, Action to take if argument is not present: Provide default argument: node nid from URL; validator: basic. Action to take if does not validate: Hide view</li> <li>Create a new block display and you're done!</li> </ul> http://mediatribe.net/en/node/21#comments Drupal Views Mon, 08 Mar 2010 19:45:49 +0000 Albert 21 at http://mediatribe.net Setting up wysiwyg with image upload on Drupal http://mediatribe.net/en/node/19 <p>Update May 3, 2010 -- Please see <a href="http://mediatribe.net/en/node/19#comment-249">the first comment, below</a>. Some of the hacks in this article are outdated. Please proceed carefully and report your results here! </p> <p><a href="http://mediatribe.net/en/node/19" target="_blank">read more</a></p> http://mediatribe.net/en/node/19#comments Drupal Thu, 04 Mar 2010 02:44:40 +0000 Albert 19 at http://mediatribe.net Using diff and patch for directories, and managing patches during Drupal upgrades. http://mediatribe.net/en/node/13 <p>Background: I was recently making a Drupal site where I needed (as is often the case) a visual text editor along with image- and file-upload capabilities. I tried using the <a href="http://drupal.org/project/wysiwyg">wysiwyg</a> module in conjunction <a href="http://ckeditor.com/download">FCKEditor 2.6.x</a>, which is a good combination for that purpose.</p> <p>Since this does not work out of the box, I followed the instructions <a href="http://drupal.org/node/371459#comment-2090156">here</a>.</p> <p><a href="http://mediatribe.net/en/node/13" target="_blank">read more</a></p> http://mediatribe.net/en/node/13#comments Drupal Sun, 01 Nov 2009 19:18:58 +0000 Albert 13 at http://mediatribe.net Setting up Cron with Drupal 6 and cPanel http://mediatribe.net/en/node/12 <p>If you have a drupal site on a cPanel account, you can set up cron in cPanel. Here is how:</p> <p>(1) Your site is, say, example.com<br /> (2) Log into cPanel (example.com/cpanel)<br /> (3) Go to cron jobs &gt; standard<br /> (4) Enter the following code in your cron: </p> <p><div class="codeblock"><code>/usr/bin/lynx -source http://example.com/cron.php</code></div></p> <p>(replace example.com with your actual website)</p> <p><a href="http://mediatribe.net/en/node/12" target="_blank">read more</a></p> http://mediatribe.net/en/node/12#comments cPanel Drupal procedures Thu, 22 Oct 2009 00:12:54 +0000 Albert 12 at http://mediatribe.net Language Switcher Block: Not displaying the active language in Drupal 6 http://mediatribe.net/en/node/1 <p>Most of our clients have bilingual (French and English) websites. The Language Switcher Block is a great way to switch between languages, but we often don't want to display the active language. For example, on a French-language page, we want to have a link to English (not French and English).</p> <p>Our solution is to add the following css either to your theme, or, if you are using a contrib or core theme, to <a href="http://drupal.org/project/css_injector">css injector</a>. (Messing with a core or contrib theme will cause your changes to be lost during upgrades):</p> <p><code></code></p> <p><a href="http://mediatribe.net/en/node/1" target="_blank">read more</a></p> http://mediatribe.net/en/node/1#comments Drupal Multilingual Thu, 15 Oct 2009 18:30:44 +0000 Albert 1 at http://mediatribe.net