PDA

View Full Version : Custom Postbits for Users


Xenon
17 Sep 2002, 14:10
As some here already know, i'm coding a new hack which allows users to choose a custom postbit.

It's far away from being finished, but the main functions are included and should work. That's why i'm posting it in the Beta Sektion, i hope you can help finding Bugs.

Also i want to ask for a little help: I don't like template works, so templates included in this beta are very functional and not really nice ones ;). if someone want's to help me writing nicer Templates i'll appreciate.

BETA Version 0.52

What it does:
Allows users to choose a custom postbit
Allows users to create a custom postbit (must be validated before use)
Allows Admin to create custom postbits for some users/usergroups only (not fully tested yet)

WARNING: This Hack isn't finished yet. Use it at your own risk. The structure of the Hack can change dramatically in the future..
I'm not responsible for any problems occuring by using this BETA. (There shouldn't be any but who knows ;))

Current Work:
All Adminfunctions are included in cpostbit.php now.
this would change in one of the next versions, im currently working on ACP-Integrations ;)

Xenon
17 Sep 2002, 14:11
screenshot how it looks in a thread

Xenon
17 Sep 2002, 14:13
screenshot of postbit chooser (logged in as Admin)

Logician
17 Sep 2002, 14:32
As I said in requests forum sometime ago, this hack would be a great addition to vb. Members/Mods or other special usergroups would be able to use their custom postbits which they can customize according to their taste and needs.

I want to stress for people reading this thread that this hack is not for only changing postbit template's color. Xenon's screenshot is just an sample. You can customize the entire template according to your wish like adding some profile field sections of the poster to the template, removing IP section from template, displaying posts inside differently designed HTML tables etc. (Stefan, I'm not wrong, am I?) :p So its really very powerful..

I believe it should not be in BETA section. I didnt test it yet but I dont need to test it to be sure hack is working ok, since Xenon is the coder. Great addition pal, thx for your hard work! :)

Regards,
Logician

Xenon
17 Sep 2002, 17:31
you're right pal, users can nearly change everything in the postbit template, just a few things have to be in it: Username, ip-link, report link, edit link.

and it's in the beta section because it's not completly finished yet. it's a working version, but admin functions are very limited now (i'm working on that point currently)

Neo
17 Sep 2002, 19:31
You forgot the pic for creating the postbit fool =P

Xenon
17 Sep 2002, 20:03
i haven't forgotten it, but as long as it's just a beta such screenshots aren't really important ;)

well here you are, and you see?
a textbox right with a button below ;)

Neo
17 Sep 2002, 20:53
Hmmm are you sure it is saft to allow users access to edit the HTML directly?

traekwon
17 Sep 2002, 21:05
Make sure you add an option to turn off 'create your own postbit' in the admin cp... so only users can choose from the ones that are made by admins.

Colon33
17 Sep 2002, 22:04
I dont think this hack is a really good idea because of the HTML directly. Perhaps just allowing them to add/remove colors and profile fields is the best choice. People can really mess up a board if the HTML for a certain postbit is completely wrong. Then how do you know which user it is cause the entire forum template would be jumbled.

NTLDR
17 Sep 2002, 22:58
Originally posted by Colon33
I dont think this hack is a really good idea because of the HTML directly. Perhaps just allowing them to add/remove colors and profile fields is the best choice. People can really mess up a board if the HTML for a certain postbit is completely wrong. Then how do you know which user it is cause the entire forum template would be jumbled.

Like traekwon said above, don't let users you don't trust create them, plus if I read Xenon's post correctly they have to be approved by admins before they can be used.

Xenon
17 Sep 2002, 23:09
Ok i'll describe it a bit more:
User can create their own postbit, just they can use it then.
Before they can use it it needs to be validated by an admin.
As already said, there have to be some parts in it like $username aso.
Also i have made a small checkroutine so the cannot use <script>-tags.

it's planned to add an option for user not showing any custom postbits in threads.

also as all hacks this one would be customizable so if you just want to allow mods a custom postbit you can add a small if clause...

Xenon
18 Sep 2002, 00:15
A new screenshot of the version i'm currently working on
it's not uploaded yet because i have to finish a few steps before i can upload it, but it's getting finished very soon

on the screenshot you can see the newest postbit choosing screen. you can see a postbit completly different in using the tables.
also you can see the red text "not validated yet".
if you choose such a postbit, you'll get an error.

also the edit links just occurs at postbits created by this author (the last one isn't created by this user so he can just choose it but not edit (it's a postbit usable for his whole usergroup))

Velocd
18 Sep 2002, 01:48
This is awesome, mostly when I've just started on a new postbit design for my newest style on my forum :p

Keep up the good work Xenon ;)

Xenon
18 Sep 2002, 14:02
thanx velo :)

http://www.vbulletin.org/forum/showthread.php?s=&threadid=43688