* ArKumar I Want This Code Plz Check SS And Reply Me.
2015-01-31 02:45
*
* ScreenShotArKumar.jpg · image/jpeg · 5.54KB
· (0)
* onedc Here. This xtscript creates a path to the current page. It is called breadcrumb ;)
<!--parser:xtscript-->
/* INITIALIZE VARS */ 
var $path= <xt:url type="path" />/
var $offset=0
var $len=call strlen $val=$path
var $button_class= xt_button  xt_text small
var $button_style= padding:0 1px !important;margin:01px !important
/* HOME LINK*/
print <a href="/"><span class="$button_class" style="$button_style">home</span></a>
/* MAIN LOOP START*/
@loop
var $strt = call strpos $haystack=$path;$needle=/;$offset=$offset
var $end= call strpos $haystack=$path;$needle=/;$offset=($strt+1)
var $link=call substr $val=$path;$start=0;$length=$end
var $linktext=call substr $val=$path;$start=($strt+1);$length=($end-$strt-1)
/* EXIT IF INDEX FILE */
if $linktext == index 
goto @end
endif
/* LINKS */
print  <span class="$button_class" style="$button_style">&raquo;</span><a href="$link"><span class="$button_class" style="$button_style">$linktext</span></a>
/* MAIN LOOP END */
var $offset=($strt+1)
if  $end < ($len-1)
goto @loop
endif
/* END */
@end
<!--/parser:xtscript-->

Copy code
2015-01-31 04:48 · (0)
* Coward_Happy * onedc Onedc, few of my file has name as "Android-action-game". When i am using this code, how can i replace those (-) with space ( )? how to call str_replace in xtscript?
2015-01-31 05:12 · (0)
* onedc * Coward_Happy Here :)
<!--parser:xtscript-->
/* INITIALIZE VARS */ 
var $path= <xt:url type="path" />/
var $offset=0
var $len=call strlen $val=$path
var $button_class= xt_button  xt_text small
var $button_style= padding:0 1px !important;margin:01px !important
/* HOME LINK*/
print <a href="/"><span class="$button_class" style="$button_style">home</span></a>
/* MAIN LOOP START*/
@loop
var $strt = call strpos $haystack=$path;$needle=/;$offset=$offset
var $end= call strpos $haystack=$path;$needle=/;$offset=($strt+1)
var $link=call substr $val=$path;$start=0;$length=$end
var $linktext=call substr $val=$path;$start=($strt+1);$length=($end-$strt-1)
/* EXIT IF INDEX FILE */
if $linktext == index 
goto @end
endif
/* FIND MINUS SIGN THEN REPLACE TO SPACE */
var $space=call chr $val=32 
var $linktextparse = call str_replace $subject=$linktext;$search=-;$replace= $space;
/* LINKS */ 
print  <span class="$button_class" style="$button_style">&raquo;</span><a href="$link"><span class="$button_class" style="$button_style">$linktextparse</span></a>
/* MAIN LOOP END */
var $offset=($strt+1)
if  $end < ($len-1)
goto @loop
endif
/* END */
@end
<!--/parser:xtscript-->

Copy code
2015-01-31 05:24 (edited 2015-01-31 05:36 by onedc ) · (0)
* Coward_Happy * onedc Thank You a lot, man :)
2015-01-31 05:53 · (0)
* onedc * Coward_Happy You're welcome :)
2015-01-31 06:06 · (0)
* ArKumar * onedc thank you for code...
2015-02-02 13:19 · (0)
* Wa01 * onedc 9CDbYZqGi5zakUE
2019-06-11 19:27
*
* qrcode.png · image/png · 809B
· (0)

Online: Guests: 1