How do I get the name of the video in video.inc??
Printable View
How do I get the name of the video in video.inc??
What's "video.inc"?
I am sorry, I mean player.inc
I now select for a second time the information of the video, but it must be a way to do it easier. Look, in the new player (for example http://video.filehostserver.eu/view/8/video/) you can click on a share button. When you click on it, you will get http://video.filehostserver.eu/view/...ds-2/#linkForm with #linkForm because at that piece of the page is the perma link and the code. Now there is standig happy-tree-friends-2, but there is an var with more information. Because the whole system except some files is encrypted with Zend Guard I can not search for this. Meaby the developer can help me?
What you are needing is accessible without having to have access to the code (the entire system uses smarty). I'm having a problem, however, understanding what it is that you are asking (in other words, you are not being very clear). From what I can gather, you are saying that there is a share button with something in it. But, I'm not sure about what you are saying about it. What's your site's URL? Perhaps if I could see what you are saying, I can help you get the data that you are needing.
What I need is the var used in the original code with the information seo_name from the table video. I now only have the video id and I have a query with that to get the information:
But I think there is already a var with the exame information which $qeu has. If the creator of this script does give me this var name or the var name which gives me the information of the seo_name from the video from the table video in mysql I don't have to maken a second query.Code:$qeu=mysql_fetch_array(mysql_query("SELECT * FROM `video` WHERE `VID`='".$video_id."' LIMIT 1"));
I am sorry for my bad English, but what I mean is that I don't want to use the var $qeu but an var with information of the video which has been resolved by the query in the encoded scrip. Do you understand what I mean?
Ah.... Ok... Now I understand what you are saying. You are needing the SEO Friendly name for your code (for example, in http://www.example.com/view/8/blah-blah-blah, you are needing the variable that contains "blah-blah-blah"). The answer to that is that there is no variable that contains that. Rather, it is composed from the title in code. So, to compose what you are needing (assuming you are doing this from the player.inc file), the following code would work for you:
You can then use $seo_title as your variable. So, it the "title" was "My Awesome Video," $seo_title would contain "my-awesome-video". Is that what you need?Code:$qeu=mysql_fetch_array(mysql_query("SELECT title FROM `video` WHERE `VID`='".$video_id."' LIMIT 1"));
$seo_title = strtolower(preg_replace("/[^a-zA-Z0-9]+/","-", $qeu['title']));
No, I already have the seo name;-)
What i mean is that the encodec video view page select information from the database about the video (like where the video is located, the title, ....). I would like to use this selection and not to make an own query because I think it is possible to use the data from that encodec page view video
Ok, it seems to me that you do not understand how the Smarty system is being used in vShare. If you are trying to get video data from the player.inc file, you will have to make your own queries as the player.inc file is being included from the encoded php scripts. If you are trying to execute your query from the template files (in the templates directory), you can get all of the video information from Smarty as the video information is sent to the templates through Smarty. So, from the view_video.tpl file, you can get information regarding the video by using:
So, if you wanted to get the title, you would use:Code:{$video_info.(DB Column)}
Etc. Does that make sense to you?Code:{$video_info.title}
I don't use the smarty system for this, the file which I only will edit is player.inc
I will wait at the admin, he has the decoded source of this file and will know the answer I suppose.
As I stated before, if you are needing to use player.inc, you will have to generate your own query as the player.inc file. The page that calls the player.inc file only feeds it specific information. Why are you so hesitant to use your own query?
If you are going to wait for the decoded version, you'll be better off writing your own query as we have been waiting for a year now.
Or, let me ask you this...
By name of the video, are you looking for the video's file name? Such as 18232837232.flv? Which name are you looking for?
Look, I have the name that I want. The only thing that I want is to not use my own query to get the information (the seo_name from the table video) but with a already selected information var or array in the encoded file file which is showing the video.
Just wauit at the creator and I will get an answer. At the moment I have the time for it because I am still customising the website.
Look buddy. All I'm trying to do is help you out. I don't know how long you have been here (not very long by your post count), but the admin does not answer questions often in the forum. It may take you weeks to get an answer. If you want to get an attitude with someone trying to help you, fine. I won't offer you any more help. And, just so that you know, I now know what you are wanting and have the code for you. But, I'll let you wait until the admin gives it to you.
I am sorry becuase what I mean is that the thing that I want to know is in the encrypted page. I think the only one who has the decrypted page (the source) is the admin and only he can offer me a solution.
Look, I have an answer, the only thing that I think is that there must be a easier way to get the seo_name. It doesn't matter how long it will take for an answer because I have a solution, but I believe there is an easier way.
Do you understand me?? I like that you help me, but I think the only one with the source is the admin. Correct me if I am wrong...
hey fmen, bplex knows his stuff more than anyone on this board, and I'm sure his technical skills are at least equal to those of Admin.
I'm guessing there's a language barrier here.
Admin is the kind of guy I think who doesn't want to hand out incomplete projects or he'd just provide it. He wants to finish it and provide an awesome upgrade. If you're looking to get at variables that are hidden in zended files, you'll likely be waiting for several months. Many have tried to get de-zended versions and none have.
Anyway I'm sticking my nose in someone else's conversation.... just my two-cents (Canadian) worth.
Hey bplex speaking of scripts, I just found and emailed you that clone script we discussed a week or so ago.... let me know if it's what you were looking for. I have another one that I haven't been able to locate, but it's a different "flavor" of the script than the one we are familiar with. I'll send it along when I find it.
Thanks mersh. At least someone on this board appreciates my input :D.
fmen, to answer your question in exact detail:
1. The admin does not have a decrypted copy of vShare 2.6. I have spoken to them and have received an answer on it. The reason is because vShare is partially based on other projects and was a fork to another project. The decrypted code was stored on a subversion server. Sometime earlier this year or so, they lost the data on the subversion server so the available decrypted source was lost. The admin took their copy of the decrypted 2.6 source and started building 2.7. It will be released decrypted (probably so that a problem like this will never happen again). Because they are using the only copy to create 2.7, there is no available 2.6 source that does not have the changes that is being made for 2.7. So, you will not get a decrypted version from the admin for 2.6.
2. With that being said, what you are wanting is actually not available for the player.inc file (a variable that contains all of the information in it). However, the file that you DO need is NOT encrypted at all. The player.inc file is processed and called from the class.video_player.php file located in your include/classes directory. The variables that are available in the file are the name, the server id, the video ID, and the video's file name. However, you can add more variables that are available to player.inc by simply adding them in the class.
3. The template (view_video.tpl) actually has a different command that pulls its data. It is available via Smarty if you want to get the data for that file.
Thanks. I'll check it out.Quote:
Originally Posted by mersh
I'm sure you are right but I don't want a dezended page but I only want a var with the value from the tabel video column seo_name
I appriciate your help but I think only the admin has the source and knows the var with this value.
fmen, I just told you that there IS NO VAR available with the seo name that can be obtained by player.inc. Listen to what I am saying. If you want a variable, you will need to open the class file that I told you, and add your own variable to it. Then, you can call it from the player.inc file. Here is how the files are called:
view_video.php (encrypted) calls class.video_player.php (not encrypted) which calls (player.inc).
Because of this setup, you cannot retrieve information that exists in view_video.php.
I am sorry I didn't refresh my page and becuase of that IO didn't see your reply ;-)
You can close this topic, I have found a possible solution by myself.
This is the solution: (if this is illegal to publish own modifications then remove this piece of code):
Open include/classes/class.video_player.php
Add on line 27 this code:
Add on line 70 this code:Code:$this->video_seo = $video_info['seo_name'];
The var $video_seo_name will give the seo_name and you don't have to make a query in player.inc . This means less queries for your server!Code:$video_seo_name = $this->video_seo;