.
do not copy code using translator

*
xtgem
Twitter blog Facebook
TUTORIAL
XT FUNCTIONS
These are ready made functions that you can use on your site
FILE LIST
Create a list of links to the files in the named folder.
You can set the sort and direction of the list.
Which folder is to be listed
how many links to show on each page
ADVANCED FILELIST FUNCTION
Still under development and subject to change

Xtboard thread
Using html you can also set a custom output template and filter
TEST FUNCTION
ybcu1a.wav (120.58KB)
horse.ogg (13.56KB)
djbones.mp3 (1.01MB)
gauge.jpg (85.72KB)
Function settings
Sort type Direction Per page
Template variables
.file_mime. .file_name. .file_name_parsed. .file_size. .file_size_kb. .file_size_mb. .file_type. .file_url. .file_date. .file_time. .file_datetime.
Template

Filter
Use the query (?) to match any one character
Use the asterisk (*) to match any sequence or string of characters.
If the first character in the filter is minus (-) the filter will become negative
Function code
Paging
Paging is set by the value of per_page
The variables name is __filelist_page it takes a number for it's value
The paging div has a class named filelist_ paging
you can customize it in your css
Using A filter as a file search
Folder Search
LOCAL FILE INCLUDE
Add the contents of another file or page at this point on the page.
Use this to add text files or text files containing scripts or html code or the html content of a html page. (head and container code is stripped before include)
<xt:include file="/FOLDER/FILE"/>
COUNTER
Add various counters to your page.
Daily 1
Weekly 3
Monthly 3
Total 33608
VALUE= 1(daily) 2(weekly) 3(monthly) 4(total)
<xt:counter type="VALUE"/>
In html code you can also set the timezone so the type 1 2 and 3 counters will reset at your local midnight
TIMEZONE=difference in hours from GMT (you can also set for 30 minute time zones
<xt:counter type="VALUE" tzone="TIMEZONE" />
ONLINE
How many visitors on the page now.
1
<xt:online />
TIME AND DATE
Add the time and date to your site.
2024-12-05 02:51
So much more can be done with the "Time and date function" using html code that it needs a page to its self.
Time and date
IP ADDRESS
Show the visitors ip address or that of their host.
18.97.14.82
18-97-14-82.crawl.commoncrawl.org
<xt:ipaddress type="VALUE"/>
VALUE="1" ip , "2" host
COUNTRY
Show the name or flag of the visitors country.
United States
United States
<xt:country type="VALUE"/>
VALUE="1" text "2" flag
BROWSER
Show details of the visitors browser or the icon for their browser.
CCBot
CCBot/2.0
CCBot/2.0 (https://commoncrawl.org/faq/)
Unknown
<xt:browser detail="VALUE"/>
VALUE="1" low , "2" medium , "3" high , "4" icon
RSS READER
Include the contents of a rss feed at this point on the page.
Another powerful function but a little knowledge of html and xml (rss) is required to set the template
Example
B B C World News Headlines
Settings for this example
RSS Feed: = http://feeds.bbci.co.uk/news/world/rss.xml
Number of items to fetch : = 1
Template: = <div style="background:#bbb;"><a href=".link.">.title.</a></div>.description.
Code (this example)
The template MUST have the reserved characters converted to NAMED html entities
ADVERTISEMENT
Add an advertisment at this point in the page.
For information on placing your own ads on your Xtgem site seeThis page
BLOG
This function now has it's own page
blog function page

Main Page
©2010 - 2024 Graham.yn.lt
X T B O A R D
X T G E M
© MMXXIV Graham