Stránka 11

[CH 2.1.6h ] CH IM Portal 1.0.8a

Odeslal: 24 Led 2007 11:41
od leschek
CH IMPortal 1.0.8a

Podařilo se mi nainstalovat CH IMPortal, což je vlastně IM portál upravenej pro CH Mod.

Umožní vložit na stránku bloky, do kterých se automaticky posílají příspěvky atd. z fóra.

Mód se dá stáhnout na stránkách CHMods Demoboard.

Češtinu můžete najít tady.

Kód: Vybrat vše

##############################################################
## MOD Title: CH IMPortal
## MOD Author: Craterz < n/a > (n/a) http://www.craterz.com/
## MOD Updated by: Haynes <haynes@chmods.de (N/A) http://chmods.de
## MOD Description: This MOD is a CH 2.1.6h adapted version of IMPortal.
##	phpBB IMPortal by: masterdavid
##	< webmaster@integramod.com > (Ronald John David) http://www.integramod.com/
##	
## MOD Version: 1.0.8a
## 
## Installation Level: Easy
## Installation Time: 25 minutes
## Files To Edit: admin/index.php
##                includes/class_config.php
##                includes/class_stats_online.php
##		  includes/im_portal/class_im_portal.php
##                login.php
##                templates/ptifo/admin/index_navigate.tpl
##                templates/ptifo/overall_footer.tpl
##                templates/ptifo/overall_header.tpl
##                templates/ptifo/ptifo.cfg
##                templates/ptifo/ptifo.css
##                templates/subSilver/admin/index_navigate.tpl
##                templates/subSilver/overall_footer.tpl
##                templates/subSilver/overall_header.tpl
##                templates/subSilver/subSilver.cfg
##                templates/subSilver/subSilver.css
## Included Files: root/*.*
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: 
##	Based on/with IMPortal 1.2.0 EMC Beta by masterdavid
##	Requires CH 2.1.6e
##	Always backup your files and database prior to installing any MOD.
##	You DO NOT need the original IMPortal MOD, this includes everything you need.
##	
##	Be sure to visit the caches management in the ACP and 'Regen' the Lang cache when complete.
##	
##	This following is shamelessly borrowed from Smartor's ezPortal installation instructions.
##	
##	HOW TO MAKE YOUR WEBSITE OPEN TO FILE portal.php INSTEAD OF index.php ?
##	Do NOT do this until this MOD is successfully installed!
##	You can use one of the following methods! Lots of luck!
##	
##	
##	o Method 1: (for Apache server)
##	      Create/modify file .htaccess in phpBB root directory add/edit this line:
##	
##	         DirectoryIndex index.html index.htm portal.php index.php
##	
##	
##	o Method 2: {use META tag - if you cannot apply the 1st method)
##	      Create file index.html in phpBB root directory (without #)
##	
##	         <html>
##	         <head>
##	         <title>Redirecting...</title>
##	         <meta http-equiv="refresh" content="0;url=portal.php">
##	         </head>
##	         <body>
##	         </body>
##	         </html>
##	
##	      If your phpBB was placed in a subdirectory to the webroot, like: http://www.something.com/forum you could create index.html in the webroot and modify the line 4 to <meta http-equiv="refresh" content="0;url=forum/portal.php">
##	
##	o Method 3: I think maybe you can find out method 3 yourself ;) like JavaScript, etc.
##############################################################
## MOD History:
## 
## 2008-08-26 - Version 1.0.8a
##	-fixed several bugs and missing lang keys
##	-moved towards the CH plugin system
##
## 2007-10-12 - Version 1.0.8
##      -Updated for CH 2.1.6e compliance
##      -Added ability to control scroll within Recent Topic block
##      -Removed number of posts (x) unread from User Block, cannot determine number
##          on all pages where User Block may be shown (if set in Global Header)
##          May return in future version, but currently is unstable.
## 
## 2006-07-30 - Version 1.0.7
##      -Changed a few things for forum and user blocks, for better/easier tpl editing
##         fetchposts.php
##         blocks/blocks_imp_forum.php
##         blocks/blocks_imp_user_block.php
##         language/lang_english/lang_extend_CH_IMPortal.php
##         templates/ptifo/blocks/forum_block.tpl
##         templates/ptifo/blocks/user_block_block.tpl
##         templates/subSilver/blocks/forum_block.tpl
##         templates/subSilver/blocks/user_block_block.tpl
##      -Redifined a CH language variable for better wording
##      -NOTE: To update, just upload and replace the following files:
## 
## 2006-07-30 - Version 1.0.6
##      -Fixed an issue with group names not properly showing up in ACP pages
##         admin/admin_portal_blocks.php
##         admin/admin_portal_layout.php
##      -NOTE: To update, just upload and replace the following files:
## 
## 2006-07-30 - Version 1.0.5
##      -Fixed a javascript error on portal/home page
##      -Fixed a javascript error on all other pages
## 
## 2006-09-03 - Version 1.0.4
##      -Fixed a number of language vars not being filled properly.
##         instead of entire site name.
##         There are no db changes (except one... it's minor and not needed to update).
##         If you've modded the files, make use of WinMerge or some such.
##      -Fixed a few other minor HTML coding issues.
##      -Fixed an issue with the statistics block not showing up after install.
##      -Added a language var so that on Nav block it only shows 'Forum Index'
##      -NOTE: To update, just remove the old files from your site and upload new ones.
## 
## 2006-07-30 - Version 1.0.3
##      -Moved db_update.php to root folder.
##      -Changed Recent Topic block start scroll delay time to 5 seconds.
## 
## 2006-07-30 - Version 1.0.2
##      -Fixed a couple things causing easyMOD to fail.
##      -Added note to regen lang cache.
## 
## 2006-07-10 - Version 1.0.1
##      -Fixed a SQL issue in db_update.php and sql.txt
##      -Fixed a confusing point in installation instructions (this).
## 
## 2006-07-04 - Version 1.0.0
##      -Released to Registered users at my board.
## 
## 2006-07-02 - Version 0.0.4
##      -Added template instructions for ptifo.
##      -Added a missed instruction.
## 
## 2006-06-30 - Version 0.0.3
##      -Fixed the major problem.
##      -Fixed several minor issues with titles and such not displaying.
## 
## 2006-06-29 - Version 0.0.2
##      -Made most necessary changes.
##      -Completely rewrote installation instructions (this).
##      -Renamed SQL inserted tables for better organization.
##      -Created an semi-automated SQL installer.
##      -Navigation block is now truely global.
##      -Includes ACP set Navigation icon.
##      -Rewrote several/many files to make use of CH aspects.
##      -Rewrote scrolling mechanism of Recent Topics block.
##      -Scrolling is now XHTML compliant.
##      -Fixed when recent topic is by a Guest.
##      -Fixed many (X)HTML compliance issues.
##      -Still tracking one major problem.
## 
## 2006-06-27 - Version 0.0.1
##      -Began developing adaption.
## 
##############################################################
Pokud chcete udělat stránku portal.php jako výchozí, tak máte několik možností:

1. Pro Apache servery - Vytvořte/změňte soubor .htaccess ve vašem fóru tak, že do něho vložíte nebo upravíte tento řádek:

Kód: Vybrat vše

DirectoryIndex index.html index.htm portal.php index.php

2. Vytvořte soubor index.html, který vložíte do vašeho kořenového adresáře fóra a do něj tohle:

Kód: Vybrat vše

<html>
	         <head>
                 <title>Redirecting...</title>
	         <meta http-equiv="refresh" content="0;url=portal.php">
	         </head>
	         <body>
	         </body>
	         </html>
Jestliže je vaše fórum v nějakém podadresáři (např: http://www.cokoliv.com/forum), tak vložte index.html do hlavního adresáře webu a upravte 4 řádek takto:

Kód: Vybrat vše

<meta http-equiv="refresh" content="0;url=forum/portal.php">

Úprava bloku navigace

Odeslal: 12 Srp 2007 18:05
od leschek
Úprava bloku navigace

Do Navigačního bloku IM Portálu není moc složitý přidat další odkazy např.: na Sudoku nebo Downloady atd. Stačí otevřít:

Kód: Vybrat vše

templates/váš_vzhled/blocks/navigation_block.tpl
a najít tam tuto část kódu:

Kód: Vybrat vše

			<tr valign="middle">
				<td align="center" valign="middle" width="11">{NAVBLK_ICON}</td>
				<td align="left"><span class="gensmall"><a href="{U_PORTAL}" class="gensmall" title="{L_PORTAL}">{L_PORTAL}</a></span></td>
			</tr>
kterou zkopírujete na místo, kde chcete mít odkaz. Pak jenom změňte "PORTAL" na "SUDOKU" nebo "DOWNLOAD", pokud máte módy nainstalované nebo změňte

Kód: Vybrat vše

<a href="{U_PORTAL}"


na

Kód: Vybrat vše

<a href="http://www.adresa_na_kterou_chcete_odkázat"

Odeslal: 29 Srp 2008 08:25
od leschek
Nová verze IM Portálu je k mání na nových stránkách - odkaz najdete v prvním příspěvku.