vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Custom Postbits for Users (https://vborg.vbsupport.ru/showthread.php?t=43659)

Xenon 09-16-2002 10:00 PM

Custom Postbits for Users
 
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 09-17-2002 12:11 PM

screenshot how it looks in a thread

Xenon 09-17-2002 12:13 PM

screenshot of postbit chooser (logged in as Admin)

Logician 09-17-2002 12:32 PM

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 09-17-2002 03:31 PM

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 09-17-2002 05:31 PM

You forgot the pic for creating the postbit fool =P

Xenon 09-17-2002 06:03 PM

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 09-17-2002 06:53 PM

Hmmm are you sure it is saft to allow users access to edit the HTML directly?

traekwon 09-17-2002 07:05 PM

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 09-17-2002 08:04 PM

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 09-17-2002 08:58 PM

Quote:

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 09-17-2002 09:09 PM

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 09-17-2002 10:15 PM

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 09-17-2002 11:48 PM

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 09-18-2002 12:02 PM

thanx velo :)

https://vborg.vbsupport.ru/showthrea...threadid=43688


All times are GMT. The time now is 03:26 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
  • Page Generation 0.01110 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete