smartshitter.com
questions answered nobody ever asked!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Solved] How to use Wrapper with mod_php_activity.

 
Post new topic   Reply to topic    smartshitter.com Forum Index -> phpbb activity - joomla module
View previous topic :: View next topic  
Author Message
Striker8472
nobody


Joined: 01 Feb 2009
Posts: 3

PostPosted: Mon 09 Mar, 2009 01:17    Post subject: [Solved] How to use Wrapper with mod_php_activity. Reply with quote

Tested with Joomla 1.0.15 and phpBB 2.0.22 plus 1.53. I don“t use this by myself because of the negative effects using iframes. I use the lightbox on my forum. The lightbox is only active in the iframe and searchwebsites like google cannot search content in frames. I created a forum template that match with my joomla template. Thats the best solution for me.

Anyway. Ok thats the way I solved the wrapping problem:

Please backup all named files before doing anything else!
Files to edit:
joomla/modules/mod_phpbb_activity.php
joomla/components/com_wrapper/wrapper.php

Installation Level: Easy
Installation Time: 10 Minutes

#1. Create a wrapper in your joomla admin backend. The wrapped url doesn't matter. Its no need to publish it on the homepage we just need a wrapper ID. i.e.:
Code:
http://www.yourdomain.com/index.php?option=com_wrapper&Itemid=138


#2. Go to the mod_pbpbb_activity settings and insert the wrapper as phpbb url. Your phpbb url is now:
Code:
http://www.yourdomain.com/index.php?option=com_wrapper&Itemid=138


#3. Lets edit the mod_phpbb_activity.php
#--[open]--
Code:
 joomla/modules/mod_phpbb_activity.php

#--[find]--
Code:
$uname = ($display_body == LAT && !$lxt_user) ? $result[$i][6] : $result[$i][1];

#--[afer add]--
Code:
$furl = 'forum/viewtopic.php?'.$urlstring;

#--[find]--
Code:
echo '<a href="'.$phpbb_url.'/viewtopic.php?'.$urlstring.'">'.$subject.'</a><b>'.$user.'</b>'.$date.'';

#--[replace with]--
Code:
?>
   <a onClick="document.cookie='furl=<?php echo $furl;?>'" href="<?php echo $phpbb_url;?>><?php echo $subject;?></a>
   <br>
   <?php


#4. Lets edit the wrapper.php
#--[open]--
Code:
joomla/components/com_wrapper/wrapper.php

#--[find]--
Code:
$url = $params->def( 'url', '' );

#--[replace with]--
Code:
$dburl = $params->def( 'url', '' );
   $furl = $_COOKIE["furl"];
   if ($_COOKIE["furl"]) {
      $url = $furl;
   } else {
      $url = $dburl;
   }

#--[find]--
Code:
HTML_wrapper::displayWrap( $row, $params, $menu );

#--[after add]--
Code:
setcookie("furl", "");


#5. Thats all.

I hope I this is helpful.
Kind regards Striker8472
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    smartshitter.com Forum Index -> phpbb activity - joomla module All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group