logo
Home XtGem- Templates- XtScript- bottom

XTSCRIPT GALLERY

Single page thumbnail gallery filelist with descriptions and individual xtgem polls for rating the images

Twig beta test

For advanced users only
http://syntax.xtgem.com/twig

Back to posts
Comments:
[5:18pm 18-3-26] Kate Spade Sale :

My brother recommended I would possibly like this blog. He was entirely right. This post truly made my day. You can not believe simply how a lot time I had spent for this information! Thank you!
Kate Spade Sale http://www.kate-spadeoutlet.name

[12:45pm 18-3-25] Oakley Eyeglasses Online :

I want to express my appreciation for your kindness for those who really want guidance on that area. Your special dedication to getting the message all around ended up being extremely valuable and has usually made folks just like me to achieve their targets. Your personal insightful guide implies a lot to me and far more to my colleagues. Thanks a lot; from all of us.
Oakley Eyeglasses Online

[3:10pm 18-3-24] Fitflops Sale Clearance :

Wow! This could be one particular of the most beneficial blogs We've ever arrive across on this subject. Actually Great. I am also a specialist in this topic so I can understand your hard work.
Fitflops Sale Clearance

[4:47am 18-3-22] Flurarob :

Ich denke, dass Sie sich irren. Ich kann die Position verteidigen. Schreiben Sie mir in PM.
<a href="http://gamejolt.com/games/rexuiz-fps/250380">Rexuiz Shooter</a>

[7:30am 18-3-10] Cheap Moncler Jackets :

Valuable information. Lucky me I found your website by accident, and I am shocked why this accident did not happened earlier! I bookmarked it.
Cheap Moncler Jackets https://www.pinterest.com/cheapmonclerjackets0098


SCRIPT

All the settings are at the top of the xtscript.

The descriptions use the xtscript "source" function the default setting looks for the descriptions folder in the same folder or directory as the gallery page
You can set your own path and descriptions folder name in the settings the path must be relative to the page containing the script not the root directory.
There is also a setting to convert newlines into <br /> tags otherwise they will be ignored.
The description file can be plain text or html and must have the same name as the image without any extension
The descriptions can contain any normal html or javascript and most xt functions and xt widgets.
They cannot contain xtscript
If the description is a html page only the content between the body tags is used (including the container) and newlines are ignored except in text blocks
If there is no description file for an image no description block will be shown.

Unique polls for each image are created by using part of a md5 hash of the url + the filename so if the url is changed so are the polls.
Some javascript is used in the xtscript to change some of the classes and the submit button text in the poll xtfunction.

As the actual filelist function is outside of the xtscript the timeout for large folders should not happen.

Copy the script to a code block or copy it to a plaintext file and include it on the page.
You can also "remote server" upload it fromAnd then include it on your page
Suggest more features in the comments above or on the forum post sensible and possible ones will be added
'; ?>

DEMO CSS

This css stylesheet is just a demo
It contains most of the classes you will need
copy it to a plain text file named gallery.css
and link to it in your page header using something likeYou can also "remote server" upload it from
'; ?>
Powered by XtGem
About us Contact Forum topÂ