Add MediaType - TNG
From Genwiki
Instructions for Adding a TNG Mediatype
- Edit the mediatypes.php file and add another instance of "setMediaType" at the bottom. Model it after one of the existing ones. (This example uses the video mediatpye as an example)
- change
- setMediaType("videos",$mediapath,"tng_video.gif");
- to
- setMediaType("heirlooms",$heirloompath,"tng_heirlooms.gif");
- setMediaType("heirlooms",$heirloompath,"tng_heirlooms.gif");
- change
- Save that and put it back on your site.
- Now you need a variable for $heirloompath, so open customconfig.php and enter something like this somewhere between the PHP delimiters:
- $heirloompath = "heirlooms";
- $heirloompath = "heirlooms";
- Save that, then go create a folder called "heirlooms" and set it to 777 rights.
- Now go to English/cust_text.php and enter a message like this:
- $text[heirlooms] = "Heirlooms";
- $text[heirlooms] = "Heirlooms";
- Finally, you'll need to create an icon called "tng_heirlooms.gif". Make it the same size as the others (like tng_videos.gif).
- That's it.
(posted to the tngusers2 mail list by Darrin Lythgoe)