The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Mod for Geek's hack Article
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ For this hack ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Would it be possible to carry out a MOD which makes it possible to see in the postbit the number of articles written by the user ? and if possible that one can click above to go directly to the articles |
#2
|
||||
|
||||
nobody ??
|
#3
|
|||
|
|||
I think it is impossible because the articles are also regular threads so i cannot imagine a way to count this special threads.
|
#4
|
||||
|
||||
I the opinion of front Geek waits, but it is a pity
|
#5
|
||||
|
||||
Actually - I dont think it would be very difficult to do.
Here is one way of doing it: 1- Create a new userprofile field 2- Add an update to that userprofile field in the insert_new_article function of functions_geekarticles (in the if branch that has the INSERT statement - meaning it was a new article). 3- You would have to do the same for when a thread gets deleted that is in an article forum (currently - GAS doesnt go there). 4- I would recommend creating a script that would pull all userids from threads that are posted in gas forums. THen look through to override the userprofile field. This can be a one off 'importer' and/or an occasional cron job to make sure you are in sync. 5- As a userprofile field - its a bit o cake to pull that info into the postbit 6- Link to search.php to search GAS forums by userid. Seriously - wouldnt be that big of a job. I would do it if I wasnt already swamped. I am more than happy to assist anyone wanting to do it. |
#6
|
|||
|
|||
Not got the time to do a full hack for this, but hopefully this quick example will get you started...
This example is only changing showthread.php, if you wanted to make the same changes to showpost.php, announcement.php and others that use the postbit, it's easy enough. I'm trying to keep this as simple as possible, so this is just a replace in showthread.php rather than a $post[...] value. It will add one additional query, which could probably be avoided, but again, I'm in a hurry and trying to keep it simple. In showthread.php: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
In your postbit template you would then need: PHP Code:
Having reread it, it doesn't make a huge deal of sense, but hopefully you can find your way though it if it's of use to you. |
#7
|
||||
|
||||
Here is something else you can either add to, or alter how you see fit.
Edit search.php Find: PHP Code:
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|