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)
-   -   Major Additions - Zoints LOCAL. Social networking, enhanced profiles, blogs and MUCH more (https://vborg.vbsupport.ru/showthread.php?t=130946)

Zoints 11-03-2008 07:29 PM

Quote:

Originally Posted by alfahmad (Post 1656955)
Thanks for this nice software

is there any way of having branding free script ?

Regards,

Yes, you can purchase an unbranded license here.

jdelasko 11-08-2008 10:22 PM

Quote:

Originally Posted by Zoints (Post 1649443)
I can look into providing you with instructions in how exactly to allow embedded code into your blogs since your members like such a feature, but it would be at your own risk.

Any word on this?

jdelasko 11-09-2008 06:01 AM

Quote:

Originally Posted by Zoints (Post 1649443)
My Media is a completely different entity, it only allows only certain embed code to prevent any malicious code that could jeopardize your forum. The blog entries are a different story though, but we implemented HTMLPurifier to protect against any exploits....the My Media block does not use HTMLPurifier.

I can look into providing you with instructions in how exactly to allow embedded code into your blogs since your members like such a feature, but it would be at your own risk.


C'mon guys. This is driving me up the wall. The HTML Purifier bundled with the zoints package has a youtube filter that is supposed to allow embedding youtube videos.

Pretty please with sugar on top, can someone tell me how to make this work for blog posts?


Oh.... one more thing. The "My Media' block only allows one video to be embedded within the block??? I wouldn't call it useless, but it's close. All the more reason to tell me how to use youtube embedding. The docs on the HTML Purifier website that discuss youtube embedding do nothing but add to my frustration. They don't seem to think it's important to tell the end user exactly how to implement the feature. I guess I'm just suppposed to print the docs out, and sit on them.... maybe the knowledge will transfer to me via assmosis.

Zoints 11-09-2008 05:38 PM

My apologies. I had assumed that Anthony had contacted you privately with that information. I'll touch base with him right now on it!

Also, while the block is limited to one item, you can use as many different instances of the Media block as you want, so you can share as many media clips as you want.

-Paul Kemp

AN-net 11-12-2008 02:15 AM

Quote:

Originally Posted by jdelasko (Post 1662188)
C'mon guys. This is driving me up the wall. The HTML Purifier bundled with the zoints package has a youtube filter that is supposed to allow embedding youtube videos.

Pretty please with sugar on top, can someone tell me how to make this work for blog posts?


Oh.... one more thing. The "My Media' block only allows one video to be embedded within the block??? I wouldn't call it useless, but it's close. All the more reason to tell me how to use youtube embedding. The docs on the HTML Purifier website that discuss youtube embedding do nothing but add to my frustration. They don't seem to think it's important to tell the end user exactly how to implement the feature. I guess I'm just suppposed to print the docs out, and sit on them.... maybe the knowledge will transfer to me via assmosis.

Hi jdelasko, I am sorry I haven't gotten back to you. I have been very busy with some internal Zoints work and I haven't gotten time to sit down and look at the HTML Purifier code either in order to assist you in this. I will be able to take a peek at the code later this week probably fri. or sat. Again, I am sorry.

jdelasko 11-12-2008 03:50 AM

Quote:

Originally Posted by AN-net (Post 1663973)
Hi jdelasko, I am sorry I haven't gotten back to you. I have been very busy with some internal Zoints work and I haven't gotten time to sit down and look at the HTML Purifier code either in order to assist you in this. I will be able to take a peek at the code later this week probably fri. or sat. Again, I am sorry.

Thanks. I'd sure appreciate it. The docs on HTLMpurifier.org aren't much help.... most of the docs assume that the person reading them somehow magically can fill in the missing pieces. Here's a good example: http://htmlpurifier.org/dev/docs/enduser-youtube.html

They give an example of youtube filter code and then they make this statement:

And the corresponding usage:
Code:

<?php $config->set('Filter', 'YouTube', true); ?>
The above code/usage is the sum total of the directions they give on the implementation.

AN-net 11-15-2008 03:49 PM

Quote:

Originally Posted by jdelasko (Post 1664003)
Thanks. I'd sure appreciate it. The docs on HTLMpurifier.org aren't much help.... most of the docs assume that the person reading them somehow magically can fill in the missing pieces. Here's a good example: http://htmlpurifier.org/dev/docs/enduser-youtube.html

They give an example of youtube filter code and then they make this statement:

And the corresponding usage:
Code:

<?php $config->set('Filter', 'YouTube', true); ?>
The above code/usage is the sum total of the directions they give on the implementation.

Hi, I am unable to get it working 100% yet but this what I have so far.

Step 1:
Make sure you have YouTube.php in /z/includes/HTMLPurifier/Filter/

Step 2:
Open /z/includes/external_auth/vbulletin36.php

Find:
PHP Code:

$this->html_purifier =& new HTMLPurifier($config); 

Add After:
PHP Code:

require_once (ZDIR '/includes/HTMLPurifier/Filter/YouTube.php');
$this->html_purifier->addFilter(new HTMLPurifier_Filter_YouTube()); 

Step 3:
Make sure /z/js/tiny_mce/plugins/media/ exists.

Step 4:
Open /z/includes/template/header.php

Find:
PHP Code:

if(defined('SIMPLE_WYSIWYG')) {
                                
$ret .= "<script language=\"javascript\" type=\"text/javascript\" src=\"{$prefix}js/tiny_mce/tiny_mce.js\"></script>
<script language=\"javascript\" type=\"text/javascript\">
tinyMCE.init({
    mode : \"exact\",
    elements : \"z_tinymce_editor\",
    theme: \"simple\",
    visual: \"true\",
    width: \"650\"


});
</script>"


Replace with:
PHP Code:

if(defined('SIMPLE_WYSIWYG')) {
                                
$ret .= "<script language=\"javascript\" type=\"text/javascript\" src=\"{$prefix}js/tiny_mce/tiny_mce.js\"></script>
<script language=\"javascript\" type=\"text/javascript\">
tinyMCE.init({
    mode : \"exact\",
    elements : \"z_tinymce_editor\",
    theme: \"simple\",
    visual: \"true\",
    width: \"650\",
    plugins : \"media\",
    theme_advanced_buttons1_add : \"media\",
    cleanup: true


});
</script>"


Find:
PHP Code:

$ret .= "<script language=\"javascript\" type=\"text/javascript\" src=\"{$prefix}js/tiny_mce/tiny_mce.js\"></script>
                    <script language=\"javascript\" type=\"text/javascript\">
                    tinyMCE.init({
                        mode : \"exact\",
                        elements : \"z_tinymce_editor\",
                        theme: \"advanced\",
                        visual: \"true\",
                        theme_advanced_toolbar_location : \"top\",
                        theme_advanced_buttons1 : \"removeformat,separator,fontselect,fontsizeselect,separator,forecolor,separator, undo, redo\",
    theme_advanced_buttons2 : \"bold, italic,underline,separator,justifyleft,justifycenter,justifyright,separator,bullist,numlist,outdent,indent, separator,link,image,blockquote\",
                        theme_advanced_buttons3 : \"\",
                        width: \"650\"
                        
                    
                    });
                    </script>"


Replace With:
PHP Code:

$ret .= "<script language=\"javascript\" type=\"text/javascript\" src=\"{$prefix}js/tiny_mce/tiny_mce.js\"></script>
                    <script language=\"javascript\" type=\"text/javascript\">
                    tinyMCE.init({
                        mode : \"exact\",
                        elements : \"z_tinymce_editor\",
                        theme: \"advanced\",
                        visual: \"true\",
                        theme_advanced_toolbar_location : \"top\",
                        theme_advanced_buttons1 : \"removeformat,separator,fontselect,fontsizeselect,separator,forecolor,separator, undo, redo\",
    theme_advanced_buttons2 : \"bold, italic,underline,separator,justifyleft,justifycenter,justifyright,separator,bullist,numlist,outdent,indent, separator,link,image,blockquote\",
                        theme_advanced_buttons3 : \"media\",
                        width: \"650\",
                       plugins: \"media\",
                       media_types: \"swf\",
                       cleanup: true
                        
                    
                    });
                    </script>"


This will add a media button to the editor. From there you can point the url to youtube's video player for a specific video and you should be set. While the editor will let you post any type of swf media, HTMLPurifier will only allow youtube content. Posting object/embed directly does not work for initial submission. Previewing or editing will cause tiny mce to recognize it as a media file and process accordingly. That's really the only issue which I am looking into with Tiny MCE Support.

jdelasko 11-15-2008 05:09 PM

I get php errors when I add your code to /z/includes/external_auth/vbulletin36.php

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/major/public_html/forums/z/includes/HTMLPurifier/Filter.php on line 30

Below is the edited portion of my vbulletin36.php file:


Code:


  if ($this->html_purifier === null)
  {
  require_once(ZDIR . '/includes/HTMLPurifier.auto.php');
  $config =& HTMLPurifier_Config::createDefault();
  $config->set('HTML', 'DefinitionID', 'external.php parse_text');
  $config->set('HTML', 'DefinitionRev', 1);
  $config->set('Core', 'Encoding', 'ISO-8859-1');
  $this->html_purifier =& new HTMLPurifier($config);
  require_once (ZDIR . '/includes/HTMLPurifier/Filter/YouTube.php');
  $this->html_purifier->addFilter(new HTMLPurifier_Filter_YouTube()); 
  }

I had already addded the media plugin to Tinymce, as well as a few other plugins. Can you attach your vbulletin36.php, header.php, and YouTube.php files so that I can make a detailed comparison to my own files?

There are some differences between the YouTube.php file that is included in the Zoints release and the standard YouTube.php that comes with HTMLPurifier.

AN-net 11-15-2008 06:57 PM

here are my files. shouldn't be different.

jdelasko 11-16-2008 08:20 AM

OK!

I had made an edit in Filter.php that was messing things up and as soon as I reverted the file to the original version, everything was ok.

Thanks!!!!!!!!

As you can see, blog posts can have a lot more visual interest with a few options enabled: http://www.majorleaguetalk.com/forum...jdelasko&tab=6

I can think of a lot more filters to add in the future, but for now, YouTube is a really good start. Do you really need that 'My Media' block? http://www.majorleaguetalk.com/forum...delasko&&tab=1


All times are GMT. The time now is 05:48 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.03030 seconds
  • Memory Usage 1,804KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_php_printable
  • (6)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