Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2011, 03:15 PM
danyxxx danyxxx is offline
 
Join Date: Oct 2010
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 .
Reply With Quote
  #2  
Old 08-07-2011, 06:42 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"?
Reply With Quote
  #3  
Old 08-07-2011, 07:50 PM
danyxxx danyxxx is offline
 
Join Date: Oct 2010
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #4  
Old 08-13-2011, 06:13 AM
danyxxx danyxxx is offline
 
Join Date: Oct 2010
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nobody ? :erm:
Reply With Quote
  #5  
Old 08-13-2011, 03:31 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-14-2011, 05:11 PM
danyxxx danyxxx is offline
 
Join Date: Oct 2010
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe for all attachments, when are more then two uploaded to make the new row?
Maximum two attachments to 1 row .
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11433 seconds
  • Memory Usage 2,205KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete