View Full Version : Change attachments place on 1 row for 2 types
danyxxx
08-07-2011, 03:15 PM
Hello,
How cand I change the place of two types of attachments : .rar and .txt .
I mean , when I attach 2 files , for exemple:
vbulletin.rar
vbulletin.txt
This two types I want to be on 1 row , like this:
vbulletin.rar (0 views) - vbulletin.txt (0 views)
Instead of:
vbulletin.rar (0 views)
vbulletin.txt (0 views)
How can I do this ?
But if there are more then 2 files with that type, the modification put the rest of them to another row, 2 on 2 , like this:
vbulletin.rar (0 views) - vbulletin.txt (0 views)
vbulletin1.rar (0 views) - vbulletin1.txt (0 views)
vbulletin2.rar (0 views) - vbulletin2.txt (0 views)
You catch the idea .
So do the filenames always match? You want to search all the attachments to see if there are two with matching names with .txt and .rar?
Also, with the other mod you asked for earlier, if there is more than one set wouldn't they just all say "get file" and "get archive"?
danyxxx
08-07-2011, 07:50 PM
Yes , the prevous method works, I fixed a little, but for exmple if I attach this files:
vbulletin.txt, vbulletin1.txt, vbulletin2.txt, vbulletin.rar, vbulletin1.rar, vbulletin2.rar
The attach method looks this way:
Get File ( vbulletin.txt - 0 downloads - size: 59 Bytes )
Get File ( vbulletin1.txt - 0 downloads - size: 59 Bytes )
Get File ( vbulletin2.txt - 0 downloads - size: 59 Bytes )
Get File ( vbulletin.rar - 0 downloads - size: 159 Bytes )
Get File ( vbulletin1.rar - 0 downloads - size: 159 Bytes )
Get File ( vbulletin2.rar - 0 downloads - size: 159 Bytes )
I want to looks this way:
Get File ( vbulletin.txt - 0 downloads - size: 59 Bytes ) - Get File ( vbulletin.rar - 0 downloads - size: 159 Bytes )
Get File ( vbulletin1.txt - 0 downloads - size: 59 Bytes ) - Get File ( vbulletin1.rar - 0 downloads - size: 159 Bytes )
Get File ( vbulletin2.txt- 0 downloads - size: 59 Bytes ) - Get File ( vbulletin2.rar - 0 downloads - size: 159 Bytes )
Now, you understand?
I want , the modification to make a new row if in the first row are two attachments (but on my forum in each row is only one attachment) for two types: .rar and .txt (or even if they are only two attachments)
If you want I can give you an exemple from a vbulletin forum that have something like this but for other types , I don't want to make like them, I want only for this two types , they have for other types not for this .
danyxxx
08-13-2011, 06:13 AM
Nobody ? :erm:
Lynne
08-13-2011, 03:31 PM
That is not going to be easy. You would need to search for any with a .txt extension, then find the corresponding .rar extension and put them together. Then do that for each 'set'. Putting them together as a set is going to be your challenge.
danyxxx
08-14-2011, 05:11 PM
Maybe for all attachments, when are more then two uploaded to make the new row?
Maximum two attachments to 1 row .
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.