Putting thumbs on different site

Post Reply
Brett
Posts: 31
Joined: Wed Dec 18, 2013 10:21 pm

Putting thumbs on different site

Post by Brett »

Hi,

I have smartcj installed in a subfolder like example.com/tube

How can I put a certain amount of the popular thumbs on the root site like example.com? I hope that makes sense.

I've been trying to think of a way and haven't had any luck.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Putting thumbs on different site

Post by admin »

Add scj's index.php at the root of your domain and it show thumbs there too.
Don't forget to run script update
Brett
Posts: 31
Joined: Wed Dec 18, 2013 10:21 pm

Re: Putting thumbs on different site

Post by Brett »

What I'm trying to do is just add the thumbs section from tube/category/All/ctr/1/ to part of the root site which is a completely different site. I don't need the header and the whole site included.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Putting thumbs on different site

Post by admin »

You can try to utilize rotation - pages
but if you use it as a static file included somewhere - it won't count shows\clicks there
Don't forget to run script update
Brett
Posts: 31
Joined: Wed Dec 18, 2013 10:21 pm

Re: Putting thumbs on different site

Post by Brett »

Ok so if I make a page and put something like this in the template file...

Code: Select all

<div class="content">
                <!--default_1-50-->
</div>
and this in the subtemplate...

Code: Select all

<div class="item new">
                    <a href="/tube/gallery/<!--GALLERY_SLUG-->/index.html?<!--THUMB_LINK-->" class="thumb"><img src="<!--THUMB_URL-->" alt="<!--DESCRIPTION-->" /></a>
                    <div class="time"><!--DURATION--></div>
                    <h4><a href="/tube/gallery/<!--GALLERY_SLUG-->/index.html?<!--THUMB_LINK-->" class="title"><!--DESCRIPTION_25--></a></h4>
                    <div class="rate"><?=(<!--RATING--> == 0) ? '100%' : round( (<!--RATING--> - 1) * 100 ) . '%'?></div>
                    <div class="added"><?=ezDate('<!--ACTIVATION_DATETIME-->'); ?> ago</div>
                </div>

What would I need to add or change to make it show the most popular videos?
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Putting thumbs on different site

Post by admin »

ok ...

1. create new template , for example test
2. add your template and subtemplate there
3. you can see result as domain/scj/tube/?force_template=test

4. include this result in your page where you need it.
Don't forget to run script update
Brett
Posts: 31
Joined: Wed Dec 18, 2013 10:21 pm

Re: Putting thumbs on different site

Post by Brett »

Ok thanks. Do you know of anyway to include a url like this in another php page without using an iframe? From what I've read you can't include url's like that.

domain/scj/tube/?force_template=test
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Putting thumbs on different site

Post by admin »

You can include it with file_get_contents for example
Usually it's not a good idea but you can try

You can also try rotation - pages
Don't forget to run script update
Post Reply