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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,018 guests, and 215 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)