DragonByte Tech | vBulletin Mods & Addons - Powered by vBulletin



DragonByte Tech Proudly Hosted By Hivelocity.net
Cloud Servers from HiVelocity Hosting / Sparknode

View Issue Info: Not a vbShout bug, but a conflict with another add-on

Category:
Bug
Status:
Not A Bug
Priority:
N/A
Product Version:
Enter the product version you are running in the following format: x.y.x
Example: 1.1.0
6.0.7
Forum Version:
Enter the forum version you are running.
3.8
Browser:
Enter the browser(s) and version(s) you encounter this issue on.
Chrome, latest version.
Default Skin?
Does this issue happen on the default skin?
No
Support Agent:
Belazor

User Tag List

  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Results 1 to 2 of 2

    Thread: Not a vbShout bug, but a conflict with another add-on


    Forum: vBShout Lite Support

    Questions & Answers for vBShout.
    Click here to buy!

    1. #1
      Junior Member
      Level 0 (0 Loyalty Points)
      This user has no status.
       
      I am:
      ----
       

      Gil
      50 (0 Banked)
      Total Contributions For

      Ludachris      $ 0.00
      User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
      Join Date
      Apr 2012
      Posts
      1
      Points
      50
      Credits
      0
      Problems Posted
      0
      Problems Solved
      0
      Best Answers
      0
      Good Answers
      0
      Rep Power
      0

      Default Not a vbShout bug, but a conflict with another add-on

      Got through the install, and just as it was going to finalize, it spit out a bbcode error. I did some googling and found you telling someone this on vb.org:
      Additionally, the "Cannot redeclare handle_bbcode_video()" function is not an error with vBShout, it's with the [VIDEO] mod you have installed.
      You need to contact the author of that mod and tell them this:
      You need to wrap the handle_bbcode_video() function declaration in a if (!function_exists('handle_bbcode_video')) check.
      I found the plugin code for the add-on what is causing this conflict. Here is the code:
      function handle_bbcode_video(&$parser, $videoid, $videotitle)
      {
      global $vbulletin, $stylevar;

      if (!$video = $vbulletin->db->query_first("SELECT video.*
      FROM " . TABLE_PREFIX . "video AS video WHERE videoid = '" . $videoid . "'"))
      {
      $video['error'] = 'THIS VIDEO DOES NOT EXIST';
      eval('$HTMLembed = "' . fetch_template('video_bbcode') . '";');
      return $HTMLembed;
      }

      require_once(DIR . '/includes/functions_videodirectory.php');
      require_once(DIR . '/includes/class_videosharingservice.php');
      require_once(DIR . '/includes/videoserviceapi/class_' . strtolower($video['videoservice']) . '.php');

      $classname = "vB_VideoSharingService_$video[videoservice]";
      $obj = new $classname($vbulletin);

      $showful = $vbulletin->options['videodirectory_showful'];
      $showrel = $vbulletin->options['videodirectory_showrel'];
      $showsta = $vbulletin->options['videodirectory_showsta'];

      $video['embed'] = $obj->fetch_embedcode($video['videoidservice'], false, $showful, $showrel, $showsta);
      $video['url'] = construct_video_url($video);
      if (empty($videotitle)) { $videotitle = $video['title']; }

      eval('$HTMLembed = "' . fetch_template('video_bbcode') . '";');
      return $HTMLembed;
      }
      Can you help me form the IF statement to wrap that function?

    2. #2
      Founder
      Level 5 (3,164 Loyalty Points)
      is finally done working on vBShop
      for now xD
       
      I am:
      Sneaky
       
      Belazor's Avatar
      Gil
      55,657 (460,361 Banked)
      Total Contributions For

      Belazor Points (Total)      $ 0.00
      User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
      Join Date
      Dec 2009
      Location
      Glasgow, Scotland
      Age
      26
      Posts
      12,198
      Blog Entries
      13
      Points
      55,657
      Credits
      143,390
      Problems Posted
      0
      Problems Solved
      3
      Best Answers
      0
      Good Answers
      2
      Rep Power
      10

      Default

      PHP Code:
      if (!function_exists('handle_bbcode_video')) { function handle_bbcode_video(&$parser$videoid$videotitle
      PHP Code:
      return $HTMLembed
      }

      Fillip Hannisdal
      Founder & Programming Director
      DragonByte Technologies http://www.DragonByte-Tech.com


      Please do not Private Message me with support requests or product questions. PMs are only for exchanging sensitive information (like FTP / AdminCP logins).
      Please do not Private Message me with business related queries (refunds, complaints, feedback, etc). Decado is the person to PM for those issues.
      Please do not Private Message Decado with support requests or forum errors.

      When I say "Hotfix Released" it means you should re-download the product and re-upload the files.

    Thread Information

    Users Browsing this Thread

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

    Similar Threads

    1. [vB 4.1.x] vbShout Conflicts with my Advertiser Code
      By MortysTW in forum vBShout Lite Support
      Replies: 5
      Last Post: 9th April 2011, 17:39
    2. [vB 4.0.x] Bug with unregistered user on shoutbox
      By nhkduy90 in forum vBShout Lite Support
      Replies: 2
      Last Post: 10th February 2011, 15:28

    Tags for this Thread

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •