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

Version: , by dwh dwh is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-30-2001 Last Update: Never Installs: 1
 
No support by the author.

Updated 07/30/01 for vb2.02 plus added feature of Preview of "View Original" now in the same screen and side by side!

To make it easier to upgrade templates, as well as see what a template looks like, Set up a Preview by following these instructions:

1. Open template.php.

2. Look for line 78-79 (in the Start Add section)
Code:
   makehiddencode("group", "$group");
  doformfooter("Save");
3. DIRECTLY After that add
Code:
echo "<b>Preview Code Placement:</b>
<hr>$template<hr><b>Preview Page Layout:</b><hr>\n";
  eval("dooutput(\"".gettemplate("$title")."\");");
4.Look for line 114-115 (in the Start Edit section)
Code:
makehiddencode("group", "$group");
  doformfooter("Save Changes");
5. DIRECTLY After that add
Code:
$templatesetid=$template[templatesetid];
  echo "<b>Preview Code Placement:</b><hr>$template[template]<hr>
<b>Preview Page Layout:</b><hr>\n";
  eval("dooutput(\"".gettemplate("$template[title]")."\");");
 echo "<hr>Here's the original template";
 $action="view";
 $title="$template[title]";
 $custom_template="$template[template]";
6. Look for line 127 (in the Start View section)
Code:
echo "</table>\n</td></tr></table></form>";
7. DIRECTLY After that add
Code:
echo "<b>Preview Code Placement:</b>
<hr>$template[template]<hr><b>Preview Page Layout:</b><hr>\n";
  eval("dooutput(\"".gettemplate("$title")."\");");
  $original_template="$template[template]";
  echo "<hr>Here's the 2 side by side<form>
<table><tr><td width=50%><TEXTAREA COLS=60 ROWS=20>$custom_template</textarea></td>
<td width=50%><TEXTAREA COLS=60 ROWS=20>$original_template</textarea></td></tr>
<tr><td width=50%>$custom_template</td>
<td width=50%>$original_template</td></tr></table></form>";
I added a bunch of carriage returns as before this edit the screen got really wide, but if you have problems, remove the carriage returns.

PS It does look a bit weird with custom templates, but other than that it looks like it'll be a big help.

Partial Screenshot below:

Show Your Support

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

Comments
  #2  
Old 07-31-2001, 02:28 AM
\/ash
Guest
 
Posts: n/a
Default

YES! I love this!
Reply With Quote
  #3  
Old 07-31-2001, 03:51 AM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now THIS I like.
Reply With Quote
  #4  
Old 07-31-2001, 01:09 PM
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on 2.0.1?
Reply With Quote
  #5  
Old 07-31-2001, 01:15 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm 99% sure it'll work on 2.01, but if you have any problem, you can go to the version I wrote for 2.01.
Reply With Quote
  #6  
Old 08-01-2001, 05:13 PM
ldydvr
Guest
 
Posts: n/a
Default

Have you done this with your v2.0.3 yet too?
Reply With Quote
  #7  
Old 08-01-2001, 05:33 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes..but I have to admit it's pretty kludgy. I'll have to revisit it when I get time to make it better.
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 08:49 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.04155 seconds
  • Memory Usage 2,245KB
  • Queries Executed 20 (?)
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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (5)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete