Where's the <tbody> tag?
Posted by cd5ssmffan
|
Where's the <tbody> tag? June 21, 2018 02:43AM |
Registered: 7 years ago Posts: 5 |
The main forum overview (table class list") has the <tbody> tag directly inside. I can't find this tag anywhere in the code, not can I find the table rows inside tbody either... I've even tried the search function on github, but I can't find the exact one. Does anyone know where these tags are?
|
June 21, 2018 03:27AM |
Admin Registered: 19 years ago Posts: 746 |
Look at the template files (*.tpl) in folder /templates/.
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
|
Re: Where's the <tbody> tag? June 21, 2018 03:45AM |
Registered: 7 years ago Posts: 5 |
|
Re: Where's the <tbody> tag? June 21, 2018 11:06AM |
Admin Registered: 19 years ago Posts: 575 |
|
Re: Where's the <tbody> tag? June 21, 2018 08:05PM |
Registered: 7 years ago Posts: 5 |
I have already checked there, it doesn't exist. Here's the whole file:
[pastebin.com]
I assume it's of the {FORUMS->...} tags but I am not sure how to edit those
[pastebin.com]
I assume it's of the {FORUMS->...} tags but I am not sure how to edit those
|
Re: Where's the <tbody> tag? June 23, 2018 01:59PM |
Admin Registered: 19 years ago Posts: 575 |
|
Re: Where's the <tbody> tag? June 23, 2018 05:36PM |
Registered: 7 years ago Posts: 5 |
|
Re: Where's the <tbody> tag? June 24, 2018 04:11PM |
Admin Registered: 19 years ago Posts: 575 |
<tbody> is either assembled from bits, or javascript. I was unable to locate it.
The Phorum Core from which you retrieved index_flat.tpl is not close to up to date.
I would suggest you get the latest from the 5.2 branch
I took a short part of the code on Pastebin.
php reads this code in and using instructions from Phorum, substitutes actual data contained in an Array, or sometimes right from the database. The following descriptions are simplified
The Phorum Core from which you retrieved index_flat.tpl is not close to up to date.
I would suggest you get the latest from the 5.2 branch
I took a short part of the code on Pastebin.
php reads this code in and using instructions from Phorum, substitutes actual data contained in an Array, or sometimes right from the database. The following descriptions are simplified
<table cellspacing="0" class="list"> // begin the table
{LOOP FORUMS} // take one row from an Array of 0 or more rows, make a pass through the following lines
// performing the tests, writing the <???> ... </???> tags, and substituting the actual values/strings/URLs
// in the language specified.
{IF FORUMS->level 0} // test to see if the Forum meets the condition, if true go to next line of code,
// if false jump to line after {ELSE} near the end of the code
<tr> // if we are here, write the opening tag <tr> to an Arrray, or temp or cache file.
// creates a row if closed somewhere below
{IF FORUMS->forum_id FORUMS->vroot} // another test if true, go to next line, if false go to
// line after {ELSE)
<th align="left"> // write <th align="left"> to an Arrray, or temp or cache file
<img src="{URL->TEMPLATE}/images/folder.png" class="icon1616" alt="•" />
// write the URL for the .png
{LANG->Forums} // get the correct language for the word "Forums" and write it in that
// language to an Arrray, or temp or cache file
</th> // write the header cell closing tag
{ELSE} // this is the ELSE for {IF FORUMS->forum_id FORUMS->vroot}
<th align="left"> // if here, write <th align="left"> to an Arrray, or temp or cache file
<img src="{URL->TEMPLATE}/images/folder.png" class="icon1616" alt="•" />
// write the URL for the .png
<a href="{FORUMS->URL->LIST}">{FORUMS->name}</a> // write the URL for one folder or forum
</th> // write the header cell closing tag
{/IF} // ends {IF FORUMS->forum_id FORUMS->vroot}
<th>{LANG->Threads}</th> // get the correct language and write the word "Threads" in that language
<th>{LANG->Posts}</th>
<th align="left">{LANG->LastPost}</th>
</tr>
{ELSE} // this is the ELSE for {IF FORUMS->level 0}
<tr>
// other stuff similar to above
</tr>
{/IF} // ends {IF FORUMS->level 0}
{/LOOP FORUMS} // when this line is read we go back to {LOOP FORUMS} at the top get another row from the Array
</table> // at some point we run out of Forums, or Folders and write the closing tag for the table
|
Re: Where's the <tbody> tag? June 26, 2018 09:30AM |
Admin Registered: 19 years ago Posts: 575 |
A bit of further investigation...
Using Firefox 56
Right click "View Page Source" on this forum, my forum, and my test forum on localhost. A search does not find a <tbody>.
Saving the page to disk from the web site does not change the result.
Right click "Inspect Element (Q)" , lo and behold the code for the table now has a <tbody>.
Using Firefox 56
Right click "View Page Source" on this forum, my forum, and my test forum on localhost. A search does not find a <tbody>.
Saving the page to disk from the web site does not change the result.
Right click "Inspect Element (Q)" , lo and behold the code for the table now has a <tbody>.
Sorry, only registered users may post in this forum.