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
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 13:24
(edited 2014-08-20 05:19 by Graham )
·
(1)
Sinus
Sir, is it possible to add those - + like/dislike system below the blog post?
Building tool forum block controlsAllow guest posting: yes/no default is yes Show online counter: yes/no Private forum: users must be approved to view forum Edit forum structureAdd 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.