Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
in post_side.tpl :
Code
{if $postrow[post].filelink}
<br /><br />
<b>{$lang.FILE_ATTACH}</b>
<br />
{$postrow[post].filelink}<br />{/if}

There is no anchar tag (<A>) in the code , so attachments cannot be downloaded.


English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
The tags are generated in the script itself actually.

Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
Originally Posted by Rick
The tags are generated in the script itself actually.
I got the reason :
in showflat.inc.php :
Code
if (!$forum_info['FORUM_IS_GALLERY']) {
  if (!$downloads) { $downloads = "0"; }
  if ($size < $config['INLINE_IMAGE'] && in_array($ext,$img_array)) {
    $postrow[$i]['filelink'] .= "<img src=\"" . preg_replace('#\.html$#', '', make_ubb_url("ubb=download&Number=$file_id&filename=$filename_orig", "", false)) . "\" alt=\"{$filename_orig}\" title=\"{$filename_orig}\" /><br /><br />";
  } else {
    $postrow[$i]['filelink'] .= "<a href=\"" . preg_replace('#\.html$#', '', make_ubb_url("ubb=download&Number=$file_id&filename=$filename_orig", "", false)) . "\">$filename_orig</a>  <span class=\"small\">($downloads {$ubbt_lang['DOWNLOADS']})</span><br />";
  } // end if
  if ($file_desc) {
    $postrow[$i]['filelink'] .= "<span class='small'>{$ubbt_lang['FILE_DESC']} $file_desc</span><br /><br />";
  }
} 

The post is generated since old ubbthreads6 or 5 or even older.
When transform to ubb7 , the import script may not handle the column "$filename_orig" well , so it becomes empty.

I think you'd better check the import script or fix the showflat.inc.php


English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (1 invisible), 304 guests, and 96 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)