The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
Second Alternative presented.
This one uses a table that gets merged during loading of the datastore rows. Data is released inside the regular Product XML file that you use for your hack. See newly attached file for details. Again, please comment!!!! |
#22
|
|||
|
|||
Quote:
Not having looked at your proof of concept, I would have thought the only file modification needed would be in the datastore class to modify the query. It shouldnt be necessary on each pageload to do anything else.. I dont see creating another table as an issue - the more tables you have to deal with things the better! - I also dont believe that a query joined to this table would be slower than reading an XML file from the filesystem. Template caching can already be achieved with a hook..? |
#23
|
||||
|
||||
Quote:
|
#24
|
||||
|
||||
Quote:
Quote:
The other modifications are management code (loading the table with the product XML-File, disabling the entry when the product is disabled, etc.) Quote:
Quote:
|
#25
|
||||
|
||||
Quote:
|
#26
|
||||
|
||||
Quote:
Quote:
Quote:
|
#27
|
|||
|
|||
Quote:
Quote:
Quote:
To implement phrases/templates into Alt. 2, completly different code would be needed compaired with the datastore solution (because the problem is different - adding things prior to having the datastore available - versus - adding things after we have the datastore). What they do have in common is that we could use the same table to store the info, with some slight modifications. I even started with columns in the table to support this, but i removed them later since i didn't plan to implement it. PS We are being watched by Jelsoft on the progress in this thread (i think ) and there might be a very slight chance that Jelsoft might adopt an idea (which would be the best solution for the community i think). |
#28
|
|||
|
|||
I am a bit disappointed at the lack of feedback and discussion in this thread from most coders.
|
#29
|
||||
|
||||
Quote:
(and unrelated - but long thread titles with tons of CAPITALS in them are ones I tend to avoid ....) |
#30
|
||||
|
||||
So let me see if I understood this correctly - you want to be able to add new phrasegroups/actiontemplates to existing vB pages?
My suggestion: AdminCP: New file: Import/Export/Editing/Deletion of an XML file record containing list of templates/phrases required for each mod. A dupe of the plugin system, so to speak, only it contains a possiblity to amend to every single instance of the $xxxtemplates arrays, including subarrays. Every time something is added/edited/removed from this list, a flatfile (similar to the flatfile DS cache option in vB) is created. Obviously it does array searches to make sure no duplicates are present (although they wouldn't do much harm). Init.php: Find PHP Code:
PHP Code:
A simple require_once() won't bring any huge load onto the server, it won't be parsing anything and it won't be querying anything. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|