samedi 14 novembre 2009

A new drupal website !

I will be busy "twisting" this new website www.atull.tg so watch outtttt !!!
http://golchi.blogspot.com/2009/11/we-did-it-site-datull.html

A static (maybe html) website based on Drupal ?

I am experimenting a trcick. Why shall I use drupal for a website of 5 static pages ?
Why shall write all the necessary code (old time's way of creating a website ?) ?
Why not to combine both technics ?

What I tried is
1- to create the web site using drupal will all modules needed.
2- then I save all the pages from the browser (File > Save As).
3- change links to pages in all files (use of php in other to "include" pages)

The main advantage is a very light website.
But will that be fine enough ? (because I need now to find a "cool" way for the updated versions of the pages)

To be continued ...

mardi 1 septembre 2009

A new patch for Jammer

Hi,
I was for many drupal projects, looking for a way to hide "optionnally" some blocks on the node add/edit form. And last week just before starting to code (because I can not go around the need anymore :-)) I found a cool module: Jammer http://drupal.org/project/jammer.

It is doing what I exactely wanted except giving me the list of blocks I want. But because the code was cool I easily added the missing feature. Find the patch here http://drupal.org/node/565224

The next step I am thinking of is to allow the user/admin to give directly the form element_id instead of giving a fixed list of elements that can be removed...

dimanche 24 mai 2009

Gmail tips - How to win the battle against your 1000 mails in your inbox?

I personnaly don't like having my inbox full; I feel tension coming, too much things to do, I may miss important mail (from you for example :-)). So I have been trying many "technics" and now I am always the winner.

So this is the recipe:

Tip1 : Don't let the enemy impress you, use Filters
While creat ing filters you can choose some actions (Archive, Assign a label, Delete, etc.). So for example for some of your newletters, you can decide to archive them and add the label "LI_Newsletter" (less inportant newsletter).

Tip2: Point all you enemies use Labels (each one of them has specific attack strategy)
Adding Labels (tags) to mails helps first to categorize them. A mail can have as many as label/tag as you want so you can abuse. It also makes life easy when you need to do some actions on a type of mails (see mails from your boss for example :)).

Tip3: Don't let the enemy use the "surprise attack technic" Mark as read
If you know what the type of a mail you don't obvioulsy need to read it (at least now). Thus by marking a mail "read" it saves you a lot of time.

Tip4: Remove dead enemies from the battle field Archive
DO remember that the main goal is to have our inbox as empty as possible. So if we don't need to keep useless mails in the inbox. By useless mail I meant mails we won't read soon, we will no more check, mails that can be delete, etc.

Once you won many battles we can go to the next stage that is "Party time" because we have now an empty inbox ;).

mercredi 22 avril 2009

Drupal: Integrate Feedly shared links

I am pretty sure you have heared about Feedly (http://feedly.com/), a firefox plugin, a feed reader integrated with Google Reader (all your feeds can be read in feedly and what you share in feedly is accessible in Google Reader) .

Now my dilemma was to get "feedly shared links in my drupal instance". ?????????


I first as usual went to the headquarter (drupal.org :)) but nobody seemed interested by feedly right now. Then I changed my search; if I can get the Google Reader feeds that are shared then all shared links from feedly will be in the list (I can't imagine a better day ;-)).

So I went back to the HQ and I found 2 modules (don't ask me how :))
  • Activitystream: http://drupal.org/project/activitystream (thanks to akalsey )
  • Activitystream_greadershared: http://drupal.org/node/293402#comment-966480 (thanks to eojthebrave)
The first module is an API for "streams" created in other platforms (delicious, facebook, etc.)
The second, that is a patch/module, gets shared feeds from Google Reader.

How to use them ...

1- Download and install (enable) both modules
2- Get your Google Reader user Id ( in your google reader, click on the “Shared items” and then “Show details”). The user id is displayed in this format Feed URL: http://www.google.co.in/reader/public/atom/user/USER_ID/state/com.google/broadcast
3- Go to "My account" in your drupal instance
4- Paste your Google reader user Id in the “User ID Number: “ field

And you can start going home ;-)

mercredi 15 avril 2009

A new drupal module: userdashboard

I am working this last days on a new drupal module "userdashboard". You will probably say "another module?", "what is so cool about it?", etc. And you may be right but I need to tell first why this new module needs to be checked.

- The dashboard feature ...
Having my page, with my 'content containers' that I can arrenge as I want is something we all look for when we visit a portal/web site.

- The key here is the fact of using 'blocks'...
A block can have all type of information and in case a module is not providing a block that by default the 'views' module is there to help to display the content generated.

So the idea is that if I can display blocks , I can display everything I want (at least what the site admin want me to :), he is the boss).

Thus the module is allowing the admin to select 'allowed' blocks, that the user can 'manage' and then be able to view them on his dashboard.

There are things (especially the UI) I need to improve but I think this can ROCK...

Now why don't you take a look at it http://202.53.13.107:9007/ and tell me why I should stop/continue dreaming about it ? :)