The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Okay, I've made a small modification to my forum that enables Administrators to post little blast messages. For example, some users don't browse the entire forum and might miss an important message about a clan war -- this will hopefully prevent that. It's basically a shoutbox, but all the shoutbox hacks I found here were too feature-full, I wanted something REALLY basic, just a quick form to post a message, that's it. So I've created a form and when submitted, the data is inserted into the sql db. I then created a plugin to pull the data from the db and then display the text on the forumhome page.
This is the plugin code I'm using: PHP Code:
PHP Code:
First off, how can I wrap the message text to the next line? At the moment, it just increases the page width to fit the text. I'm using $blast[message] to post the user's message. I tried using a PHP wordwrap function, but couldn't get it to work -- is it possible to wrap an array? Secondly, how can I post all rows in the table? At the moment, I've only been able to get it to post the most recent. Finally, if anyone has an idea on improving efficiency with it, I'm all ears -- I'm rather new at creating hacks. Thanks in advance for any help you guys can offer. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|