logo
Home XtGem- Templates- XtScript- bottom
vx1
* Graham  
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_templates in 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

BLOG
The blogs twig fie has a dropbox url
https://dl.dropboxusercontent.com/u/2162515/xtgem_blog.twig
upload this and rename it
xtblog.twig

GUESTBOOK
The guestbooks twig file
http://syntax.xtgem.com/_templates/xtguestbook.twig.js

CHATROOM
Chat function twig file
http://syntax.xtgem.com/_templates/xtchat.twig.js upload it by "remote server" to _xtgem_templates and then remove the .js extension
This is a rather complex script as it include javascript ajax and the css
2014-08-06 22:24 (edited 2014-08-20 14:19 by Graham ) · (1)

Online: Guests: 1

XtGems forum function

Add it from the building tool blocks under social
NOTE: One forum per site
Adding multiple blocks will produce the same forum

Add your forum to the

Forums catalog

Visit the official xtgem forum

Forum.xtgem.com

building tool controls

Building tool forum block controls Allow guest posting: yes/no default is yes
Show online counter: yes/no
Private forum: users must be approved to view forum
Edit forum structure Add category: add a new category to your forum
Add board Add new boards to your categories
View usersView the visitors to your forum and set moderators super moderators bans and restrictions
Mod logView your moderators log page (off the building tool and on your site)

Forum controls (on forum page)

Forum header controls Login Log in to your XtGem account Signup Sign up for a XtGem account Inbox Global personal message inbox Profile settings Account profile settings page Options Forum display preferences Logout Log out from your XtGem account Modlog Moderator actions log page

Css

You can set your own css for the xtgem forum function
The standard css file is at http://xtgem.com/css/xtforum.css you can copy/paste it or upload it by remote server to your root directory (main filebrowser)
And then rename it
xtforum_template.css
This will then automatically become your forums css template

Forum Twig

There is a pair of twig template files available for the forum

Create a folder in your root directory (main file browser) named _xtgem_templates
Then download these files by "remote server option" to that folder and remove the . js extensions after download
Twig documentation for templates


Forum Translations

To translate the texts for the forum first create a folder in your main file browser (root directory) _xtgem_translations
The translation file is at

Upload it to the _xtgem_translations folder by "remote server" and then remove the .js extension
The format of the translations is:
translation_key = translation_text // optional comment
Some of the translations contain code as well as text like
<a href="{a:1}">a post</a&\gt;
Take care not to create errors with these
Each translation must be on a separate line
If the xtforum file exists no default translations for forum will be loaded unless you delete this file.
Also see
BlogGuestbook
Powered by XtGem
About us Contact Forum topÂ