The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Different Postbit for Mods/Admins
Can this be achieved?
What comes to my mind first is showthread.php, and a new templates postbit_admin, postbit_mod. I did open up showthread and got lost after loking through it. lol. Anyone here worked with showthread a whole lot and know which part i should look at? (if its even showthread.php at all ) Just wondering... Thanks. |
#2
|
||||
|
||||
Edit functions.php, find:
PHP Code:
PHP Code:
The ideal hack would be to give the users the option of choosing the postbit template they want to use and to post custom postbits for admins to add to postbit library. We discussed about this hack some time ago. I want to code it but I have other hacks more important to me in my pending list and nobody volunteered to code it although everybody liked the idea. I'm reminding the hackers reading requests forum once more: This would be a very nice hack if you have time to code it. |
#3
|
||||
|
||||
i have started on such a hack some time ago, but have had problems with the replacementvars this time, so i stopped it.
perhaps i'll give it another try next weeks while i'm at work |
#4
|
||||
|
||||
I dont know what the problem was, but if you share your algorithm and the problems you encountered I believe we can solve the problems.
I would structure the hack like this: * a seperate table that saves custom post bits. * Code to post new postbits (invisible/moderated) and Admin CP integration to add/edit/approve (make visible) these new postbits * User CP modification to give the users the right to choose their postbit. ($bbuserinfo[postbit]) * functions.php modification to check if $bbuserinfo[postbit] is set, if yes get the postbit from custom table to apply, if no/or invalid/unallowed postbit get default one. You can use the function in webtemplates hack to get/parse a custom template from a custom table. Needless to say anything I can do, I'm ready for help.. |
#5
|
||||
|
||||
That's the problem, i've deleted all of my code because it doesn't work
but i think it wouldn't be so hard to rewrite it my hackstructure was a bit different: * an extra field in user-table called custompostbit * editable below the signature in usercp - If a user hasn't entered one, it displays the standart postbit in the textbox - After saving profile it compares it with the standart, if the custom is empty or equal to standart nothing is saved in the db - it was unmoderated, because just Admins got that feature Now i think anything i can do, but i started the hack, some time ago while i wasn't as good as now i think i'll restart the project these weeks, and the other ones on my large to do list now |
#6
|
|||
|
|||
Quote:
Much appreciated. |
#7
|
|||
|
|||
hmmm this is my new fnction.php edit
PHP Code:
|
#8
|
||||
|
||||
change it to that:
PHP Code:
|
#9
|
||||
|
||||
i use firefly's hack--postbit_first so this is my functions code
how do i change it?? PHP Code:
|
#10
|
||||
|
||||
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|