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)

NeverBored 08-27-2008 09:28 PM

Damn, I'm late to the party with a feature request... I would like to be able to use if conditionals in the container HTML and replacement HTML boxes... Would that add any strain on performance?

Anyhow, cool to see you've updated this mod. It's a great mod, and my site is more or less actually built around it. Your work is appreciated.

Jhonnyf 08-27-2008 09:46 PM

Fine, Thank You!

MadK 08-27-2008 09:58 PM

Wow, great. Thank you! :)

Old user of 1.x series, new user of 2.x series! (:p)

TCattitude 08-28-2008 12:11 AM

Installed, updated, and nominated.
Welcome back (even if it's for a short time) Geek ;)

A bug (i think): Post a message with quotes in them. This double quotes: " " " " "
Then, quote that message. A lot of \ (back slashes) appear before every quote " in the quoted text.
If i disable the new AME, that don't happen.

Deepdog009 08-28-2008 01:12 AM

I need this ;)
Groovy Baby :cool:

furst 08-28-2008 02:47 AM

I just updated to the latest version and it's totally messing up my postbit every time someone posts a video link. I haven't modified the container at all.

http://www.bowrd.com/showthread.php?t=61686
(link is fine, but rest of the site is NWS)

TheInsaneManiac 08-28-2008 02:52 AM

Dude you are awesome. Now I don't have to buy Passive Vid. Plus yours supports more sites!

tormodg 08-28-2008 03:46 AM

Fantastic, Geek!!!! We miss you.

The Geek 08-28-2008 05:07 AM

Quote:

Originally Posted by furst (Post 1608678)
I just updated to the latest version and it's totally messing up my postbit every time someone posts a video link. I haven't modified the container at all.

http://www.bowrd.com/showthread.php?t=61686
(link is fine, but rest of the site is NWS)

Looks like you have duplicate definitions (i.e. more than one youtube.com definition) which are clashing. Make sure you only have 1 of each type.

Brood 08-28-2008 05:16 AM

getting a database error everytime i click the 'go advanced' button on posting visitor messages :(

Code:

Database error in vBulletin 3.7.3:

Invalid SQL:

                        (
                                SELECT
                                        visitormessage.*, visitormessage.dateline AS pmdateline, user.*, visitormessage.ipaddress AS messageipaddress
                                        ,deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
                                        ,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight
                                        ,ame_flag
                                FROM visitormessage AS visitormessage
                                LEFT JOIN user AS user ON (visitormessage.postuserid = user.userid)
                                LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
                                LEFT JOIN deletionlog AS deletionlog ON (visitormessage.vmid = deletionlog.primaryid AND deletionlog.type = 'visitormessage')
                               
                                WHERE visitormessage.userid = 10431 AND visitormessage.postuserid = 381 AND visitormessage.state IN ('visible','moderation','deleted')
                               
                        )
                        UNION
                        (
                                SELECT
                                        visitormessage.*, visitormessage.dateline AS pmdateline, user.*, visitormessage.ipaddress AS messageipaddress
                                        ,deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
                                        ,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight
                                       
                                FROM visitormessage AS visitormessage
                                LEFT JOIN user AS user ON (visitormessage.postuserid = user.userid)
                                LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
                                LEFT JOIN deletionlog AS deletionlog ON (visitormessage.vmid = deletionlog.primaryid AND deletionlog.type = 'visitormessage')
                               
                                WHERE visitormessage.userid = 381 AND visitormessage.postuserid = 10431 AND visitormessage.state IN ('visible','moderation','deleted')
                               
                        )
                        ORDER BY pmdateline DESC;

MySQL Error  : The used SELECT statements have a different number of columns
Error Number  : 1222

MySQL Version : 4.1.22-standard


The Geek 08-28-2008 05:21 AM

Quote:

Originally Posted by TCattitude (Post 1608597)
Installed, updated, and nominated.
Welcome back (even if it's for a short time) Geek ;)

A bug (i think): Post a message with quotes in them. This double quotes: " " " " "
Then, quote that message. A lot of \ (back slashes) appear before every quote " in the quoted text.
If i disable the new AME, that don't happen.

Sorted in 2.0.2

To upgrade, just replace your old includes/ame_bbcode.php file with the one found in the 2.0.2 package.

Thanks!

GoTTi 08-28-2008 05:22 AM

/me bows before Geek.

how you been? everything ok over there?

where is the download for this mod? im looking and dont see.

GoTTi 08-28-2008 05:23 AM

nevermind, i see you uploaded it as i was typing #52.

so are you back in action with your mods and is everything with the business squared away? hope all is good dude.

GoTTi 08-28-2008 05:25 AM

fyi bossman, the version 2.0.2 is not showing that in the plugins when i just upgraded. it says 2.0.0

The Geek 08-28-2008 05:38 AM

Quote:

Originally Posted by Brood (Post 1608771)
getting a database error everytime i click the 'go advanced' button on posting visitor messages :(

Brood, I updated the 2.0.2 package with the fixed plugin.

To upgrade to 2.0.2 from an earlier 2.x version...

Replace your old includes/ame_bbcode.php and re-import the product-ame.xml (choosing the option to overwrite)

Thanks

The Geek 08-28-2008 05:40 AM

Quote:

Originally Posted by GoTTi (Post 1608775)
how you been? everything ok over there?

All is cool here. Business is good and we are cooking on gas :D
Won't be returning to coding though, I just updated this as I'm on vacation and its my way of unwinding (how twisted am I :D)

Good to see all the oldies still hanging around :)

The Geek 08-28-2008 05:44 AM

Quote:

Originally Posted by NeverBored (Post 1608513)
Damn, I'm late to the party with a feature request... I would like to be able to use if conditionals in the container HTML and replacement HTML boxes... Would that add any strain on performance?

Its a great suggestion, just not sure if it will get implemented in this version. I would much rather be using templates for this and thinking about it... it may help resolve the 'different sized locations' issue.

I'll check into it though as I'm totally with you :)

Brood 08-28-2008 05:53 AM

seems to be working, thanks, great hack

Doctor Death 08-28-2008 08:36 AM

This is the greatest addon!

I also would like you to consider a feature. In the options control panel, I would suggest the ability to check all or some definitions and then the ability to delete those checked. This gives you the ability to rapidly refresh definitions by deleting and reinstalling when they are updated.

Thanks for listening.

Hornstar 08-28-2008 08:36 AM

My youtube vid after I press play is just having the loading sign go around and round. It is not playing. It has always worked good until I updated.

Any ideas?

Does it work for anyone else here http://www.gamerzneeds.net/forums/bl...-profiles-339/

edit: it is working in IE but not in FF3 for me. it appears to only be youtube for now as well.

MindStar 08-28-2008 09:04 AM

Excellent!

Would you consider using cURL instead of file_get_contents to get the title of the video file?

* we have disabled file_get_contents on our server due to the security risks with using file_get_contents.

Here's a link to an example of using cURL to replace a call to file_get_contents

http://uk3.php.net/manual/en/functio...ents.php#82255

The Geek 08-28-2008 09:38 AM

Quote:

Originally Posted by hornstar1337 (Post 1608861)
My youtube vid after I press play is just having the loading sign go around and round. It is not playing. It has always worked good until I updated.

Any ideas?

Does it work for anyone else here http://www.gamerzneeds.net/forums/bl...-profiles-339/

edit: it is working in IE but not in FF3 for me. it appears to only be youtube for now as well.

Works for me in FF3 :)

The Geek 08-28-2008 09:38 AM

Quote:

Originally Posted by MindStar (Post 1608892)
Excellent!

Would you consider using cURL instead of file_get_contents to get the title of the video file?

* we have disabled file_get_contents on our server due to the security risks with using file_get_contents.

Here's a link to an example of using cURL to replace a call to file_get_contents

http://uk3.php.net/manual/en/functio...ents.php#82255

Ill look into it :)

Subah 08-28-2008 09:54 AM

Thanks for the upgrade again :)

The Geek 08-28-2008 09:55 AM

Quote:

Originally Posted by NeverBored (Post 1608513)
Damn, I'm late to the party with a feature request... I would like to be able to use if conditionals in the container HTML and replacement HTML boxes... Would that add any strain on performance?

Anyhow, cool to see you've updated this mod. It's a great mod, and my site is more or less actually built around it. Your work is appreciated.

Just a quick update to say that, I just tested this out. Its pretty easy to implement and I will most likely do it, however the key problem with putting conditionals in is that postbit contents get cached once they are parsed. So say for instance you wanted to show a container for logged in users, but just the URL for non logged in users. If the first person to view it is a logged in user, then the conditional wont be run again until it expires from the cache and the next person views it. There are other ways to do this, just not really ideal with a conditional.

I could most likely force AME'ed posts to bypass the cache, but I don't think the performance trade off is worth it.

So...

I will most likely be switching to templates in the future as they give a lot better flexibility but you would have to be mindful of the cache for conditionals.

verino 08-28-2008 10:11 AM

thank's for the mod :up: installed

YopY 08-28-2008 11:05 AM

I has question. In an earlier version of AME, it caused an error when posting or editing a post containing PHP code (i.e. code examples), probably due to the regexes AME (I assume) uses getting triggered by PHP code. Is that issue known, and if so, has it been fixxxed in this version (or an earlier one)?

The Geek 08-28-2008 12:00 PM

Quote:

Originally Posted by YopY (Post 1608958)
I has question. In an earlier version of AME, it caused an error when posting or editing a post containing PHP code (i.e. code examples), probably due to the regexes AME (I assume) uses getting triggered by PHP code. Is that issue known, and if so, has it been fixxxed in this version (or an earlier one)?

If you mean php and other code blocks, the issue had been sorted :)

entertain 08-28-2008 12:03 PM

Hi Geek,

do you know why ä,ö,ü,ß and so on will not be displayed correctly in the video header?

Greetings.

The Geek 08-28-2008 12:06 PM

I really don't know enough about character sets, but try editing ame_bbcode.php and change:
PHP Code:

$title utf8_decode($title); 

to

PHP Code:

//$title = utf8_decode($title); 

Let me know if that helps

(and click install if you get a sec :D )

entertain 08-28-2008 12:15 PM

I'm still using the old version and there i can not find the code you have posted. :o

Should I update? :D

The Geek 08-28-2008 12:17 PM

Quote:

Originally Posted by entertain (Post 1608993)
I'm still using the old version and there i can not find the code you have posted. :o

Should I update? :D

lol. Yea. In fact he new version should work for you without the above workaround. The above code was put in to take care of most special character cases.

HTHs

entertain 08-28-2008 12:19 PM

ehhm - is it necessary to reinstall the product or can i also overwrite it?

The Geek 08-28-2008 12:21 PM

Quote:

Originally Posted by entertain (Post 1608997)
ehhm - is it necessary to reinstall the product or can i also overwrite it?

ofc, just upload new files and import the new product (choosing to overwrite) as per instructions in the first post.

entertain 08-28-2008 12:28 PM

okay - the characters are still not working. I also did the code edit like you have posted it in post #70.

& is also not working and is displayed in its html tag &

The Geek 08-28-2008 12:30 PM

Quote:

Originally Posted by entertain (Post 1609001)
okay - the characters are still not working. I also did the code edit like you have posted it in post #70.

& is also not working and is displayed in his html tag &

But are the other characters showing correctly?
BTW: post a URL as an example please :)

entertain 08-28-2008 12:36 PM

Yes, the rest is displayed correctly - like there was no change.

Here an example: http://www.youtube.com/watch?v=51V1VMkuyx0

Look at the & in the title. ;)

Digital Jedi 08-28-2008 12:48 PM

Quote:

Originally Posted by furst (Post 1608678)
I just updated to the latest version and it's totally messing up my postbit every time someone posts a video link. I haven't modified the container at all.

http://www.bowrd.com/showthread.php?t=61686
(link is fine, but rest of the site is NWS)

That's a case of more then one YouTube definitions. Remember that importing new ones does not overwrite old ones with same name. So you could have multiple instances of the same definition conflicting.


Quote:

Originally Posted by Doctor Death (Post 1608860)
This is the greatest addon!

I also would like you to consider a feature. In the options control panel, I would suggest the ability to check all or some definitions and then the ability to delete those checked. This gives you the ability to rapidly refresh definitions by deleting and reinstalling when they are updated.

Thanks for listening.

Check the CP Doc. This is one of the new features. :)


Quote:

Originally Posted by hornstar1337 (Post 1608861)
My youtube vid after I press play is just having the loading sign go around and round. It is not playing. It has always worked good until I updated.

Any ideas?

Does it work for anyone else here http://www.gamerzneeds.net/forums/bl...-profiles-339/

edit: it is working in IE but not in FF3 for me. it appears to only be youtube for now as well.

The endlessly looping video is very often a YouTube (or whichever site your dealing with) problem. And I believe it has to do with individual browser sessions.



Quote:

Originally Posted by The Geek (Post 1608928)
Just a quick update to say that, I just tested this out. Its pretty easy to implement and I will most likely do it, however the key problem with putting conditionals in is that postbit contents get cached once they are parsed. So say for instance you wanted to show a container for logged in users, but just the URL for non logged in users. If the first person to view it is a logged in user, then the conditional wont be run again until it expires from the cache and the next person views it. There are other ways to do this, just not really ideal with a conditional.

I could most likely force AME'ed posts to bypass the cache, but I don't think the performance trade off is worth it.

So...

I will most likely be switching to templates in the future as they give a lot better flexibility but you would have to be mindful of the cache for conditionals.

I had thought of suggesting this too, but I just presumed it was out of the scope of things. If you can do it though, would this help address the problem with sites that use more then one media type? Quite a few sites I've had to put on the no-fly list because they would sometimes use a standard flash player, but then some videos would be Windows Media files. Would I be able to use a conditional to detect which is which?

hotwheels 08-28-2008 01:13 PM

It's great to see ya back The Geek

furst 08-28-2008 01:50 PM

Quote:

Originally Posted by The Geek (Post 1608769)
Looks like you have duplicate definitions (i.e. more than one youtube.com definition) which are clashing. Make sure you only have 1 of each type.

Thanks Geek, you're the best.


All times are GMT. The time now is 04:18 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.02049 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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