Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2013, 11:09 AM
nirvana43's Avatar
nirvana43 nirvana43 is offline
 
Join Date: Oct 2007
Location: Pune, India
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to create or add plugins in vBulletin 5.0?

How to add plugin in vBulleitn 5.0 admincp?

I am creating a mod for vbulletin v5.0.0 platform, for that i need to add plugins using their "vBulletin Plugins" feature which used to be in vBulletin 4.0, vBulletin 3.0, etc. But there is no "Plugins Manager" inside vBulletin 5.0 admincp. So can anyone please tell me how to add plugins or achieve similar facility in vBulletin 5.0.

Here is the link to vBulletin's official documentation on "Adding and editing a Plugin" : http://www.vbulletin.com/docs/html/main/add_plugin

Is there a way to create plugins in vBulletin 5.0?

Please guide me. Thanks in advance.

Cheers..!!
Reply With Quote
  #2  
Old 04-11-2013, 04:42 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are no plugins as used in vB3/4 in vB5. The documentation hasn't been updated to account for that.

There are hooks into the template system and products that can be created to extend the vB5 core functions.
Reply With Quote
  #3  
Old 04-11-2013, 06:28 PM
x iJailBreak x's Avatar
x iJailBreak x x iJailBreak x is offline
 
Join Date: Jan 2011
Location: United Kingdom
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The new vB5 plugin system is ridiculous. It seems to be a developer's nightmare.
Reply With Quote
  #4  
Old 04-11-2013, 06:28 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The vBulletin 5 software doesn't work with the old hooks system. It uses extensions instead.
Reply With Quote
  #5  
Old 04-11-2013, 06:54 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by x iJailBreak x View Post
The new vB5 plugin system is ridiculous. It seems to be a developer's nightmare.
While I'll happily agree that it's got some issues, there's a great number of things in the new plugin system that - once you get over the initial hill of "AAHH EVERYTHING IS NEW I DON'T KNOW WHAT'S GOING ON HALP HALP HALP" - make it quite awesome to code for.

The fact that it enforces a directory structure makes it easier for developers to learn how to create their own mods by looking at other mods. If you see every other mod having their files in a certain way, named a certain way, classes named a certain way... Patterns start to emerge. That's a lot easier to learn than the current system, where developers can really do whatever they want - new coders will have a harder time getting into good habits (i.e. not spreading your files in a billion different vB folders which makes it harder for users to completely uninstall the mods).

My favourite new feature in vB5 is the {vb:data} tag that allows you to call APIs from the templates. This shifts vBulletin from being a code-first to a template-first system.
What I mean by this is that vB first renders the page template, then executes any PHP code you want from within that template. No more having to store your template in a PHP var and remember not to overwrite it / having to deal with other plugins overwriting the template hooks by not knowing the difference between .= and = etc.
This alone makes vB5 a lot of fun to code for.

A very close second is the Site Builder. I couldn't even begin to count the number of times myself or anyone else on our team has had a support request "So currently X is beneath Y and I want it the other way around" and we have to fiddle around with execution orders of plugins.
Who wants that? Nobody. In vB5, they can simply re-order the widgets themselves.
Not only that, but it allows people to drop the same functionality (like a Shoutbox) in multiple places on the same page. They can easily drop the Shoutbox on every page they want (and fine-tune what pages they don't want it on by simply not putting it there in the first place).

Back-end wise, the new cache system in vB5 is stupidly powerful. Being someone who loves caching things, the cache system in vB5 is a dream come true. If developers don't end up taking advantage of it to cache queries where it makes sense to do so (i.e. the result set isn't frequently modified to the point where it takes more resources to purge/recache than it does to query) I will be very upset indeed.


In short, I think the whole "this is outside my comfort zone that I've built up over the past 9 years working with vBulletin 3.x / 4.x" has clouded a lot of people's judgements when they are passing judgement over vB5's developer friendliness.

That's not to say there's no legitimate complaints, the gods know I've voiced mine on numerous occasions, but it's not terrible by any stretch of the imagination.


Fillip
Reply With Quote
3 благодарности(ей) от:
Lynne, nhawk, tbworld
  #6  
Old 04-13-2013, 12:48 AM
nirvana43's Avatar
nirvana43 nirvana43 is offline
 
Join Date: Oct 2007
Location: Pune, India
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree.. the new MVC has put so much power into vb mods by providing a facility to directly extend core VB API. And it is easier than vb's previous plugins system.

Cheers!!
Reply With Quote
  #7  
Old 08-04-2013, 11:20 PM
kiba snowpaw kiba snowpaw is offline
 
Join Date: Jul 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DragonByte Tech View Post
Delet this since there no Spoiler botten
yeah i love the New VB5
i just want to say one thing i been wondering about, a lot of ppl don't want to go to VB5 because of the lag of Mod and templet suport and because it all new and developers don't want to make full Add/mods because there to little *recrest* for me it sound like a battle with no winners ether the developers have to make more good Mod and templet to get ppl to go over to VB5 or the ppl have to join VB5 to get more Mod and templet Just how i see it anyway

i have VB5 myself and taking it slow and make it all as i want even if it gonna take alot of time because of the little suport of Mod and templet i know i could pay to get somone to make the stuff i need but i'm a poor man ^_^ and paying for the forum was alot more then i want it to use so i guess i have to wait and see...
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 07:13 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.03881 seconds
  • Memory Usage 2,230KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (3)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete