PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Sidebar as a vBulletin 4.x Widget for CMS? (http://www.photopost.com/forum/photopost-pro-how-do-i/141764-sidebar-vbulletin-4-x-widget-cms.html)

DHewes January 17th, 2010 11:38 AM

Sidebar as a vBulletin 4.x Widget for CMS?
 
Not being a coder I believe every request is easy and can be done in 30 seconds...right? So here goes:

How would I go about created a widget for my vB 4 CMS out of the PhotoPost Sidebar? Since the index page of the PhotoPost page itself has all the same information at the bottom, the sidebar there is a bit redundant. However, it would be a GREAT addon for the CMS Front Page.

Since you have PHP Direct Execution and Static HTML widget templates is this as easy as cutting and pasting the contents of some existing PHP file?

Thanks!

Chuck S January 17th, 2010 11:50 AM

No it is not that simple because template html and those variables come from queries defined in our code through the use of functions. Your CMS is not going to know that data

You would actually need to WRITE a hack to import as a plugin in vbulletin to query and define all that data and the html to render it.

You can look at our files for examples of how to do it but remember vb4 requires things to be defined and called a certain way so you definately need to make vb4 compatible hacks.

DHewes January 19th, 2010 10:37 AM

So then asking if you could also make new photo uploads appear under the What's New? search button would also be difficult? :-)

I will just wait, someone on vb.org will do it eventually.

Thanks!

Chuck S January 19th, 2010 10:40 AM

Well any of that stuff would be a hack. The vbulletin code is not going to check for stuff outside its own programming. ;)

Thats the whole reason they created the plugin system so people who wanted to create there own mods for stuff can do so.


All times are GMT -5. The time now is 06:23 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97