Here is xtgem Forum Twig tutorial:
ADVANCED USERS ONLY
Xtgem uses twig templates to create the markup of forum blog and guestbook
Twig is a php template engine the documentation for the template development tools is available at
http://twig.sensiolabs.org/doc/templates.html
You do not need a php upgrade to use these twig files
First create a folder named_xtgem_templatesin the main file browser (root)
this folder is where xtgem expects to find the main twig files
Note: to allow the use of "upload by remote server" most of the files have a .js extension this should be removed after upload
Do not edit twig files with the building tool you must use the code editor
FORUM
There are two twig files for the forum the main file
http://syntax.xtgem.com/_templates/xtforum.twig.js
And the blocks file
http://syntax.xtgem.com/_templates/my_blocks.twig.js
both are required
(Edited by 2015-06-30 13:33 STRIKELORD )
Unlimitedapps(guest
2015-07-02 04:53
Pls drop for me the code for that comment boxes (the one dat shows *NICK and *MESSAGES), and also tel me hw i can get or knw my forums URL....
Fr the chat box install it frm
xtgem market @
http://xtgem.com/market the name of the chat box is
"Chatt" after installation to add it click on add » Widget » Chatt dats all! Wat do u mean by forum url?
Unlimitedapps(guest
2015-07-02 08:53
When i wanted to add my forum to xtgem toplist forums, the said dat my forum URL is incorrect
Jst enter your site name of your forum name anyone bt make sure it carrys
http:// and also ur email must be verified also.
Unlimitedapps(guest
2015-07-02 11:18
Pls give me the exact code for that facebook like button on ur Home page....plsss
Copy Below
<div style="background-color:#D3D3D3; border-color:#FFFAFA;">
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FStrikecoded&width=300&height=40&colorscheme=light&show_faces=true&header=true&stream=false&show_border=true&appId=340053679356074" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:40px;" allowTransparency="true"></iframe></div>
Copy code Edit And Put Your Own Site Fb Page...Link!
Unlimitedapps(guest
said to STRIKELORD 0n
2015-07-03 07:15
Pls hw do i knw my own sites fb page url.....my fb page is "Unlimitedapps.xtgem.com", bt wen i add it 2 the above code it show incorrect fb url page wen i viewed my site as a visitor.
First search ur site fb page @ facebook and check if it is registered..
Pls give me the code 4
Random Related Files , here is my filelist, link the code 2 it 4 me
<center><xt:filelist sort_type="updated" sort_dir="desc" folder="/files" template="<table width='25%'><tr><td width='15%' class='lordeagle' align='center'><img src='http://unlimitedapps.xtgem.com/funny/picture/2go.jpg' width='45%' height='40%'></td><td width='30%' align='left' class='lordeagle'><img src='http://weezywap.xtgem.com/images/rating.gif'/><br/><b>Name: </b><b style='color:blue'>.file_name_parsed.</b><br/><b>File Size: </b><b style='color:green'>.file_size.</b><br/><b>• </b><a href='/download?file=.file_name.&name=.file_name_parsed.&category=.file_mime.&size=.file_size.&href=.file_url.&date=.file_date.&time=.file_time.&fold=/files'><b style='color:red'>Download </b></a></td></tr></table>" filter="*.*" per_page="10" /><br/>Jump to page:<form action="<xt:url type="path" />" method="get"><input type="text" style="width:20px" name="__filelist_page"><input
type="submit" value="jump"></form></center>
Copy code i added
&fold variable to the filelist it wil help it to randomization take place.. So add &fold to all ur filelist fr eg if the folda ur uploaded ur games is files then put it lik dis
&fold=/files dats hw it should be.. Copy Below fr the Code
I added &fold variable to the link code in the template so try it out <div class="yourClass" align="justify">
<!--parser:xtscript-->
# Path to files folder
var $path_to_folder=
# this removes files with no extension
var $filter= *.*
# 0 for all items
var $number_of_items = 10
# un-encoded filelist template
var $filelist_template = <a href="/download?file=.file_name.&name=.file_name_parsed.&type=.file_mime.&size=.file_size.&ext=.file_type.&link=.file_url.&date=.file_date.&time=.file_time.&fold={_$fold|}".file_name_parsed.</a><b> - </b>
# Process variables
var $filelist_template = call htmlspecialchars $val=$filelist_template
if not $number_of_items
var $number_of_items = list.length-1
endif
<!--/parser:xtscript-->
<script type="text/javascript">
function shuffleArray(array) {
for (var i = array.length - 2; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = array[i];
array[i] = array[j];array[j] = temp;}
return array;}
var list=[<xt:filelist folder="{_$fold|}"template=" '{_$$filelist_template |}', " filter="{_$$filter|}"/>'dummy_entry'];
var list = shuffleArray(list);for(var i=0;i<{_$$number_of_items |};i++){
document.write(list[i]);}
</script>
[<a href="#more">+More</a>]
</div>
Copy code Paste it in ur download page
(Edited by 2015-07-04 04:32 STRIKELORD )