View Single Post
  #7  
Old 14th August 2018, 00:42
outtyrox outtyrox is offline
Senior Member
 
Join Date: Apr 2015
Posts: 59
Default
Demo Idea (should work)


1. Start by uploading the two javascript files to your js folder in CPanel (jquery.js already exists)

- wowslider.js
- script.js

Click the image to open in full size.


2. Then make a folder in your /styles/templatename/slider_images and put all your supporting images in here.

Click the image to open in full size.


3. Then create a new plug-in in the AdminCP and name it like Slider and create the supporting TSUEPlugin_Slider.php file to support it and add to the add-ons folder.

Click the image to open in full size.

Click the image to open in full size.


4. After you would setup your TSUEPlugin_Slider.php file to point to the correct locations for javascripts and images.


5. Next add this code to the template main head right before the closing </HEAD> and edit the location of the style.css and jquery.js to match your location on the server

Code:
<!-- Start WOWSlider.com HEAD section -- Edit paths -->
<link rel="stylesheet" type="text/css" href="/styles/default/style.css" />
<script type="text/javascript" src="/js/tsue/jquery.js"></script>
<!-- End WOWSlider.com HEAD section -->
Click the image to open in full size.


6. Last you would need to go to AdminCP and select Pages and add the plugin to the page(s) you want it to appear on. (example below can see Slider is checked for the Home Page)

Click the image to open in full size.



After it's a working model then the other stuff could be implemented in the TSUEPlugin_slider.php to pull the last 10 or 20 torrents for the slider if you wanted to make it that in-depth.

Last edited by outtyrox; 14th August 2018 at 08:43.
Reply With Quote