Welcome, Guest
Username Password: Remember me

Remove certain content for iphone
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Remove certain content for iphone

Remove certain content for iphone 13 years, 6 months ago #4312

  • lukelee
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
for exsample, on this page:
zammitroofing.com.au/roofing/custom-orbr.html

I want to remove the top images, but keep the rest of the content. Is there any tags we can use, such as: class="not_mobile", then we just put in the div and the content will be hidden on iphone or other mobile device.

Re: Remove certain content for iphone 13 years, 6 months ago #4316

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
We have a plugin to support "tags" in content like "{mobile}...{/mobile}", "{desktop}...{/desktop}", etc.
Hope it will be published in our Extensions directory soon (but after MJ0.9.13 will be released).

Re: Remove certain content for iphone 13 years, 4 months ago #4624

  • level420
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Any news on this? When will the plugin be available? Any Roadmap?

Thank you for your help.
Best regards.

BTW: joomla mobile is great!!!

Re: Remove certain content for iphone 13 years, 4 months ago #4629

  • level420
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
So obviously I'm very impatient.

Here is a plugin which (nearly) does what the topic says: a content plugin which is able to write device specific content within an article. At the moment it only distinguishes between desktop an mobile device.

The syntax is:
{mjcontent type="desktop"}desktop visible content here{/mjcontent}

to show the content with the normal desktop template only.

{mjcontent type="mobile"}mobile visible content here{/mjcontent} 

to show the content with the joomla mobile template only.

Note: no waranty or reponsibility for data loss or damage or whatsoever. This plugin may destroy your data, your hardware, your health and in the end, the whole universe.

Installation as usual via joomla backend installer. Don't forget to enable the plugin!

License is LGPL.

File Attachment:

File Name: mjconditionalcontent.zip
File Size: 2 KB
Last Edit: 13 years, 4 months ago by level420.

Re: Remove certain content for iphone 13 years, 4 months ago #4630

  • level420
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Ummmpf......

I've struggled with the file upload of kunena but had no success

Maybe some moderator can have a look at this?

Thank you.

Re: Remove certain content for iphone 13 years, 4 months ago #4631

  • level420
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
I've tricked the upload mechanism with firefox and firebug.

Regards...

Re: Remove certain content for iphone 12 years, 7 months ago #8506

Very good that, but how do I make this tag work directly within a php page?

Example: mjcontent {type = "mobile"} <? Php echo $ product_name?> {/ Mjcontent}

Thanks

Re: Remove certain content for iphone 12 years, 7 months ago #8525

  • level420
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
pasqualelaviano wrote:
Very good that, but how do I make this tag work directly within a php page?

Example: mjcontent {type = "mobile"} <? Php echo $ product_name?> {/ Mjcontent}

Thanks


The plugin just works if used in articles.

If you want to to use this in php (module, other plugin, etc.) please have a look into the source code of the plugin (file mjconditionalcontent.php).

 
$isMobile = defined('_MJ');
 
if($isMobile) {
// do something specific for mobile output
}
else {
// do something specific for non mobile output
}
 
Last Edit: 12 years, 7 months ago by level420.
  • Page:
  • 1
Time to create page: 0.20 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.