Previous Thread
Next Thread
Print Thread
Rate Thread
#284521 03/27/2005 5:35 PM
Joined: Mar 2005
Posts: 39
User
User
Offline
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.

Sponsored Links
lisaspeechie #284522 03/28/2005 4:10 AM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Um... yes? Make it bold? Make it a different color? Move it? Couldn't think of those?

eslmix #284523 03/28/2005 10:58 PM
Joined: Mar 2005
Posts: 39
User
User
Offline
Joined: Mar 2005
Posts: 39
Well, yes, of course. I just don't know how to do it.

lisaspeechie #284524 03/29/2005 1:56 AM
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


Daine #284525 03/29/2005 2:04 AM
Joined: Mar 2005
Posts: 39
User
User
Offline
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.

Sponsored Links
lisaspeechie #284526 03/29/2005 2:24 AM
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.

Daine #284527 03/29/2005 2:44 AM
Joined: Mar 2005
Posts: 39
User
User
Offline
Joined: Mar 2005
Posts: 39
Ahhh, that must be it. I'll contact my host provider and get them to change it.

Daine #284528 03/29/2005 7:48 PM
Joined: Mar 2005
Posts: 39
User
User
Offline
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

lisaspeechie #284529 03/29/2005 9:22 PM
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.

Daine #284530 03/29/2005 9:51 PM
Joined: Mar 2005
Posts: 39
User
User
Offline
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?

Sponsored Links
lisaspeechie #284531 03/29/2005 10:11 PM
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.

Daine #284532 03/29/2005 10:42 PM
Joined: Mar 2005
Posts: 39
User
User
Offline
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

lisaspeechie #284533 03/29/2005 11:55 PM
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.

Daine #284534 03/30/2005 12:08 AM
Joined: Mar 2005
Posts: 39
User
User
Offline
Joined: Mar 2005
Posts: 39
Just like spaghetti hehe


lisaspeechie #284535 03/30/2005 2:45 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)