Get paid to share your links!

Always post Sunstartech.xtgem.comon your Facebook, twitter and 2go status! If you love SUNSTARTECH(¤) and enjoy unimited downloads here!!

»SUNSTARTECH Forum
* Sir_Sunstar 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
2015-07-15 19:19 (edited 2015-07-15 19:23 by Sir_Sunstar ) · (0)
* Sir_Sunstar For Wapmaster That Didnt Know XtGem Getvariables
Nw Here Is An Understandable Tutorial About Xtgem Getvariable!

READ AND ENJOY, DROP COMMENTS AND COMPLAINS..

GETVARIABLE TUTORIAL VIA LINKING:
Nw, lets form a chatt box assumin dis is a chat box code

<input type="text" name="myname" value="myname" />
<input type="text" name="myage" value="myage" />


then if u c dis code and u wnt if u remeber there 2 main values in the chat code and the are myname and myage nw to link it to appear in xame page witout any result page, when a guest is post u wil hav to use Variables so dat it wil also showcase in dat xame page, dat is he talkin...

Now in dat code, lyk i said b4 there are 2 values in the code wich we cn use variable to construct nw c

<input type="text" name="myname" value="{_$myname|}" />
<input type="text" name="myage" value="{_$myage|}" />


to add variable to any code we use dis {_$|}

dats a variable sign, nw the 2 main values in the chatt box has been constructed wich are

{_$myname|}

and

{_$myage|}

nw dat the variables has been done the chat box when a guest input his name and age then post it wil reload dat xame page , after it must hav paste the guest name and age ...
Nw Link 2 Codes With Variables is xame tin wit the 1 Linkin Tutorial if u dnt wnt it to appear in dat xame page then u useform action wat is "form action" ? it is an automatic link wich link code to its original position. Its jst lyk linkin ur chatroom after u must hav create the file in ur filebrowser!

Nw lets continue there is an example of a code dat has form action first lets use "2go Star Booster" here

<form action="http://UR ACTION LINK" method="get"><br/><input name="star" value="NOVICE" type="radio"><b style=color:blue;->NOVICE</b></input><br/> <select name="action"><option value="None">Select Action</option><option value="TO BOOST">BOOST</option></select><br/><div style="text-align:left;"><b style=color:red;->USERNAME:</b><input type="text" style="width:80px" name="username" /><input type="SUBMIT" value="BOOST" /></form></td>

Nw above is a 2go star boostin code assumin u hav nw paste it in ur site in the placeUR ACTION LINK lets assume ur form action link is boosted nw to make after guest has input the informations in dat boostin code to make it to in the RESULT PAGE Dats dat boosted , bt remeba boosted and Boostedar nt xame when link Y? Becous the differen there is the CAPITAL Letter in front of the letter...

Nw lets continue then to link as i told u b4, u must find in the code the main value in the code b4 constructin.. Wit variables nw here ar the main values in dat 2go boostin codestar ,

action

and

username

nw u construct them usin variable sign

{_$|}

remeba u ar usin 2 link so it wil be lik dis

YOUR STAR IS {_$star|}

YOUR ACTION IS {_$action|}

YOUR USERNAME IS {_$username|}

Remeba dis code should be pasted in the page of boosted dis is the 2go boostin result page linked in rough as an example, in the text box below...

<div align="left"><div class="zxfourborder"><b>YOUR STAR IS :</b><b style=color:red;-> {_$star|}</b>
<b>YOUR ACTION IS :</b><b style=color:green;-> {_$action|}</b><b>
YOUR USERNAME IS :</b><b style=color:black;-> {_$username|} </b></div></div>

Copy code


You Can Give It A Try! For More Details Check HERE

THATS ALL ABOUT XTGEM GETVARIABLES

All Respect To Lord_Sunstar.
2015-07-18 08:55 · (0)
* Sir_Sunstar Random Filelist for pictures

change the folder to urz

carefull when editing

<div class="full"><div class="right"><div class="left" align="center"><img src="http://sunstartech.xtgem.com/Wapmasta/Icon/image.png" alt=" " /><font size="3">FUNNY PICTURES</font></div></div></div><div class="ex"><div class="in"><div class="bodie"><div class="lime2" align="justify">
<!--parser:xtscript-->
#Path to files folder
var $path_to_folder =“Image/Pictures”
# 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.">.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="Image/Pictures" 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="Funny pictures">+More</a>]</div>

Copy code
2015-07-20 07:52 · (0)
* Sir_Sunstar Random Logo script

change the ones with capital letters to ur image links
dnt change anytin except the image links to avoid error!

<!-- Random image and text script generated from http://sunstartech.xtgem.com -->
<script language="JavaScript">
<!--
aandj = new Array('<div style="background-color:#d0d0d0;border:3px groove #dd0000;padding:10px 10px 10px 10px;"><img src="http://IMAGE LINK1"width="160" height="160"><br /><font style="display:block;font-weight:bold;font-color:#666600;text-align:center;"></font></div>','<div style="background-color:#d0d0d0;border:3px groove #dd0000;padding:10px 10px 10px 10px;"><img src="http://IMAGE LINK2"width="160" height="160"><br /><font style="display:block;font-weight:bold;font-color:#666600;text-align:center;"></font></div>','<div style="background-color:#d0d0d0;border:3px groove #dd0000;padding:10px 10px 10px 10px;"><img src="http://IMAGE LINK3"width="160" height="160"><br /><font style="display:block;font-weight:bold;font-color:#666600;text-align:center;"></font></div>','<div style="background-color:#d0d0d0;border:3px groove #dd0000;padding:10px 10px 10px 10px;"><img src="http://IMAGE LIN4"width="160" height="160"><br /><font style="display:block;font-weight:bold;font-color:#666600;text-align:center;"></font></div>','<div style="background-color:#d0d0d0;border:3px groove #dd0000;padding:10px 10px 10px 10px;"><img src="http://UR IMAGE LINK5"width="160" height="160"><br /><font style="display:block;font-weight:bold;font-color:#666600;text-align:center;"></font></div>'); 
n=Math.floor(Math.random() * 5);
document.write(aandj[n]);
//-->
</script>
<!-- http://sunstartech.xtgem.com -->

Copy code
2015-07-20 08:43 · (0)
* Sir_Sunstar How To Hide Login And Signup knw as xt:auth
just go to ur header and footer and put this code
<xt:auth skip="yes" />
Copy code
2015-07-25 19:55 · (0)
* Sir_Sunstar * Sir_Sunstar XtBlog twig tutorial ..Create a folder named _xtgem_templates ..inside the folder, click upload Import the below url in the code box via remote server
http://sunstartech.xtgem.com/Twig/xtblog.twig.js
Copy code
and rename xtblog.twig.js to xtblog.twig then check your blog page!
2016-03-27 02:43
* *
* Xtblog_set.jpeg · image/jpeg · 42.86KB
* Xtblog_set1.jpeg · image/jpeg · 42.09KB
· (0)
* Sir_Sunstar
<!--parser:xtscript-->
# Get the search query 
get search
# Trim any spaces
var $search = call trim $val=$search
# No search query
if not $search
var $disable_js = //
goto @skip_1
endif
# Search query length check
var $len = call strlen $val=$search
if $len < 2
del $search
var $disable_js = //
print <b>Search query too short min 2 chars</b> <br />
goto @skip_1
endif
# Search query health check
# uncomment the next 3 lines to ban wildcards and negation in the search query
# var $neg = call strpos $haystack=#$search;$needle=-
# var $star = call strpos $haystack=#$search;$needle=*
# var $query = call strpos $haystack=#$search;$needle=?
var $dquot = call strpos $haystack=#$search;$needle="
var $squot = call strpos $haystack=#$search;$needle='
if $star or $query or $dquot or $squot or $neg==1
del $search
var $disable_js = //
print <b>Search query contains invalid chars</b> <br />
goto @skip_1
endif
# Set up the search
# Check for "anywhere"
get anywhere
if $anywhere
var $checked = checked="checked"
var $any = *
endif
# Filelist template that creates a javascript array 
var $template = ['.file_name_parsed.','.file_url.','.file_size.','.file_datetime.','.file_mime.','.file_type.'],
# Filelist parameters
var $params = template="$template"  filter="$any$search*" per_page="0"
# Filelist patterns
var $list1 = xt:filelist folder="/main/2go/files" $params
var $list2 = xt:filelist folder="/FOLDER_2" $params
var $list3 = xt:filelist folder="/FOLDER_3" $params
var $list4 = xt:filelist folder="/FOLDER_4" $params
# Dummy array entry to use up the last , in the filelist template
var $dummy = ['dummy']
# skip_1 landing point
@skip_1
# The search form
print {{
<div class="search_form" id="srch">
<form action="<xt:url/>#srch" method="post">
<input type="search" name="search" value="$search" />
<input type="submit" value="Search" /><br />
Anywhere in filename <input type="checkbox"  name="anywhere" value="1" $checked />
</form>
</div><br />}}
# The actual filelist functions are created outside the xtscript to avoid timeouts
# Create an array of the filelist arrays
<!--/parser:xtscript-->
<script type="text/javascript">
// Results array
{_$$disable_js|}var list=[<{_$$list1|}><{_$$list2|}><{_$$list3|}><{_$$list4|}>{_$$dummy|}];
<!--parser:xtscript-->
if $search                            
# Get page number                            
get_or_default results_page;0
# Results per page
var $per_page=10
# Create javascript
print {{list.length=list.length-1; 
var length=list.length;
if (length){
var total_pages=Math.floor(}}
print {{list.length/$per_page);
var results_page=$results_page;
var search='$search';
var per_page=$per_page}}
print_raw {{;
var offset=(results_page*per_page);
var page_end=(offset   per_page);
if (page_end >= length)page_end=length;
// Output results
list.sort();
document.write('<div class="zxfourborder">');
if (length >= 1)document.write('<div class="zxfourborder" style="text-align:left">' (offset 1) ' to ' page_end ' of ');
document.write( length ' Result');
if (length > 1) document.write('s');
document.write(' For &quot;<span> ' search ' </span>&quot;</div>');
var baze='http://weezywap.xtgem.com/';
for(i=offset;i < page_end;i  ){
document.write('<div class="full" style="background:url(' baze '/B/Bg/download.png);">\
<table cellspacing="0"><tr style="text-align:center"><td align="left">');
lastDot = list[i][0].lastIndexOf('.') ;
if (lastDot > 0){
ext= list[i][0].slice(lastDot 1);
document.write('<img src="' baze '/images/mimes/' ext '.png" alt="' list[i][0] '" class="ico" width="47px" height="50px" />');}
document.write('</td><td align="left"><img src="' baze '/images/rating.gif" /><br/><b>Name:</b><font color="green"> ' list[i][0] '</font><br/><b>Size:</b> ' list[i][2] '<br/>• <a href="/download?file=' list[i][5] '&name=' list[i][0] '&type=' list[i][4] '&size=' list[i][2] '&ext=' list[i][6] '&link=' list[i][1] '&date=' list[i][7] '&time=' list[i][8] '"><b>Download</b></a></td></tr></table></div><hr style="border: 1px dotted red;"/>');}
}}
# Pagination
var $common_part = document.write('<form style="display:inline" action="<xt:url />#srch" method="post"><input type="hidden" name="search" value="$search" /><input type="hidden" name="anywhere" value="$anywhere" /><input type="hidden" name="results_page" value="' (results_page
print_raw {{
if (length > per_page){
document.write('<div class="pagination">');
if (offset > per_page){}}
print $common_part
print_raw {{-2) '" /><span><input type="submit" value="' (results_page-1) '" /></span></form>');}
if (offset){}}
print $common_part
print_raw {{-1) '" /><span><input type="submit" value="' results_page '" /></span></form>');}              
document.write('<form style="display:inline"><span><input type="button" value="' (results_page 1) '" /></span></form>'); 
if (page_end < length){}}
print $common_part
print_raw {{ 1) '" /><span><input type="submit" value="' (results_page 2) '" /></span></form>');}
if (page_end < (length-per_page)){}}
print $common_part
print_raw {{ 2) '" /><span><input type="submit" value="' (results_page 3) '" /></span></form>');}
document.write('</div>');} 
document.write('</div>');}}
# No search results  
print } else {document.write('<div class="zxfourborder"> No results for &quot;<b>$search</b>&quot
print ;</div>');}
endif                            
<!--/parser:xtscript-->
</script>

Copy code
2016-04-13 06:12 · (0)

Online: Guests: 1

Get paid to share your links!
Online : 1 Guest(s)
Today : 36 Guest(s)
Total : 69880 Hits
Created by: SUNSTAR™
Copyright © 2014 -
All Rights Reserved
Edo_State , NIGERIA

XtGem Forum catalog