Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Magic Tool Box Details »»
Magic Tool Box
Version: 3.0.1, by misr.cc misr.cc is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.x Rating:
Released: 12-25-2007 Last Update: 12-25-2007 Installs: 47
Uses Plugins Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

Support Stop For This Version
Support Just 4 New VB 3.7.X


/*================================================= =====================*\
|| ################################################## ################## ||
|| # Magic ToolBox Hack v3.0.1 for vB 3.6.x
|| # ----------------------------------------------------------------
|| # Most PHP code in this file is ? 2003-2005 Rayaheen Software
|| # This file may only be redistributed to vBulletin license holders
|| # ----------------------------------------------------------------
|| # -------------- Ported by http://www.MISR.cc --------------
|| # This Hack was ported to work with vB 3.0.X & 3.6.x
|| # ---------------------------------------------------------------- |
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------------
|| # http://www.traidnt.net || http://www.Misr.cc || http://www.vbulletin.com
|| # MISR.CC
|| ################################################## ################## ||
\*================================================ ======================*/
Important : This has been tested on 3.6.7 - and should work good for 3.6.X , please test with caution - and as always BACKUP FIRST!


What this hack do ?
Add extra buttons with new custom BB codes for your text editor

Demo :- No Live Demo
Just some screen
:erm:





This new buttons that add to the can't used by Firefox ( will fix it on the new version




Installation time :- 3 : 5 Min

Installation :

Upload :-
clientscript >>> {forum_path}/clientscript
images >>> {forum_path}/images
magic_toolbox.php >>> forum root

import product-magictoolbox

Edit Template :-
Template editor_clientscript

find
PHP Code:
vbphrase["insert_all"]                   = "$vbphrase[insert_all]"
after it add
PHP Code:
<!-- [START HACK='Magic Tool Box' AUTHOR='Alawi Ba3qeel & Alyassi' VERSION='3.0' CHANGEID] -->
vbphrase["mtool_highlight_first"] = "$vbphrase[mtool_highlight_first]";
vbphrase["mtool_message_too_short"] = "$vbphrase[mtool_message_too_short]";
vbphrase["mtool_message_too_long"] = "$vbphrase[mtool_message_too_long]";
vbphrase["mtool_poem_type"] = "$vbphrase[mtool_poem_type]";
vbphrase["mtool_hide_keyboard"] = "$vbphrase[mtool_hide_keyboard]";
vbphrase["mtool_enter_flash_url"] = "$vbphrase[mtool_enter_flash_url]";
vbphrase["mtool_flash_hight"] = "$vbphrase[mtool_flash_hight]";
vbphrase["mtool_flash_width"] = "$vbphrase[mtool_flash_width]";
vbphrase["mtool_sound_video"] = "$vbphrase[mtool_sound_video]";
vbphrase["mtool_real_video"] = "$vbphrase[mtool_real_video]";
vbphrase["mtool_sound_only"] = "$vbphrase[mtool_sound_only]";
vbphrase["mtool_enter_ram_url"] = "$vbphrase[mtool_enter_ram_url]";
vbphrase["mtool_enter_page_url"] = "$vbphrase[mtool_enter_page_url]";
minchars $vboptions[postminchars];
maxchars $vboptions[postmaxchars];
<!-- [
END HACK='Magic Tool Box' AUTHOR='Alawi Ba3qeel & Alyassi' VERSION='3.0' CHANGEID] --> 
Save it .

Template headinclude
Find
PHP Code:
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script
After it add
PHP Code:
<!-- [START HACK='Magic Tool Box' AUTHOR='Alawi Ba3qeel & Alyassi' VERSION='3.0' CHANGEID] -->
<
script type="text/javascript">var bburl '$vboptions[bburl]/';</script>
<
script type="text/javascript" src="clientscript/toolbox.js"></script>
<!-- [
END HACK='Magic Tool Box' AUTHOR='Alawi Ba3qeel & Alyassi' VERSION='3.0' CHANGEID] --> 
Save it .

Template
showthread_quickreply
Find
PHP Code:
        <td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]/></div></td>
    </if> 
After it add
PHP Code:
<!-- [START HACK='Magic Tool Box' AUTHOR='Alawi Ba3qeel & Alyassi' VERSION='3.0' CHANGEID] -->
    <if 
condition="$vboptions['mtool_quickreply_setting_active']">
                
$vBeditTemplate[extrabuttons]
    </if>
<!-- [
END HACK='Magic Tool Box' AUTHOR='Alawi Ba3qeel & Alyassi' VERSION='3.0' CHANGEID] --> 
Save it .

Now go to
vBulletin Options >> Message Posting Interface Options >> Enable Clickable Message Formatting Controls

Edit :-
Full Editor to :-
Enable Standard Controls

Quick Reply to :-
Enable Standard Controls

Quick Edit to :-
Enable Standard Controls


Edit Magic ToolBoX settings :-
vBulletin Options >> Magic ToolBox

Any bugs any help ask here

Supporters / CoAuthors

Show Your Support

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

Comments
  #52  
Old 08-01-2008, 12:17 PM
Bashar Bashar is offline
 
Join Date: Nov 2002
Location: Earth
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

salaam bro,

is new version is out for 3.7.x ? also for firefox ? since i use linux and firefox only :|
Reply With Quote
  #53  
Old 08-08-2008, 01:21 AM
misr.cc's Avatar
misr.cc misr.cc is offline
 
Join Date: Dec 2007
Location: Egypt
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by usmansabir View Post
great .. worked perfect with 3.6.8
Quote:
Originally Posted by farsgsm View Post
thanks, i installed this hot hack
on my IE7 everything works fine,
but my forum users, can't use functions, on their IE7 and their own PC
they even can't see those posts that i used frame or move functions in that.

when they click on function icons, it seems u clicked on page up key
and screen goes to up.

any help appreciated.
thanx
Quote:
Originally Posted by Bashar View Post
salaam bro,

is new version is out for 3.7.x ? also for firefox ? since i use linux and firefox only :|
working now to update this to vb3.7
and 3.6.X and will Release this Version soon with 2 or 3 days

added new
buttons and fixed some buttons to work correct with FF ( 2 & 3 )
and IE ( 6 & 7 ) and
[s]Edit Template [/s] no more all Templates edit done Auto
Reply With Quote
  #54  
Old 08-08-2008, 03:02 PM
Bashar Bashar is offline
 
Join Date: Nov 2002
Location: Earth
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by misr.cc View Post
working now to update this to vb3.7
and 3.6.X and will Release this Version soon with 2 or 3 days

added new
buttons and fixed some buttons to work correct with FF ( 2 & 3 )
and IE ( 6 & 7 ) and
[s]Edit Template [/s] no more all Templates edit done Auto
Thanks

does it support copy pasting images into the reply box directly?
Reply With Quote
  #55  
Old 08-08-2008, 03:28 PM
misr.cc's Avatar
misr.cc misr.cc is offline
 
Join Date: Dec 2007
Location: Egypt
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bashar View Post
Thanks

does it support copy pasting images into the reply box directly?
yes as the new Version Support WYSIWYG Editor ( Standard And WYSIWYG Controls )
Reply With Quote
  #56  
Old 08-08-2008, 04:57 PM
Bashar Bashar is offline
 
Join Date: Nov 2002
Location: Earth
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by misr.cc View Post
yes as the new Version Support WYSIWYG Editor ( Standard And WYSIWYG Controls )
what about drag and drop directly from windows/linux desktops or folders ?
Reply With Quote
  #57  
Old 08-08-2008, 06:36 PM
misr.cc's Avatar
misr.cc misr.cc is offline
 
Join Date: Dec 2007
Location: Egypt
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bashar View Post
what about drag and drop directly from windows/linux desktops or folders ?
i don't knew as i don't test it before
but if it work with the normal Editor
t think it should work with the new V
Reply With Quote
  #58  
Old 08-12-2008, 06:07 PM
PAKIDIL PAKIDIL is offline
 
Join Date: Jan 2007
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

waiting for new version for 3.7.x .
Reply With Quote
  #59  
Old 09-13-2008, 10:42 PM
SSG.D's Avatar
SSG.D SSG.D is offline
 
Join Date: Aug 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Parse error, unexpected T_string on line 292 in public_html/forumsdirectory/magic_toolbox.php

I'm not a coder but I was compelled to find the parse and syntax errors.. Here is what I edited to make this work in my VB 3.6.9 Once I cleared line 292, then line 296 and so on. Everything in Red is the error

I just Installed this today. So as a note to the Author of the Magic Toolbox: For VB 3.6.9 what you have available for down load here causes syntax and parse errors located in the magic_toolbox.php This is a great mod, just needs a little clean up.

In Your magic_toolbox.php
Find

Code:
<td><a name="H_'.$tool.'"><div style="background-color:'.$firstaltcolor.';padding:5px;"><img border="1" align="middle" src="images/toolbox/'.$tool.'.gif" onclick="openHelp(\'T_'.$tool.'\')" style="cursor:hand"></div>';
		echo '<div name="DIVs" id="T_'.$tool.'" style="background-color:'.$secondaltcolor.';padding:5px;display:';
		if ($toolsel == "")
Replace with

Code:
<td><a name="T_'.$tool.'"><div style="background-color:'.$firstaltcolor.';padding:5px;"><img border="1" align="middle" src="images/toolbox/'.$tool.'.gif" onclick="openHelp(\'T_'.$tool.'\')" style="cursor:hand"></div>';
		echo '<div name="DIVs" id="T_'.$tool.'" style="background-color:'.$secondaltcolor.';padding:5px;display:';
		if ($toolsel == "")
Now for the Syntax Errors:

Find

Code:
????? ??????? :
15 : use numbers ( 0 = didin't parts numbers  ? more than 0 = show parts numbers and begin from the number you enter )
Replace didin't with didnot

Find

Code:
Note :
on poem you should use (=) to Separat betwen the lines partes . and if there Just one part don't use ( =)
Replace the word don't with dont

The big problem was the apostrophe ' added to a few words.
The template edits work good
The uploads work good
The.xml product works good
Just the magic_toolbox.php tweak needed
Hope this helps someone.
Reply With Quote
  #60  
Old 03-28-2010, 04:10 PM
ARSamo ARSamo is offline
 
Join Date: Aug 2009
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any update for 3.7 and firefox plz.....
Reply With Quote
  #61  
Old 03-30-2010, 05:39 PM
mmostafayousef mmostafayousef is offline
 
Join Date: Jul 2009
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any similar hack for vB 4.x ?????
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 11:29 PM.


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.04963 seconds
  • Memory Usage 2,364KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (6)bbcode_php
  • (7)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
  • (2)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