vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - AME3 - Auto Media Embeding and Video Extender (https://vborg.vbsupport.ru/showthread.php?t=230707)

masons 12-23-2009 07:38 AM

is this not already standard in vb4?
Would it not make more sense to write a mod to extend the current available sources, rather then adding mods that do the same thing?

The Geek 12-23-2009 07:44 AM

Quote:

Originally Posted by masons (Post 1936138)
is this not already standard in vb4?
Would it not make more sense to write a mod to extend the current available sources, rather then adding mods that do the same thing?

Huh? That is what AME does, but thanks for your guidance on what would make more sense. Looks like I beat you to it?

Boots 12-23-2009 10:11 AM

Is there a query I can run to convert AME tags to the new video tags without installing this mod?

The Geek 12-23-2009 10:14 AM

Quote:

Originally Posted by Boots (Post 1936213)
Is there a query I can run to convert AME tags to the new video tags without installing this mod?

nope. You can of course uninstall AME2x and choose to revert AME to url's if you want. You could then go through each post and re-video them.

Boots 12-23-2009 11:25 AM

I uninstalled v2 so i have a bunch of [AME] tags. If i install v3 will it convert them to video tags?

Boots 12-23-2009 11:28 AM

ame_flag on the posts table. Does that indicate the post contains an ame tag?

BBR-APBT 12-23-2009 01:12 PM

Quote:

Originally Posted by Boots (Post 1936267)
ame_flag on the posts table. Does that indicate the post contains an ame tag?

As he said Install AME 2.5 on you 4.0 board. Do not visit any threads. Go directly to the adminCP go to the AME tools. Press the link that says convert post to url bbcode.

All your videos will be converted to url's

You could just install AME 3 and Convert all your AME tags to Video tags and uninstall the mod.

Cant see why you wouldn't want this to work the same for your members like in 3.8.
Just post a link hell with pressing the bbcode button. My members love it.

lolo? 12-23-2009 01:14 PM

hello i have this error when i edit on post
Quote:

Fatal error: Call to a member function query_write() on a non-object in /var/www/********/includes/ame_prep.php on line 297

The Geek 12-23-2009 01:24 PM

Are you using version beta 2a? If so, did you also reimport the product xml?

movslow 12-23-2009 01:28 PM

Followed instructions.

Did a test run before the actual update, received this.

Quote:

post 37007:
Fatal error: Cannot redeclare class AME_editor_prep in /home/.bartles/xxxx/xxxx/forum/includes/ame_prep.php on line 209
:confused:

The Geek 12-23-2009 01:28 PM

Quote:

Originally Posted by Boots (Post 1936264)
I uninstalled v2 so i have a bunch of [AME] tags. If i install v3 will it convert them to video tags?

AME3 does have this ability. Though the readme goes deeper into this the basic process to transition from AME2x is:

1- Uninstall AME2x before or after your vb4 upgrade (note AME2x will not work on vb4 though)
2- This will leave [ame] tags in your posts
3- Install AME3
4- Go to the Tools section of your AME ACP page and choose rebuild posts/blogs/etc...
5- This process can convert the old AME tags into [video] tags OR [url] tags if there is not a matching definition.

HTHs

lolo? 12-23-2009 01:31 PM

i'm running in vb4 gold pl1

The Geek 12-23-2009 01:43 PM

Quote:

Originally Posted by movslow (Post 1936348)
Followed instructions.

Did a test run before the actual update, received this.



:confused:

hmmm... that doesn't make any sense. I only ever use require_once to include class files and the calls look identical.

Can you edit your AME - Auto COnvert URLs plugin and replace it with this:

PHP Code:

if (class_exists("vB"))
{
    
$reg = &vB::$vbulletin;
}
else
{
    global 
$vbulletin;
    
$reg = &$vbulletin;
}

if (!
is_object($reg->AME))
{
    if (!
class_exists("AME_prep_base"))
    {
        require_once(
DIR '/includes/ame_prep.php');
    }
    
    
$reg->AME    = new AME_message_prep($reg);

}

$reg->AME->preparse($pagetext);
$providers $reg->AME->info['providers']; 

And then try it again? This just doesn't assert the class.

The Geek 12-23-2009 01:45 PM

Quote:

Originally Posted by lolo? (Post 1936354)
i'm running in vb4 gold pl1

Sorry, I mean: Are you using the AME3 Beta2a package?

movslow 12-23-2009 01:53 PM

Quote:

Originally Posted by The Geek (Post 1936372)
hmmm... that doesn't make any sense. I only ever use require_once to include class files and the calls look identical.

Can you edit your AME - Auto COnvert URLs plugin and replace it with this:

PHP Code:

if (class_exists("vB"))
{
    
$reg = &vB::$vbulletin;
}
else
{
    global 
$vbulletin;
    
$reg = &$vbulletin;
}

if (!
is_object($reg->AME))
{
    if (!
class_exists("AME_prep_base"))
    {
        require_once(
DIR '/includes/ame_prep.php');
    }
    
    
$reg->AME    = new AME_message_prep($reg);

}

$reg->AME->preparse($pagetext);
$providers $reg->AME->info['providers']; 

And then try it again? This just doesn't assert the class.

Sure, but where is it?

Quote:

Can you edit your AME - Auto COnvert URLs plugin and replace it with this:
:confused:

The Geek 12-23-2009 02:05 PM

In your list of plugins. Admin CP > Plugins & Products > Manage Plugins

movslow 12-23-2009 02:51 PM

Quote:

Originally Posted by The Geek (Post 1936398)
In your list of plugins. Admin CP > Plugins & Products > Manage Plugins

Done, same exact issue.
:confused:

The Geek 12-23-2009 02:55 PM

If you want to PM me temporary admincp access, I will take a look, but im not sure what the problem could be. I can't reporduce it and it doesn't make any sense :(

BBR-APBT 12-23-2009 03:00 PM

Looks like the problem I had before I re-uploaded the new files.

My ftp software did not over write all files. So I have now started deleting the files before new uploading the new ones.

movslow 12-23-2009 03:33 PM

Quote:

Originally Posted by BBR-APBT (Post 1936447)
Looks like the problem I had before I re-uploaded the new files.

My ftp software did not over write all files. So I have now started deleting the files before new uploading the new ones.

I went through the install pdf and removed the old files per the instructions.

I'll try re-uploading the stuff, set everything to overwrite and reinstall the product file, see what happens and report back.

Sorry for the hassle.

movslow 12-23-2009 03:40 PM

Negative on the reinstall.

:(

Btw, when it's "installed", you can't even make a post, it shows the same error.

:confused:

The Geek 12-23-2009 03:42 PM

do you have the file cache on?

movslow 12-23-2009 03:43 PM

Tried again, this time I didn't set the cache, left it NO, the TEST worked ok?

FYI, I have the VB4 Supercharged caching system installed if that matters.

The Geek 12-23-2009 03:49 PM

hmmmm. What happens if you disable it and turn on the cache?

The Geek 12-23-2009 03:52 PM

Actually... Ill bet cold hard cache (see what I did there? A pun!) that the ame_prep.php file in your file cache folder is the one that should go into the includes folder.

That would cause this problem.

Delete any *.php file in your ame cache folder and resave your settings

movslow 12-23-2009 03:55 PM

It's working, for new video's, but I haven't turned on the ame cache, or rebuilt any previous video urls from the old ame 2.5x

movslow 12-23-2009 03:58 PM

Turned on ame file cache, same error occured.

Turned it off, back to working fine.

Thoughts?
:confused:

movslow 12-23-2009 04:01 PM

Quote:

Originally Posted by The Geek (Post 1936510)
Actually... Ill bet cold hard cache (see what I did there? A pun!) that the ame_prep.php file in your file cache folder is the one that should go into the includes folder.

That would cause this problem.

Delete any *.php file in your ame cache folder and resave your settings

My amecache folder is empty.

All files are where they need to go.

If I go to tools and update file cache, it comes back w/could not find ame_saved, of course this is with the cache turned off.

The Geek 12-23-2009 04:03 PM

Yes, I am positive that you have accidently copied the includes/ame_prep.php file into the ame folder which has overwritten the cache file with a code file.

Partly my mistake for naming them both ame_cache.php
I have renamed the cache file for the next release.

By default, the ame cache folder is located in your forum directory and it is called ame. If that is still the location of your file cache, delete the ame_prep.php file in there and resave your settings.

The Geek 12-23-2009 04:04 PM

Quote:

Originally Posted by movslow (Post 1936528)
My amecache folder is empty.

All files are where they need to go.

If I go to tools and update file cache, it comes back w/could not find ame_saved, of course this is with the cache turned off.

amecache is the OLD ame file cache folder. Is there any way you can PM me a temporary admincp account?

movslow 12-23-2009 04:17 PM

Quote:

Originally Posted by The Geek (Post 1936530)
Yes, I am positive that you have accidently copied the includes/ame_prep.php file into the ame folder which has overwritten the cache file with a code file.

Partly my mistake for naming them both ame_cache.php
I have renamed the cache file for the next release.

By default, the ame cache folder is located in your forum directory and it is called ame. If that is still the location of your file cache, delete the ame_prep.php file in there and resave your settings.

Negative.

I copied over the 3 folders w/the files inside, instead of individually uploading them to resolve any possible error on my part.

PM sent.

athlon64bit 12-23-2009 05:20 PM

Quote:

Fatal error: Call to a member function query_write() on a non-object in D:\virtualservers\*****\*******\wwwroot\forum\incl udes\ame_prep.php on line 297
This error happens when editing a post, using AME3 beta 2a.

The Geek 12-23-2009 05:29 PM

Quote:

Originally Posted by athlon64bit (Post 1936613)
This error happens when editing a post, using AME3 beta 2a.

Are you using the file cache? If so, can you test after turning it off?

movslow 12-23-2009 05:30 PM

Thanks for all the help.

:up:

Boots 12-23-2009 06:49 PM

Quote:

Originally Posted by The Geek (Post 1936350)
AME3 does have this ability. Though the readme goes deeper into this the basic process to transition from AME2x is:

1- Uninstall AME2x before or after your vb4 upgrade (note AME2x will not work on vb4 though)
2- This will leave [ame] tags in your posts
3- Install AME3
4- Go to the Tools section of your AME ACP page and choose rebuild posts/blogs/etc...
5- This process can convert the old AME tags into [video] tags OR [url] tags if there is not a matching definition.

HTHs

Great. That's exactly what I want. Thanks :)

CThiessen 12-23-2009 07:06 PM

Quote:

Originally Posted by movslow (Post 1936520)
Turned on ame file cache, same error occured.

Turned it off, back to working fine.

Thoughts?
:confused:

Didi you put in the path?
Ever if you use the default it is necessary.

Christian

halkum 12-23-2009 08:08 PM

Quote:

Originally Posted by athlon64bit (Post 1936613)
This error happens when editing a post, using AME3 beta 2a.

I am getting the same error when editing as this guy ^

Code:

Fatal error: Call to a member function query_write() on a non-object in /home/halkum1/public_html/fmb/includes/ame_prep.php on line 297

The Geek 12-23-2009 08:19 PM

Quote:

Originally Posted by halkum (Post 1936774)
I am getting the same error when editing as this guy ^

Code:

Fatal error: Call to a member function query_write() on a non-object in /home/halkum1/public_html/fmb/includes/ame_prep.php on line 297

mmm. This seems to be a trend. Are you using the file cache?

halkum 12-23-2009 08:24 PM

Quote:

Originally Posted by The Geek (Post 1936785)
mmm. This seems to be a trend. Are you using the file cache?

No, I had to disable the file cache yesterday because it was giving me a blank white page when trying to reply to threads with videos in them.

The Geek 12-23-2009 08:28 PM

Quote:

Originally Posted by halkum (Post 1936787)
No, I had to disable the file cache yesterday because it was giving me a blank white page when trying to reply to threads with videos in them.

hmmm. Well I haven't been able to duplicate this on anyone yet. The only othe site I got to check out was actually fine. Can you PM me a temp admincp account?


All times are GMT. The time now is 12:04 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.02102 seconds
  • Memory Usage 1,847KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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