gr2 Posted July 22, 2009 Share Posted July 22, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
redrat Posted July 22, 2009 Share Posted July 22, 2009 Useful. Thank you. 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted July 22, 2009 Author Share Posted July 22, 2009 your welcome and thank you for your feedback. 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted July 22, 2009 Author Share Posted July 22, 2009 how would one integrate intelligent search in tutorials.tpl? 0 Quote Link to comment Share on other sites More sharing options...
MikeP Posted August 11, 2009 Share Posted August 11, 2009 Any screen shots on this? 0 Quote Link to comment Share on other sites More sharing options...
rangermoore Posted September 17, 2009 Share Posted September 17, 2009 Does anyone have a working example of this? Thanks,, 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted May 9, 2011 Author Share Posted May 9, 2011 here is a working example http://60euro.gr/tutorials.php the code is a bit more complex since my last post on 2009. 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted May 9, 2011 Share Posted May 9, 2011 here is a working example http://60euro.gr/tutorials.php the code is a bit more complex since my last post on 2009. 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 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted May 9, 2011 Author Share Posted May 9, 2011 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 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted May 9, 2011 Share Posted May 9, 2011 KB works well with the tree, but there would have to be a way to "order" the videos in each category. Right now ordering is alphabetical only. 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted May 9, 2011 Share Posted May 9, 2011 Only downsite of KB approach is if the videos are a paid product. No real way to allow access to a group of videos based on purchase 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted May 10, 2011 Author Share Posted May 10, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.