Difference between revisions of "Add MediaType - TNG"
From Genwiki
Line 16: | Line 16: | ||
− | (posted to the tngusers2 mail list by Darrin Lythgoe) | + | <font color=green><i>(posted to the tngusers2 mail list by Darrin Lythgoe)</i></font> |
[[Category: TNG_mods]] | [[Category: TNG_mods]] |
Latest revision as of 08:28, 11 December 2006
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)