PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > General Forums > General Discussion

General Discussion General use discussion forum for PhotoPost products.

Reply
 
Thread Tools Rate Thread Display Modes
Old August 15th, 2012, 10:30 AM   #1
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,414
New plugin system !!!

Okay now that I have your attention!!! The mad dash to support vb 4.2 navigation is behind I am trying to close up the ReviewPost beta and figured I would play around with adding a new plugin system that we could work into our system like vb has. That way people can add in code without having hack files with each version.

My intention here is to get some ideas from our customer base about hook locations. I have the basic ones in mind like on the top middle and bottom of the sidebar or top or bottom of index page or some on the photo page.

Keep in mind if I get this all sorted there are only like 6 viewable scripts in our application ( index,showproduct,showcat,showmembers,members and uploadproduct.php scripts ). The gallery apps filenames are slightly different and there is one more the personal albums script.

For any given script there are only so many locations so please be very specific.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old August 15th, 2012, 01:09 PM   #2
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,414
Main Index - My Product Gallery

Just a little test with straight html code but a beginning little box top of sidebar. Before I do anything else I need to write up the admin interface to add the plugin. That will take a little work.

It will be similar to how vbulletin does things although not as expansive as they have several hundred hooks.

Straight PHP code is executed and anything you want to print via html will be added like so. Once I get things worked out and we support a new plugin system I will post a tutorial.

The hook code will accept straight php code without opening or closing tags to define or grab anything you are trying to define like vb and then you will render the html output like so.

$pphook['location'] .= 'SOME HTML HERE';

Then in our templates at the proper locations I will place the hook outputs like so

$pphook[location]

As with any plugin system you can mess things up if you do bad php or html code so there will be a master switch and ability to define it off in the config directly if you mess up like vb. There will also be the ability to turn any individual plugin off.

As I am designing things any input and ideas is appreciated.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old August 15th, 2012, 10:12 PM   #3
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,414
Main Index - My Product Gallery

Getting close here there are like 32 different hook locations I have come up with. I have done all the admin side work and main php file work just need to edit all the templates with the hook locations.

Here is a list of template hooks I have so far.

footer_top
footer_bottom
global
header_top
header_bottom
index_top
index_bottom
profile_side_top
profile_side_middle
profile_side_bottom
profile_main_top
profile_main_bottom
showcat_top
showcat_bottom
showmember_top
showmember_bottom
showproduct_details_top
showproduct_details_bottom
showproduct_top
showproduct_bottom
showproduct_above_image
showproduct_below_image
showproduct_above_thumbs
showproduct_below_thumbs
sidebar_top
sidebar_middle
sidebar_bottom
uploadproduct_top
uploadproduct_middle
uploadproduct_bottom
who_online_top
who_online_bottom
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; August 16th, 2012 at 10:23 AM.
Chuck S is online now   Reply With Quote
Old August 16th, 2012, 04:32 PM   #4
iguanairs
Member
Verified Customer
 
Join Date: Mar 2004
Location: MA
Posts: 170
You should make it so we can add hook locations like we can in vbulletin. This way, if a hook doesn't already exist, we can toss one in. (Then perhaps have it added in a later version.)
iguanairs is offline   Reply With Quote
Old August 16th, 2012, 04:43 PM   #5
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,414
Just like vb you can do that anytime you wish but if its not in our default templates it will not exist in our core product. Thats always been the case with vb and will be the case here as well.

I am going to make up as many feasible locations as I think are necessary and more would be added as time goes on.

The plugins themselves though are in the format I noted.

You enter any php code html whatever your trying to do and any html print out is defined in your plugin as

$pphook['location'] = 'html here';

In the templates like vb the hook location are like so

$pphook[location]

I will post up a tutorial once I finalize what I am doing here
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old August 16th, 2012, 06:58 PM   #6
iguanairs
Member
Verified Customer
 
Join Date: Mar 2004
Location: MA
Posts: 170
That will work fine then. I know I will be playing with it.
iguanairs is offline   Reply With Quote
Old August 16th, 2012, 07:28 PM   #7
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,414
No problem you will like it.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old September 5th, 2012, 12:00 PM   #8
Zachariah
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Nice Chuck,
It will help in adding mods and custom code.

Zachariah is offline   Reply With Quote
Old September 5th, 2012, 12:08 PM   #9
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,414
Yep someone had asked about adding a banner ad thing so I just took the next step. Nice to see you around and all is well.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old September 5th, 2012, 08:20 PM   #10
Alfa1
Member
Verified Customer
 
Alfa1's Avatar
 
Join Date: Mar 2006
Posts: 319
Are you planning to add an xml importer, similar to vbulletin?
Alfa1 is offline   Reply With Quote
Old September 5th, 2012, 08:24 PM   #11
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,414
There are no current plans as of yet. Possibly in the future but for the moment I am taking a breather as I have been on 9 months of straight development.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old September 6th, 2012, 10:10 AM   #12
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,414
When it does come time to add in the ability to import an xml file it does not look like it would be too hard.

PHP Code - import xml file from web server (/public_html/ctrackxml) into mysql database - Stack Overflow
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old October 2nd, 2012, 09:27 AM   #13
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,414
I am working on adding ability to upload xml plugins.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
When will Photopost get a plugin system? Geiri General Discussion 1 December 20th, 2005 09:28 PM
Will you use theVB 3.5 hooks and plugin system ? Sharg Before You Buy 11 October 10th, 2005 08:14 PM


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

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.