vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [vbhacker] Advanced Template Editor (https://vborg.vbsupport.ru/showthread.php?t=37635)

Mutt 04-18-2002 10:00 PM

[vbhacker] Advanced Template Editor
 
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.

Mutt 04-19-2002 07:47 PM

screen shot

Velocd 04-19-2002 07:54 PM

Nice ;)

NTLDR 04-19-2002 09:44 PM

Very nice ;) will make editing templates alot easiler!

Installed without a problem, thanks for sharing :D

defnot 04-20-2002 12:12 AM

very nice !!!

MrLister 04-20-2002 03:03 AM

great hack! i love it!

dxb 04-20-2002 05:22 AM

Another great one Mutt well done :)

Admin 04-20-2002 06:14 AM

Great job. :) Won't use it but a great hack nonetheless.

Mutt 04-22-2002 08:16 PM

I made a basic table maker and a vbTable maker. Will be updating the zip soon. Anything else that should be added before I do?

Mutt 04-23-2002 11:22 PM

if you already installed and want to update just upload the 2 new js files then open template.php and replace the dotemplatejavascript function with the new one I attached to this post

Mutt 04-23-2002 11:30 PM

here's a screen shot with the calculator window and the table maker window open

Mutt 04-23-2002 11:30 PM

here's a screen shot of the vbtable maker

Alfo 04-24-2002 12:35 PM

Sweet Hack Nice Improvement.

wolfe 05-06-2002 09:54 PM

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

Mutt 05-07-2002 01:45 AM

thats correct, you are deleting those lines.

Jawelin 05-07-2002 09:38 AM

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

Jawelin 05-10-2002 08:57 PM

*BUMP*
Thanks, Mutt...

Simply, I'm trying to use two of your hacks, together...

wolfe 05-14-2002 08:56 AM

well i have done what you said Mutt

but not the template has disserpierd

heres a screen

CeleronXL 05-22-2002 06:15 PM

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.

Link14716 06-27-2002 11:54 PM

Installed and works like a charm. Thanks!

Kinox 06-28-2002 02:19 AM

here is MUTTs hack...

its a vbhacker 1.0.2 hack vb2.2.6

+ with few addons...

it has copy template
return, returns you to the template you are tying to edit
added copy, remove, view original and revert...

Kinox 06-28-2002 02:20 AM

screen

GOD-Dblade 01-15-2003 08:58 PM

works perfect on 2.2.9 :P

WouterW 01-28-2003 03:20 AM

Quote:

Originally posted by GOD-Dblade
works perfect on 2.2.9 :P
Great to hear that! The hack sounds very intresting...
but I'm a vbHacker-noob... actualy, I didn't even know it :)
Does version 1.0.2 (the newest i found on this board) still work without problems on 2.2.9?

Plz help me! :)

WouterW 02-01-2003 12:10 AM

[bumb] Plz! Anybody? :(

Graphics 02-01-2003 11:48 AM

SWEEY HACk :D

WouterW 02-02-2003 11:48 PM

Quote:

Originally posted by Graphics
SWEEY HACk :D
Tnx, that helped a lot :ermm: :(

Kernel 03-23-2003 05:01 PM

One problem i found if you hadnt already hacked the template and went to go to change original it would bring up a blank template which in my minds is ether a useless feature which is annoying or a bug.

I just wanted to edit a template i had enver edited before.

But everything else seems correct just only on temps already edited

Maybe someone knows a fix


All times are GMT. The time now is 10:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01166 seconds
  • Memory Usage 1,776KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete