vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...) (https://vborg.vbsupport.ru/showthread.php?t=150863)

cynthetiq 08-06-2007 03:46 PM

I installed it and it works wonderfully.... except when posting code/quotes:

Quote:

Parse error: syntax error, unexpected T_BAD_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/.ember/rocesfam/belowdelancey.com/forum/includes/ame_bbcode.php(192) : regexp code on line 14

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_substitute(1, &quot;&quot;, &quot; Admin Log In As User version 2.1 FOR UPGRADE AND FRESH INSTALLATIONS! 1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite \&quot;YES\&quot; (admincp -&gt; Plugin System -&gt; Manage Products -&gt; [Add/Import Product]) 2) Do the template edits in header: find: -------------------------------------------------------------------- &lt;!-- logo --&gt; -------------------------------------------------------------------- BEFORE place this: -------------------------------------------------------------------- &lt;!-- Start Admin Log In As User --&gt; &lt;if condition=\&quot;$_REQUEST[\'admin_log_in_as_user\'] OR $_COOKIE[COOKIE_PREFIX . \'admin_log_in_as_user\']\&quot;&gt; &lt;div align=\&quot;center\&quot; style=\&quot;color: red; background-color: white; border: 1px solid black; padding:2px\&quot;&gt;&lt;a href=\&quot;$vboptions[forumhome].php?$session[ in /home/.ember/rocesfam/belowdelancey.com/forum/includes/ame_bbcode.php on line 192
what I was trying to post was the instructions.txt of Admin login as user. I don't anticipate this being problematic for most things, since the community shouldn't be posting code, but I figured I'd alreat you to it.

Quote:

Admin Log In As User version 2.1

FOR UPGRADE AND FRESH INSTALLATIONS!

1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

2) Do the template edits

in header:

find:
--------------------------------------------------------------------
<!-- logo -->
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php?$session[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphra se[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------



in MEMBERINFO:

find:
--------------------------------------------------------------------
<td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
</if>
<if condition="$show_admin_log_as_user_link">
<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&amp;admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></td>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------

Done.

Click 'install' in the thread you downloaded this from.

Done

harley_m 08-07-2007 08:57 AM

Sorry I have tried to find this by searching / in the help but cannot seem to work it out.

My members love this, but they want to know how they can link to those pages without it auto converting them. I tried to argue it posts a link with the video anyway, but they claim that not every time they want to show someone a video is an embedded video desirable.

Is there some way they can post a link, without it auto embedding if they choose?

Many Thanks so anyone who knows!

Harley

Dannyloski 08-07-2007 01:50 PM

iogames, yeah I guess vB.org could do that, but I doubt they will. Anyways, as far as where you send the donation to buy RegExBuddy - I really rather not get anything into my PayPal Account. Reason being I dont know how many people are willing to donate towards the fund for it. Everyone wants support for a specific site, but none of them want to chip in any money. If you gave me some money for it, then who knows how long it'll be before someone else gives money for it ... What if I never get the complete $39.95, I'd have to refund all the money back and it'll be too much of a hassle. I personally am not buying it or spending money out of my pocket because 1) I dont have the extra cash 2) I dont need AME to support any other site and 3) I am gonna be doing the RegExs for you guys for free, and I shouldn't have to spend money on getting the program.

WEBclay, yeah support for that can be added, if someone buys RegExBuddy and after The Geek explains the use of the new "Extracting RegEx" feature in AME

DiesellMinded, I've said it like a million times already ... buy a RegExBuddy License ...

harley_m, tell your users to uncheck the "Automatically embed media (requires automatic parsing of links in text to be on)." Checkbox that's under "Additional Options" when they hit "Post Reply" ... By default the box is automatically checked, they need to uncheck it if they dont the video links to be changed into the actual videos.

cynthetiq, wierd ... I get the same error when posting the following into a Post ... I guess the error has to do with posting a Quote that contains a [CODE ] inside of it ... Here's what I posted to get the error, maybe The Geek could use this for troubleshooting of this bug/error:

Code Used:
HTML Code:

[QUOTE]Admin Log In As User version 2.1

FOR UPGRADE AND FRESH INSTALLATIONS!

1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

2) Do the template edits

in header:

find:
--------------------------------------------------------------------
[CODE]<!-- logo -->[/CODE]
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
[CODE]<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php?$session[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->[/CODE]
--------------------------------------------------------------------



in MEMBERINFO:

find:
--------------------------------------------------------------------
[CODE]<td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>[/CODE]
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
[CODE]<!-- Start Admin Log In As User -->
</if>
<if condition="$show_admin_log_as_user_link">
<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&amp;admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></td>
<!-- End Admin Log In As User -->[/CODE]
--------------------------------------------------------------------

Done.

Click 'install' in the thread you downloaded this from.

Done[/QUOTE]

Should Display like this, but gives error instead:
Quote:

Admin Log In As User version 2.1

FOR UPGRADE AND FRESH INSTALLATIONS!

1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

2) Do the template edits

in header:

find:
--------------------------------------------------------------------
Code:

<!-- logo -->
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
Code:

<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php?$session[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->

--------------------------------------------------------------------



in MEMBERINFO:

find:
--------------------------------------------------------------------
Code:

<td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
Code:

<!-- Start Admin Log In As User -->
</if>
<if condition="$show_admin_log_as_user_link">
<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&amp;admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></td>
<!-- End Admin Log In As User -->

--------------------------------------------------------------------

Done.

Click 'install' in the thread you downloaded this from.

Done

MPDev 08-07-2007 04:48 PM

Code:

        //$this->_mediaInfo['htitle'] = $this->hTittle();
When including a video file directly; I got a blank page on this line. Not sure if it's an issue on my server or not; but the problem appears to be in trying to open a 30mb .mpg file to see if there is a <title> tag in there.

Dannyloski 08-07-2007 08:30 PM

^ It would help if you posted the video link and from which Video Site are you posting ...

MPDev 08-08-2007 12:40 AM

My bad, I meant to post this in the AnyMedia topic.

z0diac 08-08-2007 04:54 AM

Just installed it - working GREAT with my YouTube tests. The best thing about this script: EASY to install, no config to get confused about, CLEAN layout in your msgs.

tobias_t 08-08-2007 08:59 AM

Has anybody tried this under 3.6.5?

G3mInI 08-09-2007 12:32 PM

Can someone help me add the code necessary to get AOL Video to work with this mod?

I have this snippet from a posted AOL Video.

Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"  width="264" height="267"  id="dl_flvwidget" align="middle"><param name="movie" value="http://cdn.channel.aol.com/aolexd_widgets/aolwidget_9.swf" /><param name="FlashVars" value="settings=133329&pmms=1953601&previewImage=http://www.aolcdn.com/ch_newgd/videoplayertest.jpg&skin=139422&size=manual&autoPlay=0" /><embed src="http://cdn.channel.aol.com/aolexd_widgets/aolwidget_9.swf" quality="high" bgcolor="#ffffff" width="264" height="267" name="dl_flvwidget" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="settings=133329&pmms=1953601&previewImage=http://www.aolcdn.com/ch_newgd/videoplayertest.jpg&skin=139422&size=manual&autoPlay=0" ></embed></object>
Given all that information can someone help with figuring out how I would add this type of video to the AME mod?

Or is it not possible?

cheekymonk3y 08-09-2007 12:33 PM

i've been looking for this..................installed and thx

i'll be adding more videos to the mod for my site, have you made a post saying how, or should i just go digging through the code?


All times are GMT. The time now is 09:43 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.02166 seconds
  • Memory Usage 1,797KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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