MadMakz™
[Mæd Mæks]
In reply to http://twitter.com/#!/_MaxLe/status/113753591457644545 since it’s to long for Twitter <.<
I’m prepareing to start proper codeing on some of my tools again, mainly speaking of SteamUtility here but not limited to it
So i’ve moved all stuff into a dedicated VM and fit everything for quick access.
Should make codeing alot easier and faster since now it’s all cleaned and placed in categories, optimized for quick access.
Oh and if you’re a webdev, forget about XAMPP it’s dirty and bloaded use EasyPHP for latest or WAMPServer if you need to switch between PHP versions easily!
Original post: http://developer.ctrlplusv.com/2010/04/12/drupal-6-base_path-is-not-base_path/
Over the past 2 days i close to finished the theme conversion for CGX24.
I now started to build some block modules and came across that $base_path does NOT (always ?) point to the home URL.
In my themplate i sticked to call the base url via
By a typo i hoverver used
on one of my modules to get the base URL, but i quickly figured that $base_path points out the full URL to current page.
After i had a closer look on the api docs, i defined $base_path as a global first, and this brought the correct result of $base_path being then the base URL.
However, the best solution in my mind is to always use base_path() if you need to get the base URL to your drupal install.
Today somone stated that he may have problems geting things to work wich is using PHP´s fsockopen function.
I provided him a fsockopen test script i found myself some time ago on the web.
I added a disclaimler and mirrored it on my page since i lost the original link.
You can get the small PHP script here: http://code.madmakz.com/pub/fsockopen/
Inspired upon a request on #sourcemod;
(22:18:32)<Irkalla>Anyone know of a plugin for CS:S that allows you to modify the prices of things?
i took myself a view minutes and google threw out some links, however the following was the only proper so far:
http://forums.steampowered.com/forums/showthread.php?t=637472
Here a Direct-Link Download Mirror by STS: Weapon/Pricing
I post this mainly for myself as reference, but i´m doing it publicy in the mind of maybe somebody else migh search for something like that.
Cheers
MadMakz´s “SC Now Playing Signatures” (http://madmakz.tk)
Based on Ruff Dawg’s ‘Now Playing Sig w/ Background v. 1.2 April 7, 2004
Special thanks to the origionator, DJ Rampage
Demo:

http://squadtag.com/forums/showthread.php?tid=10
The code might be ugly and simple, however for my needs it works.
I did not added a cache function and i probably never will as i don´t need it.
Feel free to extend/change the script like ever you want, but please keep my & Ruff´s credits!
Thanks & Have Fun
Makz
Download: madmakz.com
Code Homepage: http://code.madmakz.com/pub/sc_nps/
