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.
Putting thumbs on different site
Re: Putting thumbs on different site
Add scj's index.php at the root of your domain and it show thumbs there too.
Don't forget to run script update
Re: Putting thumbs on different site
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
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
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
Re: Putting thumbs on different site
Ok so if I make a page and put something like this in the template file...
and this in the subtemplate...
What would I need to add or change to make it show the most popular videos?
Code: Select all
<div class="content">
<!--default_1-50-->
</div>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
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.
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
Re: Putting thumbs on different site
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
domain/scj/tube/?force_template=test
Re: Putting thumbs on different site
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
Usually it's not a good idea but you can try
You can also try rotation - pages
Don't forget to run script update







