|
Written by Alex (nedge2k)
|
|
Friday, 06 February 2009 20:44 |
|
I figured out how to do this a while back when I was developing our work's website but seeing as it doesn't seem to be common knowledge - just had an email about it from a fellow developer - I thought I should share it before I forget again :P Anyway, the process is simple, if you look a the source for the Virtuemart advanced search module, you'll see it passes $_POST['keyword1']. Luckily, the shop.browse page can also accept a value for this via $_GET. So if you want to create you're own search module which would allow the search results to be shared or just want a couple of static search links, format the URL as follows: http://yourdomain.tld/shop?page=shop.browse&keyword1=your+search+term Simple :) |
|
Written by Alex (nedge2k)
|
|
Wednesday, 21 January 2009 20:28 |
Use of Cab-O-Matic is simple: - Zip up the files you want cabbed (including optional .reg file)
- Upload the .zip
- Click a few boxes
- Download your .cab!
If you want your .cab to include registry settings, include a .reg file in the .zip. The format for the entries is as follows: HIVEROOT\PATH\TO\YOUR,KEY,DATATYPE,VALUE; For example: HKCR\Test\Test1,Test,STRING,test; HKCU\Test\Test2,Test,DWORD,1; HKLM\Test\Test3,Test,MSTRING,this is a test; HKU\Test\Test4,Test,BINARY,00101110101; You can now also use BINARY and MSTRING (multi-string) datatypes. Support for program menu shortcuts is now also available for .exe files in the .zips Suggestions for use Not sure what to .cab up? Why not start with something simple, like a few registry settings! As you can see above, the format of the .reg file is very simple so creating a .cab of your favourite reg tweaks couldn't be easier! Why not put the serial numbers of your favourite apps into a .cab, so you don't have to manually register them every time you hard reset? Why not even re-pack an existing .cab and tailor it to your liking? You can use the free tool MSCEInf to extract and existing .cab and then use Cab-O-Matic to re-pack it! |
|
Last Updated on Sunday, 25 January 2009 00:41 |
|
Written by Alex (nedge2k)
|
|
Tuesday, 20 January 2009 14:02 |
|
Right, so, as you can see, I've had a bit of a spring clean and basically re-done the whole site :D It's now leaner, meaner and ready to take the onslaught I'm guessing it'll recive once I publically release the world's first online .cab maker for Windows Mobile devices, entitled Cab-O-Matic....catchy eh? ;) |
|
Last Updated on Tuesday, 20 January 2009 22:35 |
|
Written by Alex (nedge2k)
|
|
Tuesday, 13 January 2009 11:21 |
Virtuemart (1.1.2) allows shoppers to leave a message to the seller via a "customer_note" textarea. The value of this, along with all other $_POST variables gets shunted into the $d array. The issue comes when customers hit return in the textarea to get a new line. This "return" is stored as "\r\n" but when $_POST['customer_note'] is added to the $d array, the slashes are stripped out, leaving just the "rn"....which can be confusing for the recipient of the note. Now, you could spend ages going through all the code and finding exactly where $_POST['customer_note'] gets added to the $d array or you could simply do this: In /administrator/components/com_virtuemart/classes/ps_checkout.php, find: L990 'customer_note' => htmlspecialchars(strip_tags($d['customer_note']), ENT_QUOTES ), and change to: L990 'customer_note' => htmlspecialchars(strip_tags($_POST['customer_note']), ENT_QUOTES ), Simple! Now when you receive an order via email, if your customer has left a note, it will make a bit more sense ;) |
|
Last Updated on Wednesday, 04 March 2009 09:01 |
|