The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[HELP] Editing core file via a product
so i have made a mod, but the problem is its in the showthread.php file.
im replacing Code:
if ($vbulletin->options['threadviewslive']) { // doing it as they happen; for optimization purposes, this cannot use a DM! $db->shutdown_query(" UPDATE " . TABLE_PREFIX . "thread SET views = views + 1 WHERE threadid = " . intval($threadinfo['threadid']) ); } |
#2
|
||||
|
||||
What you can do, is in the install code for the product, use something like:
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Extremely bad idea, and will fail on any server thats correctly set up (since apache will not have write access to vb files).
|
#4
|
||||
|
||||
Quote:
is there a way to make that function do something else without having to edit the core file |
#5
|
|||
|
|||
There's no way unfortunately, not without modifying the file or creating your own showthread.php file.
|
#6
|
||||
|
||||
I've seen other mods do it, so why not just include instructions to edit the file with your product. That way you don't need to edit the file in your code, but users of your mod will know that it needs to be done. There's even a setting option in the product settings so you can show your product requires the editing of core files.
|
#7
|
||||
|
||||
i may have figured out another way to accomplish what im trying to do while skimming old products from many moons ago. Time to test it out =)
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|