Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Allow Videos - A Quick Tutorial

  1. #1
    Thread Starter
    Senior Member netpotion's Avatar
    Join Date
    Feb 2010
    Location
    United States
    Posts
    246
    Thanks
    30
    Thanked 13 Times in 10 Posts

    Post Allow Videos - A Quick Tutorial

    O.k., for the record - this can be a bit of a security risk. But if you are allowing HTML via your TinyMCE editor in ads already this probably won't make it any more insecure than it is already. Still, I will not accept blame if something happens to your site from adding this.

    To allow videos in advertisements do the following:

    1. Turn on HTML by going to your admin area ==> ClassiPress ==> Settings ==> Classified Ads Configuration ==> and selecting "Yes" next to "Allow HTML:" - Don't forget to save your settings.

    2. Make a back-up copy of "/wp-content/themes/classipress/includes/theme-functions.php"

    3. Around line 892 find the following code:

    Code:
    <script type="text/javascript">
        <!--
        tinyMCE.init({
            mode : "exact",
            theme : "advanced",
            skin : "default",
            elements : "description",
            plugins : "",
            theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,cleanup,code,|,forecolor,backcolor",
            theme_advanced_buttons3 : "",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing : true,
            theme_advanced_resize_horizontal : false,
            content_css : "<?php echo get_bloginfo('template_directory'); ?>/styles/master.css",
            languages : 'en',
            disk_cache : true,
            width : "<?php echo $width; ?>",
            height : "<?php echo $height; ?>"
        });
        -->
    </script>
    Replace it with the following code

    Code:
    <script type="text/javascript">
        <!--
        tinyMCE.init({
            mode : "exact",
            theme : "advanced",
            skin : "default",
            elements : "description",
            plugins : "media",
            theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,media,cleanup,code,|,forecolor,backcolor",
            theme_advanced_buttons3 : "",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing : true,
            theme_advanced_resize_horizontal : false,
            content_css : "<?php echo get_bloginfo('template_directory'); ?>/styles/master.css",
            languages : 'en',
            disk_cache : true,
            width : "<?php echo $width; ?>",
            height : "<?php echo $height; ?>"
        });
        -->
    </script>
    Now you should see a little "filmstrip" icon on your text editor. Clicking that will bring up a dialogue where the URL to the video can be placed. TinyMCE will translate that URL into the video and post it into the ad.

    That'sit!

    I'v added smiley's to my site too. That is a bit more involved, but if people are interested I may make a post about that too.

    ~ NetPotion
    My Currently Live Sites
    ~ http://www.netpotion.com - Free Flash Gamez
    ~ http://www.picdepict.com - Free Image Hosting

  2. #2
    Community Partner scarstens's Avatar
    Join Date
    Apr 2010
    Location
    Cave Creek, AZ USA
    Posts
    912
    Thanks
    2
    Thanked 129 Times in 86 Posts

    Re: Allow Videos - A Quick Tutorial

    You must be an AppThemes customer and logged in to view this response. Join today!
    ~ Seth Carstens, Sethmatics Inc.


  3. #3
    Thread Starter
    Senior Member netpotion's Avatar
    Join Date
    Feb 2010
    Location
    United States
    Posts
    246
    Thanks
    30
    Thanked 13 Times in 10 Posts

    Re: Allow Videos - A Quick Tutorial

    You must be an AppThemes customer and logged in to view this response. Join today!
    My Currently Live Sites
    ~ http://www.netpotion.com - Free Flash Gamez
    ~ http://www.picdepict.com - Free Image Hosting

  4. #4
    Thread Starter
    Senior Member netpotion's Avatar
    Join Date
    Feb 2010
    Location
    United States
    Posts
    246
    Thanks
    30
    Thanked 13 Times in 10 Posts

    Re: Allow Videos - A Quick Tutorial

    You must be an AppThemes customer and logged in to view this response. Join today!
    My Currently Live Sites
    ~ http://www.netpotion.com - Free Flash Gamez
    ~ http://www.picdepict.com - Free Image Hosting

  5. #5
    Community Partner scarstens's Avatar
    Join Date
    Apr 2010
    Location
    Cave Creek, AZ USA
    Posts
    912
    Thanks
    2
    Thanked 129 Times in 86 Posts

    Re: Allow Videos - A Quick Tutorial

    You must be an AppThemes customer and logged in to view this response. Join today!
    ~ Seth Carstens, Sethmatics Inc.


  6. #6
    Senior Member gomeetpete's Avatar
    Join Date
    Feb 2010
    Location
    Western NC
    Posts
    124
    Thanks
    0
    Thanked 17 Times in 4 Posts

    Re: Allow Videos - A Quick Tutorial

    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    Rookie
    Not a Verified Customer
    flagged's Avatar
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Allow Videos - A Quick Tutorial

    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #8
    Senior Member gomeetpete's Avatar
    Join Date
    Feb 2010
    Location
    Western NC
    Posts
    124
    Thanks
    0
    Thanked 17 Times in 4 Posts

    Re: Allow Videos - A Quick Tutorial

    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #9
    Rookie
    Not a Verified Customer
    flagged's Avatar
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Allow Videos - A Quick Tutorial

    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #10
    Senior Member gomeetpete's Avatar
    Join Date
    Feb 2010
    Location
    Western NC
    Posts
    124
    Thanks
    0
    Thanked 17 Times in 4 Posts

    Re: Allow Videos - A Quick Tutorial

    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Tutorial:Change place to Currency Symbol
    By chifen in forum ClassiPress General Discussion
    Replies: 1
    Last Post: May 25th, 2009, 11:37 AM