vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - AME 2.0 -Auto Media Embedding for posts, blogs, visitor and group messsages (https://vborg.vbsupport.ru/showthread.php?t=189267)

Digital Jedi 11-13-2008 11:45 PM

Quote:

Originally Posted by punchbowl (Post 1665218)
HELP!

to manually undo all the table changes what do I do?!

any ideas?!

tia

or can I over write?

[ignore - think i'm ok! - I may return!]

Table changes?

punchbowl 11-14-2008 12:42 AM

I fixed it in the end. My post table was f*cked. Think there was an interruption as it was updating the post table:o (ok I thought it had timed out trying to change a million rows and may have clciked control panel home link)

Totally my own fault but managed to fix it eventually
http://www.vbulletin.com/forum/showthread.php?p=1651981

ALTER TABLE post DROP FIELD ame_flag; wouldn't have worked anyway, the table was corrupt.

anyway managed to drop the field and reimport the product (used over write) and things seem good now. Woot!

phew:D

sweeps78 11-14-2008 12:47 PM

Hi,

I'm getting a validation error in my news block of vbAdvanced coming from AME:

http://validator.w3.org/check?uri=ht....591#line-3244

It's inserting the number 425 (which is the default width setting in AME) inside a table tag.


EDIT

Okay, so I found what's wrong. It's in the ame_container template. The $ameinfo[width] is sitting all by itself inside the table tag. I can remove it, but something tells me it's supposed to be in there, but just in a width="$ameinfo[width]" setup... What is the correct code?

PHP Code:

<div align="center">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]$ameinfo[widthstyle="margin:10px 0">
<
thead>
        <
tr>
                <
td class="tcat" colspan="2" style="text-align:center">
                        <
a href="$ameinfo[url]title="$ameinfo[title]target="_blank">$ameinfo[title]</a>
                </
td>
        </
tr>
</
thead>
<
tbody>
        <
tr>
                <
td class="panelsurround" align="center">
$ameinfo[code]
</
td>
        </
tr>
</
tbody>
</
table></div


sweeps78 11-14-2008 01:53 PM

FYI, I found a validation error in the default YouTube definition:

It's currently:
PHP Code:

<object width="$ameinfo[width]height="$ameinfo[height]">
<
param name=''movie'' value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1"></param>
<
param name="allowFullScreen" value="true"></param>
<
embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="$ameinfo[width]height="$ameinfo[height]wmode="transparent"></embed></object

but should be:
PHP Code:

<object width="$ameinfo[width]height="$ameinfo[height]">
<
param name="movie" value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1"></param>
<
param name="allowFullScreen" value="true"></param>
<
embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="$ameinfo[width]height="$ameinfo[height]wmode="transparent"></embed></object


note that

param name=''movie''

changed to

param name="movie"

It may look the same, but it was previously two sets of single quotes and in order to properly validate, it needed to be changed to one set of double quotes.


EDIT:

Okay, so now that I changed the definition, the final result (code) is all screwy... It's now displaying like this:

PHP Code:

param name="" movie="" 

even though this is what I have entered in my Replacement section:
PHP Code:

<object width="$ameinfo[width]height="$ameinfo[height]">
<
param name="movie" value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1"></param>
<
param name="allowFullScreen" value="true"></param>
<
embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="$ameinfo[width]height="$ameinfo[height]wmode="transparent"></embed></object

Was there another separate place that I was suppose to edit?

Digital Jedi 11-14-2008 04:11 PM

Try the updated YouTube definition in either one of my threads. For your first question, $ameinfo[width] is supposed to convert to just the width number, so it needs to be inside a width element:

Code:

width="$ameinfo[width]"

sweeps78 11-14-2008 06:42 PM

I changed it, but it doesn't change the code in existing posts... Is there a script or something that I need to run to update existing posts? I didn't try updating the YouTube definition yet.

Digital Jedi 11-14-2008 07:17 PM

If I'm not mistaken, I don't think the code in posts will be rebuilt until the post is saved again.

sweeps78 11-14-2008 08:27 PM

yep, re-saving the post did it, thanks DJ!

Now, if there was only a way to have validated YouTube embed code:(

Digital Jedi 11-15-2008 02:16 AM

If you want to try and rebuild the YouTube code while making it validate, have a look at this article. I've done it with my home page player, but I've not bothered with redoing the definitions, simply because this wouldn't work with all players.

Embeding Flash While Supporting Standards

chikkoo 11-16-2008 08:12 PM

Hi...

I was using goldbrick video mod, just wanted to try this mod so that I can play Daily Motion videos. But it is not working for me.

Do I have to remove the goldbrick mod?

Somebody guide me, how this works?


All times are GMT. The time now is 06:31 PM.

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.01720 seconds
  • Memory Usage 1,780KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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