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)
-   -   Template.view.mod (https://vborg.vbsupport.ru/showthread.php?t=32159)

NanoEntity 11-04-2001 10:00 PM

PHP Code:

// #######################################
            
TEMPLATE.VIEW.MOD
// #######################################
// #
// # NanoEntity 
// #                                   
// # Template.View.Mod
// # Version: 2.2.0                    
// # Created: 11/05/2001                                               
// #
// #######################################
// #
// # COPYRIGHT NOTICE:
// #
// # ?Copyright 2001, HOLOLITH.COM.
// # All Rights Reserved.
// #
// # Selling the code for this script
// # without prior written consent is
// # expressly forbidden. In all cases
// # copyright and header must remain intact.
// #
// #######################################

          
admin/template.php FireFly

// #######################################
Look In ### Start edit ###>>
// #######################################

makehiddencode("group""$group");

// #######################################
Above Add>>
// #######################################

  
makeyesnocode("Return?","return",1);

// #######################################
Look>>
// #######################################

  
echo "<p>Done!</p>";
  
$action="modify";
  
$expandset=$templatesetid;
}

// #######################################
Replace>>
// #######################################

    
echo "<p>Done!</p>";
  if (
$return) {
    
$action="edit";
  } else {
    
$action="modify";
    
$expandset=$templatesetid;
  }
}

// #######################################
Look And Move>>
// #######################################

// ###################### Start do update #######################
if ($HTTP_POST_VARS['action']=="doupdate") {
  
// a few lines of code here
    
$expandset=$templatesetid;
  }
}

// #######################################
Before This>>
// #######################################

// ###################### Start edit #######################
if ($action=="edit") {

// #######################################

          
forumdisply.php NanoEntity

// #######################################
Look>>
// #######################################

          
while ( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) {
            if ( !isset(
$forum['moderators']) ) {
              eval(
"\$forum['moderators'] = \"".gettemplate('forumhome_moderator')."\";");
            } else {
              eval(
"\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
            }

// #######################################
Replace With>>
// #######################################

          
while ( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) {
            if ( !isset(
$forum['moderators']) ) {
              eval(
"\$forum['moderators'] = \"&nbsp; - [Moderated by: ".gettemplate('forumhome_moderator')."\";");
            } else {
              eval(
"\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."] \";");
            }

// #######################################

Template
forumdisplay_forumbit_level1_post
&
forumdisplay_forumbit_level2_post

// #######################################
Replace With>>
// #######################################

<tr align="center">
    <
td bgcolor="{secondaltcolor}" valign="top"><img src="{imagesfolder}/$forum[onoff].gif" border="0" alt=""></td>
    <
td bgcolor="{firstaltcolor}" align="left"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><class="links">$forum[title]</b></normalfont></a>
    <
br><smallfont>$forum[description]</smallfont>
                <
br><smallfont>$forum[moderators] - [<a href="newthread.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><i><b>new thread</b></i></a>]</smallfont></td>
    <
td bgcolor="{secondaltcolor}"><normalfont class="links">$forum[replycount]</normalfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont class="links">$forum[threadcount]</normalfont></td>
    <
td bgcolor="{secondaltcolor}"><smallfont>$forum[lastpostinfo]</smallfont></td>
</
tr>


// ####################################### 


NanoEntity 11-05-2001 06:34 PM

demo

NanoEntity 11-05-2001 06:34 PM

demo2

DarkReaper 11-07-2001 10:51 PM

What does this do...?

Would you mind removing the code from your post and leaving it in the attachment only?


All times are GMT. The time now is 09:02 AM.

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.01694 seconds
  • Memory Usage 1,764KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete