GuruzLord
Please how can I add search box to my blog?
Graham
GuruzLord Enable it in the settings it is off by default
show_searchbox="1" in the blog xt function
GuruzLord
Graham that's what I did but it's not showing
Graham
GuruzLord I looked and the search code has been removed from your blog twig file in _xtgem_templates
GuruzLord
Graham is there any way you can give me the code?
Graham
GuruzLord I have put the search code back in your twig
the block is {% block entries_list_searchbox %}
I made a copy first
GuruzLord
GuruzLord Sir please help me edit the pagination of this filelist to NEXT Example at screenshot
<xt:filelist sort_type="updated" sort_dir="desc" folder="/Upload/Android/Apps" 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>" per_page="10" />
Copy code
Graham
GuruzLord custom pagination is a special xtscript function
this creates a basic prev/next pagination you just add it above the filelist function
you will need to set your own css classes to this
!--parser:xtscript-->
function paging_template $url;$page;$active_page;$total_pages;
if $total_pages == 1
goto @end
endif
if $page == 1
print <div class="">
endif
if ($page+1) == $active_page
print <a href="$url">« Prev</a>
elseif ($page-1) == $active_page
print <a href="$url">next »</a>
endif
if $page==$total_pages
print </div>
endif
@end
endfunction
<!--/parser:xtscript-->
Copy code
GuruzLord
Graham Sir please help me Edit this code.
I don't want to use Icon any more, I want to replace the Icon with div style I have tried ma best to do it by my self but its not working out
/* Forum Member Icons By Redbullet Da Wapmaster
website: http://redbullet.xtgem.com
Email: bidexking2015@gmail.com
Contact: 08071389491 */
//member Icons
var icon = document.querySelectorAll("a[href*='/u/']");
for(i=0;i<icon.length;i++){
var lcon= document.createElement("img");
lcon.setAttribute("src", "/forum/icon/Mem.png"); lcon.setAttribute("class","icon");
icon[i].appendChild(lcon);}
//Remove Member Icons
var licon = document.querySelectorAll("a[href*='GuruzLord'] img.icon,a[href*='Cycwap'] img.icon,a[href*='Keyarn'] img.icon,a[href*='non'] img.icon,a[href*='non'] img.icon");
for(i=0;i<licon.length;i++){
licon[i].style.display="none";}
//Admin Icon
var Admn = document.querySelectorAll("a[href*='GuruzLord']");
for(i=0;i<Admn.length;i++){
var Adcn= document.createElement("img");
Adcn.setAttribute("src", "/forum/icon/lord_icon.png");
Adcn.setAttribute("class","admin");
Admn[i].appendChild(Adcn);}
//Mods Icon
var Mods = document.querySelectorAll("a[href*='Cycwap'],a[href*='non'],a[href*='Keyarn'],a[href*='non']");
for(i=0;i<Mods.length;i++){
var ModsIcon = document.createElement("img");
ModsIcon.setAttribute("src","/forum/icon/admins.png");
ModsIcon.setAttribute("class","Mods");
Mods[i].appendChild(ModsIcon);
}
Copy code