The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Ok
Open header.tpl.php of your theme
in Empty space add this
<script>
$(document).ready(function(){
var $this = $(this);
$("li").click(function(){
$("#search_text").val($(this).attr('id'));
});
});
</script>
In your search Input add this
id="search_text"
inside this
<ul class="dropdown-menu pull-right" role="menu">
</ul>
add id="" to each <li>
This id will be what text u want to show in
save and test
Hey guys
i think i find a way to have multi language automatically
What i mean automatically ? for example if someone from Greece visit site....will redirect domain.com to gr.domain.com and will be in Greek ofcourse
So Please i need your Translated XMl files to can make more and more Test.If everything goes as i plan i can realese this in next 10 days....so just send me your XML files to can add more and more language
Send it here pls : paris_thiva@yahoo.gr
Thanks
Nice.
That's it?
What you mean that's it?
Hey
Did you check in admin language manager if language installed correctly? Try to delete and reinstall
No problem...
Btw i think i made what u ask for
demo : http://dev.scriptdevel.com/
Let me know if is what you asking for
Thanks
Hmm? I dont understund and from your site check i see u have done wrong input in TPL.
so pls Do this steps do be sure that will work
(you have do wrong in your site.....so do it from scratch please)
1) create in video table column with some name ( for our example lets say desc_url )
Or remember what u have add and use it instead my example
2) In Your theme /video_upload.tpl add some text input example :
<input name"desc_url" type="text" />
name"desc_url" ( add same name as table name in step (1), will be more easy to remember it )
3)Now in modules\video\components\upload.php
copy this Upload and replace it with your ( if you follow exactly my steps u dont need to edit it, but id you use deferent name in step 1 and 2 just find and replace desc_url with your details )
<?php
defined('_VALID') or die('Restricted Access!');
class VComponent_video_upload extends VModule_video
{
private $errors = array();
private $vcfg;
public function __construct()
{
parent::__construct();
$this->vcfg = VF::cfg('module.video');
}
public function render()
{
VLanguage::load('frontend.upload');
VLanguage::load('frontend.video');
if (!$this->vcfg['upload_enabled']) {
$_SESSION['error'] = __('upload-disabled');
VModule::load('error', TRUE);
}
if ($this->vcfg['upload_perm'] != 'anonymous') {
VAuth::check(ucfirst($this->vcfg['upload_perm']), NULL, __('upload-perm', array($this->vcfg['upload_perm'])));
$user_id = (int) $_SESSION['user_id'];
} else {
$user_id = (VAuth::loggedin()) ? (int) $_SESSION['user_id'] : $this->get_anonymous_id();
}
$errors = array();
$messages = array();
$allow = TRUE;
if (!empty($this->vcfg['upload_limit'])) {
$add_time = strtotime(date('Y-m-d').' 00:00:00');
$this->db->query("SELECT COUNT(*) AS total_videos
FROM #__video
WHERE add_time > ".$add_time."
AND user_id = ".$user_id);
if ($this->db->affected_rows()) {
$total_videos = (int) $this->db->fetch_field('total_videos');
$upload_limit = (int) $this->vcfg['upload_limit'];
if ($total_videos >= $upload_limit) {
$errors[] = __('upload-limit', array($upload_limit));
}
}
}
$categories = $this->get_video_categories();
$unique = time().'0'.mt_rand();
$video = array(
'title' => '', 'description' => '', 'desc_url' => '', 'tags' => '', 'category' => array(),
'url' => '', 'code' => ''
);
if (isset($_POST['cancel-upload'])) {
$allow = FALSE;
}
if (isset($_POST['upload-submitted']) && $allow === TRUE) {
$filter = VF::factory('filter');
$title = $filter->get('title');
$description = $filter->get('description');
$category = (isset($_POST['category'])) ? (array) $_POST['category'] : array();
$pornstars = (isset($_POST['pornstars'])) ? (array) $_POST['pornstars'] : array();
$tags = $filter->get('tags');
$upload_id = $filter->get('unique_id');
$desc_url = $filter->get('desc_url');
if ($title == '') {
$errors[] = __('title-empty');
} elseif (!VValid::length($title, 1, 100)) {
$errors[] = __('title-length');
} else {
$video['title'] = $title;
}
if ($description != '') {
$video['description'] = $description;
}
if ($desc_url != '') {
$video['desc_url'] = $desc_url;
}
if (!$category) {
$errors[] = __('category-empty', array($this->vcfg['max_categories']));
} elseif (count($category) > $this->vcfg['max_categories']) {
$errors[] = __('category-max', array($this->vcfg['max_categories']));
} else {
$video['category'] = $category;
}
if ($tags == '') {
$errors[] = __('tags-empty');
} else {
$tags = prepare_tags($tags);
if ($tags == '') {
$errors[] = __('tags-invalid');
} else {
$arr = explode(',', $tags);
foreach ($arr as $tag) {
if (strlen($tag) > $this->vcfg['tag_max_length']) {
$errors[] = __('tag-length', array('"'.$tag.'"', $this->vcfg['tag_max_length']));
}
if (str_word_count($tag) > $this->vcfg['tag_max_words']) {
$errors[] = __('tag-words', array('"'.$tag.'"', $this->vcfg['tag_max_words']));
}
}
$video['tags'] = $tags;
}
}
if (!ctype_digit($upload_id)) {
$errors[] = 'Invalid upload identifier!';
}
if (!$errors) {
if (!$file = $this->process_file($upload_id, $this->vcfg['video_max_size'], $this->vcfg['video_allowed_ext'])) {
$errors = array_merge($errors, $this->errors);
}
}
if (!$errors) {
$vmodel = VModel::load('video', 'video', true);
if ($video_id = $vmodel->add(array(
'user_id' => $user_id,
'title' => $title,
'desc_url' => $desc_url,
'slug' => prepare_string($title, true, $this->vcfg['slug_max_length']),
'description' => $description,
'type' => 'public',
'premium' => '0',
'status' => 3))) {
$dst = MEDIA_DIR.'/videos/vid/'.$video_id.'.'.$file['ext'];
$status = ($this->vcfg['approve']) ? 2 : 1;
if (rename($file['path'], $dst)) {
@chmod($dst, 0777);
if ($this->vcfg['queue']) {
$status = 6;
} else {
$cmd = VF::cfg_core_item('php_cli_path').' '.MODULES_DIR.'/video/scripts/convert.php '.$video_id.' '.$file['ext'].' '.$status;
exec(escapeshellcmd($cmd). ' >/dev/null &');
}
if ($status !== 6) {
$status = 4;
}
foreach ($category as $cat_id) {
$vmodel->add_category($video_id, $cat_id);
}
$tags = explode(',', $tags);
foreach ($tags as $tag) {
$vmodel->add_tag($video_id, trim($tag));
}
$vmodel->add_orig(array(
'video_id' => $video_id,
'user_id' => $user_id,
'filename' => $file['name'],
'ext' => $file['ext'],
'size' => $file['size'],
'method' => 'upload'
));
$vmodel->add_activity($user_id);
if ($status === 6) {
$vmodel->add_queue($video_id, $status);
}
foreach ($pornstars as $model_id) {
$vmodel->add_model($video_id, (int) $model_id);
}
$vmodel->update($video_id, array(
'status' => $status
));
$vmodel->update($video_id, array(
'desc_url' => $desc_url
));
$video['title'] = '';
$video['description'] = '';
//$video['desc_url'] = '';
$video['tags'] = '';
$video['category'] = array();
if ($status === 1 OR $status === 4) {
$messages[] = __('upload-success');
} elseif ($status === 2 OR $status === 0) {
$messages[] = __('upload-approve');
} elseif ($status == 6) {
$messages[] = __('upload-queue');
}
} else {
$errors[] = __('file-error');
}
} else {
throw new VException(__('database-error'));
}
}
}
$tpl = VF::factory('template');
$tpl->menu = 'video';
$tpl->meta_title = __('upload-video');
$tpl->canonical = BASE_URL.'/upload/';
$tpl->canonicalm = MOBILE_URL.'/upload/';
$tpl->errors = $errors;
$tpl->messages = $messages;
$tpl->video = $video;
$tpl->categories = $categories;
$tpl->tag_max_length = $this->vcfg['tag_max_length'];
$tpl->tag_max_words = $this->vcfg['tag_max_words'];
$tpl->max_categories = $this->vcfg['max_categories'];
$tpl->unique = $unique;
$tpl->pornstars = (VModule::enabled('pornstar')) ? $this->get_pornstars('a') : NULL;
$tpl->load(array('header', 'video_upload', 'footer'));
$tpl->display();
}
private function get_anonymous_id()
{
$this->db->query("SELECT user_id FROM #__user WHERE username = 'anonymous' LIMIT 1");
if ($this->db->affected_rows()) {
return (int) $this->db->fetch_field('user_id');
}
throw new Exception('Failed to get anonymous id! Application error!?');
}
private function get_pornstars($letter='a')
{
$this->db->query("SELECT model_id, name
FROM #__model
WHERE slug LIKE '".$letter."%'
AND status = '1'");
return $this->db->fetch_rows();
}
private function process_file($upload_id, $max_size, $allowed_ext)
{
VLanguage::load('frontend.upload');
$sec = substr(md5(VF::cfg_item('secret')), -5);
$info = TMP_DIR.'/uploads/'.$upload_id.'_'.$sec;
if (file_exists($info) && is_file($info)) {
$info = file($info);
$name = trim($info['0']);
$ext = trim($info['1']);
$path = TMP_DIR.'/uploads/'.$upload_id.'_'.$sec.'.'.$ext;
if (file_exists($path) && is_file($path)) {
$size = filesize($path);
if ($max_size !== 0 && $size > ($max_size*1024*1024)) {
$this->errors[] = __('file-limit', array($max_size));
} else {
if (in_array($ext, $allowed_ext)) {
@unlink($info);
return array(
'path' => $path,
'name' => $name,
'size' => $size,
'ext' => $ext
);
} else {
$this->errors[] = __('file-invalid', array(implode(', ', $allowed_ext)));
}
}
} else {
$this->errors[] = __('file-select');
}
} else {
$this->errors[] = __('file-select').'*';
}
return FALSE;
}
}
Now u ready to call your link in theme
Go to your templates/defboot/video_view.tpl.php
and place where u want this code
<?php echo $video['desc_url']; ?>
Let me know if works
Remove this
echo VF::debug($data);
about your saving your data in Db,
send me pls all steps you have done ( with details) and i will send you how to for your proccess method.
go to
module/video/upload.php
should fild something like this
vf::dubug() without comment ( // )
or
send here ur upload.php code here and i will tell u what to remove.
Thanks
This is what you want rigth
http://jsfiddle.net/b46v6trw/1/
this is very simple example of what u need.but in ASP is deferent to make it work since is not have simple select for search.
When i have time i will look at it more
I think he mean automaticaly
when he choose photo in select to change text in text to "8.800 Porn Pictures" etc
Is that true? we should not use Meta Keyword?
Hey
so far this Feature have not been added so its not possible. but i dont think so most users will read messages in their inbox.
nice work, thiva7
Thanks
I made it work
under From : admin
Desc Url : Title of video with Href to added Url
This is what you talking about?
Ok lets Create it togather ok? Step by step
1) create in video table column with some name ( for our example lets say link_url )
2) In Your theme /video_upload.tpl add some text input example :
<input name"link_url" type="text" />
3)Now in modules\video\components\upload.php
under this
$upload_id = $filter->get('unique_id');
add this:
$link_url = trim($_POST['link_url']);
after that Make a test Upload just to check if LINK_URL added.if works and added you can now get your link for each video
4) in modules/video/components/view.php
in line
$this->db->query("SELECT v.video_id, v.user_id, v.title, v.slug, v.description, v.total_views, v.total_comments, v.premium,
add this to querys v.link_url ,
so will be like this
$this->db->query("SELECT v.video_id, v.user_id, v.title, v.slug, v.description, v.total_views, v.total_comments, v.premium,v.link_url ,
5) Now you can show your link in theme file
Go in templates/defboot/video_view.tpl.php
and place where u this code
<?php echo $video['link_url']; ?>
ps : if you place it inside php you dont need my last code as it is, in this case just place
echo $video['link_url'];
Thats it...
How is it possible when using the responsive theme from mobile instead of the script searching for the MP4 at the /mobile folder to use the default folder.
You want on mobile device to play videos from /media/video/mp4
instead of
/media/video/mobile?
Dont know...maybe is bug from player
Your player have issue to me @donronca , when i going to your site to watch video start playing sound withour i click play
Edit : on Firefox
You can set from admin panel to not convert videos to flv for new videos.
For this Go to
Admin:videos:config and then select Conversion Settings and choose to not convert FLV.
For all FLV videos you can use cron to re-convert them from FLV to MP4,for this go to in main menu
Tools and select crons and select to run <<Convert all FVL to MP4>> ( but this option will put down your server if you have weak server )
It is possible in Front end to but its not added for security reasons....
You mean in front end or admin side?
am selling wordpress based tube site since i dont have time to work on it
site is :
Embedtubes.com
you can very easy to add videos from deferent source with few clicks and all videos is added as hot linked and play under your player ( JWplayer)
or i can create same type of site with wordpress and all plugins themes etc with your domain.
contact me to : paris_thiva@yahoo.gr
Try this
Edit your virtualhost file and replace yourdomain.com with www.yourdomain.com and add this at the top:
server {
listen 80;
server_name yourdomain.com;
return 301 http://www.yourdomain.com$request_uri;
}
sudo service nginx restart
Before new version i had like 2k daily, after new version it goes 1.3k
Direct traffic
from 450 to 350
SA
1.3k to 870
so all kind of traffic had decreasing visitors, but now my traffic is stable to 1.7k and i my income is more than when i had 2+ so thats why i told to @donronca to check his income changes
Hey
Yeah same think happent to me to with new version, but maybe is cuz new version stop more bot . check your incomes to see if is decreasing too.
Thanks