Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 200
Total: 200

Author Topic: Video Add on Issue  (Read 5440 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Video Add on Issue
« on: September 01, 2014, 10:44:17 pm »
Videos with https don't show up, error appears.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Video Add on Issue
« Reply #1 on: September 01, 2014, 10:45:05 pm »
What type of video? And what error?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Video Add on Issue
« Reply #2 on: September 02, 2014, 01:01:23 am »
Any video from Youtube with https as opposed to http

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Video Add on Issue
« Reply #3 on: September 02, 2014, 05:05:27 pm »
If you did a manual install make sure to run AutoEmbedMediaProInstall.php from the zip copy it to the root directory of your forum and run it in the browser.

That should update the tables and add https support
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Video Add on Issue
« Reply #4 on: September 02, 2014, 08:13:52 pm »
If you did a manual install make sure to run AutoEmbedMediaProInstall.php from the zip copy it to the root directory of your forum and run it in the browser.

That should update the tables and add https support

I didn't do that. Okay, I ran it, still didn't work.

I think the problem stems from Sub-video.php

Code: [Select]
// Check if the file starts with http:// which means it is a linked video
if (substr($filename,0,7) == 'http://')

This made it work:

Code: [Select]
if (substr($filename,0,7) == 'http://' || substr($filename,0,8) == 'https://')


A quick suggestion.

For the top-rated list, how do I order it so that it shows the images that have been rated the most (# of times rated) AND have the highest average rating?
« Last Edit: September 02, 2014, 08:17:53 pm by shuban »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Video Add on Issue
« Reply #5 on: September 02, 2014, 08:48:21 pm »
Fixed that issue for https videos next update. !Fixed loading of linked videos that start with https://

For update just looking for other issues before posting another update.


For top rating block you edit the gallery.template.php
Find in function MainPageBlock
Code: [Select]
case 'toprated':
$query .= "ratingaverage DESC, p.totalratings DESC  LIMIT " . $gallerySettings['gallery_index_images_to_show'];
Change to
Code: [Select]
case 'toprated':
$query .= "p.totalratings DESC, ratingaverage DESC  LIMIT " . $gallerySettings['gallery_index_images_to_show'];
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Video Add on Issue
« Reply #6 on: September 02, 2014, 08:53:18 pm »
Fixed that issue for https videos next update. !Fixed loading of linked videos that start with https://

For update just looking for other issues before posting another update.


For top rating block you edit the gallery.template.php
Find in function MainPageBlock
Code: [Select]
case 'toprated':
$query .= "ratingaverage DESC, p.totalratings DESC  LIMIT " . $gallerySettings['gallery_index_images_to_show'];
Change to
Code: [Select]
case 'toprated':
$query .= "p.totalratings DESC, ratingaverage DESC  LIMIT " . $gallerySettings['gallery_index_images_to_show'];


Thanks... :)

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3188 Views
Last post March 20, 2007, 05:25:42 pm
by onijin
2 Replies
4519 Views
Last post February 26, 2008, 03:25:26 am
by warhonowicz
1 Replies
10068 Views
Last post April 04, 2013, 08:59:07 pm
by SMFHacks
7 Replies
5186 Views
Last post July 20, 2013, 08:04:23 am
by SMFHacks
2 Replies
7234 Views
Last post October 04, 2013, 01:53:06 pm
by Draffi

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal