vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - 8WayRun.Com - Media Library (https://vborg.vbsupport.ru/showthread.php?t=240677)

mkkochan 05-27-2012 07:38 PM

Quote:

Originally Posted by CharlieDelta (Post 2333600)
Here is how I set my tabs up in the navigation manager. All is working fine.
Attachment 138753
Attachment 138754
Attachment 138755

can you tell how do you have fix ?

mkkochan 05-27-2012 07:54 PM

https://vborg.vbsupport.ru/

how i can fix this problem ?

michal72 05-27-2012 08:03 PM

Quote:

Originally Posted by mkkochan (Post 2333624)
http://b1205.hizliresim.com/x/v/6y2pt.png

how i can fix this problem ?

I have the same problem after I changed navtab_middle ( which seems dosen't exist any more) to navtab_end
Still no idea how to fix this problem

mkkochan 05-27-2012 09:03 PM

no one can help for this problem ??

CharlieDelta 05-27-2012 09:12 PM

Sorry guys.:o
I forgot to mention that I am also using this fantastic mod. https://vborg.vbsupport.ru/showthread.php?t=283123
This makes your life so much easier when trying to use the navigation manager on 4.2. :)

lafsunlmtd 05-27-2012 10:08 PM

Quote:

Originally Posted by CharlieDelta (Post 2333665)
Sorry guys.:o
I forgot to mention that I am also using this fantastic mod. https://vborg.vbsupport.ru/showthread.php?t=283123
This makes your life so much easier when trying to use the navigation manager on 4.2. :)

I have this same mod installed. Here's my issue, I tried to do how you had it set but it doesn't recognize that it's on the media tab and defaults back to the "forums" when I click media which makes the Media tab and sub links I create useless.

I really don't understand what's causing this to happen.

UPDATE

I named the tab script in the nav manager just 'media' and went into media.php and changed the

Code:

define('THIS_SCRIPT', '8WR_media');
to

Code:

define('THIS_SCRIPT', 'media');
And reuploaded the media.php to the forum root and it recognizes the tab now. I'm not sure why it wouldn't recognize 8WR_media as the tab script name but nonetheless it works now.

Chadi 05-28-2012 04:27 AM

Can someone *please* explain how to add / modify categories and fix the navbar issue? I do not know how to add the categories since the menu option doesn't even exist in admincp nor navbar.

CharlieDelta 05-28-2012 01:59 PM

Quote:

Originally Posted by Chadi (Post 2333792)
Can someone *please* explain how to add / modify categories and fix the navbar issue? I do not know how to add the categories since the menu option doesn't even exist in admincp nor navbar.

If you recall in this post, you have to add the links manually with the navigation manager if you are using 4.2.
It has been mentioned in just about every post above this one. :confused:

Chadi 05-28-2012 02:16 PM

Really? How am I supposed to even know what those links are supposed to be? I do not see that mentioned anywhere.

CharlieDelta 05-28-2012 02:27 PM

Administrate Links;
Tags - media.php?do=admin_tags
Categories - media.php?do=admin_cats
Services - media.php?do=admin_host

Chadi 05-28-2012 05:04 PM

Thank you Charlie! That works :)

Just one more thing please, how can I add GodTube.com upload option?

michal72 05-28-2012 05:48 PM

Quote:

Originally Posted by Chadi (Post 2333946)
Thank you Charlie! That works :)

All links you can find in media_functions_hrefs.php file in media directory

Quote:

Originally Posted by Chadi (Post 2333946)
Just one more thing please, how can I add GodTube.com upload option?

You have to create xml file for this site.

Regards

CharlieDelta 05-28-2012 05:50 PM

You would have to make a Service Host XML. There are instructions in the download.

I have never had much success in making them myself. Some others on here have done so and very well. Maybe they can help you out. Michal72 and migratoria are a couple.

waldvb 05-28-2012 08:38 PM

Quote:

Originally Posted by michal72 (Post 2333629)
I have the same problem after I changed navtab_middle ( which seems dosen't exist any more) to navtab_end
Still no idea how to fix this problem

Did you resolve this problem? I'd like upgrade forum to 4.2

Chadi 05-28-2012 08:44 PM

Thank you guys but I really don't know how to make the XML for godtube but would appreciate help

michal72 05-28-2012 09:19 PM

Quote:

Originally Posted by Chadi (Post 2334036)
Thank you guys but I really don't know how to make the XML for godtube but would appreciate help

Hit my signature

CharlieDelta 05-28-2012 09:59 PM

Quote:

Originally Posted by waldvb (Post 2334035)
Did you resolve this problem? I'd like upgrade forum to 4.2

You are safe to upgrade. Just grab the mod that I listed in this post and your navbar will be fine.
You will just have to add the tabs manually with the navigation manager.

Chadi 05-29-2012 12:48 AM

Quote:

Originally Posted by michal72 (Post 2334048)
Hit my signature

Thank you very much to you and Charlie as well. You've both been very helpful, appreciated :)

However, I do have a problem with the GodTube xml if you could please help me out on.


When submitting godtube videos (replicated twice), I see this up top..yet they still get submitted though


Quote:

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in [path]/media/media_functions_builds.php on line 48

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '[path]/customVID/thumbs/5.jpg' is not a valid JPEG file in [path]/media/media_functions_builds.php on line 48

Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in [path]/media/media_functions_builds.php on line 52

Also, anyone know how to put a random video in the forumhome side block?

michal72 05-29-2012 04:01 AM

This can be the problem with directory permission:
Try to do:
CHMOD the /customVID/thumbs/ directory to full read/write/execute 777 permissions.
CHMOD the /customVID/sitemap/ directory to full read/write/execute 777 permissions.

Chadi 05-29-2012 04:06 AM

They already are set to 777.

The other uploads work fine except godtube gave off that error

michal72 05-29-2012 07:08 AM

I think I know what is the problem
The extensions of the image files on godtube are .jpg but the files are png inside.

See: http://ht2.salemweb.net/godtube/2012...981-003-tn.jpg

Replace Thumbnail line with :
Code:

$vbulletin->options['bburl']."/media/media_audio.jpg"
and try again

Chadi 05-29-2012 12:29 PM

Sorry but replace that line where?

edit: I edited within the hosts area and tried again, same error

MikeBeams 05-29-2012 01:10 PM

Anyone run into an issue where people are not able to comment on videos? When they try to submit a comment the submit button simply does nothing. I have double checked the permissions and do not believe that to be the issue. Any ideas?

michal72 05-29-2012 01:43 PM

Quote:

Originally Posted by MikeBeams (Post 2334278)
Anyone run into an issue where people are not able to comment on videos? When they try to submit a comment the submit button simply does nothing. I have double checked the permissions and do not believe that to be the issue. Any ideas?

https://vborg.vbsupport.ru/showpost....postcount=2625

michal72 05-29-2012 02:47 PM

1 Attachment(s)
Quote:

Originally Posted by waldvb (Post 2334035)
Did you resolve this problem? I'd like upgrade forum to 4.2

Could you install this simple product on your test enviroment and check if it works well

waldvb 05-29-2012 05:28 PM

Quote:

Originally Posted by michal72 (Post 2334307)
Could you install this simple product on your test enviroment and check if it works well

I did not upgrade to VB4.2 yet - because of NavTab problems. It looks like on 4.2 - NavTab is doubled for Mods- you have links from Forum and Media Library.
So I think I should remove Navtab in 8Run an rebuild it with Navigation Manager or I can install this mod https://vborg.vbsupport.ru/showthread.php?t=283123
and rebuild links again. I see same problems for Links Directory - doubled links in NavTab. I can Disable Navtab links (for this mod) from admin -> options.... and I don't have any problems.
I'm not sure what to do. So I'm waiting for solutions.

MikeBeams 05-29-2012 05:50 PM

Quote:

Originally Posted by michal72 (Post 2334289)

Where can I find the media_ajax_comment.js file? I cannot find it in Plugin Manager or in Styles & Templates?

michal72 05-29-2012 05:55 PM

in "media" directory on the disk

michal72 05-29-2012 05:59 PM

Quote:

Originally Posted by waldvb (Post 2334371)
I did not upgrade to VB4.2 yet - because of NavTab problems. It looks like on 4.2 - NavTab is doubled for Mods- you have links from Forum and Media Library.
So I think I should remove Navtab in 8Run an rebuild it with Navigation Manager or I can install this mod https://vborg.vbsupport.ru/showthread.php?t=283123
and rebuild links again. I see same problems for Links Directory - doubled links in NavTab. I can Disable Navtab links (for this mod) from admin -> options.... and I don't have any problems.
I'm not sure what to do. So I'm waiting for solutions.

to disable the "old" menu go to admincp->product and plugins-> manage plugins and turn off media NAVTAB plugin. Then install my product: https://vborg.vbsupport.ru/showpost....postcount=2745

MikeBeams 05-29-2012 06:02 PM

Disregard, I found them, thanks!

waldvb 05-29-2012 06:05 PM

Quote:

Originally Posted by michal72 (Post 2334386)
to disable the "old" menu go to admincp->product and plugins-> manage plugins and turn off media NAVTAB plugin. Then install my product: https://vborg.vbsupport.ru/showpost....postcount=2745

I'll upgrade forum to 4.2 tomorrow. I'll check your Mod

GhostHunter2010 05-29-2012 06:51 PM

is there any videogallery like this one plz if yes pm me link so i can download thankyou

Chadi 05-29-2012 08:10 PM

Quote:

Originally Posted by michal72 (Post 2334178)
I think I know what is the problem
The extensions of the image files on godtube are .jpg but the files are png inside.

See: http://ht2.salemweb.net/godtube/2012...981-003-tn.jpg

Replace Thumbnail line with :
Code:

$vbulletin->options['bburl']."/media/media_audio.jpg"
and try again

Could you please help me out on this piece? I edited the host section for godtube and still get the same error.

michal72 05-29-2012 08:47 PM

1 Attachment(s)
Yes indeed there is some problem with thumbs on godtube.com, so I have prepared the xml service with standard 8WR Media thumbnail. It works for me. Please find enclosed, install and check again.

Regards

Chadi 05-29-2012 09:04 PM

Thanks. So there is no way around this, at all?

michal72 05-30-2012 04:12 AM

Quote:

Originally Posted by Chadi (Post 2334459)
Thanks. So there is no way around this, at all?

in media/media_function_build.php replace:
Code:

                preg_match('#([\w]+)$#i',$thumbnail,$filetype);

                switch ($filetype[1])
                {
                        case "png":                $oldImage = imagecreatefrompng($target);                break;
                        case "gif":                $oldImage = imagecreatefromgif($target);                break;
                        case "jpg":
                        default:                $oldImage = imagecreatefromjpeg($target);                break;
                }

with
Code:

                $filetype = exif_imagetype($thumbnail);

                switch ($filetype)
                {
                        case IMAGETYPE_PNG:                $oldImage = imagecreatefrompng($target);                break;
                        case IMAGETYPE_GIF:                $oldImage = imagecreatefromgif($target);                break;
                        case IMAGETYPE_JPEG:
                        default:                            $oldImage = imagecreatefromjpeg($target);                break;
                }

and try to use the previous xml.

lafsunlmtd 05-30-2012 01:10 PM

I found that if you have vbSEO there are some modifications to the php files that have to be made that will include the titles in the non friendly URL so that you can use custom rewrite rules in the vbSEO control panel to make this work properly.

I am undergoing the changes with the php file and writing the custom rewrite rules. I'll report back with the file and the rewrite rules if it's successful.

Update:

It is in fact working as I planned and will update the thread with the file to update as well as the custom rewrite rules you can copy and paste in your vbSEO control panel so the SEO Friendly URL's will work with your board and vbSEO.

lafsunlmtd 05-30-2012 03:00 PM

If you use vbSEO

Add the following Custom Rewrites via your vbSEO control panel area. Once finished, turn on friendly URL's via the VB Settings > Options > 8WayRUn.com Details

Code:

//  # Media Library
'^media\.php\?do=tags_edit&mid=(\d+)&title=(.*)'=>'media/m$1-$2/tags'
'^media\.php\?do=details_edit&mid=(\d+)&title=(.*)'=>'media/m$1-$2/edit'
'^media\.php\?do=report&mid=(\d+)&title=(.*)'=>'media/m$1-$2/report'
'^media\.php\?do=comment_edit&cmt=(.*)&mid=(\d+)&title=(.*)'=>'media/m$2-$3/c$1'
//'^media\.php\do=details&mid=(\d+)&title=(.*)&pid=(\d+)'=>'media/m$1-$2/p$3'
'^media\.php\?do=details&mid=(\d+)&title=(.*)'=>'media/m$1-$2'
// '^media/p(\d+).*/edit$ media.php?do=playlist_edit&pid=$1 [QSA]'
// '^media/p(\d+).* media.php?do=playlist&pid=$1 [QSA]'
'^media\.php\?do=playlist&pid=(\d+)'=>'media/p$1'
'^media\.php\?do=category&cid=(\d+)&title=(.*)'=>'media/c$1-$2'
'^media\.php\?do=user&uid=(\d+)&title=(.*)'=>'media/u$1-$2'
'^media\.php\?do=tag&tid=(.*)'=>'media/tag/$1'
'^media\.php\?do=results&query=(.*)'=>'media/results/$1'
'^media\.php\?do=advresults&query=(.*)'=>'^media/advresults/$1'
'^media\.php\?do=letter&query=(.*)'=>'media/letter/$1'
'^media\.php\?do=browse'=>'media/browse'
'^media\.php\?do=search'=>'media/search'
'^media\.php\?do=random'=>'media/random'
'^media\.php\?do=submit'=>'media/submit'
'^media\.php\?do=tagcloud'=>'media/tagcloud'
'^media\.php\?do=playlists'=>'media/playslists'
'^media\.php\?do=playlists_create'=>'media/pcreate'
'^media\.php\?do=playlists_mine'=>'media/pmine'
'^media\.php\?do=favorites'=>'media/favorites'
'^media\.php\?do=subscriptions'=>'media/subscriptions'
// '^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$1 [QSA]'
// '^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$1 [QSA]'
// '^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$1 [QSA]'
// '^media/admin/(\w+).* media.php?do=admin_$1 [QSA]'

You'll notice I have the playlists and admin area's commented out.

I couldn't figure out the playlist custom rewrites properly but don't even have these navigation items active as that is not the purpose of the directory for us. If you can figure it out, feel free to do so and update for others.

In regards to the administrate options. I left this as is because I manually added the navigation links for these already in my navbar and didn't bother with them.

No edits to any PHP file were needed to make these friendly links work, just redoing the .htaccess file listings to make them in the proper format for vbSEO.

Hope this helps someone.

You can view the friendly URL's working here: http://www.iplaycod.com/forums/media.php

lafsunlmtd 05-31-2012 01:59 PM

Add Facebook Like and Send option for each media listing:

First step is to go to https://developers.facebook.com/docs.../plugins/like/ and set up your settings as you would like. I chose the Like & Send option.

Add the code they mention to add right after the body tag in the header template. The code where you want to display the like button:

Style Manager > Edit Templates > 8WayRun.com Media Library Templates > 8WR_media_details

Find:

Code:

                        <b>{vb:phrase media_tags}:</b><br />
                        <ul class="commalist">
                                {vb:raw media.tags}
                        </ul>

Add After:

Code:

<br /><br />
 <div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>

Should result in: http://gyazo.com/fc481f72d40f0f0099f59b8f32039dcd

https://vborg.vbsupport.ru/external/...png?1338475849

Bergler 05-31-2012 03:18 PM

Does anyone have a link to the current files to install this mod, thanks in advance, cheers.


All times are GMT. The time now is 10:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03414 seconds
  • Memory Usage 1,855KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete