Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 191
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 194
Total: 194

Author Topic: Video Add on Issue  (Read 5465 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: 16452
    • 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: 16452
    • 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: 16452
    • 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
3198 Views
Last post March 20, 2007, 05:25:42 pm
by onijin
2 Replies
4523 Views
Last post February 26, 2008, 03:25:26 am
by warhonowicz
1 Replies
10083 Views
Last post April 04, 2013, 08:59:07 pm
by SMFHacks
7 Replies
5218 Views
Last post July 20, 2013, 08:04:23 am
by SMFHacks
2 Replies
7277 Views
Last post October 04, 2013, 01:53:06 pm
by Draffi

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

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

Powered by EzPortal