Pagina 1 van 1

Ad Mangement

Geplaatst: 27 aug 2008, 18:40
door Trunks81
  • Modificatie & Versie: Ad Mangement
    Directe link naar de modificatie: http://www.phpbbhacks.com/download/8654
    Adres van je forum: http://81.26.214.170/~powerkd/phpBB3/portal.php
    phpBB versie: 3.02
    Heb je onlangs een andere modificatie of stijl geïnstalleerd? Een Portal

    Wat is het probleem?
    Het is al weer een tijdje terug dat ik gespeeld hem met phpbb.
    En vroeg me zelf het volgende af ? Kon het niet zo snel vinden !
    Bij Phpbb 2 zagen de install uitleg er zo uit

    Code: Selecteer alles

    #
    #-----[ FIND ]------------------------------------------
    #
    Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> © 2001, {%:1} phpBB Group<br />{TRANSLATION_INFO}</span></div>
    #
    #-----[ INCREMENT ]-------------------------------------
    #
    %:1 +10
    Nu ziet de install xml erzo uit .....

    Code: Selecteer alles

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
    <!--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/-->
    <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.0.xsd">
    	<header>
    		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
    		<title lang="en">Advertisement Management</title>
    		<description lang="en">Adds an easy to use Advertisement Manager to a phpBB3 forum.</description>
    
    		<author-notes lang="en"></author-notes>
    
    		<author-group>
    			<author>
    				<username>EXreaction</username>
    				<realname>Nathan Guse</realname>
    				<homepage>http://www.lithiumstudios.org/</homepage>
    				<email>exreaction@lithiumstidos.org</email>
    			</author>
    		</author-group>
    
    		<mod-version>1.0.3</mod-version>
    
    		<installation>
    			<level>easy</level>
    			<time>300</time>
    			<target-version>3.0.2</target-version>
    		</installation>
    
    		<history>
    			<entry>
    				<date>2008-03-16</date>
    				<rev-version>1.0.0</rev-version>
    				<changelog lang="en">
    					<change>Initial Release</change>
    				</changelog>
    			</entry>
    			<entry>
    				<date>2008-03-19</date>
    				<rev-version>1.0.1</rev-version>
    				<changelog lang="en">
    					<change>Adding option to count Ad Clicks.</change>
    					<change>Removing the option to set the Max Views (it added quite a bit of server load and I doubt it will be used often).</change>
    				</changelog>
    			</entry>
    			<entry>
    				<date>2008-06-26</date>
    				<rev-version>1.0.2</rev-version>
    				<changelog lang="en">
    					<change>Fixing a bug where ads would display in non-forum areas even when set to only show in a specific forum.</change>
    				</changelog>
    			</entry>
    			<entry>
    				<date>2008-07-09</date>
    				<rev-version>1.0.3</rev-version>
    				<changelog lang="en">
    					<change>Fixing a bug where ads would not display when they should.</change>
    				</changelog>
    			</entry>
    		</history>
    
    	<link-group>
    		<link type="template" href="subsilver2.xml" lang="en">subsilver2</link>
    	</link-group>
    	</header>
    	<action-group>
    		<copy>
    			<file from="root/*.*" to="*.*"/>
    		</copy>
    		<open src="includes/constants.php">
    			<edit>
    				<find>define('ZEBRA_TABLE',				$table_prefix . 'zebra');
    
    // Additional tables</find>
    
    				<action type="after-add">// Advertisement Management
    define('ADS_TABLE',					$table_prefix . 'ads');
    define('ADS_FORUMS_TABLE',			$table_prefix . 'ads_forums');
    define('ADS_GROUPS_TABLE',			$table_prefix . 'ads_groups');
    define('ADS_IN_POSITIONS_TABLE',	$table_prefix . 'ads_in_positions');
    define('ADS_POSITIONS_TABLE',		$table_prefix . 'ads_positions');</action>
    			</edit>
    		</open>
    
    		<open src="includes/functions.php">
    			<edit>
    				<find>	}
    
    	// Which timezone?
    	$tz = ($user->data['user_id'] != ANONYMOUS) ? strval(doubleval($user->data['user_timezone'])) : strval(doubleval($config['board_timezone']));</find>
    
    				<action type="after-add">
    	// Advertisement Management
    	require($phpbb_root_path . 'ads/functions.' . $phpEx);
    	setup_ads();</action>
    			</edit>
    		</open>
    		<open src="styles/prosilver/template/overall_footer.html">
    
    			<edit>
    				<find><![CDATA[	</div>]]></find>
    				<action type="after-add">
    	{ADS_7}</action>
    			</edit>
    			<edit>
    				<find><![CDATA[		<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
    		<!-- IF DEBUG_OUTPUT --><br />{DEBUG_OUTPUT}<!-- ENDIF -->
    		<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->
    	</div>]]></find>
    				<action type="after-add">
    
    	{ADS_8}</action>
    			</edit>
    		</open>
    		<open src="styles/prosilver/template/overall_header.html">
    			<edit>
    				<find><![CDATA[</head>]]></find>
    				<action type="before-add"><![CDATA[<!-- INCLUDE ads/ads.js -->]]></action>
    			</edit>
    			<edit>
    				<find><![CDATA[
    <div id="wrap">
    	<a id="top" name="top" accesskey="t"></a>
    	<div id="page-header">]]></find>
    				<action type="after-add">
    	{ADS_1}</action>
    
    			</edit>
    			<edit>
    				<find><![CDATA[			<span class="corners-bottom"><span></span></span></div>
    		</div>
    
    	</div>]]></find>
    				<action type="after-add">
    	{ADS_2}</action>
    			</edit>
    		</open>
    		<open src="styles/prosilver/template/viewtopic_body.html">
    
    			<edit>
    				<find><![CDATA[
    		<span class="corners-bottom"><span></span></span></div>
    	</div>
    <!-- ENDIF -->]]></find>
    				<action type="after-add">
    {ADS_3}</action>
    			</edit>
    			<edit>
    				<find><![CDATA[		<span class="corners-bottom"><span></span></span></div>
    	</div>
    
    	<hr class="divider" />]]></find>
    				<action type="after-add"><![CDATA[	<!-- IF postrow.S_FIRST_ROW -->{ADS_5}<!-- ELSE -->{ADS_6}<!-- ENDIF -->]]></action>
    			</edit>
    
    			<edit>
    				<find><![CDATA[			<!-- IF PAGE_NUMBER --><!-- IF PAGINATION --> &bull; <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE --> &bull; {PAGE_NUMBER}<!-- ENDIF --><!-- ENDIF -->
    		</div>
    	<!-- ENDIF -->
    </div>]]></find>
    				<action type="after-add">
    {ADS_4}</action>
    			</edit>
    		</open>
    	<diy-instructions lang="en">Visit any page on your forum in your web browser and the database sections and module will be installed automatically.</diy-instructions>
    	</action-group>
    </mod>
    
    Vind het niet echt duidelijk op geworden. Waarom is dit zo ? of word er gebruik gemaakt van een auto install functie ?

Re: Ad Mangement

Geplaatst: 27 aug 2008, 18:42
door Jim
Nee, in phpBB3 is het inderdaad anders. Hier heb je niet de code van het bestanden nodig maar moet je gewoon het .xml bestand in je browser openen en dan komen er mooie instructie's tevoorschijn. ;)

Re: Ad Mangement

Geplaatst: 27 aug 2008, 18:50
door Trunks81
Dank je JimB

Maakt het allemaal ineens een stuk duidelijker en makkelijker.

Re: Ad Mangement

Geplaatst: 30 aug 2008, 16:22
door Pascal
Trunks81 schreef:Dank je JimB

Maakt het allemaal ineens een stuk duidelijker en makkelijker.
Daarom ziet het er nu ook zo uit :D