vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - [YUI] Tabbed Forum Home (https://vborg.vbsupport.ru/showthread.php?t=233135)

shka 03-24-2020 05:33 PM

Try replacing "mysql_escape_string" on lines 51,58,64 of includes/class_eg_tfh_yui.php with "$db->escape_string" or "$db->real_escape_string" and add line 43

Code:

        function javascript_code($container, $verify_usergroup = true)
        {
                global $db;
                $this->code .= "var " . $this->name . " = new YAHOO.widget.TabView();";

But remember the code and the linked yui library are from 2008-2011.

PPhysX 03-24-2020 07:17 PM

Quote:

Originally Posted by shka (Post 2602369)
Try replacing "mysql_escape_string" on lines 51,58,64 of includes/class_eg_tfh_yui.php with "$db->escape_string" or "$db->real_escape_string" and add line 43

Code:

        function javascript_code($container, $verify_usergroup = true)
        {
                global $db;
                $this->code .= "var " . $this->name . " = new YAHOO.widget.TabView();";

But remember the code and the linked yui library are from 2008-2011.



replacing "mysql_escape_string" on lines 51,58,64 of includes/class_eg_tfh_yui.php with "$db->escape_string"

This in combination with adding "global $db;" on line 43 as you suggested fully fixed the problem. You sir, are a god.

PPhysX 03-24-2020 08:48 PM

1 Attachment(s)
Last question, is there any way I can make a few forums always visible on the forumhome, and have these tabbed forums below them?

I have attached an image and edited in photoshop what I actually want the result to be like.

https://i.imgur.com/vrlhs0X.jpg


Using {vb:raw forumbits} puts all the forums visible, so I don't think that works

Ricsca 10-08-2021 07:46 PM

i have the same problem as shka now that i have changed hosting.
how can i deactivate this plugin?
in settings> options nothing is found.

Hostboard 10-13-2021 04:57 PM

Try reinstalling...


All times are GMT. The time now is 02:44 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.04820 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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