avatar_Marius P.

[ Video Sharing CMS v4 ] PHPVibe 3.3 RC 2

Started by Marius P.,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

MacKen

Localhost >> Run Soft Xamm  >> mod_rewrite enabled  > ok

Erorr >> Why?
  •  

MacKen

  •  

sanishan

Quote from: MacKen on
Localhost >> Run Soft Xamm  >> mod_rewrite enabled  > ok

Erorr >> Why?

This is not an error, this is  your fault,

You have to change the

RewriteBase /

Open htaccess

RewriteBase /


Replace with:
RewriteBase /phpvibe


Why editing?

Because you are try to install this on subfolder, and htaccess must be edit to point the directory in right direction.

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

MacKen

WOW WOW  :)

GOOD OK

Thanks sanishan  ;)
  •  

porncome

  •  

MacKen

Help me plzz ...

CHECK LINK: http://khatvongsong.vn/sitemap.php  << ok

rewrite .htaccess 

RewriteRule ^(.*)/?$ index.php?rp=$1 [L]
RewriteRule ^sitemap.xml$ sitemap.php   [L]


Back:  check link: http://khatvongsong.vn/sitemap.xml  OOPS! PAGE NOT FOUND



>>>>>>  WHY?
  •  

Marius P.Topic starter

Inverse the rules, put the sitemap one first.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  


Marius P.Topic starter

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

MacKen

  •  

Marius P.Topic starter

I will do this for 3.4 as well, was just wondering if you had a different approach.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

MacKen

FIX ENCODE ID :

demo video:  http://khatvongsong.vn/video/t0ia7/gioi-thieu-mot-nghi-luc-song.html
  demo channel: http://khatvongsong.vn/channel/iety9/khat-vong-song.html

Open file: functions.php

insert on function

Quote// Giải mã id
function decode_id($id) {
    $id = str_replace('w',5,$id);
    $id = str_replace('y',4,$id);
    $id = str_replace('o',3,$id);
    $id = str_replace('t',2,$id);
   $id = str_replace('i',1,$id);
    $id = hexdec($id);
   $id = $id - 123456;
   $id = strtoupper($id);
    return strtolower($id);
}
// Mã hóa id
function encode_id($id) {
    $id = dechex($id + 123456);
    $id = str_replace(1,'i',$id);
    $id = str_replace(2,'t',$id);
    $id = str_replace(3,'o',$id);
    $id = str_replace(4,'y',$id);
    $id = str_replace(5,'w',$id);
   $id = strtoupper($id);
    return strtolower($id);
}

Step 1:

check line:
Quotereturn site_url().video.url_split.encode_id($id).url_split.nice_url($title).'/';

reply:

Quotereturn site_url().video.url_split.encode_id($id).url_split.nice_url($title).'.html';

next:

Quotereturn site_url().channel.url_split.nice_url($title).url_split.$id.'/';

reply:

Quotereturn site_url().channel.url_split.encode_id($id).url_split.nice_url($title).'.html';

Step 2:

Open file: router.php

Check like:

Quotecase video:
return intval($router->fragment(1));
break;

reply:

Quotecase video:
return decode_id($router->fragment(1));
break;

Check line:

Quotecase channel:
      return intval($router->fragment(1));
break;

reply:

Quotecase channel:
      return decode_id($router->fragment(1));
break;


FINISH::::::::::::::::::::::::::

results   TRUE
  •  

MacKen

Quote from: MacKen on
Help me plzz ...

CHECK LINK: http://khatvongsong.vn/sitemap.php  << ok

rewrite .htaccess 

RewriteRule ^(.*)/?$ index.php?rp=$1 [L]
RewriteRule ^sitemap.xml$ sitemap.php   [L]



Back:  check link: http://khatvongsong.vn/sitemap.xml  OOPS! PAGE NOT FOUND



>>>>>>  WHY?




FIX OK >>>> 

if(!$page)   {
$com_route = ABSPATH."/com/com_home.php";
$canonical = site_url();
} else if($page == rss)   {
$com_route = ABSPATH."/rss.php";
$canonical = site_url();
} else {
// Define wich page to load

demo: http://khatvongsong.vn/rss
  •  

MacKen

Quote} else if($page == "sitemap.xml")   {
$com_route = ABSPATH."/sitemap.php";
$canonical = site_url();
}else {
  •  

Marius P.Topic starter

Oh, you simply used an translation table, I see.
I plan to use a true unique token and store it.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

xtrudd

Quote from: @Mario on
Added image resize via timthumb, configurable from admin.
Padded video title in list.
Added Facebook share details.

Hi @Mario,

I have a problem whit the avatar imgs. and chanel avatar imgs. to

can u helpe me fix this issue?

Thx
  •  

Marius P.Topic starter

Quote from: xtrudd on
Hi @Mario,

I have a problem whit the avatar imgs. and chanel avatar imgs. to

can u helpe me fix this issue?

Thx

Please verify your account first. http://www.phprevolution.com/forum/discussions-205/phpvibe-forum-now-open-for-'verified-clients'-only/
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

MacKen

PICTURE  CHANNEL ON MENU HOME:

STEP 1:

Open  file functions.php
Search:
function the_nav() { //////////////  line 726

Quote$categories = $cachedb->get_results("SELECT cat_id as id, child_of as ch, cat_name as name FROM ".DB_PREFIX."channels limit 0,10000");
//////////////line 733

Reply:

Quote$categories = $cachedb->get_results("SELECT cat_id as id, child_of as ch, cat_name as name, picture as picture FROM ".DB_PREFIX."channels limit 0,10000");

STEP 2:

Check line 733

Quote$label = '<a href="'.channel_url($cat->id, $cat->name).'" title="'. stripslashes($cat->name).'">'. stripslashes($cat->name).'</a>';

Reply:

Quote$label = '<a href="'.channel_url($cat->id, $cat->name).'" title="'. stripslashes($cat->name).'">
<img src="'.thumb_fix($cat->picture, true, 23, 23).'" class="cat-menu-img"> 


FINISH
  •  

MacKen

  •  

MacKen

  •  

MacKen

ERROR ::
http://www.rajshrimarathi.com/channel/marathi-serials/&page=28&clang=en&clang=mr#!/%23back


Notice: Undefined variable: channel in /home/content/97/9695797/html/com/com_channel.php on line 5

code:  com_channel.php

Quoteif ($channel) {

LOG:  PHP Notice:  Undefined variable: channel in


AND
LOG:  PHP Notice:  Undefined variable: video in
if ($video) {

  •  

MacKen

  •  

Marius P.Topic starter

Yeah, we discussed the isset upper.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

hamnawa

I am seeing following errors in error_log file:

PHP Notice:  Trying to get property of non-object in /home4/username/public_html/tpl/main/tpl.globals.php on line 51
PHP Notice:  Trying to get property of non-object in /home4/username/public_html/tpl/main/tpl.globals.php on line 53


Line 51: <meta property="og:image" content="'.thumb_fix($video->thumb).'" />
Line: 53 <meta property="og:title" content="'._html($video->title).'" />';

PHP Notice:  Undefined variable: channel in /home4/username/public_html/com/com_channel.php on line 5

Line: 5 if ($channel) {

Please guide what to change in which line?
  •  

Marius P.Topic starter

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)