'; echo ' '; echo '
Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Why loop through list get index error?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
mindoff
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2016
Posts: 96

PostPosted: Thu Aug 01, 2019 3:31 am    Post subject: Why loop through list get index error? Reply with quote

I got 4 item in cheat table and run the following lua code

Code:

local addressList = getAddressList()

if addressList.getCount() >= 1 then
   for i in ipairs(addressList) do
       print(i)
   end
end



It gives me this output

1
2
3
Error:TTreeNodes.GetNodeFromIndex Index 4 out of bounds (Count=4)

If I use for do loop to loop through addressList,it won't give me error

But if I use for loop in a script not just the lua test window.

It will still give me index error,why?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25830
Location: The netherlands

PostPosted: Thu Aug 01, 2019 4:13 am    Post subject: Reply with quote

ipairs functions by looping 1 to infinite until it returns nil

addressList does not return nil but errors out if you go above
alson addressList starts the index at 0, not 1

so don't use ipairs for addressList but use a for loop instead
for i=0,addressList.Count-1 do
print(i)
end

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mindoff
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2016
Posts: 96

PostPosted: Thu Aug 01, 2019 5:01 am    Post subject: Reply with quote

Here is the errorTest.

Could someone explain what's wrong?

can't post attachment so I paste the ct source here.

I still get index error when I destroy MemoryRecord from script not lua test window.

That lua test window and script always give me different result really make me confused...

Code:

<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="26">
  <CheatEntries>
    <CheatEntry>
      <ID>7</ID>
      <Description>"Auto Assemble script"</Description>
      <LastState/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]

{$lua}

local addressList = getAddressList()
len = addressList.Count

if addressList.Count &gt; 0 then
  for i = len - 1, 0, -1  do
    itemDesc = addressList[i].getDescription()
    ret = string.match(itemDesc, "hero_")
    if ret == "hero_" then
       addressList[i].destroy()
    end
  end
end
 
[DISABLE]

</AssemblerScript>
    </CheatEntry>
    <CheatEntry>
      <ID>0</ID>
      <Description>"1"</Description>
      <LastState Value="3" RealAddress="01014000"/>
      <VariableType>4 Bytes</VariableType>
      <Address>01014000</Address>
    </CheatEntry>
    <CheatEntry>
      <ID>1</ID>
      <Description>"2"</Description>
      <LastState Value="3" RealAddress="01014000"/>
      <VariableType>4 Bytes</VariableType>
      <Address>01014000</Address>
    </CheatEntry>
    <CheatEntry>
      <ID>2</ID>
      <Description>"3"</Description>
      <LastState Value="3" RealAddress="01014000"/>
      <VariableType>4 Bytes</VariableType>
      <Address>01014000</Address>
    </CheatEntry>
    <CheatEntry>
      <ID>3</ID>
      <Description>"4"</Description>
      <LastState Value="3" RealAddress="01014000"/>
      <VariableType>4 Bytes</VariableType>
      <Address>01014000</Address>
    </CheatEntry>
    <CheatEntry>
      <ID>8</ID>
      <Description>"hero_1"</Description>
      <LastState Value="3" RealAddress="01014000"/>
      <VariableType>4 Bytes</VariableType>
      <Address>01014000</Address>
    </CheatEntry>
    <CheatEntry>
      <ID>9</ID>
      <Description>"hero_2"</Description>
      <LastState Value="3" RealAddress="01014000"/>
      <VariableType>4 Bytes</VariableType>
      <Address>01014000</Address>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>

Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25830
Location: The netherlands

PostPosted: Thu Aug 01, 2019 5:20 am    Post subject: Reply with quote

you're destroying the memoryrecord you're activating as well
so when the function returns to set the state of the memoryrecord to active or not active it'll crash

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mindoff
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2016
Posts: 96

PostPosted: Thu Aug 01, 2019 5:45 am    Post subject: Reply with quote

So what should I do if I want to delete memoryrecord with specfic description name from script to make things work withour error?Any method I can do this correctly?

And you know what,the funny thing is if you move the script down to the bottom and run it again,it will work.

Since I will add memoryrecord from script and will add to bottom by default,so I need to figure why those thing really different.

And how to make a correct script run at any place.
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 959

PostPosted: Thu Aug 01, 2019 6:44 am    Post subject: Reply with quote

Somehow the memory record has an unlisted method 'delete',
probably from treenode class (but no deleteChildren method);
you can delete itself or its children like these:
Code:

mr.delete() -- delete itself
while mr.Count>0 do mr[0].delete() end -- delete all its children

_________________
- Retarded.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
'attach'][$_attach_i]['cat_swf'][$_cat_swf_i]['HEIGHT'] : '') , '"> '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '

'; echo '
'; echo '

'; } // END cat_swf $_cat_images_count = (isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'])) ? sizeof($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images']) : 0;for ($_cat_images_i = 0; $_cat_images_i < $_cat_images_count; $_cat_images_i++){ echo '

'; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['DOWNLOAD_NAME'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['DOWNLOAD_NAME'] : '') , '
 ' , ((isset($this->_tpldata['.'][0]['L_DESCRIPTION'])) ? $this->_tpldata['.'][0]['L_DESCRIPTION'] : '') , ': '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['COMMENT'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['COMMENT'] : '') , '
'; echo '
 ' , ((isset($this->_tpldata['.'][0]['L_FILESIZE'])) ? $this->_tpldata['.'][0]['L_FILESIZE'] : '') , ': ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['FILESIZE'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['FILESIZE'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['SIZE_VAR'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['SIZE_VAR'] : '') , '
 ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['L_DOWNLOADED_VIEWED'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['L_DOWNLOADED_VIEWED'] : '') , ': ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['L_DOWNLOAD_COUNT'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['L_DOWNLOAD_COUNT'] : '') , '

' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['DOWNLOAD_NAME'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_images'][$_cat_images_i]['DOWNLOAD_NAME'] : '') , '

'; echo '

'; } // END cat_images $_cat_thumb_images_count = (isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'])) ? sizeof($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images']) : 0;for ($_cat_thumb_images_i = 0; $_cat_thumb_images_i < $_cat_thumb_images_count; $_cat_thumb_images_i++){ echo '

'; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['DOWNLOAD_NAME'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['DOWNLOAD_NAME'] : '') , '
 ' , ((isset($this->_tpldata['.'][0]['L_DESCRIPTION'])) ? $this->_tpldata['.'][0]['L_DESCRIPTION'] : '') , ': '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['COMMENT'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['COMMENT'] : '') , '
'; echo '
 ' , ((isset($this->_tpldata['.'][0]['L_FILESIZE'])) ? $this->_tpldata['.'][0]['L_FILESIZE'] : '') , ': ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['FILESIZE'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['FILESIZE'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['SIZE_VAR'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['SIZE_VAR'] : '') , '
 ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['L_DOWNLOADED_VIEWED'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['L_DOWNLOADED_VIEWED'] : '') , ': ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['L_DOWNLOAD_COUNT'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['L_DOWNLOAD_COUNT'] : '') , '

' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['DOWNLOAD_NAME'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['cat_thumb_images'][$_cat_thumb_images_i]['DOWNLOAD_NAME'] : '') , '

'; echo '

'; } // END cat_thumb_images $_attachrow_count = (isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'])) ? sizeof($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow']) : 0;for ($_attachrow_i = 0; $_attachrow_i < $_attachrow_count; $_attachrow_i++){ echo '

'; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['DOWNLOAD_NAME'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['DOWNLOAD_NAME'] : '') , '
 ' , ((isset($this->_tpldata['.'][0]['L_DESCRIPTION'])) ? $this->_tpldata['.'][0]['L_DESCRIPTION'] : '') , ': '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['COMMENT'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['COMMENT'] : '') , '
'; echo '
' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['S_UPLOAD_IMAGE'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['S_UPLOAD_IMAGE'] : '') , '
_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['TARGET_BLANK'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['TARGET_BLANK'] : '') , ' class="genmed">' , ((isset($this->_tpldata['.'][0]['L_DOWNLOAD'])) ? $this->_tpldata['.'][0]['L_DOWNLOAD'] : '') , '
 ' , ((isset($this->_tpldata['.'][0]['L_FILENAME'])) ? $this->_tpldata['.'][0]['L_FILENAME'] : '') , ': ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['DOWNLOAD_NAME'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['DOWNLOAD_NAME'] : '') , '
 ' , ((isset($this->_tpldata['.'][0]['L_FILESIZE'])) ? $this->_tpldata['.'][0]['L_FILESIZE'] : '') , ': ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['FILESIZE'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['FILESIZE'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['SIZE_VAR'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['SIZE_VAR'] : '') , '
 ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['L_DOWNLOADED_VIEWED'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['L_DOWNLOADED_VIEWED'] : '') , ': ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['L_DOWNLOAD_COUNT'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['L_DOWNLOAD_COUNT'] : '') , '
'; echo '

'; } // END attachrow echo ' '; } // END attach echo '' , ((isset($this->_tpldata['postrow'][$_postrow_i]['SIGNATURE'])) ? $this->_tpldata['postrow'][$_postrow_i]['SIGNATURE'] : '') , '' , ((isset($this->_tpldata['postrow'][$_postrow_i]['EDITED_MESSAGE'])) ? $this->_tpldata['postrow'][$_postrow_i]['EDITED_MESSAGE'] : '') , ' '; echo ' '; $_warning_count = (isset($this->_tpldata['postrow'][$_postrow_i]['warning'])) ? sizeof($this->_tpldata['postrow'][$_postrow_i]['warning']) : 0;for ($_warning_i = 0; $_warning_i < $_warning_count; $_warning_i++){ echo ' '; echo '
' , ((isset($this->_tpldata['postrow'][$_postrow_i]['warning'][$_warning_i]['ICON'])) ? $this->_tpldata['postrow'][$_postrow_i]['warning'][$_warning_i]['ICON'] : '') , '' , ((isset($this->_tpldata['postrow'][$_postrow_i]['warning'][$_warning_i]['DETAILS'])) ? $this->_tpldata['postrow'][$_postrow_i]['warning'][$_warning_i]['DETAILS'] : '') , '
' , ((isset($this->_tpldata['.'][0]['L_REASON'])) ? $this->_tpldata['.'][0]['L_REASON'] : '') , ': ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['warning'][$_warning_i]['MESSAGE'])) ? $this->_tpldata['postrow'][$_postrow_i]['warning'][$_warning_i]['MESSAGE'] : '') , '
'; echo ' '; } // END warning echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' ' , ((isset($this->_tpldata['.'][0]['L_BACK_TO_TOP'])) ? $this->_tpldata['.'][0]['L_BACK_TO_TOP'] : '') , ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['postrow'][$_postrow_i]['PROFILE_IMG'])) ? $this->_tpldata['postrow'][$_postrow_i]['PROFILE_IMG'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['PM_IMG'])) ? $this->_tpldata['postrow'][$_postrow_i]['PM_IMG'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['EMAIL_IMG'])) ? $this->_tpldata['postrow'][$_postrow_i]['EMAIL_IMG'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['WWW_IMG'])) ? $this->_tpldata['postrow'][$_postrow_i]['WWW_IMG'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['AIM_IMG'])) ? $this->_tpldata['postrow'][$_postrow_i]['AIM_IMG'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['YIM_IMG'])) ? $this->_tpldata['postrow'][$_postrow_i]['YIM_IMG'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['MSN_IMG'])) ? $this->_tpldata['postrow'][$_postrow_i]['MSN_IMG'] : '') , '' , ((isset($this->_tpldata['postrow'][$_postrow_i]['YELLOW_IMG'])) ? $this->_tpldata['postrow'][$_postrow_i]['YELLOW_IMG'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['RED_IMG'])) ? $this->_tpldata['postrow'][$_postrow_i]['RED_IMG'] : '') , '
'; echo ' '; echo ' '; echo ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['ADCODE'])) ? $this->_tpldata['postrow'][$_postrow_i]['ADCODE'] : '') , ' '; echo ' '; } // END postrow echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['.'][0]['L_DISPLAY_POSTS'])) ? $this->_tpldata['.'][0]['L_DISPLAY_POSTS'] : '') , ': ' , ((isset($this->_tpldata['.'][0]['S_SELECT_POST_DAYS'])) ? $this->_tpldata['.'][0]['S_SELECT_POST_DAYS'] : '') , ' ' , ((isset($this->_tpldata['.'][0]['S_SELECT_POST_ORDER'])) ? $this->_tpldata['.'][0]['S_SELECT_POST_ORDER'] : '') , ' 
'; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['.'][0]['L_POST_NEW_TOPIC'])) ? $this->_tpldata['.'][0]['L_POST_NEW_TOPIC'] : '') , '   ' , ((isset($this->_tpldata['.'][0]['L_POST_REPLY_TOPIC'])) ? $this->_tpldata['.'][0]['L_POST_REPLY_TOPIC'] : '') , ' '; $_switch_quick_reply_count = (isset($this->_tpldata['switch_quick_reply'])) ? sizeof($this->_tpldata['switch_quick_reply']) : 0;for ($_switch_quick_reply_i = 0; $_switch_quick_reply_i < $_switch_quick_reply_count; $_switch_quick_reply_i++){ echo '   ' , ((isset($this->_tpldata['.'][0]['L_POST_SQR_TOPIC'])) ? $this->_tpldata['.'][0]['L_POST_SQR_TOPIC'] : '') , ' '; } // END switch_quick_reply echo '   ' , ((isset($this->_tpldata['.'][0]['L_INDEX'])) ? $this->_tpldata['.'][0]['L_INDEX'] : '') , ' '; $_switch_parent_link_count = (isset($this->_tpldata['switch_parent_link'])) ? sizeof($this->_tpldata['switch_parent_link']) : 0;for ($_switch_parent_link_i = 0; $_switch_parent_link_i < $_switch_parent_link_count; $_switch_parent_link_i++){ echo ' -> ' , ((isset($this->_tpldata['.'][0]['PARENT_NAME'])) ? $this->_tpldata['.'][0]['PARENT_NAME'] : '') , ' '; } // END switch_parent_link echo ' -> ' , ((isset($this->_tpldata['.'][0]['FORUM_NAME'])) ? $this->_tpldata['.'][0]['FORUM_NAME'] : '') , '' , ((isset($this->_tpldata['.'][0]['S_TIMEZONE'])) ? $this->_tpldata['.'][0]['S_TIMEZONE'] : '') , '
' , ((isset($this->_tpldata['.'][0]['PAGINATION'])) ? $this->_tpldata['.'][0]['PAGINATION'] : '') , ' '; echo '
' , ((isset($this->_tpldata['.'][0]['PAGE_NUMBER'])) ? $this->_tpldata['.'][0]['PAGE_NUMBER'] : '') , '
'; echo ' '; $_switch_quick_reply_count = (isset($this->_tpldata['switch_quick_reply'])) ? sizeof($this->_tpldata['switch_quick_reply']) : 0;for ($_switch_quick_reply_i = 0; $_switch_quick_reply_i < $_switch_quick_reply_count; $_switch_quick_reply_i++){ echo ' ' , ((isset($this->_tpldata['.'][0]['QRBODY'])) ? $this->_tpldata['.'][0]['QRBODY'] : '') , ' '; } // END switch_quick_reply echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
' , ((isset($this->_tpldata['.'][0]['S_WATCH_TOPIC'])) ? $this->_tpldata['.'][0]['S_WATCH_TOPIC'] : '') , '
'; echo '  
'; echo ' ' , ((isset($this->_tpldata['.'][0]['S_TOPIC_ADMIN'])) ? $this->_tpldata['.'][0]['S_TOPIC_ADMIN'] : '') , '
' , ((isset($this->_tpldata['.'][0]['JUMPBOX'])) ? $this->_tpldata['.'][0]['JUMPBOX'] : '') , '' , ((isset($this->_tpldata['.'][0]['S_AUTH_LIST'])) ? $this->_tpldata['.'][0]['S_AUTH_LIST'] : '') , '
'; echo ' '; ?>


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites