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 04-06-2011, 04:47 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default CMS plugin to allow a different number of attachments from forum

Currently vbulletin only has one setting to limit the number of attachments in the forum. This one setting, unfortunately, also limit the CMS to the same number of attachments. So, for instance if I wanted to allow 5 attachments per post in the forum, I can only allow 5 attachments per post in the CMS articles.

What I am looking for is a way to set a separate limit for the number of allowed attachments in the CMS. I currently use my cms as an article section without comments. I would like to have up to 25 attachments allowed within a single article, but do not want more than 4 or 5 attachments allowed in a regular forum post.

I am requesting a plugin that would create a setting in the admincp (preferably in the CMS settings area) to set the number of allowed attachments per article. Anyone know how to create such a plugin? Seems like this should be a standard setting for a Content Management System.

Thanks so much!

Kether
Reply With Quote
  #2  
Old 04-06-2011, 05:15 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not hitting any restrictions on my forum for posting attachments via linking images, only when using the full attachment manager.

Try this though, its just a plugin, so import it via the plugin manager: Download / Upload Plugins
Attached Files
File Type: xml moreattachments.xml (336 Bytes, 14 views)
Reply With Quote
  #3  
Old 04-06-2011, 06:23 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Zachery! I appreciate you taking the time to help me by creating this plugin. I will give it a try now.

Much appreciative,
Kether

Hi Zachery,

Seems this plugin is overriding the forum permission. I am going to play with the execution order to see if that will change anything. It totally worked for the CMS, but after posting an article with 22 images, I posted a link in the forum (which is set to accept only 4 images) and I uploaded 5 attachments into one post. Before the plugin, I would get a red "!" icon saying that I was limited to only 4 attachments.

I will post back if the execution order changes anything. Thanks again.

--------------- Added [DATE]1302119766[/DATE] at [TIME]1302119766[/TIME] ---------------

Seems the plugin overrides the forum attachment limit. Any ideas on how to get it to work?

Thanks
Kether
Reply With Quote
  #4  
Old 04-06-2011, 06:57 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I might be using the wrong check.

Edit the plugin and replace CMS_SCRIPT == true with
THIS_SCRIPT == vbcms
Reply With Quote
  #5  
Old 04-06-2011, 07:22 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried it with the edit, but no joy. The forum limit of 4 images is being maintained in the CMS. Any other ideas?

Thanks,
Kether
Reply With Quote
  #6  
Old 04-07-2011, 10:26 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hate to bump this, but I do need some help. Can anyone offer any additional assistance to get this to work correctly? Thank for your effort Zachery.

Kether
Reply With Quote
  #7  
Old 04-08-2011, 11:25 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Once more for good measure. BUMP!

I really need some help with this. Anyone?

Thanks,
Kether
Reply With Quote
  #8  
Old 04-10-2011, 05:51 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guess this is not possible then? I hope that vb will improve the cms with some permissions soon.
Reply With Quote
  #9  
Old 04-10-2011, 10:57 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried anything on your own?
Reply With Quote
  #10  
Old 04-10-2011, 11:42 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
Have you tried anything on your own?
hahaha... your kidding me, right? I have tried lots of variations of the code in the plugin, different hooks, different ex orders -- but just cannot get anything to work. Sure it increases the number of allowed attachments in the CMS, but it also changes in the forum. They seem inseparable.

I am at a loss at what else to try. I posted at vb.com and here. I sent pms to a couple of my buddys who both said that they wouldn't even consider using the CMS. You are the only person to respond positively with any direction at all in the two public forums. Maybe no one else is having this issue??

I am not sure what else to do. If you have any suggestions - I am willing to try.
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:40 PM.


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.05250 seconds
  • Memory Usage 2,269KB
  • Queries Executed 12 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete