Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 2:21 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2  Next
Author Message
Posted: Tue Nov 21, 2006 8:06 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
Searching the forum returned only "This can't be done". "You can't load a component in content" etc. Maby not the usual way..but - here it is. Simple mambot to include any component in the content. Inspired by facileforms mambot & wrapper component, this is a kind of local wrapper mambot. Without iframe it would be better, but - that's work for future. Open your eyes:)

How to use it:

{component}url{/component}

Where url is relative url to your component WITHOUT "index.php?". So url would look like this: {component}option=com_blabla&Itemid=73&album=7{/component}


You do not have the required permissions to view the files attached to this post.

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Tue Nov 21, 2006 8:17 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Thu Aug 25, 2005 5:48 pm
Posts: 2801
Location: Geneva mostly
Thanks. Will you add this to the extensions site?
I'd rather have a non-forum link for this, in order to add to bot listing here:
http://www.eyezberg.com/Joomla-CMS/Plug ... rt-II.html

_________________
Sometimes one pays most for the things one gets for nothing.
The important thing is not to stop questioning. Curiosity has its own reason for existing. AE
http://joomla15.blogspot.com for J! 1.5 screenshots
http://www.eyezberg.com


Top
  E-mail  
 
Posted: Tue Nov 21, 2006 9:34 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
I guess I will apply for an account at joomlaforge.

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Mon Dec 04, 2006 1:34 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Thu Aug 25, 2005 5:48 pm
Posts: 2801
Location: Geneva mostly
As there's no news, I have now linked this to this forum post.

_________________
Sometimes one pays most for the things one gets for nothing.
The important thing is not to stop questioning. Curiosity has its own reason for existing. AE
http://joomla15.blogspot.com for J! 1.5 screenshots
http://www.eyezberg.com


Top
  E-mail  
 
Posted: Tue Dec 12, 2006 10:50 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Jan 21, 2006 7:22 am
Posts: 2
has anyone got a link to this bot that i can use to download it

Thanks

it Ok I had to log in and the link appeared 

gee whiz web 2 is magic.


Last edited by bigtimeout on Tue Dec 12, 2006 10:53 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Tue Jan 23, 2007 2:15 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Sep 04, 2006 8:55 am
Posts: 3
Hi
sorry but do you have a link to get this mambot ??
thanks


Top
   
 
Posted: Tue Jan 23, 2007 2:16 pm 
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Aug 12, 2005 7:19 am
Posts: 4471
Location: Leeds, UK
its an attachment in the first post.

note you have to be signed into the forum to see attachments


Top
  E-mail  
 
Posted: Fri Mar 23, 2007 12:52 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Apr 03, 2006 4:04 pm
Posts: 430
Location: Germany
somebody should definiteely add this to the forge!!! this is soooooo great!

_________________
Please visit my personal website and leave many traces ;)
http://www.ffaabbiiaann.de
If you need webdesign services I can help you out:
http://www.webdesign2punkt0.de


Top
  E-mail  
 
Posted: Fri Mar 23, 2007 2:04 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Apr 03, 2006 4:04 pm
Posts: 430
Location: Germany
I experience a problem.... the bot works great and loads the component correctly the first time but when i click any link in the embeded component it reloads the complete website inside the content item with all the template around it instead of just loading the  maincontent area inside the article. is there a possile fix for that?

_________________
Please visit my personal website and leave many traces ;)
http://www.ffaabbiiaann.de
If you need webdesign services I can help you out:
http://www.webdesign2punkt0.de


Top
  E-mail  
 
Posted: Sun Mar 25, 2007 4:44 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Dec 24, 2006 8:37 pm
Posts: 2
I'm experiencing the same problem, could anyone have a fix for this or another method of doing this, very easy this could be a really lifesaver but this issue should be fix first.  By the way, great job.


Top
   
 
Posted: Sun Mar 25, 2007 4:53 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Oct 22, 2006 2:34 pm
Posts: 36
Hi

Can it be used to show google map (mambot gmap) in forum content or noah classified to map a address ?  or parsing any mambot to elsewhere within other component.


Top
  E-mail  
 
Posted: Mon Mar 26, 2007 10:51 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Dec 24, 2006 8:37 pm
Posts: 2
Could this be solve by just including a target="_top" or target="_blank" ? and if so where should be put? Here is the code:
Code:
<?php
/**
* @copyright Copyright (C) 2006 Kause Lotski. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

$_MAMBOTS->registerFunction( 'onPrepareContent', 'botcomponentbot' );

function botcomponentbot( $published, &$row, &$params, $page=0 ) {
   // simple performance check to determine whether bot should process further
   if ( strpos( $row->text, 'component' ) === false ) {
      return true;
   }   

   // define the regular expression for the bot
   $regex = "#{component}(.*?){/component}#s";

   // check whether mambot has been unpublished
   if ( !$published ) {
      $row->text = preg_replace( $regex, '', $row->text );
      return true;
   }

   // perform the replacement
      
   $row->text = preg_replace_callback( $regex, 'botComponentCode_replacer', $row->text );
      
   return true;
}
/**
* Replaces the matched tags an image
* @param array An array of matches (see preg_match_all)
* @return string
*/
function botComponentCode_replacer( &$matches ) {
   global $database ;
   
         $query = "SELECT params"
         . "\n FROM #__mambots"
         . "\n WHERE element = 'componentbot'"
         . "\n AND folder = 'content'"
         ;
         $database->setQuery( $query );
         $database->loadObject($mambot);
      
       $botParams = new mosParameters( $mambot->params );

       $height   = $botParams->def( 'height', '500' );
      $width   = $botParams->def( 'width', '500' );

   $url = $matches[1];
   $url = 'index2.php?' . $url;
   $para =   'id="expose" '.
            'src="'.$url.'" '.
            'width="'.$width.'" '.
            'height="'.$height.'" '.
            'frameborder="0" '.
            'allowtransparency="true" '.
            'scrolling="no" ';

     $url = "<iframe ".$para.">\n".
        "<p>Sorry, your browser cannot display frames!</p>\n".
        "</iframe>\n";

   return $url;
}
?>


Top
   
 
Posted: Sat Apr 14, 2007 9:06 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
Hm, that is indeed true. Links going from inside of the component are genererated in that component and to function properly some kind of replacement should be done before displaying the component inside iframe. Inposible task really (maby javascript could do it?), as iframe is really only a visual integration - until bot is rewritten to work trough fopen. That way executed php could be loaded into variable and replacement of all index.php with index2.php could be done.

Until then this bot is usable mainly for displaying final destinations in components or components, that are themselves embeded in joomla and don't use joomla's links. Bot was developed for expose and work's flawless in there as expose is really flash embeded in joomla.

ks_tiwari: it work's the other way - to include component in the content. But if your component processes mambots, that it should work to include any other component. And if component shows google map, there shouldn't be any link problems, as google map is java aplication.

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Sun May 27, 2007 8:30 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 24, 2007 2:37 pm
Posts: 7
hola para solucionar el problema que link aparezca en la misma ventana del frame tu puedes poner este código a tu template



de esta forma el link se va redirigir a la ventana originaria. A mi me funciona bien además impinde los wrapper abusivos.

saludo

you can put this java code in your template.
and the mambot and wrapper work ok.

Bye


Top
   
 
Posted: Mon Jun 25, 2007 11:01 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Nov 15, 2006 1:20 am
Posts: 507
Location: Las Vegas, NV, USA
For anyone that uses Expose, could this:
http://www.gotgtek.com/forum/index.php?topic=1251.0
be accomplished using this mambot?

_________________
http://www.campaignforliberty.com - Official website of Ron Paul's Campaign For Liberty
http://www.robertconti.com - Robert Conti Jazz Guitar Music & Instruction


Top
  E-mail  
 
Posted: Tue Jun 26, 2007 7:39 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
I developed this mambot because I needed it to include  Expose galleries into some project :)

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Tue Jun 26, 2007 7:43 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Nov 15, 2006 1:20 am
Posts: 507
Location: Las Vegas, NV, USA
Then you are a wonderful person! I tried it and it works! Thanks so much for developing tihis mambot!

_________________
http://www.campaignforliberty.com - Official website of Ron Paul's Campaign For Liberty
http://www.robertconti.com - Robert Conti Jazz Guitar Music & Instruction


Top
  E-mail  
 
Posted: Tue Jul 24, 2007 10:03 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Jul 24, 2007 9:39 am
Posts: 1
:)
dax702 wrote:
Then you are a wonderful person! I tried it and it works! Thanks so much for developing tihis mambot!


Totally daccord! Great job!


Top
  E-mail  
 
Posted: Mon Jul 30, 2007 7:04 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
This mambot and module that forces links from component that is beeing included to be opened in full page (not in iframe) can now bo found here: http://joomlacode.org/gf/project/kausproject/

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Mon Aug 06, 2007 8:40 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 03, 2006 9:18 am
Posts: 16
hello
I am trying to use this mabomt but i am stuck.
I have made a new position in the template.. what is the next step?. where am i supposes to to type componet]url[component] ? Sorry if this is a stupid question

_________________
founder of
http://www.underlupen.net/
http://www.digitalsiden.com.


Top
  E-mail  
 
Posted: Wed Aug 08, 2007 3:48 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
This is mabot, so you must enter the code somewhere in your normal content (a.g. article or news), not in the module.

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Thu Aug 23, 2007 3:12 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jul 16, 2007 9:18 pm
Posts: 42
Um ... where do I find the url for my component?  :-\


Top
  E-mail  
 
Posted: Thu Aug 23, 2007 4:36 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
Create a menu entry to that component

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Sat Sep 15, 2007 4:38 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Sep 15, 2007 4:07 pm
Posts: 2
Hello
first thanks for designing a great Mambot

I have gotten the Mambot  to work it, displays my Expose Component just fine on the static page I specified,,,Except its only 200 by 200 or whatever the default size is. I have changed the frame size in the Mambot itself and even gone in and changed the width and height in the .XML and .PHP file. No matter what I do the size of "Expose Component" stays the same,,which is way too small. Can someone tell me what I'm missing.

I have seen this problem listed on other sites with the fix being, to adjust your frame size to whatever you need in the Mambot Parameters page in Joomla. But like I said this has not worked for me. if possible I would like to do away with the scroll bars that appear as well.

Thanks
Dan


Top
  E-mail  
 
Posted: Sat Sep 15, 2007 6:52 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
You can change iframe size in the mabot backend settings. But of course, this "window" to your component can't be bigger than table/div that surrounds it (a recent case from another user).
Size of component that loads in the iframe is set in the component. In Expose this is done trough XML settings.

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Sat Sep 15, 2007 9:05 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Sep 15, 2007 4:07 pm
Posts: 2
kauselot wrote:
You can change iframe size in the mabot backend settings. But of course, this "window" to your component can't be bigger than table/div that surrounds it (a recent case from another user).
Size of component that loads in the iframe is set in the component. In Expose this is done trough XML settings.



Hey kauselot

I did everything to work but,,I don't know what I did to make it work. I did uninstall Component Includer and start from scratch, which means that during my first attempt at setting things I made a mistake somewhere along the way. Thank you for replying so quickly to my post, keep on creating great things for Joomla

Be Blessed
Dan


Top
  E-mail  
 
Posted: Tue Oct 16, 2007 9:41 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Nov 13, 2005 8:22 pm
Posts: 18
Hey everybody,
I was trying to use the allowtransparency params to avoid that my iframe gets the same color as the site background.
I modified the code like this: 'allowtransparency="false" ', but nothing happens.
Can you help me?
thanks
cla


Top
  E-mail  
 
Posted: Sun Oct 28, 2007 9:24 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Nov 01, 2006 6:20 pm
Posts: 59
Just want to say thank you, Kauselot! The perfect mambot! Small but genial!


Top
  E-mail  
 
Posted: Sat Nov 24, 2007 8:56 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Aug 28, 2005 9:29 pm
Posts: 13
This  script is excellent!

It works fine, but is it possible to edit the header info of the iframe? I would like to use a javascript, only for the iframe.


Top
  E-mail  
 
Posted: Sat Jan 12, 2008 12:10 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Dec 21, 2006 6:25 pm
Posts: 30
Hi Joomlies,

Thanks for the great Mambot...

Im using it to display the Expose Gallery,  I have all the setting correct and the gallery looks great on its own... However, when I run it in a content item using the Mambot the Iframe turns the surrounding area to grey... Please Help?

Thank you all.

Peace and Love, matt :pop

pic included as attachment


You do not have the required permissions to view the files attached to this post.


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2  Next

Quick reply

 



Who is online

Users browsing this forum: No registered users and 7 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group