The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hook Location
Ok I am creating a mod, and it calls and external xml file from include in a plugin.
What I need to know is, currently I had the plugin connected to Global_Start (this was a very bad idea I found out) as every single time anyone does anything on the website it was calling this remote xml file) And I only want the remote file called when the page that is displaying the information is called. ? ??? Thanks for any replies. |
#2
|
||||
|
||||
Well, you determine the plugin by first defining which pages will use the code. It is only used on showthread.php pages? If so, you pick a hook that is called out in that php page. If you give us more information, we may be able to make suggestions on which hooks you may want to try.
|
#3
|
|||
|
|||
Well it is all better explain in my unpaid mods, thread but no one replies to it.
I have a set of custom templates I made in the acp. Then I made a plugin for each page, to [include (file.php)] File.php includes a call to a remote xml file. The remote xml file comes from another server. then I parse it in the file.php, and output the parsed results in the custom templates I set up. (well the place I am getting the remote xml file got pissed that i sent 500,000 requests for the file in an hour or something) I am trying to learn how to cache the file locally but that is something new to me, so for now I would just like to know how to make a new hook, for the custom template pages. Or a hook that would only be called when I open those pages. Example of a page would be www.muteclan.com/forum/ps3_cod4.php Hope this explains something better. |
#4
|
||||
|
||||
The page you linked to probably has no custom hooks, so you would have to put the code directly into the php page.
If you are linking to an xml page on another site and they don't like that, why don't you ask them for a copy to put on your own site? |
#5
|
|||
|
|||
they dont mind someone getting the information, they just dont want someone getting it as much as I was. But I got cache file working now so I dont think I have a problem.
Can you tell me how to create a custom hook or point me in the right direction? |
#6
|
||||
|
||||
It does no good to create a hook in a custom page. A hook is so you don't have to modify the actual code, but it it's a custom page, you don't have any reason not to modify it. Just put your code right into that custom page.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|