Yep, the error has disappeared
I checked the navbar template for any in_array and the only 1 i found was this Code:
<if condition="(in_array($vbulletin->userinfo[usergroupid], $links_groups))"><td class="vbmenu_control"><a href="adv_quick_links.php">$vbphrase[adv_quick_links]</a></td></if> |
Yep, the $links_groups variable is from the Advanced Quick Links modification. Add links_groups to the PhotoPlog Global Variables setting via the ACP and see if the warning message goes away.
|
1 Attachment(s)
Ok, i think i done that, is this the right place cause the error is still there (see image please)
|
Yes, that is the correct location. Try temporarily removing the entire in_array template conditional from the navbar template. Does the in_array warning goes away?
|
Just commented out the array and it still gives the error...Not looking good is it lol
Perhaps just turn off the error reporting and leave it at that? Photoplog appears to be working fine and to be honest i aint got a clue how long this error has been there as i did not know about the error reporting line therefore i aint never seen the error before! What do you think? |
The problem is with the Advanced Quick Links modification. It doesn't set $links_groups to be an array unless you are viewing the adv_quick_links.php file. As such you get a "wrong datatype for second argument" error because $links_groups is a string instead of an array. Keep links_groups in the PhotoPlog Global Variables setting, and add this to a plugin located at the global_start hook:
Code:
$links_groups = explode(',', $vbulletin->options['links_usergroups']); Code:
<if condition="(in_array($vbulletin->userinfo[usergroupid], $links_groups))"> |
Yeah i know what ya saying, and if anything im prob about the worst for installing hacks :o lol
When you say this, do you mean create a new plugin? Quote:
|
Yep, create a new plugin. Use 'Advanced Quick Links' as the product.
|
Wahooo, thats it, the error is no more!!
Thanks alot for your patience and time, tis much appreciated :) |
Actually not sure whats happened here but in my navbar i now have a link called this Advanced Quick Links was this meant to be there all the time? lol
|
All times are GMT. The time now is 06:53 AM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.