Admin How-tos
Uploading Articles
Articles are stored in the 'Articles' directory under their own person directory as regular html files called 'default.html'.
For instance, the article 'Porn is Boring' is stored as Articles/porn/default.html. Any images and/or videos that the article
uses are stored in the main 'images' directory.
When saving your article, be sure all image src values should be set to 'images/<picture_source>'. To float images left
and have text runaround you can set the css style of the image to borderedImage, nonborderedImage, or CaptionedPic.
A small 16x16 pic is recommended for the article. It too is added to the 'images' directory and is used in the Web.sitemap file.
Logic is built into the Articles.aspx to automatically display all articles. Adding a query string with an 'article' attribute
to Articles.aspx, ie. Articles.aspx?article=porn, displays a specific article. The value of the article attribute is the directory
that the article is stored in. A line must be added to the Web.sitemap, under the Articles section, for surfers to see the article is available.
Roles for articles should be set to '*' (everyone) unless the article is meant for specific users such as admins or users.
ie. Web.sitemap line:
<siteMapNode url="~/Articles.aspx?article=porn" title="Porn is Boring" description="Any positives about porn are quickly dismissed if you just stop and think about it." imageUrl="~/images/artPorn.png" roles="*" />
Steps for uploading articles
- Change any image and/or object references to 'images/<picture_source>' in your article
- Save article as default.html
- Upload all images to the 'images' folder found at the root of the site
- Create a directory in the 'Articles' directory and name it
- Put your default.html file into the newly created directory
- Add a line to Web.sitemap under the Article sections, like
<siteMapNode url="~/Articles.aspx?article=<article_directory_name>" title="Article title" description="Brief description about the article" imageUrl="~/images/<16X16_image>" roles="*" />
Uploading Games
Games are stored in the 'Games' directory. Since games are typically one page long there is no need to separate them into
separate directories. Since games can take many shapes and forms the 'default.html' is not mandatory. Games are added with their
full filename as the value of the 'game' attribute in the querystring and is added to the Web.sitemap as such. ie.
<siteMapNode url="~/Games.aspx?game=game.thm" title="Game Title" description="Description about the game." imageUrl="~/images/<gamethumbnail.png>" roles="*" />