* JavaExperts Why xtgem not showing description?

MAIN FILELIST CODE


<!--parser:xtscript-->
# The filelist
# Set the paths
# Files path is relative to the root directory
var $path=/games/240x400/download
# Descriptions path is relative to the current directory
var $descr=/games/240x400/descriptions
# Set the filelist template MUST BE ALL ON 1 LINE
var $template=<b>Game Screenshot:</b><br/><img src=http://nokiaasha.mobie.in/games/240x400/images/.file_name..jpg height=150 width=150><br/><b>Name:</b>.file_name_base_parsed.<br/><b>Size:</b>.file_size.<br /><b>Date</b>.file_date.<br/><b>Download:</b><a href=.file_url.>.file_name_base_parsed.</a>
var $template=call htmlspecialchars $val=$template
#Get the filelist
var $filelist=<xt:filelist sort_type="name" sort_dir="asc" folder="$path" template="||.file_name_base.@@$template##" per_page="3" filter="*.*"/>
# The outer holder
print <div class="xt_list">
@loop
# Get the entry
var $offset=call strpos $haystack=$filelist;$needle=||;$offset=$offset
var $end_file_substring=call strpos $haystack=$filelist;$needle=##;$offset=$offset
var $file_substring=call substr $val=$filelist;$start=($offset 2);$length=($end_file_substring-$offset-2) 
# Get the file base name (no file extension)
var $file_name_base_end =call strpos $haystack=$file_substring;$needle=@@;
var $file_name_base=call substr $val=$file_substring;$start=0;$length=$file_name_base_end 
# Get the rest of the template
var $list_entry=call substr $val=$file_substring;$start=($file_name_base_end  2);
# Get the content of the description file 
var $description=call source $file=$descr/$file_name_base;$html_safe=0;
# Check for body tags
var $description_content_offset=call strpos $haystack=$description;$needle=<body;
# Extract just the content of the body tags
if $description_content_offset
var $description_content_start=call strpos $haystack=$description;$needle=>;$offset=$description_content_offset
var $description_content_end=call strpos $haystack=$description;$needle=</body;$offset=$description_content_offset
var $description=call substr $val=$description;$start=($description_content_start 1);$length=($description_content_end-$description_content_start-1) 
endif
# output the entry change this to suit your needs
print {{
<div class="xt_item"><div style="padding:5px 0px 5px 5px;width:100%;border-bottom: solid 1px #dfdfdf; border-top: solid 1px #dfdfdf; border-right: solid 1px #dfdfdf; border-left: solid 1px #dfdfdf">
<div class="xt_description"><b>Game Description:</b><br/>$description</div><br/>
$list_entry
</div></div>
}}
# Loop back for next entry
var $offset=call strpos $haystack=$filelist;$needle=||;$offset=($offset 2)
if $offset > 0
goto @loop
endif
# Get the paging code from the filelist
var $paging_code_start=call strrpos $haystack=$filelist;$needle=##
var $paging_code=call substr $val=$filelist;$start=($paging_code_start 2);
# Output the paging code and close the outer holder
print $paging_code </div>
<!--/parser:xtscript-->

Copy code


everything had been done correctly but still it doesnt show why?


GAME URL
http://nokiaasha.cf/games/240x400/download/3D_K.O_Racing.jar

Description
http://nokiaasha.cf/games/240x400/descriptions/3D_K.O_Racing

@graham @heriwap please help me to get a good result.
2015-03-05 19:57 · (0)
* admin_teGa * JavaExperts Open http://ggnnww.yn.lt/filelist_folder/filelister
2015-03-05 21:29 · (0)
* JavaExperts * admin_teGa Both the codes are same i am not asking how i asking why its (description) not working. Pls read my post again
2015-03-05 23:03 · (0)
* MHS_AN-99 * JavaExperts Maybe on this part

var $description=call substr $val=$description;$start=($description_content_start 1);$length=($description_content_end-$description_content_start-1)

see
not operation math (plus or minus)
ie:
...
($description_content_start-1)
...
maybe
2015-03-06 00:04 · (0)
* JavaExperts * MHS_AN-99 NotWorking its already plus. :(
2015-03-06 01:18 · (0)
* Graham * JavaExperts Are you running the script in the main (root) folder the descriptions folder must be relative to the CURRENT directory for the source function
give a Test page please
2015-03-06 01:21 (edited 2015-03-06 01:23 by Graham ) · (0)
* JavaExperts * Graham Graham@

below i had clearly said folders inside file manager

Game download = /games/240x400/download/

Game Image = /games/240x400/images/

Game Description = /games/240x400/descriptions/
2015-03-06 04:44 · (0)
* Graham * Graham And I clearly said are you running the script from the root directory not what directory is the description in because the source function uses addresses differently
The code on my site works fine
2015-03-06 06:43 (edited 2015-03-06 07:18 by Graham ) · (0)
* JavaExperts * Graham Ok then what about this spammer@

nokiaasha.cf [GuestBook]
[2015-03-06] http://webtutos.GQ :
Report spam
See u tommorow .... Panali idiot or Vikrant dhore or any idiot admin

(i want to get rid of this psycho person i had complained many time if this continues i dont have choice than leaving xtgem, xtgem is unsecured)
2015-03-06 09:23 · (0)
* Graham * JavaExperts Then delete them it's your guestbook !
Oh and once I put back the missing + signs your script works
2015-03-06 14:05 (edited 2015-03-06 14:34 by Graham ) · (0)

Online: Guests: 1