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] Template Compare (https://vborg.vbsupport.ru/showthread.php?t=36749)

Mutt 03-29-2002 10:00 PM

[vbhacker] Template Compare
 
I was using Beyond Compare to upgrade from 221 to 224 when I got this idea for upgrading my templates.

all this does is combines the edit template form with the view original template form. then you can see the original template in the above form with the form to edit your edited template below it. see what has changed, make the changes in your template and submit the update.

changes the "view original" link to a "compare to original" link

preview and copy buttons work for both original and modified template text areas.

this is my first time using vbhacker so I hope the file works for you guys. I've attached the vbhacker file below. if you don't have vbhacker, just get it. it's very nice.

FIREFLY: 2 things about vbhacker. how about a field to leave comments to the person installing the hack. and how about having vbhacker build the hack.php file instead of just sticking it into a textarea. that way you'd know that the hack.php file is set up right. very nice tool. thanks

nuno 03-30-2002 02:48 PM

very nice
thanks :)

BigJohnson 03-30-2002 04:04 PM

nice thanx

Recluse 03-30-2002 04:13 PM

very nice, the vbhacker file worked perfectly. just one question. why is there only a search box on the edited template? see attachment for example.

Mutt 03-30-2002 09:45 PM

well, that find box doesn't really search the textarea. it searches the entire page including the contents of the textarea. doing a search in the bottom box will bring up results from the top box. I tried fiddling with 2 search boxes but felt that no matter how I set it up, people would get confused.

if I could figure out how to get it to just search the textarea I would. not perfect, but good enough. everything else works great! :)

glad ya like it and glad the vbhacker thing worked. I haven't installed anything with vbhacker yet.

Austin Dea 03-31-2002 03:45 AM

umm, for some reason I ran the hacker, and it said everything worked...but nuthin happened...


[edit] Oh wait it worked...but where the second box is supposed to be i get a database error....

[edit2]
Quote:

Database error in vBulletin Control Panel 2.2.4:

Invalid SQL: SELECT templateid,templatesetid,title,template FROM template WHERE templateid=
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Saturday 30th of March 2002 09:43:34 PM
Script: http://www.razael-central.com/forums...&title=postbit
Referer: http://www.razael-central.com/forums...=523&group=all

Derek 06-20-2002 04:41 PM

Ok, this isn't working for me... Mutt, does this work for 2.2.6? If not, can you please place an upgrade so I don't have to uninstall this? Just make an upgrade to work with 2.2.6... like, use the exact code you used to find and just give a new replacement or whatever. I would like to see what exactly this can do and I followed the steps perfectly but get nothing.

Superman53142 06-20-2002 05:31 PM

It works in 2.2.6 for me. Thanks man! :)

Derek 06-25-2002 04:44 PM

Hmmm... not sure what I did wrong, but yes, I got it working on 2.2.6... anyways, very useful hack... great job!

Derek 06-26-2002 09:45 AM

Well, there is another problem... this hack doesn't work with Mutt's Advanced Template Editor, there for it is very hard to compare. It shows the original template at the top and then shows 2 version of the edited template on the bottom, making it very hard to compare... any ways you can either merge or do whatever with those hacks?


All times are GMT. The time now is 08:59 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.01079 seconds
  • Memory Usage 1,730KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete