The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
search by specific date
I am preparing to construct a hack for VB3 RC 2. I need a way to search for all posts made on a specific date, excluding posts made by a particular user. I am new to VBulletin and to PHP, but have a strong unix-C programming background.
Before I start, I thought I would outline what I have in mind and 1) make sure it's not already been done, and 2) make sure I am not missing something important. I saw a tutorial here on how to apply hacks, but not a tutorial for folks about to code up their first hack! My plan is to make changes to the Advanced Search template:
I would change search.php to handle the new checkbox, and to construct the start and end postline for the specified date and query based on that. I would also have some mysql changes. The "search_forums" template and the phrase table would need some tweaking. I'm thinking of just updating the database and not touching install/vbulletin_language.xml and install/vbulletin_style.xml. Is that a dumb way to do it? So, not a whole lot of files affected - am I missing something obvious? Many thanks, Bill |
#2
|
||||
|
||||
> but have a strong unix-C programming background.
If you're good in C PHP should be fairly simple, the syntax is very similar. > I would also have some mysql changes. T You mean you would ghave to change templates? That's correct. But the database structure should'n need changes, right? If you are going to do this it would be nice if you could also make it possible to just search in a specific timeframe, as this is a feature I got on my todo-list and was to lazy to code it yet > install/vbulletin_language.xml and install/vbulletin_style.xml. It should be never-ever necessary to touch these files - leave them alone. If you are going to user HTL it can create custom XML files for templates and phrases automatically. If not you would have to build them manually, or write a text stating create a phrase in grop foo nemand bar with text foobar, mofify template foobar ad ... etc. |
#3
|
|||
|
|||
Hi Kirby - thanks for responding.
>> I would also have some mysql changes. T > You mean you would ghave to change templates? That's correct. > But the database structure should'n need changes, right? Right - one template change, no db structure changes. > If you are going to do this it would be nice if you could also make it possible to > just search in a specific timeframe, as this is a feature I got on my todo-list and > was to lazy to code it yet That's a good idea. If you already have an idea of how this should appear on the screen that you think is better than pulldown menus listing the months, days and years, let me know. Otherwise, I'll just create six pulldown menus - months, days and years for "earliestdate" and "latestdate". >> install/vbulletin_language.xml and install/vbulletin_style.xml. > It should be never-ever necessary to touch these files - leave them alone. > > If you are going to user HTL it can create custom XML files for templates and > phrases automatically. If not you would have to build them manually, or write a > text stating create a phrase in grop foo nemand bar with text foobar, mofify > template foobar ad ... etc. I am not familiar with HTL. Is that a typo? It sounds like you are saying that the XML files are created from some other file(s)/utilities, and I have the choice of 1. using those or 2. changing the xml myself and reloading the database templates and phrases somehow from the xml, or 3. manually updating the template and adding phrases with mysql queries If (1) is the best option I'd love to get a pointer to the files/tools needed. If (2) is best, I can probably figure out how to do it by studying the installation logic. (3) is easy but of course I have to do it (possibly with different keywords) every time I upgrade VBulletin. Thanks again, Bill |
#4
|
||||
|
||||
HTL (Hack Tracking Log) is a vB Major Addition created by KuraFire.
HTL can create custom XML files for phrases, templates and settings - those will only contain the new templates, phrases and options for your hack. If you don't want to use you can either 1) Create thos XMLs manually OR 2) Don't use XML files at all and just make a text file with instructions like this Quote:
|
#5
|
|||
|
|||
Quote:
Bill |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|