* ArKumar i want 2 xtgem code , 1st one is how to use filelist with css and styles paging code like

check attachement ss1,

2nd one i want to create story site just creat a folder name old_story in this folder 8

html file(pages) like pg-1,pg-2,pg-3,pg-4 etc how to use with paging code if someone click

on 2 he/she visit to pg-2,then click on 3 visit page pg-3 etc,check attachements ss2 its a

paging ss i want below style
«12345»
http://mysite.xtgem.com/old_story/index?__filelist_page=2,
http://mysite.xtgem.com/old_story/index?__filelist_page=3
http://mysite.xtgem.com/old_story/index?__filelist_page=4

post code with full details,how to use code ...
2014-11-12 19:56
* *
* ss1.JPG · image/jpeg · 11.08KB
* ss2.JPG · image/jpeg · 10.42KB
· (0)
* Graham * ArKumar The standard file list paging css uses the class name "filelist_paging" and styles the other elements by reference to that class
/* the outer div */
.filelist_paging { } 
/* the current page */
.filelist_paging span { }
/* the page links*/
.filelist_paging a { }

Copy code

The second example uses a xtscript custom paging script like the paging script shown here
http://ggnnww.yn.lt/a/b/c/paging
The script must go above your file list in your pages code
2014-11-13 01:38 (edited 2014-11-13 04:13 by Graham ) · (0)
* ArKumar * Graham how to use plz post with full details like 1st css code details and 2nd paging code where to use it in folder index page or any other i am confuse so reply me clearly.
how many page/folder need for paging also anything change on code also there are 2 code.
2014-11-13 03:16 (edited 2014-11-13 03:28 by ArKumar ) · (0)
* Graham * ArKumar 1/
I cannot tell the css code from an image so the colors will not be right and it will not be exactly the same
but something like this in global_stylesheet.css
/* the outer div */
.filelist_paging { } 
/* the current page */
.filelist_paging span 
{
display:inline-block;
border:1px solid #888;
border-radius:2px;
color:#777;
background:#ccc;
padding:0;
margin:1px
 }
/* the page links */
.filelist_paging a 
{
display:inline-block;
border:1px solid #888;
border-radius:2px;
color:#777;
background:#ddd;
padding:0;
margin:1px;
text-decoration:none;
 }

Copy code

2/
the custom paging script is the first one on that page it goes in a code block above the filelist
but that uses different css class names and the user has probably considerably altered the script to suit his page so until you know more coding you should probably just stick to the simple css route
2014-11-13 04:24 · (0)
* ArKumar * Graham thanks for 1st css code its working perfectly but 2nd code i need it very much, if i am pm that site where i am seen that paging code can you give me with full details...
if yes then i can pm that site where i am capture that ss2...

if possibale i can send my login details via pm.
2014-11-13 22:38 (edited 2014-11-14 02:47 by ArKumar ) · (0)
* Graham * ArKumar Here is a updated version of the custom paging script that uses the same classes
it goes in a code block above the filelist function
<!--parser:xtscript-->
# Paging function
function paging_template $url;$page;$active_page;$total_pages; 

# Only one page so exit
if $total_pages == 1
return
endif

# Paging container and  First page button
if $page == 1
print <div class="filelist_paging">
if $page == $active_page
print <span>&laquo;</span>
elseif $page == 1
print <a href="$url">&laquo;</a>
endif

# Previous four pages buttons
if ($page+1) == $active_page or ($page+2) == $active_page or ($page+3) == $active_page or ($page+4) == $active_page
print <a href="$url">$page</a>
endif

# Current page button
if $page == $active_page 
print <span>$page</span>
endif

# Next four pages buttons
if ($page-1) == $active_page or ($page-2) == $active_page  or ($page-3) == $active_page or ($page-4) == $active_page
print <a href="$url">$page</a>
endif

# Last page button total pages and close paging container
if $page == $total_pages
if $page==$active_page
print <span>&raquo;</span>
elseif $page == $total_pages
print <a href="$url">&raquo;</a>
endif
if $page == $total_pages
print <div>total pages = $total_pages</div></div>
endif

endfunction
<!--/parser:xtscript-->

Copy code
2014-11-14 02:56 (edited 2014-11-15 16:07 by Graham ) · (0)
* ArKumar * Graham check your pm...
2014-11-15 00:41 · (0)
* Graham * ArKumar Changed the script to print's not return's as it was causing an issue
2014-11-15 00:58 (edited 2014-11-15 05:54 by Graham ) · (0)

Online: Guests: 1