Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/docs/hook_system.html

    r400 r702  
    105105}
    106106
    107 code { 
    108         color: #006600; 
    109         font-weight: normal; 
    110         font-family: 'Courier New', monospace; 
    111         border-color: #D1D7DC; 
    112         border-width: 1px; 
    113         border-style: solid; 
    114         background-color: #FAFAFA; 
     107code {
     108        color: #006600;
     109        font-weight: normal;
     110        font-family: 'Courier New', monospace;
     111        border-color: #D1D7DC;
     112        border-width: 1px;
     113        border-style: solid;
     114        background-color: #FAFAFA;
    115115}
    116116
     
    388388PHPBB_ROOT_PATH   (overwrite $phpbb_root_path)
    389389PHPBB_ADMIN_PATH  (overwrite $phpbb_admin_path)
    390 </pre></div>
     390PHPBB_USE_BOARD_URL_PATH (use generate_board_url() for image paths instead of $phpbb_root_path)
     391</pre></div>
     392
     393<p>If the <code>PHPBB_USE_BOARD_URL_PATH</code> constant is set to true, phpBB uses generate_board_url() (this will return the boards url with the script path included) on all instances where web-accessible images are loaded. The exact locations are:</p>
     394
     395<ul>
     396        <li>/includes/session.php - user::img()</li>
     397        <li>/includes/functions_content.php - smiley_text()</li>
     398</ul>
     399
     400<p>Path locations for the following template variables are affected by this too:</p>
     401
     402<ul>
     403        <li>{T_THEME_PATH} - styles/xxx/theme</li>
     404        <li>{T_TEMPLATE_PATH} - styles/xxx/template</li>
     405        <li>{T_SUPER_TEMPLATE_PATH} - styles/xxx/template</li>
     406        <li>{T_IMAGESET_PATH} - styles/xxx/imageset</li>
     407        <li>{T_IMAGESET_LANG_PATH} - styles/xxx/imageset/yy</li>
     408        <li>{T_IMAGES_PATH} - images/</li>
     409        <li>{T_SMILIES_PATH} - $config['smilies_path']/</li>
     410        <li>{T_AVATAR_PATH} - $config['avatar_path']/</li>
     411        <li>{T_AVATAR_GALLERY_PATH} - $config['avatar_gallery_path']/</li>
     412        <li>{T_ICONS_PATH} - $config['icons_path']/</li>
     413        <li>{T_RANKS_PATH} - $config['ranks_path']/</li>
     414        <li>{T_UPLOAD_PATH} - $config['upload_path']/</li>
     415        <li>{T_STYLESHEET_LINK} - styles/xxx/theme/stylesheet.css (or link to style.php if css is parsed dynamically)</li>
     416        <li>New template variable {BOARD_URL} for the board url + script path.</li>
     417</ul>
     418
    391419
    392420                </div>
     
    617645<div class="codebox"><pre>
    618646not hooked
    619 hooked 
     647hooked
    620648</pre></div>
    621649
     
    671699                <div class="codebox"><pre>
    672700not hooked
    673 hooked 
     701hooked
    674702                </pre></div>
    675703
     
    848876
    849877        <div id="page-footer">
    850                 <div class="version">$Id: hook_system.html 8479 2008-03-29 00:22:48Z naderman $</div>
     878                <div class="version">$Id$</div>
    851879        </div>
    852880</div></div>
Note: See TracChangeset for help on using the changeset viewer.