PDA

View Full Version : [vbhacker] Template Compare


Mutt
03-29-2002, 10:00 PM
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]
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/forums/admin/template.php?action=view&title=postbit
Referer: http://www.razael-central.com/forums/admin/template.php?action=edit&templateid=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?

SemperFidelis
01-09-2003, 12:57 AM
Mutt - Any chance you can make this fully compatible with your Advanced Template Editor Hack ?

Thanks in advance.
:)

Mutt
01-28-2003, 01:52 AM
if you are installing both hacks, there is some over lap. (code that both hacks used) you only want to add it once. I can't rmember what it was right now. (haven't looked at either in forever) but I thought it was rather obvious.

I guess I'll have to download them and look

SemperFidelis
01-28-2003, 12:43 PM
Im going to have a go at getting both of them to work together tonight, but it would be great if you could come up with a simple way to get them both to play nice
:)

Edit :
Ok I already had the advanced template editor installed.
So I generated the 2 install files to plain test through vbhacker and this is what the issue is after installing the relevant parts from template compare :