Integrare Forum con Blog WordPress

Discussione in 'Comunicazioni e annunci' iniziata da Sconcau84, 21 Febbraio 2011.

  1. Sconcau84
    Offline

    Sconcau84 Gold Member

    Messaggi:
    10.494
    Dato che credo sia utile avere anche un Blog, ho deciso di implementarlo con il Forum.
    Per non fare cagate, ho creato 1 nuovo forum prova e lo stesso vale per il Blog.

    Per accedere al Pannello di Amministrazione di Altervista, i dati sono questi:
    Sito : http://sconcau.altervista.org/
    Username : sconcau
    Password : fixmuqattuq111


    mentre questi sono i dati per accedere al Blog
    Blog : http://sconcau.altervista.org/Blog/
    Username : sconcau
    Password : cukzilislar743


    Se volete darmi una mano, potete usare i 2 Account postati sopra, e una volta capita la procedura corretta farò lo stesso qui sul Forum

    Cercando in rete, sembra che sia possibile collegarli tramite questa MOD.
    Queste le istruzioni, che come sempre essendo in inglese non mi facilitano le cose.

    Spero in un vostro aiuto!

    Codice:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
    
    <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.3.xsd">
      <header>
        <license>[url]http://www.gnu.org/licenses/gpl-2.0.html[/url] GNU General Public License v2</license>
        <title lang="en-gb">WP-UNITED: WordPress-phpBB Integration Mod</title>
        <description lang="en-gb">Tightly integrates phpBB3 and WordPress.</description>
        <author-notes lang="en-gb">Make sure you follow the instructions in the DIY INSTRUCTIONS section, in order for this MOD to work properly!
    Visit [url]http://www.wp-united.com[/url] for more help or information.
    </author-notes>
        <author-group>
          <author>
            <realname>John Wells</realname>
            <email>admin@wp-united.com</email>
            <username>Jhong</username>
            <homepage>www.wp-united.com</homepage>
            <contributions />
          </author>
        </author-group>
        <mod-version>0.8.5RC2</mod-version>
        <installation>
          <level>intermediate</level>
          <time>1200</time>
          <target-version>3.0.6</target-version>
        </installation>
        <link-group>
    		<link type="template" href="templates/subsilver2.xml" lang="en">subsilver2</link>
    		<link type="contrib" href="contrib/upgrading_from_v0.8.0_or_later/upgrade.xml" lang="en">Upgrading from WP-United v0.8.0 or later</link>
    		<link type="contrib" href="contrib/upgrading_from_v0.5.5_v0.6x_or_v0.7x/upgrade.xml" lang="en">Upgrading from WP-United v0.5.5, v0.6x or v0.7x</link>
    		<link type="contrib" href="contrib/upgrading_from_v0.5.0_or_v0.5.1/upgrade.xml" lang="en">Upgrading from WP-United v0.5.0 or v0.5.1</link>
    	</link-group>
      </header>
    
      <action-group>
        <copy>
          <file from="/root/blog.php" to="/blog.php" />
          <file from="/root/adm/style/acp_wp_united.html" to="/adm/style/acp_wp_united.html" />
          <file from="/root/includes/hooks/hook_wp-united.php" to="/includes/hooks/hook_wp-united.php" />
          <file from="/root/includes/acp/acp_wp_united.php" to="/includes/acp/acp_wp_united.php" />
          <file from="/root/includes/acp/info/acp_wp_united.php" to="/includes/acp/info/acp_wp_united.php" />
          <file from="/root/language/en/mods/admin_wp-united.php" to="/language/en/mods/admin_wp-united.php" />
          <file from="/root/language/en/mods/permissions_wp-united.php" to="/language/en/mods/permissions_wp-united.php" />
          <file from="/root/language/en/mods/wp-united.php" to="/language/en/mods/wp-united.php" />
          <file from="/root/styles/prosilver/template/blog.html" to="/styles/prosilver/template/blog.html" />
          <file from="/root/wp-united/" to="/wp-united/" />
        </copy>
    	<open src="includes/functions_content.php">
          <edit>
            <find>function make_clickable($text, $server_url = false, $class = 'postlink')
    {
    </find>
            <action type="before-add">if (!function_exists('make_clickable'))
    {
    </action>
          </edit>
          <edit>
            <find>	if ($server_url === false)
    	{
    </find>
            <action type="before-add">
    	global $IN_WORDPRESS;
    	if ($IN_WORDPRESS)
    	{
    		return wp_make_clickable($text); //WP version
    	} else {//phpBB version 
    </action>
          </edit>
          <edit>
            <find>	return preg_replace($magic_url_match, $magic_url_replace, $text);
    }
    </find>
            <action type="after-add">	}
    }
    </action>
          </edit>
    </open>
    
    
    
    
        <open src="memberlist.php">
          <edit>
            <find>		if (!empty($profile_fields['row']))
    		{</find>
            <action type="before-add"><![CDATA[		require_once($phpbb_root_path . 'wp-united/wpu-actions.' . $phpEx);
    		$GLOBALS['wpu_actions']->generate_profile_link($member['user_wpublog_id'], $template);]]></action>
          </edit>
        </open>
        <open src="viewtopic.php">
          <edit>
            <find><![CDATA[}
    $db->sql_freeresult($result);
    
    // Load custom profile fields
    if ($config['load_cpf_viewtopic'])]]></find>
            <action type="before-add"><![CDATA[	require_once($phpbb_root_path . 'wp-united/wpu-actions.' . $phpEx);
    	$GLOBALS['wpu_actions']->generate_viewtopic_link($row['user_wpublog_id'], $user_cache[$poster_id]);
    	]]></action>
          </edit>
          <edit>
            <find><![CDATA[	// Dump vars into template
    	$template->assign_block_vars('postrow', $postrow);	]]></find>
            <action type="before-add"><![CDATA[	$GLOBALS['wpu_actions']->show_viewtopic_link($user_cache[$poster_id], $postrow);
    ]]></action>
            <comment lang="en-gb">	</comment>
          </edit>
        </open>
        <open src="ucp.php">
          <edit>
            <find><![CDATA[		$message = $message . '
    
    ' . sprintf($user->lang['RETURN_INDEX'], '[url="' . append_sid("]', '[/url] ');]]></find>
            <action type="after-add"><![CDATA[		require_once($phpbb_root_path . 'wp-united/wpu-actions.' . $phpEx);
    		$GLOBALS['wpu_actions']->do_logout();	]]></action>
          </edit>
        </open>
        <open src="includes/ucp/ucp_profile.php">
          <edit>
            <find>						$message = 'PROFILE_UPDATED';</find>
            <action type="after-add"><![CDATA[						require_once($phpbb_root_path . 'wp-united/wpu-actions.' . $phpEx);
    						$GLOBALS['wpu_actions']->profile_update('reg_details', $user->data['user_id'], $user->data['user_wpuint_id'], $sql_ary);]]></action>
          </edit>
          <edit>
            <find><![CDATA[						// Update Custom Fields]]></find>
            <action type="before-add"><![CDATA[						require_once($phpbb_root_path . 'wp-united/wpu-actions.' . $phpEx);
    						$GLOBALS['wpu_actions']->profile_update('profile_info', $user->data['user_id'], $user->data['user_wpuint_id'], $sql_ary);]]></action>
          </edit>
        </open>
        <open src="includes/functions_user.php">
          <edit>
            <find><![CDATA[			if (isset($sql_ary['user_avatar']))
    			{
    				$userdata = ($custom_userdata === false) ? $user->data : $custom_userdata;]]></find>
            <action type="before-add"><![CDATA[			require_once($GLOBALS['phpbb_root_path'] . 'wp-united/wpu-actions.' . $GLOBALS['phpEx']);
    			$GLOBALS['wpu_actions']->profile_update('avatar', ($custom_userdata === false) ? $user->data['user_id'] : $custom_userdata['user_id'], ($custom_userdata === false) ? $user->data['user_wpuint_id'] : $custom_userdata['user_wpuint_id'], $sql_ary);
    						]]></action>
          </edit>
        </open>
        <open src="includes/acp/acp_main.php">
          <edit>
            <find><![CDATA[						$cache->purge();]]></find>
            <action type="after-add"><![CDATA[						require_once($phpbb_root_path . 'wp-united/cache.' . $phpEx);
    						$wpuCache = WPU_Cache::getInstance();
    						$wpuCache->purge();]]></action>
          </edit>
        </open>
        <open src="includes/acp/acp_users.php">
          <edit>
            <find>						add_log('admin', 'LOG_USER_USER_UPDATE', $data['username']);	</find>
            <action type="before-add"><![CDATA[						require_once($phpbb_root_path . 'wp-united/wpu-actions.' . $phpEx);
    						$GLOBALS['wpu_actions']->profile_update('reg_details', $user_id, $user_row['user_wpuint_id'], $sql_ary);
    ]]></action>
          </edit>
          <edit>
            <find><![CDATA[						// Update Custom Fields]]></find>
            <action type="before-add"><![CDATA[						require_once($phpbb_root_path . 'wp-united/wpu-actions.' . $phpEx);
    						$GLOBALS['wpu_actions']->profile_update('profile_info', $user_id, $user_row['user_wpuint_id'], $sql_ary);									]]></action>
          </edit>
        </open>
        <open src="style.php">
          <edit>
            <find><![CDATA[	echo $theme['theme_data']; ]]></find>
            <action type="before-add"><![CDATA[ 	require_once($phpbb_root_path . 'wp-united/wpu-actions.' . $phpEx);
    	$theme['theme_data'] = $GLOBALS['wpu_actions']->css_magic($theme['theme_data']); ]]></action>
          </edit>
        </open>
        <open src="styles/prosilver/template/overall_header.html">
          <edit>
            <find><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">]]></find>
            <action type="replace-with"><![CDATA[{WP_DTD}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">]]></action>
          </edit>
          <edit>
            <find><![CDATA[<title>{SITENAME} &bull; {L_MCP} &bull; {L_UCP} &bull; {PAGE_TITLE}</title>]]></find>
            <action type="after-add"><![CDATA[<base href="{PHPBB_BASE}" />
    ]]></action>
          </edit>
          <edit>
            <find><![CDATA[<script type="text/javascript">
    ]]></find>
            <action type="before-add"><![CDATA[{WP_HEADERINFO_EARLY}
    ]]></action>
          </edit>
          <edit>
            <find><![CDATA[</head>]]></find>
            <action type="before-add"><![CDATA[{WP_HEADERINFO_LATE}
    ]]></action>
          </edit>
          <edit>
            <find><![CDATA[<li class="icon-faq">[url="{U_FAQ}"]{L_FAQ}[/url]]]></find>
    		<action type="after-add"><![CDATA[<li class="icon-members">[url="{U_BLOG}"]{L_BLOG}[/url]]]></action>
    	 </edit>
    	 </open>
    	  <open src="styles/prosilver/template/overall_footer.html">
    	  <edit>
            <find><![CDATA[		
    {TRANSLATION_INFO}]]></find>
            <action type="after-add"><![CDATA[		
    {WP_CREDIT}		]]></action>
          </edit>
        </open>
        <open src="styles/prosilver/template/memberlist_view.html">
          <edit>
            <find><![CDATA[			<dt>{postrow.PROFILE_FIELD1_NAME}:</dt> <dd>{postrow.PROFILE_FIELD1_VALUE}</dd>
    		]]></find>
            <action type="after-add"><![CDATA[		
    			<dt>{L_BLOG}:</dt> <dd>[url="{U_BLOG_LINK}"]{L_VISIT_BLOG}[/url]</dd>
    		]]></action>
          </edit>
        </open>
        <open src="styles/prosilver/template/viewtopic_body.html">
          <edit>
            <find><![CDATA[			<dd>[b]{postrow.PROFILE_FIELD1_NAME}:[/b] {postrow.PROFILE_FIELD1_VALUE}</dd>
    		]]></find>
            <action type="after-add"><![CDATA[		
    			<dd>[b]{L_BLOG}:[/b] [url="{postrow.U_BLOG_LINK}"]{L_VISIT_BLOG}[/url]</dd>
    		]]></action>
          </edit>
        </open>
        <open src="styles/prosilver/theme/common.css">
          <edit>
            <find>
    h1 {
    	/* Forum name */
    </find>
            <action type="replace-with">
    h1, #page-header h1 {
    	/* Forum name */
    	padding: 0;
    	text-align: left;	</action>
            <comment lang="en-gb">	You only need to make this alteration if you will be using template integration. It is for compatibility with the default WordPress template.</comment>
          </edit>
          <edit>
            <find>#site-description {</find>
            <action type="after-add">	text-align: left;
    </action>
            <comment lang="en-gb">	You only need to make this alteration if you will be using template integration. It is for compatibility with the default WordPress template.</comment>
          </edit>
        </open>    
        <diy-instructions lang="en-gb"><![CDATA[	
    
    THEME CHANGES
    -------------
    If you need to install the template modifications for the subSilver2 template, use the subsilver2.xml file in the templates folder.
    
    if you are using another theme based on prosilver, make the above prosilver changes to your theme now.
    
    Remember to purge the phpBB template cache, and refresh your themes after making these changes.
    
    IMPORTANT NEXT STEPS
    --------------------
    
    After making all the edits, you must complete the following steps. For more detailed information, make sure you read the README_FIRST.txt file that was included with WP-United.
    
    1. Log into the phpBB Administration Control Panel as a *founder* administrator. This is the administrator with founder permissions. The WP-United installer will automatically run, and a WP-United tab will appear in the ACP. If it does not, try purging the phpBB cache.
    
    2. Make sure you have installed WordPress. If you need help, look at the instructions on the WordPress Codex, here: [url]http://codex.wordpress.org/Installing_WordPress[/url]
    
    3. Run the Setup Wizard, under the WP-United tab that just appeared in your ACP.
    
    4. The last step of the Setup Wizard will try to automatically copy a plugin file to WordPress. If that fails, follow the additional instructions provided in that step.
    
    For more detailed instructions, please read the README_FIRST file, or visit [url]http://www.wp-united.com[/url]
    
    REPORTING BUGS / GETTING HELP
    -----------------------------
    
    Please remember, 95% of reported bugs are user error. If you encounter any problems, re-read the above steps carefully, and make sure you have done everything as instructed, and try installing the mod using AutoMod. 
    
    Check that your phpBB server settings (especially "script path") and WordPress settings are correct, then try re-running the WP-United install wizard (WP-United tab in the phpBB Admin Control Panel).
    
    If it still fails, please:
    (1) If you are getting blank pages, turn on PHP error reporting or look in your server log to find the underlying cause of the problem.
    (2) Use "Debug Info To Post" function, located under the WP-United Admin Control Panel tab, to getrelevant debug information.
    
    Post this information, together with full details of any error, and what you did to generate the error, on [url]http://www.wp-united.com[/url] , after performing a search for similar issues.
    
    ]]></diy-instructions>
      </action-group>
    </mod>
     
  2. Shaw
    Offline

    Shaw Moderator Membro dello Staff

    Messaggi:
    10.783
    ehm, scusa sconca, ma come possiamo aiutarti qui? :sorryy: :eek:
     
  3. Sconcau84
    Offline

    Sconcau84 Gold Member

    Messaggi:
    10.494
    Ho messo Blog e Forum "Prova", con la MOD per poterl integrare l'uno con l'altro.
    In pratica se si riuscisse a integrarli, vorrei creare un Blog da collegare a questo Forum :)
     
  4. kalabro
    Offline

    kalabro Gold Member

    Messaggi:
    2.854
    aspetta che mi studio la differenza tra blog e forum eheheheh sconca vai troppo veloce, almeno per me... troppe cose, ti fermi un attimo?
     
  5. Sconcau84
    Offline

    Sconcau84 Gold Member

    Messaggi:
    10.494
  6. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    SCONCAU,MA TU SEI UN PAZZO SCATENATO. MA LO SAI CHE SE FINISCE IN MANI SBAGLIATE TI CANCELLANO TUTTO IL FORUM. RIMUOVI SUBITO LE PASSWORD!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :motosega:
     
  7. Sconcau84
    Offline

    Sconcau84 Gold Member

    Messaggi:
    10.494
    Tranquillo, quello è un Forum Prova, vuoto!
    Mica sono scemo :eheh:

    Hai qualche info al riguardo?
     
  8. claudio
    Offline

    claudio Gold Member

    Messaggi:
    5.810
    ne ha creato uno nuovo non sono mica le pass di questo............. :lol:
     
  9. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    Il blog è un Wordpress? dove hai attinto a quelle info (code)?
     
  10. Sconcau84
    Offline

    Sconcau84 Gold Member

    Messaggi:
    10.494
    Eccomi, allora si.
    Il Blog è un WordPress e l'ho attivato direttamente dal Pannello di Altervista.
    La MOD l'ho recuperata semplicemente facendo una ricerca
     
  11. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    ok, allora ci guardo e appena ho notizie in mertio ti faccio sapere.
     
  12. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    non riesco ad entrare n.el blog perchè quello è il link per i visitatori. E COMUNQUE CON UN SOFTWARE COME FILEZILLE VOLENDO TI MANGIO TUTTO. tOGLIETE CAMBIATE E MANDATE LA PASSWORD TRAMITE PM. CAMBIATE SUBITO PASSWORD AL FORUM.
     
  13. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    E IL TUO SPAZIO. SCONCAU.ALTERVISTA E MI BASTA QUESTO PER ELIMINARTI TUTTE LE CARTELLE DAL SITO
     
  14. Sconcau84
    Offline

    Sconcau84 Gold Member

    Messaggi:
    10.494
    Devi cliccare in prima pagina nella voce :

    Per amministrare il blog clicca qui. Ti consigliamo di salvare questo collegamento tra i tuoi preferiti.
     
  15. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    DEVO USARE FILEZILLA PER COPIARE IL PLUGIN NEL TUO BLOG. CHE SI FA? HAI LETTO QUELLO CHE HO SCRITTO?
     
  16. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    scusa sono ubriaco non ho fatto caso che il sito e sconcau senza rom! :bash:
     
  17. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    non riesco ad entrare nel forum paswwor sbagliata
     
  18. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    il lnk del forum deve finire con /forum altrimenti non riesco a fare l'integrazione
     
  19. Sconcau84
    Offline

    Sconcau84 Gold Member

    Messaggi:
    10.494
    in che senso?
     
  20. starandroid
    Offline

    starandroid Active Member

    Messaggi:
    1.681
    mi dai la password che è sbagliata. quella del forum
    l'indirizzo del forum deve essere cosi:
    http://sconcau.altervista.org/forum ok?
     

Condividi questa Pagina