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

Reply
 
Thread Tools
Details »»

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

Version: Unknown Rating:
Released: 02-18-2001 Last Update: Never Installs: 0
 
No support by the author.

Updated 06/30/01 for v2.01 plus added feature for Preview of "View Original"

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

1. Open template.php.
2. Look for (around line 79)
Code:
  makeinputcode("Template name","title",$title);
  makechoosercode("Template set","templatesetid","templateset",iif(isset($templatesetid),$templatesetid,-1),iif($debug,"All - global to all template sets",""));
  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);
  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 (around line 99)
Code:
  makeinputcode("Template name","title",$template[title]);
  makechoosercode("Template set","templatesetid","templateset",$template[templatesetid],iif($debug,"All - global to all template sets",""));
  maketextareacode("Template<br><br><font size='1'>".makelinkcode("view default template","template.php?s=$session[sessionhash]&action=view&title=$template[title]",1)."</font>","template",$template[template],25,80);
  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]")."\");");
6. Look for (around line 125)
Code:
  doformheader("","");
  maketableheader("View Default template");
  maketextareacode($template[title],"",$template[template],20,80);
  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")."\");");
Screenshot below:

Show Your Support

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

Comments
  #12  
Old 04-19-2001, 05:18 AM
bokhalifa bokhalifa is offline
 
Join Date: Oct 2001
Location: U A E Dubai
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

plez help

for Version RC1
NOT WERKIN
Reply With Quote
  #13  
Old 04-19-2001, 10:00 PM
bokhalifa bokhalifa is offline
 
Join Date: Oct 2001
Location: U A E Dubai
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

plez help
Reply With Quote
  #14  
Old 06-27-2001, 05:22 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just saw this. Haven't installed this on vb2.0gold....Sorry, but if I ever do I'll see if I can help.
Reply With Quote
  #15  
Old 06-27-2001, 06:59 PM
lichtflits's Avatar
lichtflits lichtflits is offline
 
Join Date: Feb 2002
Location: The Netherlands
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This code works to for version 2.0.1

find in admin/templates.php:
PHP Code:
  makeinputcode("Template name","title",$title);
  
makechoosercode("Template set","templatesetid","templateset",iif(isset($templatesetid),$templatesetid,-1),iif($debug,"All - global to all template sets",""));
  
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);
  
makehiddencode("group""$group");
  
doformfooter("Save"); 
DIRECTLY After that add:
Code:
    echo "<hr>$template<hr>\n";
  eval("dooutput(\"".gettemplate("$title")."\");");

find:
PHP Code:
  makeinputcode("Template name","title",$template[title]);
  
makechoosercode("Template set","templatesetid","templateset",$template[templatesetid],iif($debug,"All - global to all template sets",""));
  
maketextareacode("Template<br><br><font size='1'>".makelinkcode("view default template","template.php?s=$session[sessionhash]&action=view&title=$template[title]",1)."</font>","template",$template[template],25,80);
  
makehiddencode("group""$group");
  
doformfooter("Save Changes"); 
DIRECTLY After that add:
Code:
  echo "<hr>$template[template]<hr>\n";
  eval("dooutput(\"".gettemplate("$template[title]")."\");");
Reply With Quote
  #16  
Old 06-27-2001, 07:14 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't look at this code since February, so I'm not sure, are you giving changed code for 2.01 or are you simply adding some lines that are needed for 2.01. Because I'll be happy to modify the original instructions if needed.
Reply With Quote
  #17  
Old 06-28-2001, 04:44 AM
JenniferS
Guest
 
Posts: n/a
Default

i worked with a forum system a while back that kept all its language in one file, which made it very easy to translate and "rephrase" the board. editing one language file would be much easier than the mouse click marathon i recently undertook in the admin control panel when editing the error/redirect messages for my board.
Reply With Quote
  #18  
Old 06-28-2001, 08:23 PM
Prezident's Avatar
Prezident Prezident is offline
 
Join Date: Nov 2001
Location: Denver, CO. USA
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like a pretty handy little hack. I might have to try it out.

Would it be possible to get the all the instructions of this hack put into 1 post or txt file so that I am sure I have all the information together at the same time when I try to install this?

I would really like to try this one out. It looks very handy.
Reply With Quote
  #19  
Old 06-30-2001, 02:02 PM
Prezident's Avatar
Prezident Prezident is offline
 
Join Date: Nov 2001
Location: Denver, CO. USA
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please post the modified full instructions for this hack. I would really like to be able to try it out.

Also, I am running version 2.0 right now rather then 2.0.1. Do you see any problems with that?
Reply With Quote
  #20  
Old 06-30-2001, 03:53 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I started looking at the code to try and update this hack but none of the code looks familiar at all, maybe they changed the way things work or my memory really fails me...I'll look into it some more though...maybe install the other template hack which was quite good I think, it may jog my memory..
Reply With Quote
  #21  
Old 06-30-2001, 06:42 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried the second hack on this topic, It didn't work at all, I am using 2.0.1, it showed some templates and some it just showed a box with edit template in the left hand corner. I copied in pasted it from the hack right into place in the template.php file under the admin directory. I tried to edit templates from CP after I installed it. I took it back out until someone maybe can answer what is going on?

Any ideas?

Joeey
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 07:00 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.04400 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_code
  • (2)bbcode_php
  • (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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)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