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
[vbhacker] Advanced Template Editor Details »»
[vbhacker] Advanced Template Editor
Version: 1.00, by Mutt Mutt is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-18-2002 Last Update: Never Installs: 89
 
No support by the author.

I love that VB uses templates and I'm always looking for ways to make it easier

Template Editor by Mutt
adds HTML and replacement var instant code buttons to the template editor.

UPDATED 4/23/2002
added basic table and vbtable makers.


whats a vbtable? a vbtable would be something like this

PHP Code:
<table cellpadding='{tableouterborderwidth}' cellspacing='0' border='0' bgcolor='{tablebordercolor}' {tableouterextrawidth='{contenttablewidth}' align='center'><tr><td>
<
table cellpadding='4' cellspacing='{tableinnerborderwidth}' border='0' {tableinnerextrawidth='100%'>
<
tr><td bgcolor='{tableheadbgcolor}' colspan='3'><smallfont color='{tableheadtextcolor}'><b>Header Text</b></smallfont></td></tr>
<
tr bgcolor='{firstaltcolor}'><td></td><td></td><td></td></tr>
<
tr bgcolor='{secondaltcolor}'><td></td><td></td><td></td></tr>
<
tr bgcolor='{firstaltcolor}'><td></td><td></td><td></td></tr>
</
table></td></tr></table



this uses parts of the improved vbcode.js hack by s.molinari with my bug fixes
https://vborg.vbsupport.ru/showthrea...ight=vbcode.js

Simply upload the 3 files to your admin dir.
run install using vbHacker.


-----------------------------------------

here are my other template.php hacks

Groups for Custom Templates
https://vborg.vbsupport.ru/showthrea...threadid=34919

[vbhacker] Template Compare
https://vborg.vbsupport.ru/showthrea...threadid=36749

Copy Template
https://vborg.vbsupport.ru/showthrea...threadid=26329

Preview and copy buttons for Edit Template
already added to VB

----------------------------

I reccomend these template.php hacks made by others

Template Backup System!
https://vborg.vbsupport.ru/showthrea...threadid=33072

Search Templates by Title
https://vborg.vbsupport.ru/showthrea...eturn+template

Return to Edit Template page after saving
https://vborg.vbsupport.ru/showthrea...eturn+template

(I modified this hack and used it to return to the add template page as well)

-----------------------------

I was going to make 1 vbhacker file with all of these but didn't know if that would work for everyone.

Show Your Support

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

Comments
  #12  
Old 04-23-2002, 11:30 PM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here's a screen shot with the calculator window and the table maker window open
Reply With Quote
  #13  
Old 04-23-2002, 11:30 PM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here's a screen shot of the vbtable maker
Reply With Quote
  #14  
Old 04-24-2002, 12:35 PM
Alfo Alfo is offline
 
Join Date: Nov 2001
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet Hack Nice Improvement.
Reply With Quote
  #15  
Old 05-06-2002, 09:54 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a problem

when i get here

vbHacker: Step 4 - Manual changes

i says

In the admin/template.php file, replace this code:

maketextareacode("Template<br><br><font size='1'>".iif(isset($title),makelinkcode("view default template","template.php?s=$session[sessionhash]&action=view&title=$title",1)."</font>",""),"template",$template,25,80);

With this code:

But the template is empty

and the same with the other one to edit
Reply With Quote
  #16  
Old 05-07-2002, 01:45 AM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats correct, you are deleting those lines.
Reply With Quote
  #17  
Old 05-07-2002, 09:38 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack. Thanks.

I would use both yours Template Compare and Adv.Editor... but the java_script code at the top of template.php seems conflicting... I can't manage to merge the two versions, even by hand (not using vbhacker...)

Do you have an already merged version of that part ?

Thank you very much.
Bye
Reply With Quote
  #18  
Old 05-10-2002, 08:57 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*BUMP*
Thanks, Mutt...

Simply, I'm trying to use two of your hacks, together...
Reply With Quote
  #19  
Old 05-14-2002, 08:56 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i have done what you said Mutt

but not the template has disserpierd

heres a screen
Reply With Quote
  #20  
Old 05-22-2002, 06:15 PM
CeleronXL's Avatar
CeleronXL CeleronXL is offline
 
Join Date: Nov 2001
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uh... I need to uninstall it because of the freaking slashes ( \'s ) it keeps adding to all my templates (ok well, not all, but all of the original ones). I don't know how to though since you delete those lines and I don't know where to put them back in.... A few other people have the slash problem too and need to uninstall... Could someone make a vbhacker uninstall for this?

For me, it treats the templates, which are HTML, as PHP scripts. It inserts slashes after stuff like

align=/'center/'

And stuff like that, thus canceling out whatever code was there.
Reply With Quote
  #21  
Old 06-27-2002, 11:54 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and works like a charm. Thanks!
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 02:36 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.04655 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
  • (1)bbcode_php
  • (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