Vivo
Gimana cara buat breadcrumb untuk filelist?
Misal
http://helpme.wap.sh/folder1/kategori1/artikel1
jadi folder1>kategori1>artikel1
terimakasih
pichu
Vivo <div class="phdr"><div xmlns: v="http://rdf.data-vocabulary.org/#"><!--parser:xtscript-->
var $spc=call chr $val=32
var $path= <xt:url type="path" />/
var $len=call strlen $val=$path
var $offset=0
print {{<span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="" typeof="v:Breadcrumb"><a itemprop="url" href="http://YourSite.Com" rel="v:url " property="v:title">Home</a></span>}}
@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 $forlam=call substr $val=$path;$start=($strt+1);$length=($end-$strt-1)
var $forlam= call ucwords $val=$forlam;
var $forlam = call str_replace $subject=$forlam;$search=-;$replace=$spc;
if $forlam == Index
goto @end
endif
var $spc = call chr $val=32
print $spc»$spc<span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="" typeof="v:Breadcrumb"><a aitemprop="url" href="$link" rel="v:url " property="v:title">$forlam</a></span>
var $offset=($strt+1)
if $end < ($len-1)
goto @loop
endif
@end
<!--/parser:xtscript--></div></div>
Copy code
edit YourSite.Com =>> Your Site
pichu
Mywapmaster edit YourSite.Com =>> Your Site
Graham
pichu You can use
href="http://<xt:url type="domain" />"
to make the code generic for any xtgem site
That should also then work for parked domains as well
My version (without external script calls or 'index' links)
http://ggnnww.yn.lt/path/to/page/
aliefr
hay guys, aku mau tanya, cara membuat web xtgem berbasih php gmana yah
Vivo
Graham How to replace "_" to space " " ??
Home>blog>karena_because_selalu_usually
To
Home>blog>karena because selalu usually
Thanks for reply
Vivo
aliefr Xtgem membet biasa kg supory php sob
Graham
Vivo in my script you add this
var $spc=call chr $val=32
var $linktext=call str_replace $subject=$linktext;$search=_;$replace=$spc
<!--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)
var $spc=call chr $val=32
var $linktext=call str_replace $subject=$linktext;$search=_;$replace=$spc
/* EXIT IF INDEX FILE */
if $linktext == index
goto @end
endif
/* LINKS */
print <span class="$button_class" style="$button_style">»</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