Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
[vbhacker] Template Compare Details »»
[vbhacker] Template Compare
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: 03-29-2002 Last Update: Never Installs: 9
 
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 03-30-2002, 02:48 PM
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice
thanks
Reply With Quote
  #3  
Old 03-30-2002, 04:04 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice thanx
Reply With Quote
  #4  
Old 03-30-2002, 04:13 PM
Recluse's Avatar
Recluse Recluse is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-30-2002, 09:45 PM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 03-31-2002, 03:45 AM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 06-20-2002, 04:41 PM
Derek Derek is offline
 
Join Date: Mar 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 06-20-2002, 05:31 PM
Superman53142's Avatar
Superman53142 Superman53142 is offline
 
Join Date: Feb 2002
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works in 2.2.6 for me. Thanks man!
Reply With Quote
  #9  
Old 06-25-2002, 04:44 PM
Derek Derek is offline
 
Join Date: Mar 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm... not sure what I did wrong, but yes, I got it working on 2.2.6... anyways, very useful hack... great job!
Reply With Quote
  #10  
Old 06-26-2002, 09:45 AM
Derek Derek is offline
 
Join Date: Mar 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

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 05:18 AM.


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.06917 seconds
  • Memory Usage 2,277KB
  • Queries Executed 23 (?)
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_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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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