Page 1 of 1

Putting thumbs on different site

Posted: Tue May 27, 2014 8:34 pm
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.

Re: Putting thumbs on different site

Posted: Tue May 27, 2014 8:41 pm
by admin
Add scj's index.php at the root of your domain and it show thumbs there too.

Re: Putting thumbs on different site

Posted: Tue May 27, 2014 8:44 pm
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.

Re: Putting thumbs on different site

Posted: Tue May 27, 2014 8:46 pm
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

Re: Putting thumbs on different site

Posted: Tue May 27, 2014 8:58 pm
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?

Re: Putting thumbs on different site

Posted: Tue May 27, 2014 9:02 pm
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.

Re: Putting thumbs on different site

Posted: Tue May 27, 2014 10:42 pm
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

Re: Putting thumbs on different site

Posted: Wed May 28, 2014 1:19 am
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