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)
-   -   Miscellaneous Hacks - Featured Threads (https://vborg.vbsupport.ru/showthread.php?t=320387)

MarkFL 07-20-2017 01:12 PM

Follow:

AdminCP -> MarkFL: Featured Threads -> Nominations

By default, nominations are not enabled, so you have to define the settings how you want. :)

The Realist 07-20-2017 02:26 PM

Thanks Mark worked that out afterwards.

The Realist 07-20-2017 02:32 PM

Mark,

Just created a poll and received this error?

PHP Warning: mysql_insert_id(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in ..../featuredthread.php on line 334

PHP Warning: mysql_insert_id(): A link to the server could not be established in ..../featuredthread.php on line 334

Any ideas?

MarkFL 07-20-2017 03:01 PM

1 Attachment(s)
Okay, I've attached as a hot fix, a replacement for the "featuredthread.php" script. Please replace the file on your server, and let me know if that fixes the poll creation issue. :)

The Realist 07-20-2017 03:02 PM

Will do.

The Realist 07-20-2017 03:05 PM

PHP Warning: require_once(./markfl_featuredthreads/featurebuild.php): failed to open stream: No such file or directory in ..../includes/class_bootstrap.php(433) : eval()'d code on line 399

Fatal error: require_once(): Failed opening required './markfl_featuredthreads/featurebuild.php' (include_path='.:/usr/newage/lib/php') in /var/sites/t/thesaltybox.com/public_html/forum/includes/class_bootstrap.php(433) : eval()'d code on line 399

The Realist 07-20-2017 03:11 PM

Ops hehehe replaced the wrong file duh?

Above error fixed but when the correct file is replaced I get this error:

PHP Warning: mysql_insert_id(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in ..../featuredthread.php on line 334

PHP Warning: mysql_insert_id(): A link to the server could not be established in ..../featuredthread.php on line 334

MarkFL 07-20-2017 03:15 PM

Are you sure you have the new file in the right place? That error indicates you are running the old file...

The Realist 07-20-2017 03:43 PM

Yeh I'll try it again from a fresh download.

The Realist 07-20-2017 03:48 PM

Thanks Mark worked a treat.

I did indeed use the old file but now poll was created fine.

Thank you.


All times are GMT. The time now is 11:11 PM.

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.01174 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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