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)
-   -   Miscellaneous Hacks - CES Parser Permissions (https://vborg.vbsupport.ru/showthread.php?t=138476)

punjabi.king 08-26-2008 02:21 AM

there is a bug in shoutbox and postbit
im using 3.27.2 version can anyone help?

nerofix 08-26-2008 09:39 AM

Quote:

Originally Posted by punjabi.king (Post 1607025)
there is a bug in shoutbox and postbit
im using 3.27.2 version can anyone help?

Only with some more information I think. What kind of bug?

thincom2000 08-26-2008 05:48 PM

The shoutbox fix is located somewhere in this thread. Just do a "Search this mod" for "shoutbox"

As for using raw custom profile fields, I know I have done this for some other members, but don't have a copy of the code myself. If they would be generous enough to post the plugin (member_complete) that I wrote for them, it would help some more people.

nerofix 08-26-2008 07:12 PM

Okay I got it,

I've wrote a new plugin in member_start and added following code:

Code:

if ($userinfo['fieldX'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['fieldX'] = $bbcode_parser->parse($userinfo['fieldX'],0, true);
}

( X = number of profile field )

Works great in vB 3.7.3 :)

thincom2000 08-26-2008 08:02 PM

Not exactly the official fix, and I'm not sure if it uses the permissions correctly, but I'm glad you worked out something.

nerofix 08-26-2008 08:32 PM

I'm not a plugin professional, so this plugin might be not perfect that's right. I just thought that you perhaps could build a such or better plugin into your $vbulletin->options['ces_parse_fields'] .

:)

punjabi.king 08-26-2008 10:54 PM

its not working for me, the first bug is fixed as thincom2000 replied about shoutbox

but now im trying to let members embed youtube video
but whatever they enter stays the same intead of embeding... please help

nerofix 08-26-2008 11:25 PM

How do you try to embed the youtube video? With <embed> code or BB-code ?

Did you already checked the CES Parser settings in your vbulletin options? Remember to enter the profile field number of the field you want to be parsed.

punjabi.king 08-26-2008 11:28 PM

^ yeah i checked settings in vbulletion options
i want them to embed it using <embed>

do u have a solution??

nerofix 08-26-2008 11:53 PM

I'd have 2 solutions.

The first is not recommend do to higher security risk, but is your choice:

1.) Check your CES Parser Settings again and in the field "Banned HTML tags" remove the word "embed". Then save.

The problem here is that your users can now embed youtube videos, but also they can embed every other flash-applications which can be a security risk.

The second solution I use, ..

2.) Add new BB-Code:

Go Admin CP -> Custom BB Codes -> Add New BB Code

Title - YouTube
Tag - youtube
Replacement:
Code:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Example - [youtube]zvC8GpOL4Lk[/youtube]

Description - Use the movie code from the YouTube URL in your browser.
For example, http://www.youtube.com/watch?v=zvC8GpOL4Lk


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

Now after adding the new BB-Code, just enter [youtube]zvC8GpOL4Lk[/youtube] in your profile field and it should work.


All times are GMT. The time now is 12:35 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.01348 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)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
  • (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