The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need some help
Okay, i was thinking about making a hack where if User starts 'X' amount of threads in forum ID 'XX' then show usertitle as "Something" in postbit.
So i got to thinking about how i can grab that info from the database. Then i remembered that you can search by username, and threads started only in any forum. When the results come it will show you how many threads that user has started. So i looked into the search.php and includes/fuction_search.php and i got lost looking how they grab that info if defined. Can someone kinda give me a push start on this? Would appricate it alot. Thanks. |
#2
|
||||
|
||||
you need a query like that:
[sql]SELECT COUNT(threadid) AS threads FROM thread WHERE postuserid = xx AND forumid = yy[/sql] |
#3
|
|||
|
|||
Thanks alot Xenon, working on it now
|
#4
|
|||
|
|||
man i cannot figure this out. Anyone? sounds simple but sure isn't. If any "user" makes 1 thread in forums 'X' show title as "title".
|
#5
|
||||
|
||||
should it be a permanent title or just in a thread, which is in this special forum?
if it should be a permanent title, you have to set the usertitle in the user-table, AND also the customtitle field to 1. |
#6
|
|||
|
|||
Quote:
For example. If 'Xenon' makes 1 thread in "News & Articals forum" change 'Xenon's' title to 'News Poster': And if a users see that his title has changed and don't like it, i would alow them to change it if they met the sites title specifications. Hope this helps ya. I had a friend help me but he said that it would add an extra query for EVERY post. And i definitely do not want that. BTW thanks for helping Xenon really appreciate it! |
#7
|
||||
|
||||
you have to change the customtitle value into 2, that will allow the user to change the title himself, if he has the ability to do so according to permissions and such.
but the time you have to add such a query would be in build_new_post(), so that it will just be runned once. and no, it wouldn't produce one query per post if you do it correctly |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|