|
Joined: Mar 2005
Posts: 39
User
|
User
Joined: Mar 2005
Posts: 39 |
Hi
Is there a way to make the attachment links be more obvious to users? If you don't know where to look you miss it very easy.
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
Um... yes? Make it bold? Make it a different color? Move it? Couldn't think of those?
|
|
|
|
Joined: Mar 2005
Posts: 39
User
|
User
Joined: Mar 2005
Posts: 39 |
Well, yes, of course. I just don't know how to do it. 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
In showflat.tmpl template look for this: {$postrow[$i]['filelink']} Add bold, or color, or size html tags around it as you wish. Example: <b><font size="+1">{$postrow[$i]['filelink']}</font></b> In showthreaded.tmpl what you're looking for is this: $filelink 
|
|
|
|
Joined: Mar 2005
Posts: 39
User
|
User
Joined: Mar 2005
Posts: 39 |
Hey that's great, I'll try it once I've sorted out this other problem I'm faced with. I'm trying to upload an attachment of 3.2MB zip file (size limit set to around 8MB) and everytine I do it it seems to get uploaded, no errors, the page comes up to say it's been added. BUT, no file...... looked in the folder, not there. Others have had success with zip files so it's not an extention thing and smaller zip files work for me. 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Generally PHP has a 2 MB limit - which you can't override from within threads. If it's your server, you can edit the php.ini file for your PHP configuration and raise the limit. Otherwise on most servers, the default max built into php for file uploads will be 2MB.
|
|
|
|
Joined: Mar 2005
Posts: 39
User
|
User
Joined: Mar 2005
Posts: 39 |
Ahhh, that must be it. I'll contact my host provider and get them to change it. 
|
|
|
|
Joined: Mar 2005
Posts: 39
User
|
User
Joined: Mar 2005
Posts: 39 |
[] JoshPet said: In showflat.tmpl template look for this: {$postrow[$i]['filelink']} Add bold, or color, or size html tags around it as you wish. Example: <b><font size="+1">{$postrow[$i]['filelink']}</font></b> In showthreaded.tmpl what you're looking for is this: $filelink  [/] Iv'e got that allsussed out thankyou. Now if I want to put the disk icon to the left of the "attachment link" I would put this string <img src="http://dvdquestions.com.au/ubbthreads/images/icons/disk.gif" somewhere, but where? If I put it in the same place it appears in all the posts in that thread. Thanks
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
You can look in showflat.php and showthreaded.php - search for those variables ($filelink etc...) and you'll see where the HTML is defined. You can add it there.
|
|
|
|
Joined: Mar 2005
Posts: 39
User
|
User
Joined: Mar 2005
Posts: 39 |
Does it go in the same spot as when I changed it to bold? As I mentioned it goes on every post in the thread then. Here's what I have <font class="small"> <a name="#{$postrow[$i]['Number']}">#<span id="number$i">{$postrow[$i]['Number']}</span> - {$postrow[$i]['time']} <i>{$postrow[$i]['IP']}</i> <b>{$postrow[$i]['filelink']}</b> </font> and I was adding <image scr="http://dvdquestions.com.au/ubbthreads/images/icons/disk.gif" before this bit <b>{$postrow[$i]['filelink']}</b> What I do wrong? 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
No the showflat. php and showthreaded. php scripts (not template). Search for those variables and you'll see where they defined. 
|
|
|
|
Joined: Mar 2005
Posts: 39
User
|
User
Joined: Mar 2005
Posts: 39 |
ahhhhh, but I'm still not doing it right.
My line in the script
$postrow[$i]['filelink'] =<img src=\http://dvdquestions.com.au/ubbthreads/images/icons/disk.gif"<a href="{$config['phpurl']}/download.php?Number=$Number">{$ubbt_lang['FILE_ATTACH']}</a> ($downloads {$ubbt_lang['DOWNLOADS']})";
errors
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Your HTML is a mess.  Missing a quote and a closing tag. $postrow[$i]['filelink'] = "<img src="http://dvdquestions.com.au/ubbthreads/images/icons/disk.gif" alt="{$ubbt_lang['FILE_ATTACH']}"/><a href="{$config['phpurl']}/download.php?Number=$Number">{$ubbt_lang['FILE_ATTACH']}</a> ($downloads {$ubbt_lang['DOWNLOADS']})"; Should do it.
|
|
|
|
Joined: Mar 2005
Posts: 39
User
|
User
Joined: Mar 2005
Posts: 39 |
Just like spaghetti hehe 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|