vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Change attachments place on 1 row for 2 types (https://vborg.vbsupport.ru/showthread.php?t=268123)

danyxxx 08-07-2011 03:15 PM

Change attachments place on 1 row for 2 types
 
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 .

kh99 08-07-2011 06:42 PM

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 .


All times are GMT. The time now is 05:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00978 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete