Members: 10,140
Threads: 38,830
Posts: 159,367
Online: 34

Newest Member: Xoote



Go Back   Mambers.com > Mambo 4.5.1 > Mambo 4.5.1 'How Do I' Questions

Reply
 
Thread Tools Display Modes
Old 14.08.2005, 16:04   #1
wallacehigh
Baby Mamber
 
Join Date: Jul 2005
Posts: 18
wallacehigh is on a distinguished road
Default Creating Wrappers without menu item

hi to create a wrapper around content on another website I am creating a menu item, copying the url of the item then unpublishing the menu item and then I link directly to the wrapper content in my article.

in short is it possible to create wrapped content without a menu item ?

David
wallacehigh is offline   Reply With Quote
Sponsored Links
Old 15.08.2005, 16:08   #2
crash777
Professional Mamber
 
crash777's Avatar
 
Join Date: Apr 2004
Location: North East USA
Posts: 931
crash777 will become famous soon enough
Default Re: Creating Wrappers without menu item

There might be but I am not aware of it

I have resorted to created a few "unused" menus such as "UNUSED", "WRAPPER" , etc.
I then just create these extraneous links in the appropriate menu item. With 4.5.2.3 I can create the wrapper, click apply and get the link all on one screen while keeping the menu item unpublished.
__________________
www.crashgraphics.com
Aaron Monello
crash777 is offline   Reply With Quote
Old 17.02.2006, 03:11   #3
ehsabbi
Senior Mamber
 
ehsabbi's Avatar
 
Join Date: Sep 2004
Posts: 131
ehsabbi is on a distinguished road
Default Re: Creating Wrappers without menu item

ok, but I´d like the wrapper opening directly into the content, not with a link to clic on... Is it possible?
ehsabbi is offline   Reply With Quote
Old 17.02.2006, 04:23   #4
crash777
Professional Mamber
 
crash777's Avatar
 
Join Date: Apr 2004
Location: North East USA
Posts: 931
crash777 will become famous soon enough
Default Re: Creating Wrappers without menu item

Quote:
Originally Posted by ehsabbi
ok, but I´d like the wrapper opening directly into the content, not with a link to clic on... Is it possible?
Yeah my previous post went through that.. however.. that was a while ago.. I now use Joomla but the principle is the same.. you have to create a link to the wrapper... you don't have to use it..
Once you create the link to the wrapper via a menu link, you will have the URL and can use it from within content. You can then delete the menu item if you wish or just unpublish it..
I personally do not know of another way to create a wrapper and get the link to it...
__________________
www.crashgraphics.com
Aaron Monello
crash777 is offline   Reply With Quote
Old 17.02.2006, 05:30   #5
ehsabbi
Senior Mamber
 
ehsabbi's Avatar
 
Join Date: Sep 2004
Posts: 131
ehsabbi is on a distinguished road
Default Re: Creating Wrappers without menu item

Hi crash777, I understand that this process provide me the URL, but how can I use it into the content without a href link?

To clarify my problem:

A. I´m using CB and have a list os all players of the my team.
B. I have too a Menu link to the content "The Team". Clic on it, appears the content talking about the team.

What I need is, when clic on the menu link "The Team", show a page with B + A contents (not B + a link to B).

ehsabbi is offline   Reply With Quote
Old 17.02.2006, 11:37   #6
crash777
Professional Mamber
 
crash777's Avatar
 
Join Date: Apr 2004
Location: North East USA
Posts: 931
crash777 will become famous soon enough
Default Re: Creating Wrappers without menu item

Okay, now I am confused... why would you be displaying a CB list in a wrapper?
CB lists have the drop down links for their lists. To remove that, you would need to hack the code...

Quote:
Originally Posted by ehsabbi
Hi crash777, I understand that this process provide me the URL, but how can I use it into the content without a href link?

To clarify my problem:

A. I´m using CB and have a list os all players of the my team.
B. I have too a Menu link to the content "The Team". Clic on it, appears the content talking about the team.

What I need is, when clic on the menu link "The Team", show a page with B + A contents (not B + a link to B).

__________________
www.crashgraphics.com
Aaron Monello
crash777 is offline   Reply With Quote
Old 17.02.2006, 12:47   #7
ehsabbi
Senior Mamber
 
ehsabbi's Avatar
 
Join Date: Sep 2004
Posts: 131
ehsabbi is on a distinguished road
Default Re: Creating Wrappers without menu item

It´s not in a wrapper, but into his own menu link (index.php?option=com_comprofiler&task=usersList ). The idea of a wrapper is to put it inside the content "My Team" but I don´t know if it´s the best way to.
ehsabbi is offline   Reply With Quote
Old 17.02.2006, 16:26   #8
crash777
Professional Mamber
 
crash777's Avatar
 
Join Date: Apr 2004
Location: North East USA
Posts: 931
crash777 will become famous soon enough
Default Re: Creating Wrappers without menu item

so you want to embed the results of that link into content.. but not just create a link in the content...
hmmm. I haven't a clue how to make the target of a link be available inside content...
Please post it here if you find a way.. I am sorry I cannot help more
__________________
www.crashgraphics.com
Aaron Monello
crash777 is offline   Reply With Quote
Old 18.02.2006, 19:46   #9
neilt
Mamber
 
neilt's Avatar
 
Join Date: Mar 2005
Posts: 68
neilt will become famous soon enough
Default Re: Creating Wrappers without menu item

Hi All

This may do what you want.

You'll have to do 2 things:
1) Install mos_php? i think it's called that, it allows you to place php code directly into your page contents with wrappers like {mosphp}{/mosphp}
2) You will need to alter your php.ini file to "allow_url_fopen = On"

Then add this code, linking to the page you require....

It works 100% for me. (you may / may not need the <?php | ?> ) closers with the mosphp but I'm at home and cammot remember.

Best wishes
Neil


<?php

$handle = fopen("http://www.shepway.gov.uk/", "r");
$contents = '';
if($handle)
{
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
}

echo $contents;

?>


sorry, just remembered... you must end this with a return, so possible something like return $contents; ??????
neilt is offline   Reply With Quote
Old 18.02.2006, 19:54   #10
neilt
Mamber
 
neilt's Avatar
 
Join Date: Mar 2005
Posts: 68
neilt will become famous soon enough
Default Re: Creating Wrappers without menu item

just connected to work to see how i did it before.

the php to add to your page (after the mosphp mambot is installed and turned on) is

{mosphp}

$handle = fopen("http://www.shepway.gov.uk/", "r");
$contents = '';

if($handle) {
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
}

return $contents;

{/mosphp}




Neil
neilt is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Main Menu Image hack ssdesign Template Discussions 35 29.04.2008 10:44
Passing parameters from menu item Benta Mambo 4.5.1 'How Do I' Questions 4 02.06.2005 10:09
Changing URLs harshadoak Mambo 4.5.1 'How Do I' Questions 4 26.05.2005 19:25
Next "bug team" bug release appro. date? DevServe Mambo 4.5.1 General Talk 11 05.02.2005 04:12
Content Structuring Basics for Newbies, MOS 4.5 mamster Mambo 4.5 'How Do I' Questions 9 01.09.2004 04:18


All times are GMT +2. The time now is 21:52.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.