vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Home Enhancements - User's Social Groups on Forum Home (like forumlist, fully templated) (https://vborg.vbsupport.ru/showthread.php?t=203721)

redlabour 04-22-2009 03:21 PM

Quote:

Originally Posted by cellarius (Post 1796314)
Are you using PHP 4 or PHP 5?

If the above does not fix it, please try to replace
Code:

foreach ($array_discussionread[$cel_groups['groupid']] as $discussions)
with
Code:

foreach ((array) $array_discussionread[$cel_groups['groupid']] as $discussions)

PHP5 - the second Hint works now! :)

cellarius 04-22-2009 03:35 PM

Good to know. Will include this into the package and then send an upgrade notification ;)

redlabour 04-22-2009 04:50 PM

Awesome! :)

Revan 04-22-2009 06:40 PM

It's good practice to always init your arrays like that, and if you are foreach'ing variables you didn't have complete control over, you should either typecast like in your second fix, or check "if (!is_array($arr)) { $arr = array(); }" :)
Reason is, if a database returns no rows, it doesn't create any arrays you manipulate inside a while() result iterator.

cellarius 04-22-2009 08:55 PM

Yep, just learned that ;)

Namaless 04-26-2009 04:28 PM

Italian Language Pack: https://vborg.vbsupport.ru/showthread.php?t=212226

Thanks for this MOD.

BigPete7978 04-28-2009 03:42 AM

Is there any reason that the small images wouldn't show up (and just appear as broken images)? I already uploaded them to both my images folder and the individual style folder. I don't get what could be causing this.

cellarius 04-28-2009 04:28 AM

You mean the icons to start a new discussion etc.? There's only one reason for this: they have not been uploaded to the correct folder. Do you use a custom style with different folders? This mod always looks for the buttons in the folder of the skin as set in AdminCP. So probably you have to upload them to that folder, too.

BigPete7978 04-28-2009 03:30 PM

Quote:

Originally Posted by cellarius (Post 1800332)
You mean the icons to start a new discussion etc.? There's only one reason for this: they have not been uploaded to the correct folder. Do you use a custom style with different folders? This mod always looks for the buttons in the folder of the skin as set in AdminCP. So probably you have to upload them to that folder, too.

Yes I have a custom folder. But I uploaded them to the correct path there as well. :confused:

BigPete7978 04-28-2009 03:35 PM

Nvm figured it out. :-P


All times are GMT. The time now is 01:11 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.01462 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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