22.4.08

Joomla 1.0 :: Hack : styling individiual menu items

Yet again, a Joomla 1.0 Hack:

In file : joomlainstallation/modules/mod_mainmenu.php:

at around line 132, I added these:

$menu_class_add = preg_replace("/[^A-Za-z0-9]+/", "_", strtolower($mitem->name));
$txt = '<a href="'. $mitem->link .'" class="'. $menuclass . "-" . $menu_class_add .'" '. $id .'>'. $mitem->name .'</a>';

This will make your menu items' class be specific to what they contain. For example, your link's display reads: Link To Some Content. what will happen is that the class would read : somclass-link_to_some_content. From thereon, it is easier to specifically target this link as if it has an ID. It is up to you now if you have to modify your css.

Or you could add the $menu_class_add as an ID for the anchor, which, I haven't tried yet.


Joomla 1.0 :: Conditional mosMainBody()

After some research, I have found a way to "properly" call mosMainBody() in Joomla! 1.0.

In this code:

<?php if(!eregi( "no items", $GLOBALS['_MOS_OPTION']['buffer'] )) {mosMainBody();}?>


I am checking if "no items" occurs in the $GLOBALS['_MOS_OPTION']['buffer'] variable where the main body resides. If you check the function declaration for mosMainBody in $joomlainstallation/includes/frontend.php file, you can see that this function echoes the variable above. I could hack this one (yet again) to test before display. But I need a fast way of doing things. This may not be the cleanest way to do it, but hey, it works for me.

!!! I modified the code to reflect other languages as well.... This is the new code:

<?php if(!eregi( _EMPTY_BLOG, $GLOBALS['_MOS_OPTION']['buffer'] ) AND !mb_eregi( _EMPTY_BLOG, $GLOBALS['_MOS_OPTION']['buffer'] ) ) {mosMainBody();}?>

2.4.08

Got new email addresses!

Just got 2 new email addresses.

renz_salmingobreakaway at atheistabreakaway dot netbreakaway - email address says it all. Don't have to expound about it, well not yet at least, except that you have to take out some parts to be able to send email to that address. If you really are a person, then recognizing the pattern would not be that too difficult for you (winking smiley here).

renzsalmingo2008takeaway at gmailtakeaway dot comtakeaway - now why would I want a second gmail account? the first one I created was too formal, too "me" -ish. I guess this one would be not. I still open the old ones that I have though.

Anyway, have to continue working now. It's already wayyyy past your bedtime. Go get some sleep.

Gallery Joomla Component....

I am now creating yet another gallery component for joomla.

Unlike most galleries, this one will have built in scoring system where you can schedule when the voting will begin and then keep track of the votes. I did not use Joomla!'s internal poll system since it has some limitations that I cannot breach (as of now).

I hope to be done by Friday this week so I can upload a copy here.

29.8.07

Milestone...

MEMORY LEAK

I can't believe that I am now married to the most understanding, most caring and most loving woman in the planet. I really am very happy to be with her, and now committing my life to her. I love you be.

Now that I am married, there are a lot of things that I want to change in my life. First would be my attitude towards work. I will be more diligent, more hardworking than ever before. I will be refraining from overuse of tobacco (one stick per day na lang). And the best of all, I will be more patient, more kind and more loving to her. Of all the rest, the latter will be the one thing I would work on as I had promised her when we took our vows last August 28.

I chills me to the bone that now and till I die, there would be one person that will be with me and that is my be - Salvacion Torres.

She is now here with me, and wherever I go, she wants to be there every minute, every hour of my life. WOW!

Maybe I will post her pic here after I finished all the software that I am working on right now.

Good day blog! its 00:08 on my computer's watch.

I am really tired but I cannot sleep until this two modules are through. So, I hope with a cup of coffee and some inspiration, I will finish this two modules today. Ahhhhhh..... then I can go to sleep






Signing out - but just this once...

22.7.07

Driver Making

Memory Leak

I was finally able to configure (correctly) the rt73 usb device on a 2.4 kernel running on an athlon64 machine in 64bit mode.

I will now try to install a 32 bit operating system and try to perform the same act.

RANTS
No rants. Just RELAX....

Check out the other blog though....

14.7.07

Mozilla Firefox Extensions

I am currently working on a mozilla - iax - xmpp combination to work as a front-end for a BPO.

I managed to get the libraries from the following sites

for the mozilla-iax : http://moziax.mozdev.org
and for the xmpp: dev.hyperstruct.net/xmpp4moz

I think I have to rework everything on the front-end using base materials because I have not succeeded in combining the two entities.

Will give update tomorrow.


may the source be with you

10.7.07

Hectic Hectic Hectic Days

Hectic may not be enough to describe the amount of work I am logged to do compared to the amount of time that I have.

MEMORY LEAK

There's a lot of things to do, and yet so little time to do them. Darn these tight schedules. Yes, they could be sometimes a pain, but think in the positive side, at least it keeps you alive. At the very least, it gives you reason not to be thinking of killing yourself for the next 24 hours. Seriously though, the amount of work we do most of the times tells us also the amount of time that we spent doing practically nothing.

I just got a copy of Charles Darwin's Origin of the Species. It was a birthday gift from my soon-to-be wife. I really appreciate the book, every piece of it.

What do you know, it's my birthday today! Happy Birthday to me. Thanks to all who greeted me.

Tomorrow, will blog about the problem I'm having connecting jabber(xmpp4moz) / moziax / top dialer

Hopefully, I will be able to resolve the issue early in the morning. Still have to configure vvvvvvvvv in the afternoon.

***'s **** module still need fixing and I am up to my neck with that module...

Still, programming is the way for me. System Administration is not yet my cup of tea. I still want to be able to see something sometimes.

UPTIME

No rants....

/sbin/shutdown -r now