View Full Version : Editing Variables
Yours Truly
04-11-2007, 01:27 PM
I am looking to edit variables for instance $post which file would i be looking at to edit the output that is given as apposed to say 567 i wanted it to read something else. How would i edit the output?
WetWired
04-11-2007, 05:33 PM
$post is actually used all over the place. If you're looking for something more specific, someone might be able to help you. Generally, the route to take when starting on a hack is to enable template names in comments to find the template containing what you want to change, do a find in files for the template name to find the file responsible, then look for a hook in that file that you can use to change what needs changing. You can then make a plugin for that hook that has the code to place there.
Yours Truly
04-11-2007, 06:26 PM
I was reffering to how i would change the output of what $post actually does if you get me?
WetWired
04-11-2007, 07:02 PM
As I already stated, $post is used in about 50 templates and several files. Where exactly do you want it changed and what part of it? $post contains a lot of information and some of it comes from different sources than most of it, not only that, but $post can refer to an actual post, a private message, an announcement, a post in progress, and unless it's changed is still valid for accessing profile page data.
Yours Truly
04-11-2007, 07:21 PM
Oh sorry my misunderstanding i was led to believe that there was a palce where all these variables are placed in a PHP file.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.