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 10-27-2012, 11:36 AM
micheal332001 micheal332001 is offline
 
Join Date: Apr 2004
Posts: 1,112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Making Mods for vb5

I have looked and looked for info about say converting a mod over to vb5,
but there is no info on this and no info on where to start for a developer like my self.

As far as i see when you make an add-on now you have to make the pages for that add-on within the xml file,
but vb5 has no way of doing this in the xml file, so i have had to come up with a way to do this my self.

To learn this new vb5 is a pain in the A*S and it will not be easy for anyone making or converting a mod over to this version of vb5.

To add a tab to the menu is not that hard you just have to get the array and add to that array.

First part sorted but as to making the pages and the routes to these pages is a pain as you have to use a template.php file to get the templates needed for your add-on.

VB5 has not made this simple or user friendly for developers.

I will be releasing my demo mod very soon so some developers might be able to use this to start converting there mods over,
But vb needs to make this easyer for add-on developers so that the can get there mods converted or made easyer.

Making such a system like this should have thought about this before even thinking on releasing the beta versions so that add-on developers could have a standered way to start from instead of having to make there own way round the system and making things up as they go.
Reply With Quote
  #2  
Old 10-27-2012, 03:26 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are JIRA reports about creating pages in the product XML here VBV-3667 and here VBV-4876.

While I do agree there should be a better way to do it, and that is the point of the JIRA reports, I find it amusing that you complain about how to create pages and routes when both mods I've released for vB5 have them without using template.php.

And I have to say, the more I work with vB5 the more I like it.

But like anything that's new, it takes time and patience to understand what's going on and how to use it. And we're all learning as we go.
Reply With Quote
  #3  
Old 10-27-2012, 03:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To the OP... download some of the existing mods and take a look at how they have gone about creating their mod. The best way to learn is to view existing mods and how it is done.
Reply With Quote
  #4  
Old 10-28-2012, 12:34 PM
micheal332001 micheal332001 is offline
 
Join Date: Apr 2004
Posts: 1,112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nhawk View Post
There are JIRA reports about creating pages in the product XML here VBV-3667 and here VBV-4876.

While I do agree there should be a better way to do it, and that is the point of the JIRA reports, I find it amusing that you complain about how to create pages and routes when both mods I've released for vB5 have them without using template.php.

And I have to say, the more I work with vB5 the more I like it.

But like anything that's new, it takes time and patience to understand what's going on and how to use it. And we're all learning as we go.
Your raffles add-on does use the template.php file located here
Raffles5_504\upload\core\packages\raffles5\api

this template.php file is whats getting the widget and page routes to output.
This will only for 1 widget and one route what needs to be in place is a way to do multipull routes not just the one.

you are using this code
PHP Code:
$widgetinstance $assertor->getRow('Raffles5:getRaffleEntryWidget'); 
to get your page and route and only outputs the 1 i need to be able to output for multi pages and routes and i have got this working on my demo that i will release soon so others will be able to use this.
Reply With Quote
  #5  
Old 10-28-2012, 01:56 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, in the next release I've dropped the template.php file. I forgot I haven't released it yet.
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 05:45 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.14674 seconds
  • Memory Usage 2,198KB
  • 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)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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