Hosted Videos

admin
Site Admin
Posts: 37993
Joined: Wed Sep 10, 2008 11:43 am

Re: Hosted Videos

Post by admin »

Yes, let's say you have hosted galleries for sponsor id = 15 only


if ('<!--SPONSOR_ID-->' == '15') {
create a link of type 1 (for hosted galleries)
} else {
create a link of type 2 (for external galleries)
}

it's vary basic here of course, I wanted to show the main idea. yes, you'll need to add things like <? and so on
Don't forget to run script update
mactron
Posts: 77
Joined: Fri Jan 25, 2013 12:30 am

Re: Hosted Videos

Post by mactron »

I need to keep "gallery" for redirection purpose.. If I import embed videos on the site are videos redirected from "gallery" to domain.com/galery/title-of-movies/- i need to change this part
admin
Site Admin
Posts: 37993
Joined: Wed Sep 10, 2008 11:43 am

Re: Hosted Videos

Post by admin »

Yes

Take a look at example
Don't forget to run script update
mactron
Posts: 77
Joined: Fri Jan 25, 2013 12:30 am

Re: Hosted Videos

Post by mactron »

This code I need to put in template right?
admin
Site Admin
Posts: 37993
Joined: Wed Sep 10, 2008 11:43 am

Re: Hosted Videos

Post by admin »

This _kind_ of code - yes.
Don't forget to run script update
mactron
Posts: 77
Joined: Fri Jan 25, 2013 12:30 am

Re: Hosted Videos

Post by mactron »

Parse error: syntax error, unexpected '<' in /home/admin/domains/drn.com/htdocs/scj/tube/index.php(0) : eval()'d code on line 133
mactron
Posts: 77
Joined: Fri Jan 25, 2013 12:30 am

Re: Hosted Videos

Post by mactron »

Ahh too much complicated..

In this case script will show "videos" on content list and not "gallery" and I will lost skiming

I was sure that i can keep gallery for redirection and skimming.. Once visitor made a click on "gallery" is redirected to "videos"
admin
Site Admin
Posts: 37993
Joined: Wed Sep 10, 2008 11:43 am

Re: Hosted Videos

Post by admin »

No, I guess you've just copied the code and yes, it won't work this way.

There are 2 options

1. free - read PHP basics, it's really simple
2. you can create a custom task and we'll setup links for you
Don't forget to run script update
mactron
Posts: 77
Joined: Fri Jan 25, 2013 12:30 am

Re: Hosted Videos

Post by mactron »

option 2 is better for me.. where i can open the ticket-task ?
admin
Site Admin
Posts: 37993
Joined: Wed Sep 10, 2008 11:43 am

Re: Hosted Videos

Post by admin »

PM me plz
Don't forget to run script update
Post Reply