![]() |
Custom Postbit for every User
After the one Day Beta-Version i've finished the Hack so i can release it now.
Hack Version: 1.20b Additional Queries in showthread.php: 1 What it does: It gives users the Ability to choose between custom postbits instead of just the one global postbit (or more if you have different styles). Also it allows users to create their own custom postbits using html-code (These must be validated by an admin before they can use them) It also gives you the ability to create a postbit just a special usergroup or just a special user can use. I think i've tested every little option, but if you find a bug please tell me. Please click install if you use the hack. Some additions: in cpostbit.php you find this lines to allow users wether to choose a custom postbit or to create new ones: // Usergroups which can use custom postbits $canusecpb="2 5 7 6"; // Usergroups which can create own custom postbits $cancreatecpb="2 5 7 6"; people who installed the beta version should run installcpb.php?action=unstall&killbeta=1 before installing the hack. Enjoy screenshots following |
admin overview
|
validate screen
|
preview of an unvalidatet postbit + editscreen
|
user choose postbit screen
|
user add custom postbit
|
thread view with different postbits
|
I'd be interested in seeing this in action on a live forum (and people's reactions to it:))!
|
Wow..this is different than what I thought it was initially, but still looks cool. I thought it would be just like choosing other styles, but postbits for each style.
Anyway, still cool ;) |
Ooh, this looks sweet.
Thanks :) |
Wow, that would end up being pretty complicated but it's cool.
|
I installed it, and all is fine but on the cpostbit.php page AND on the admin cpostbit page, the preview just shows the postbit template no matter what the postbit is. Any fix?
|
Hey, Like i was saying in the BETA forum. Its not a good idea unless you trust a user to know his HTML well. i mean very well.
You can trust a user not too mess it up on purpose but what happens when they completely botch a customizing job and really screw over your forums for awhile? It has nothing to do with trust people make mistakes. Maybe you should release a version of this where people can change the location and whats displayed but the HTML is SET. Its too much of a risk allowing people to do there own HTML work. But the idea itself is a great mod to a VB... just i think its way to risky. |
colon i think you didn't understand my hack....
a user cannot use a selfmade custom postbit until it has been validatet by an admin, so the risky thing is that you as an admin would oversee anything... @Link: Are you sure you have applied the changes to functions.php correctly? because here at my testboard everything works fine |
Mystislav, please go to this page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you. oh and no it's not so complicated as it looks now ;) |
damn triplepost ^^
ok i've released version 1.20 no new features are added but i'd say all of you should update, because it'll reduce query ammount alot (if a user hast posted twice on a page just one query is needed now) upgradeinfos: you have just to apply the changes in functions.php then you should apply the changes to showthread.php and then at the end of getpostbit function apply the changes you can see in cpostbit.txt With this new Version the query-count increases just by 1 instead of 15 (or how much post per page you had) |
Hi Xenon,
Great hack :) ... In your version 1.20 instruction: Quote:
|
huh?
yes you're right thank you.... but it also works without i think.. (i mean it worked here i just copied the lines out of my index.php) ;) i've updated the instructions |
Hi Xenon,
I wonder if there is a way to, also, create separate postbit format for a member for each sub-forum. Suppose that my vBulletin forum got 3 rooms, can each of the 3 rooms carry a different postbit format for myself? Thanks. |
well if you've installed this hack you cann edit your showthread.php:
find PHP Code:
PHP Code:
|
Thanks a lot, Xenon! Finally I figured out what you meant :) It worked like a charm https://vborg.vbsupport.ru/external/2011/01/19.gif
|
Quote:
OK. i think i understand. I thought, that you had to validate a user before using it. Not the customization. In that case, its a little more safer. Just one question. How bad does this lag a board? If at all. |
it adds just one query so the DB queries don't lag a board.
and if the users don't use foreign images then it doesn't lag a board.. |
Ok, I figured it out. There was a part of futureal's arcade code in there, I had to switch the position of the code to get it to work ;)
|
Xenon m8 is there a way i can make it not show the picture of the default post bit just a option user Default Postbit
and it will only show the pics of the custom postbit i made :D |
you have to edit cpostbit.php:
PHP Code:
PHP Code:
|
also there is something wrong i have added a custom postbit
and it goes something like this Code:
<br> |
wtf it just added vbb.org where i had { imagesfolder }
|
it shows the postbits correct on the chooserscreen?
be sure you have added correctly every single line to functions.php and showthread.php normally everything should work, and it works on two of my test boards.. |
wow!
a wicked hack Question me, i like things to ALL look the same, so this could make things look "messy" to someone like me. Would it, if it does not already, have an option, much like a certain template So, i make my own postbit template and then, when I view forums ALL posbits look like that? OR i can change to say another postbit template and it will look like that? - much the same as u change the color scheme on here... it affects the overall site, nut just what u do. instead of seeing everyonme diff, postbit - as i can see some people finding that annoying as you get used to something, like profile being in one place, but it is in a few diff. places for diff people.... Just a thought. but other wiuse very impressive hack! |
hmm you mean users can create and select different postbits but just they can see what they've choosed and all other posts look like their own?
well you can hack my hack a bit to get that effect: chage this lines: PHP Code:
PHP Code:
|
hey xenon after i finish adding a postbit, this comes up
PHP Code:
l8er sonic |
hmm, seems like you've done something wrong, but no idea what :)
looks really wierd.... |
well i double checked it and still doesn;t work. i just uninstalled it.
l8er sonic |
maybe the fileupload was corupted...
|
maybe, i will try it later today and see what happens.
l8er sonic |
hi xenon
I've installed this hack, added a new postbit but whin i click on " View/Edit/Delete " i can only see the custom postbit with no options to edit or delete whats wrong? |
@sonic3d: now i got the same error....
don't know the reason, maybe it has to do with the mysql or php version.... /me tries to find out.. @dnd: hmm, wierd have you installed everything correct? i can't test it now, as my testserver produces another problem... |
@sonic3d and all others:
gzip compression produces that problem i've uploaded a new version. there were just changes to admincpb.php so just upload this.. |
thanks xenon
works great now :) |
All times are GMT. The time now is 02:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|