Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom Button Details »»
Custom Button
Version: 1.00, by Hwulex Hwulex is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-11-2002 Last Update: Never Installs: 10
 
No support by the author.

_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_

Custom Button Hack
Version 1.2

By Hwulex
[Hwulex@Hwulex.com]

?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?


History
======
I've made this hack because, although we all have signatures to put a custom tag on our posts, I often use a short name sig on a lot of my posts as well.
Typing [ b]w00[ /b] was becoming tedious after a while, and I thought it would be good to have a quick-key shortcut to do it for me.

The Custom button can be used by clicking it, or the shortcut key [Alt+m]. It will insert the text to your message the same as a smilie is, at the end of the message. To change your custom text, goto your UserCP -> Options, down the bottom.


Contents
========
Contained in the .zip file are two images, and instructions.txt (this file)
- instructions.txt -> Instructions for hack installation
- usercp.jpg -> Shows what your User CP will look like after installation
- reply.jpg -> Shows how the hack is used on the forum


Use
====
Tested on vBulletin 2.2.6

Files to modify:
- vbcodelanguage.js
- private.php
- calendar.php
- member.php
- newthread.php
- newreply.php
- editpost.php
- admin/functions.php

Templates to modify:
- vbcode_buttons
- modifyoptions
- modifyoptions_stylecell

Estimated Install Time: 6 minutes


NB: If you do install this hack, please replya here, your comments are appreciated. Please also click on the INSTALL button. You will receive updates in your e-mail whenever I add new features to it. Also post a reply with your comments, they are appreciated.


Updates
========
[1.1] Added instructions for calendar.php
[1.2] Added instructions for private.php


Please clear your cache and download the new file attatched!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-13-2002, 10:45 AM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATED!

Hi guys. Just to let you know Custom Button is now version 1.1. I've added support for the Calendar. Before, if you look went to post an event on the calendar there's a missing argument error, and the button doesn't work. This is fixed in v1.1.

Regards.



Quote:
Originally posted by Boofo
How about a drop down box so you can have multiple items in it?
Hi Boofo.
That's a possibility, thanks for the suggestion. I'm currently looking at also making it multi-line, but it doesn't seem to like it because of the inserting using JS.
Reply With Quote
  #13  
Old 07-13-2002, 10:52 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! I'll be looking forward to it. Also, if you made a drop down box, you really wouldn't need multi-line. They can use as many lines from there as they need.

Quote:
Originally posted by Hwulex
Hi Boofo.
That's a possibility, thanks for the suggestion. I'm currently looking at also making it multi-line, but it doesn't seem to like it because of the inserting using JS.
Reply With Quote
  #14  
Old 07-13-2002, 11:27 AM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack, good for the lazy ones

/me clicks install
Reply With Quote
  #15  
Old 07-13-2002, 11:59 AM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry about this, but I've updated again to 1.2, now includes instructions for private.php because it didn't work with the PM system.

Regards.
Reply With Quote
  #16  
Old 07-13-2002, 12:17 PM
StealthAnime StealthAnime is offline
 
Join Date: Apr 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice hack!. now i dont need to type 'Greetz - myname' all the time i just hit a buttom

great work
Reply With Quote
  #17  
Old 07-13-2002, 03:54 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo itea is cool ! Now this hack is greater !
Reply With Quote
  #18  
Old 07-13-2002, 04:41 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is a fantastic idea... i will probably install this later
Reply With Quote
  #19  
Old 07-17-2002, 05:19 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting the following error when ever I go to edit my signature.

Code:
Warning: Missing argument 1 for getcodebuttons() in /home/boofo/public_html/forum/admin/functions.php on line 2360
That line contains this code below:

Code:
Line 2359 // ###################### Get Code Buttons #######################
Line 2360 function getcodebuttons ($cbutton) {
Line 2361	 global $vbcodemode,$vbcode_smilies;
I'm also getting this error when I click on the submit button to save the signature.

Code:
Warning: Cannot add header information - headers already sent by (output started at /home/boofo/public_html/forum/admin/functions.php:2360) in /home/boofo/public_html/forum/sedit.php on line 168
And then the page just goes white.

I am using the sig editor hack by tubedogg. Any ideas why this might be happening?
Reply With Quote
  #20  
Old 07-17-2002, 07:44 PM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure on the sig editor hack. But at a guess, does it use the vB Code buttons?

If it does, there lies the problem.

Where his hack calls:
PHP Code:
$vbcode_buttons getcodebuttons(); 
Replace with:
PHP Code:
$cbutton $bbuserinfo[cbutton];
$vbcode_buttons getcodebuttons($cbutton); 
And you should be ok (I hope).

If that's not it, give me another shout and I'll take a look at tubedoggs hack and work out what's up
Reply With Quote
  #21  
Old 07-18-2002, 04:12 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hwulex,

Please check the link out below. I didn't want to double post this here, too, to clutter up the thread. The fix stopped the error, but now I am having major problems with it. Please let me know if there is anything we can do to fix this.

https://vborg.vbsupport.ru/showthrea...740#post273740
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:12 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11261 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete