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
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
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
<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/)
<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
BBC
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