#1 (permalink)  
Old 10-04-2008, 10:58 PM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default More plugin hooks please

Can we get more hooks added to the core code to make creating plugins much easier? For example, the add_form.html template file has 2 hooks inside it. The problem is that neither hook is placed between the <form></form> tags. Therefore, you cannot pass variables to the form itself. I think there should be 2 hooks outside the form and at least 1 inside.

Another example is the add.php file. Why are there no hooks inside this file? Is this going to be expanded in the near future? Can we get some added before the next release (v1.2)?

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #2 (permalink)  
Old 10-05-2008, 12:40 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

1.2 may be a while away. We should be coming out with 1.11 in the next week or so.

But in regards to hooks, I'll definately see what can be done.
Reply With Quote
  #3 (permalink)  
Old 10-05-2008, 01:08 AM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default

Thank you. That would be great. I am getting plugin requests and I have seen a few requests on the forum. Without having the hooks in the correct places, plugins will need to be very basic. The PR plugin requested yesterday could not be accomplished with the current code. I can think of a few others too.

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #4 (permalink)  
Old 10-07-2008, 01:35 AM
nakos's Avatar
Nicecoder Team
 
Join Date: Aug 2008
Posts: 20
nakos is on a distinguished road
Default

hello wayne

i have added the new hook on add_form.html,

hook_html_add_form_inside_form_begin and hook_html_add_form_inside_form_end

you can update on http://nicecoder.com/svn/index.php?act=changeset&id=888

note :
Code:
Content visible to License Owner only.
actually, we have no idea to add any new hook. we need any suggestion and any feedback for bouth of php_hook and html_hook from you.

you can give us any cases to add new hook or plugin.

thanks
Reply With Quote
  #5 (permalink)  
Old 10-07-2008, 01:56 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

As a note, I suggested to the programmers that hooks simply be added everywhere that they can be. If they aren't used then it doesn't matter, they would still be there for future versions and other ideas.
Reply With Quote
  #6 (permalink)  
Old 10-07-2008, 02:21 AM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default

Code:
Content visible to License Owner only.
A examples in the add.php file, there could be a php hook just before line #35

Code:
Content visible to License Owner only.
could be


Code:
Content visible to License Owner only.
and after line #193

Code:
Content visible to License Owner only.
could be

Code:
Content visible to License Owner only.
You could then add a begin and ending hook inside the ProcessFormAddUrl() function.

It is my opinion that there should be a plugin hook in almost all of the main files that control IndexU. Along with the add.php and add_form.html files, there should be hooks in the modify.php, modify_form.html, login.php, login_form.php, rows.html, premium_rows.html, sponsored_rows.html, etc, etc.

Some of the html files already have hooks in them like the rows.html file for example.

Code:
Content visible to License Owner only.
There are 2 hooks, but neither of them are inside the <div></div> tags. Therefore it is impossible to add content to these area using a plugin.

All of the files should have hooks inside the content areas.

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #7 (permalink)  
Old 10-07-2008, 12:15 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

Code:
Content visible to License Owner only.
I 100% agree with you and that's what I told the programmers. Add them everywhere and don't worry about what they're going to be used for.
Reply With Quote
  #8 (permalink)  
Old 10-07-2008, 03:18 PM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default

Agreed.. You cannot simply guess where someone might need a hook for a plugin. You will not know where you need it before you start making a plugin. I am not suggesting we fill the script with a hook every 10 lines, but make them plentiful and then add more as needed in the future. A hook should be in nearly every major function in the script.

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #9 (permalink)  
Old 10-07-2008, 05:38 PM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default

Just another note, plugin hooks should be created in both the user area and the admin. While attempting to add functionality to my current plugin, I wanted to add a javascript include into the header.html file in the admin. There are no hooks in that file though. There are several in the user area header.html file, but none in admin.

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #10 (permalink)  
Old 10-07-2008, 07:33 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

Hooks in the admin panel? I don't see why not. Permission granted!

They could be used to add new sections, new menus and all sorts of stuff.

Personal note - if i"m not around after this week it's because Dody and crew beat me up after all these requests for hooks and the changes to the admin panel. They're going to have to go through every function! But the script will be better for it so it's all good.
Reply With Quote
  #11 (permalink)  
Old 10-08-2008, 10:12 PM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default

Code:
Content visible to License Owner only.
Here is a script with plenty of hooks for plugins. It is a totally unrelated type of script, but it lists all the hooks and what files they are in. Some files have 2 hooks and some have 20 hooks. It is going to be quite a task to go through all those functions, but like you said, the script will be better for it.

http://wiki.mybboard.net/index.php/MyBB_Plugin_Hooks

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #12 (permalink)  
Old 10-28-2008, 11:51 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default

Hey Bruce....

I was wondering if having hooks placed "everywhere" was being worked on and if it was going to be in the next release of IndexU? Is the next release of IndexU coming this week?
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #13 (permalink)  
Old 10-28-2008, 01:26 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

So far I haven't heard anything about the new hooks being added, which doesn't make me too happy.

And yes 1.2 is supposed to release this week and I might make them delay it until the hooks are added. Or maybe make them work a heck of a lot faster so it can be released this week.

Stay tuned!
Reply With Quote
  #14 (permalink)  
Old 10-29-2008, 01:10 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default

Code:
Content visible to License Owner only.
Yeah... This option sounds better to me!
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #15 (permalink)  
Old 10-29-2008, 02:09 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

I have been informed that new hooks have already been added. Please be patient as I don't know if there are enough of them yet. We're working hard to impliment as many feature requests as we can.

There are already hooks in the admin panel menu, and I'm talking to Dody about others in the admin panel as well (in summary.php mostly)
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexu to Vb plugin echo@ INDEXU DELUXE v1.x 1 09-26-2008 05:08 PM
Plugin suggestions Bruceper Customers Lounge 30 09-09-2008 10:44 PM
Plugin Review esm INDEXU DELUXE v1.x 4 09-09-2008 07:09 PM
plugin system inspireme INDEXU DELUXE v1.x 7 06-06-2008 01:21 AM
Hooks and Smarty Mitchell INDEXU DELUXE v1.x 3 05-07-2008 08:08 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 03:30 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate