0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

class="demo" for entire site?

    • 's Avatar

    class="demo" for entire site?

    Posted 16 years 6 months ago
    • Hey all,

      I was wondering if there was a wild card to implement this tag for every image on the site, or even within a directory...

      class="demo"

      Would be great as I'm going to be having clients publish articles and don't really want to train them...

      Thanks!!!

      tm
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: class="demo" for entire site?

    Posted 16 years 6 months ago
    • you can put it on the body tag:
      <body class="demo">

      then you can put in your css stuff like:
      img.something {}
      body.demo img.something {}
    • 's Avatar

    Re: class="demo" for entire site?

    Posted 16 years 6 months ago
    • Andy- That is so cool.

      Just so I understand- body tag of the index.php file?

      Can you give me an example of the css suggestion?

      Thanks so much.
    • JasonC's Avatar
    • JasonC
    • Sr. Rocketeer
    • Posts: 117
    • Thanks: 0

    Re: class="demo" for entire site?

    Posted 16 years 5 months ago
    • this might be exactly what i was looking for.

      can i add this to a module? I only need it for one module. if so how do i implment this. i understand the {rokaccess guest} etc.... tags, however i do not know where to put this tag.


      thanks guys you are the best!
    • 's Avatar

    Re: class="demo" for entire site?

    Posted 16 years 5 months ago
    • Jason,
      If you only need it for one module, I'd suggest just adding [class="demo"] anywhere in that particular tag.

      Ex:
      <img src="images/stories/image.jpg" title="Image Title" class="demo" align="left" hspace='6' vspace="6"/>

      I haven't had time to mess with the body tag/css...for the entire site.

      Hope this was what you were looking for...
    • JasonC's Avatar
    • JasonC
    • Sr. Rocketeer
    • Posts: 117
    • Thanks: 0

    Re: class="demo" for entire site?

    Posted 16 years 5 months ago
    • Tim Miller wrote:
      Jason,
      If you only need it for one module, I'd suggest just adding [class="demo"] anywhere in that particular tag.

      Ex:
      <img src="images/stories/image.jpg" title="Image Title" class="demo" align="left" hspace='6' vspace="6"/>

      I haven't had time to mess with the body tag/css...for the entire site.

      Hope this was what you were looking for...

      what if its not an image. the module that i want to only show for guests is a media player.

      I have a media player on my front page of my site. right now i have a media player with a playlist that i want only for registered users to be able to see. then i want to have the same media player in the same spot with a different playlist that only guest can view.

      this may sound confusing but i dont want guests to be able to hear all the music on the playlist. i have a problem with a lot of people being on the site listening to music but not loged into the site, altho i want new visitors to be able to hear some of the music other wise they wont know that there is music to listen to.
    • JasonC's Avatar
    • JasonC
    • Sr. Rocketeer
    • Posts: 117
    • Thanks: 0

    Re: class="demo" for entire site?

    Posted 16 years 5 months ago
    • any help?
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: class="demo" for entire site?

    Posted 16 years 5 months ago
    • This technique only really works for stuff that can be controlled via css. So no, it's not going to help with more workflow oriented stuff like a playlist. You can assign a module to a user group like "registered" users though. Then the module will only show if you are logged in.
    • JasonC's Avatar
    • JasonC
    • Sr. Rocketeer
    • Posts: 117
    • Thanks: 0

    Re: class="demo" for entire site?

    Posted 16 years 5 months ago
    • Andy Miller wrote:
      This technique only really works for stuff that can be controlled via css. So no, it's not going to help with more workflow oriented stuff like a playlist. You can assign a module to a user group like "registered" users though. Then the module will only show if you are logged in.

      ya i want a demo playlist on the site for guests so they can see some examples.


      i think i found what im looking for. you can position it inside and area because its a popup but you can have it pop up for only guests and enter html in it. not exactly what i was looking for but it will ok till i can figure out something else.


      here is the link if anyone else might need.
      www.dart-creations.com/joomla/joomla-mod...la-popin-window.html

Time to create page: 0.078 seconds