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 

phpbb_activity wrapping forum topic - feature request

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


Joined: 17 Oct 2007
Posts: 1

PostPosted: Wed 17 Oct, 2007 17:07    Post subject: phpbb_activity wrapping forum topic - feature request Reply with quote

Hi,

The new module works like a charm. This is one module that i've been scouting the net for a long time.

I don't know if this is possible but if it can be done, then there will be nothing like it. I've got my board's home to display under wrapper using joomla, however if only the topics could also open under the wrapper then it would be a perfect fit.

Please do consider this as a feature and see if this can be implemented.

Thanks,
Maurya
Back to top
View user's profile Send private message
evilPHish
Site Admin


Joined: 14 Apr 2007
Posts: 104

PostPosted: Thu 18 Oct, 2007 07:13    Post subject: Reply with quote

Hi!

Another user already had that problem and it is currently not possible due to the way the joomla system handles the wrapper.
If you wrap something, joomla creates an iframe and puts the wrapped site in there. The problem is, you can't tell joomla to use a specific name to identify this iframe in order to have the module links display the topics inside the iframe. Without a way to correctly identify the wrapper iframe I have no way of telling the links where to open the page if clicked.

Glad that you like the mod tho Smile
_________________
Back to top
View user's profile Send private message Visit poster's website
Striker8472
nobody


Joined: 01 Feb 2009
Posts: 3

PostPosted: Sun 01 Feb, 2009 22:53    Post subject: Wrapping für phpbb activity Lösungsansatz Reply with quote

Hi,

ich arbeite auch mit joomla (1.0.15) und dem Forum phpbb (2.0.22 plus 1.53). Das ganze habe ich mit der Mehdi -Bridge (und nen paar Anpassungen wegen phpb plus) zusammengeführt. Ich war verdammt froh als ich das phpbb activity modul gefunden habe. Danke an dieser Stelle für dieses sehr gute Modul. Lange rede kurzer Sinn. Ich will auch das Forum per Wrapper einbinden. Ich hoffe ich nerve nicht damit, denn es gab schon ein paar Anfragen dazu. Aber ich bin nicht ganz unbetucht und habe mir schon einige Gedanken zur Umsetzung gemacht.

Um die Forumlinks des Moduls als Wrapper einzubinden habe ich folgendes versucht (bin aber noch nicht am Ziel und hoffe hier auf Hilfe).

Stand der Dinge:
1. Einen Pseudo-Wrapper unter Joomla angelegt. Bei mir z.B.:
Code:

http://localhost/teamninjagames/index.php?option=com_wrapper&Itemid=138


2. In dem Modulparametern des mod_pbpbb_activity den Wrapperlink als phpbb url eingetragen:
Code:

http://localhost/teamninjagames/index.php?option=com_wrapper&Itemid=138


3. Dann habe ich in die mod_phpbb_activity.php eine Form eingebaut die die neue Url für den Wrapper bereitstellen soll:
Code:

$furl = 'forum/viewtopic.php?'.$urlstring;
?>
   <form name="send_furl" method="post" action="../components/com_wrapper/wrapper.php">
      <a href="<?php echo $phpbb_url;?>" onclick="submit()"  title="Beitrag wurde geschrieben von <?php echo $uname;?>"><?php echo $subject;?></a>
      <input type="hidden" name="furl" value="<?php echo $furl;?>" />
   </form>
   <?php


4. In der wrapper.php habe ich die Zeile
Code:

//$url = $params->def( 'url', '' );

mit dieser ersetzt:
Code:

$url = $_POST["furl"];

Dadurch soll die Url für das iFrame nicht aus der Datenbank gelesen, sondern die Forum Url verwendet werden die in der Form (siehe Punkt 3) ermittelt und gesendet wurde.

5. Wenn das irgendwann mal funktioniert will ich in der Form noch einen weiteren Parameter mitgeben den ich dann im Wrapper prüfe, um so für andere Wrapper auf die Datenbank zugreifen zu können.

Mein Problem an der Sache ist das ich das mit dem POST nicht hinbekomme. Kann mir hier Jemand helfen? Ich hoffe mit meinem Ansatz für den Aufruf mit dem Wrapper fahr ich nicht komplett gegen den Baum. Hilfe, BITTE. Sad
Back to top
View user's profile Send private message
Striker8472
nobody


Joined: 01 Feb 2009
Posts: 3

PostPosted: Mon 09 Mar, 2009 00:10    Post subject: Reply with quote

habe ne einfache Lösung gefunden. Ich erstelle beim Klick auf den Postlink im phpbb_acticity ein Cookie mit der Pfad Info. Dann prüfe ich in der wrapper.php ob das Cookie existiert. Ist kein Cookie vorhanden wird der Link aus der Datenbank gelesen, sonst aus dem Cookie. Am ende der wrapper.php lösche ich halt den Inhalt des Cookie um nicht immer das Selbe zu lesen. Habs bei mir getestet und funktioniert wunderbar.

Ich selbst setze das aber nicht ein wegen den negativen Effekten die iframes mit sich bringen. Zum einen habe ich im Forum mit Lightbox. Problem dabei ist das die Lightbox nur innerhalb des Frames ausgeführt wird. Das weit größere Manko ist aber das man mit den Frames keine Suchmaschinenfreundlichen URLs hat.
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