PDA

View Full Version : VBB Code Buttons


Streicher
18 Feb 2001, 14:46
Is there a VBB Code Button Hack for Version 2, like the UBB Code Buttons?

19 Feb 2001, 02:17
Although I like the idea, I'm against javascript in general becuz its buggy.

Those that have used this, are u happy w/ it?
Any complaints?

19 Feb 2001, 04:34
You mean something like this?

http://sitepointforums.com/forum-dev/editor/newthread.html

going to release it tomorrow with support for pulling your Smilies out of the database and being able to choose them from a popup window.

19 Feb 2001, 05:19
wayne, looks nice :)

19 Feb 2001, 15:29
I look forward to this hack. A lot of people out there just can't figure out vbcode, as simple as it is.

19 Feb 2001, 20:46
Here is a link to a ubb 6 with UBB CodeButtons:

http://www.esteroumc.com/index.html

user
pass

And a Screenshot:

05 Mar 2001, 15:17
Never saw a release on this, is it still gonna happen?

05 Mar 2001, 18:41
buddy open your eyes!

http://www.vbulletin.com/forum/showthread.php?s=&threadid=10305

05 Mar 2001, 19:20
This is more a template change than a hack.. Total PHP code changes is minimal.

To install:
1. Add the following code to the bottom of MISC.PHP


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. Create the following new Templates.

iconpopup Template-


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



iconpopupbit Template -


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



3. Edit Input Templates (newthread, newreply, etc...) to include:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



4. All templates edited must have name="vbinput" added to the opening FORM tag.

5. Add the following code to your HEADINCLUDE template.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



6. Upload the attached javascript file and rename it editor.js.

05 Mar 2001, 19:26
This is more a template change than a hack.. Total PHP code changes is minimal.

To install:
1. Add the following code to the bottom of MISC.PHP


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. Create the following new Templates.

iconpopup Template-


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



iconpopupbit Template -


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



3. Edit Input Templates (newthread, newreply, etc...) to include:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



4. All templates edited must have name="vbinput" added to the opening FORM tag.

5. Add the following code to your HEADINCLUDE template.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




6. Upload the file: http://sitepointforums.com/editor.js to your server.

05 Mar 2001, 22:06
The font size feature ends up going onto the page like this:

[size=5]Size 5[/size=5]

Any ideas on how to fix that?

06 Mar 2001, 05:01
it seems that you are adding the size at the end as well, where you should only have the [ /size]

06 Mar 2001, 05:06
I know, but the script is putting that, not me......how do I edit what the script outputs?

06 Mar 2001, 06:22
I added this to my forums and it works fine except for the smilie thing, when i click on the smilie pic to open up the new window this is what I get in the new window:

Parse error: parse error in /home/bimmer/www/forum/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /home/bimmer/www/forum/misc.php(66) : eval()'d code on line 1

Message Icons
Click on the message icons below to insert them in your message:


Anybody know why?

Ray

06 Mar 2001, 06:27
BTW here is line 66:

eval("$iconbits1 .= \"".gettemplate("iconpopupbit")."\";");

and 68:

eval("$iconbits2 .= \"".gettemplate("iconpopupbit")."\";");

Can anybody help with this?

06 Mar 2001, 11:12
wluke:

This works great! The only thing that I cannot get to work is the smilies. I copied the code exactly as you have layed out and when I click on the smilies icon I get the popup box but with only the background color of the box. Nothing else loads.

Any ideas?

Parker

06 Mar 2001, 14:37
Attached is a new Javascript with the size fixed.

Ray:
What version of PHP are you using? This is the same code being used at SitePoint currently.

Parker:
Did you create the two new templates required as layed out?

06 Mar 2001, 14:40
Ok, before I had a blank page on smilies, now with the new editor.js file I get this error:

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(68) : eval()'d code on line 1

Parse error: parse error in /usr/www/users/syslogic/boards/misc.php(66) : eval()'d code on line 1

06 Mar 2001, 14:47
Email me your MISC.PHP file because that is my live code and verified as working on SitePoint.

I would post mine but it has a few added things in it that I am not willing to share just yet.

06 Mar 2001, 17:02
use this code it gives the buttons animated effects allso
.. its a demo board im working on
threaded :)
example of below code http://server2046.virtualave.net/robertjr/cgi-bin/robsboard/index.cgi

06 Mar 2001, 17:15
heres the code easy to modify for vboard, ive modified it for 4 other boards
im to lazzy to do it but if you know how to code then you will know what to do...
allso make sure you use the codebutton.js i have below allso its different then the otheres floating around

06 Mar 2001, 17:19
make sure this is added in all method=post
method=post name=postform>



codebutton js

06 Mar 2001, 19:05
You need to change



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

06 Mar 2001, 19:09
Originally posted by SystemLogic
Misc.php attached (renamed to a .txt file)

I really don't think you're allowed to provide this non public domain script in its entirety on this or any site, but I could be wrong.

-jim

06 Mar 2001, 19:14
Oops sorry, didn't realize that, Wayne, I'm e-mailing it to you now.

07 Mar 2001, 01:22
Thanks freddie, it works now:)

Ray

07 Mar 2001, 04:23
Nice fix Freddie! Worked for my boards :) Now I how can I fix my problem with the font size thing?

07 Mar 2001, 05:21
Originally posted by SystemLogic
Nice fix Freddie! Worked for my boards :) Now I how can I fix my problem with the font size thing?

Open editor.js and find both instances of

size=

replace with

size=+

(they will be inside of other things but just search for "size".

07 Mar 2001, 16:03
Thanks Freddie, worked FLAWLESSLY! You guys are awesome!