Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 02 Apr 2016, 21:37
twistsol's Avatar
twistsol twistsol is offline
 
Join Date: Apr 2015
Real name: Chr's Phelps
vb5 Widget Creation

Is there any documentation on creating a Widget/Module for vb5? If not, can anyone give me a hint as to where to start?
Reply With Quote
  #2  
Old 02 Apr 2016, 22:25
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Exactly what are you asking about here - about how to write the code in a product to create a module? Or how to code a php module?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 03 Apr 2016, 01:59
twistsol's Avatar
twistsol twistsol is offline
 
Join Date: Apr 2015
Real name: Chr's Phelps
I've been through the article below on creating a vb5 product and it makes sense:

http://www.vbulletin.com/forum/blogs/joe-d/3932614-

What I'm trying to do is create a widget that can be used with Sitebuilder that has settings etc. Using a PHP widget is easy enough but I need to be able to change the behavior based on what page it is being called from, and I'd rather not hard code into the PHP the settings by page but rather set them when I place the widget on the page.

For the code it appears that I should be able to simply extend the widget class. Where my confusion comes in is how to create the widget itself.
Reply With Quote
  #4  
Old 03 Apr 2016, 06:46
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Originally Posted by twistsol View Post

For the code it appears that I should be able to simply extend the widget class. Where my confusion comes in is how to create the widget itself.
To my knowledge, the widget/module is created in site builder.
Login, choose Edit Site on > Edit Page > Add Modules...



Choose the module by dragging it into position.



Edit/configure the module as necessary...

Save page. . .

Or I may be hugely mistaken by a gross misinterpretation of what it is exactly you need.......?
Attached Images
File Type: jpg Capture.JPG (22.2 KB, 107 views)
File Type: jpg Capture1.jpg (7.4 KB, 109 views)
Reply With Quote
  #5  
Old 03 Apr 2016, 15:53
twistsol's Avatar
twistsol twistsol is offline
 
Join Date: Apr 2015
Real name: Chr's Phelps
Originally Posted by DemOnstar View Post
To my knowledge, the widget/module is created in site builder.
Login, choose Edit Site on > Edit Page > Add Modules...



Choose the module by dragging it into position.



Edit/configure the module as necessary...

Save page. . .

Or I may be hugely mistaken by a gross misinterpretation of what it is exactly you need.......?
I know how to add a module to a page. What I'm trying to do is create a custom module with customer settings. If I use the PHP module, there is no place in the PHP module to have my custom settings, which relegates me to putting them in the code. I can't use product settings because they are global and the module settings need to be different based on which page they appear.
Reply With Quote
  #6  
Old 03 Apr 2016, 17:39
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Here's a module that I put together a few years ago. It's relatively basic, you can probably reverse engineer it.

Developer support of VB5 is...anemic at best.

http://www.vbulletin.org/forum/showp...95&postcount=6
Reply With Quote
  #7  
Old 23 Apr 2016, 06:35
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
Nice work there Dead Eddie.

You could have used the wol API and call the fetchAll() method to get the latest online users.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
vBulletin CMS Widgets 3x CMS widget : Widget with 3 tabs, like on Blogs page. Vaupell vBulletin 4.x Add-ons 55 23 Oct 2012 22:06



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 13:36.

Layout Options | Width: Wide Color: