Jump to content

Tutorials and shadowbox intergration


gr2

Recommended Posts

here is how to do it without needing to edit the tutorials.tpl each time you need to add a tutorial.

 

first. download shadow box here

 

http://www.shadowbox-js.com/download.html

 

second. extract the contents to your template directory

 

and add the following lines to header.tpl in the <head> tag

 

<link rel="stylesheet" type="text/css" href="templates/{$template}/shadowbox-build-3.0b/shadowbox.css">
<script type="text/javascript" src="templates/{$template}/shadowbox-build-3.0b/shadowbox.js"></script>

 

 

now open tutorials.tpl and replace the entire content with

 

{literal}
<script type="text/javascript">
Shadowbox.init({
   players:    ["iframe"]
});
</script>
{/literal}

<p>{$LANG.flashtutorialsheadertext}</p>

<ul>
{foreach from=$tutorials item=tutorial}
   <li><a href="modules/tutorials/{$tutorial.filename}" rel="shadowbox;height=550;width=800">{$tutorial.name}</li>
{/foreach}
</ul>

 

and you are all set!

 

 

 

use: on any .tpl file that you want to get a lightbox effect on any image

 

{literal}<script type="text/javascript">
Shadowbox.init();
</script>
{/literal}

 

 

the a tag should look like this:

 

<a href="https://www.whmcs.com/images/banners/version4.gif" rel="shadowbox" title="WHMCS v4.2 included">
        <img src="https://ipwebgroup.com/online-data/products/whmcs.jpg" alt="" width="157" height="55" border="0" style="background-color: #000099" /></a>

 

Best regards to all.

 

Feedback would be nice,

thanks.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 1 year later...
How are you handling different categories or how would you handle a large number of videos broken up into courses.

 

For eg. multiple courses each with 10-30 videos

 

good question. i always felt using the knowledge base would best... any ideas or input would be nice.

 

1 idea i have is to integrate an advanced table js script...

 

this one in particular:

http://codecanyon.net/item/advanced-tables/full_screen_preview/53366

 

although here:

http://ipwebgroup.com/members/knowledgebase.php?action=displaycat&catid=47

 

i still feel the kb is the most practical approach.

 

or a custom page all together..

 

let me know your thoughts regarding this matter.

 

Best regards

Andreas

Link to comment
Share on other sites

i see, the only thing i can think of at the moment would be to build custom pages to the nature of

 

{if $clientgroup eq "[video_group]"}

 

show videos

 

{else}

 

registration required to access videos

 

{/if}

 

what approach are you currently using?

 

maybe pm me login access to a demo account that

has access to the videos, this would help me come up with some ideas.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated