0
Welcome Guest! Login
0 items Join Now

RokBox with HTML

  • RokBox with HTML

    Posted 12 years 8 months ago
    • I have a need to have a Roxbox like popup appear on my site. But instead of just an image I need to have it display text that has been stylized using HTML and CSS.

      In essence a visitor to the site would see either a string of text enclosed within <a> and </a> or a small image. Either hovering or clicking into the link would show a RoxBox like popup that would contain small images and text.

      The linked text and image could be either contained within the page being viewed or an article in its own right.

      Thank you in advance,
      Wayne
    • Cordially,
      A. Wayne Webb
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: RokBox with HTML

    Posted 12 years 8 months ago
    • search for

      "tmpl=component"

      here in the forum.
  • Re: RokBox with HTML

    Posted 12 years 8 months ago
    • Henning wrote:
      search for

      "tmpl=component"

      here in the forum.
      Thank you Henning and I will play around with it. The thread that seems to have the most can be found here and I included it in this response in case others might have need of it.

      One thing i did notice in the above reference thread is that there is no clear example of how to do it. If I can find the time I will write a short tutorial.

      Thank you,
      Wayne
    • Cordially,
      A. Wayne Webb
  • Re: RokBox with HTML

    Posted 12 years 8 months ago
    • Henning,

      I was able to get the RokBox window to pop up as demonstrated by clicking on the little wooden chest of the first item in the list here .

      That works great with one caveat, it displays the entire web page. I want just the text and image of the article nothing else.

      I know that the RocketTheme user CaveDog was able to accomplish this as shown on his site .

      If you could show what it is I am doing incorrectly I would be appreciative.

      Wayne
    • Cordially,
      A. Wayne Webb
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: RokBox with HTML

    Posted 12 years 8 months ago
    • try

      /jupgrade/index.php/games/temple-of-elemental-evil/crafting/137-amulet-of-health?tmpl=component&type=raw

      how that thing looks really depends on what you have in your components.php
  • Re: RokBox with HTML

    Posted 12 years 8 months ago
    • Henning wrote:
      try

      /jupgrade/index.php/games/temple-of-elemental-evil/crafting/137-amulet-of-health?tmpl=component&type=raw
      how that thing looks really depends on what you have in your components.php
      As I run screaming into the night with fear what do I have to change in components.php? Seeing as this is a default install of J2.5 and Refraction 2.5 I've never changed anything in the underlying engine. Once more the page is here .

      What would be the easiest, and probably best for the common user, is if RokBox could accept standard CSS and HTML statements as a set of parameters. Most people at my level at least understand that part of site development. When it comes to changing PHP statements we run blathering into the night. If I could do this then all I would have to do is craft [pun intended] my mini page.

      As a hopeful request I sent a PM to CaveDog who has not responded as of yet.
    • Cordially,
      A. Wayne Webb
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: RokBox with HTML

    Posted 12 years 8 months ago
    • You have to think of component.php as a stripped down version of index.php.
      "raw" can be used as a condition for different layouts.

      If your template has no component.php ... you have to open the parent directory of the template.
      You should find a folder called "system" with a file "component.php" in it.
      Copy that into your template-folder and change what ever you want to change.
      Joomla can be forced with ?tmpl=component at the end of the url to load the content with this component.php instead of index.php.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: RokBox with HTML

    Posted 12 years 8 months ago
    • btw

      you have

      <a href="/jupgrade/index.php/games/temple-of-elemental-evil/crafting/137-amulet-of-health&tmpl=component&type=raw"

      but it must be

      <a href="/jupgrade/index.php/games/temple-of-elemental-evil/crafting/137-amulet-of-health?tmpl=component&type=raw"....
  • Re: RokBox with HTML

    Posted 12 years 8 months ago
    • I forgot all about the usage of "?" when it is to be followed by "&". Your kindly offered suggestion was just the ticket.

      I'm glad you folks can keep all this coding in your head. :P
    • Cordially,
      A. Wayne Webb

Time to create page: 0.249 seconds