Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2018, 01:14 AM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Plugin causing issues with php 7.1

Hi,

I've installed a new vb but i used php 7.1 however i am reciving errors from the plugin. I don't want to downgrade my php really to 5.6.

Php 7.1 runs faster than 5.6, correct ? What do i do to get my plugins to work ? this is the first plugin i tried to test and it is an important one.
Reply With Quote
  #2  
Old 08-27-2018, 02:09 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the plugin code?
Reply With Quote
  #3  
Old 08-27-2018, 02:15 AM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mark - there are several plugins.

The first one is recapcha new (i get a white page in registration page if i ever use it) Edit: The fix is on the last page of the plugin, this one is fixed.
https://vborg.vbsupport.ru/showthread.php?t=315960

The next one is sphynix search
https://marketplace.digitalpoint.com...tin-4.870/item

The third one is a custom made for my header , that is the one i first tried and give me the error i mentioned above:
Reply With Quote
  #4  
Old 08-27-2018, 02:41 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this code in your custom plugin:

PHP Code:
if ($vbulletin->userinfo['userid'])
{
    require_once(
'./includes/functions_user.php');
    
$ava_url fetch_avatar_url($vbulletin->userinfo['userid']);
    
$avatar $ava_url[0];

    if (!
avatar)
    {
        
$ava_url[0] = "images/misc/unknown.gif";
    }

  
$ava_urlX $ava_url[0];
  
$nhn_avatar "<a href=\"profile.php?do=editavatar\"><img src=\"$ava_urlX\" width=\"50\" height=\"50\" border=\"0\" alt=\"Your Avatar\" style=\"vertical-align: middle; margin-right: 5px; margin-top: -4px; border-radius: 5px;-moz-border-radius: 5px;-ms-border-radius: 5px;-o-border-radius: 5px;-webkit-border-radius: 5px;\" /></a>";

  
$templater vB_Template::create('header');
  
$templater->register('nh_avatar'$nhn_avatar);
  
vB_Template::preRegister('header',array('nhn_avatar' => $nhn_avatar));
  
$templater->render();

Reply With Quote
  #5  
Old 08-27-2018, 03:09 AM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mark - add this code where ? replace the entire file with your code ?

Edit: i applied your changes but still same issue:
Reply With Quote
  #6  
Old 08-27-2018, 11:53 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace the actual plugin code. No need to edit the .XML file.
Reply With Quote
Благодарность от:
katie hunter
  #7  
Old 08-27-2018, 02:29 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mark, i tried it but it gave me an error when i tried to import the xml file after i updated

XML Error: Not well-formed (invalid token) at Line 3

Edit: now it works !! <3 i went to edit in Installed Products and replaced your code in the install new code and saved. But trying to edit the xml file and upload it didn't work, it gave me that error above.

What did you do to fix it ? so i can apply it to other plugins that has similar issues like the sphynix right now has that same issue:
Reply With Quote
  #8  
Old 08-27-2018, 04:19 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm surprised that was part of the installation code...it should have simply been in a plugin. As far as Sphinx, I would speak to its developers.
Reply With Quote
  #9  
Old 08-27-2018, 11:08 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
I'm surprised that was part of the installation code...it should have simply been in a plugin. As far as Sphinx, I would speak to its developers.
They ceased updating it, but i have many the same issues with the xml files, what do i need to replace to be compliant with php 7.x ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07602 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete