vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Collapsable First Post using AJAX (or Last Post!) (https://vborg.vbsupport.ru/showthread.php?t=145187)

adam75south 01-05-2008 09:42 PM

ok my problem was the default button location for my main style was different...so i uploaded the buttons in that directory. the plus signs show up now, the post drops down....but i have an error showing up.

Code:

Warning
: Invalid argument supplied for foreach() in
/includes/class_postbit.php(296) : eval()'d code
on line
15

not really sure what that means. when i went to class_postbit.php and looked at line 15 it said "exit"
Code:

if (!isset($GLOBALS['vbulletin']->db))
{
        exit;
}

the good news is it shows up in both firefox and IE and not just one of em.

i attached a screenshot for you.

any ideas would be greatly appreciated...and if it's already been addressed then i'm sorry, i jumped to the last page.

magnus 01-07-2008 11:17 AM

Quote:

Originally Posted by adam75south (Post 1416195)
ok my problem was the default button location for my main style was different...so i uploaded the buttons in that directory. the plus signs show up now, the post drops down....but i have an error showing up.

Code:

Warning
: Invalid argument supplied for foreach() in
/includes/class_postbit.php(296) : eval()'d code
on line
15

not really sure what that means. when i went to class_postbit.php and looked at line 15 it said "exit"
Code:

if (!isset($GLOBALS['vbulletin']->db))
{
        exit;
}

the good news is it shows up in both firefox and IE and not just one of em.

i attached a screenshot for you.

any ideas would be greatly appreciated...and if it's already been addressed then i'm sorry, i jumped to the last page.

Ok, according to that error it's having trouble with line 296 in class_postbit.php.
PHP Code:

        ($hook =& vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false

So it's apparently having issue with something hooked into postbit_display_complete. Thing is, my modification does not use this hook. The problem isn't directly linked to this modification, there may be a conflict issue with another hack you're using, one that modifies the postbit in some way.

In the meantime, try this. Browse to AdminCP > Collapsable First Post using AJAX Options. Look for Forum Exclusion List, in the text field put 0. Save it, and see if that fixes it. Honestly, I don't think it will, but it can't hurt.

Xeonspider 01-07-2008 02:09 PM

Now I recived this warning but hack working...

PHP Code:

WarningInvalid argument supplied for foreach() in /includes/class_postbit.php(296) : eval()'d code on line 21 


magnus 01-07-2008 03:58 PM

Quote:

Originally Posted by Xeonspider (Post 1417151)
Now I recived this warning but hack working...

PHP Code:

WarningInvalid argument supplied for foreach() in /includes/class_postbit.php(296) : eval()'d code on line 21 


I'm sorry, but this is the first I've seen you post in this thread so I really don't know what's going on. Were you having the same problem as adam75south above?

masterweb 01-07-2008 05:16 PM

I had some problems due my custom stile, but now it works at 100 %. Thanks a lot mate!

adam75south 01-08-2008 04:51 PM

i tried adding the 0 but the warning is still there.

like i said, it works, just has the warning.

here's a list of all the mods i have on the board. although most were added after yours.

Add Search titles only check box 1.0.0 This mod adds Search titles only check box in search popup menu in navbar & in forumdisplay.

AJAX Preview For New/Edit Thread/Reply/PM 1.3 Shows preview of the message you are writing without leaving the page.

Collapsable First Post using AJAX 1.2.1 Adds a collapsable first post preview using AJAX for each thread on FORUMDISPLAY, search_results and USERCP_SHELL.

Group Leader PM Notification 2.1 Notify the group leader of join requests as well as inform the users of their join request status upon moderation.

GTPrivate Message Quickreply 1.0.1 Adds quickreply when viewing a private message. Brought to you by MyGTBlog Services - http://mygtblog.org.

GTPrivate Messages Enhanced Listing. Brought to yo 1.1.1 Adds private messages preview on pm list display

Latest Post on Forum Home 2.0 This will show the latest posts on forumhome

Miserable Users 2.12 A way to really annoy anyone you don't want visiting your forum.

nCode Image Resizer 1.0.1 Automatically resize posted images

One-touch Ban & Spam Cleanup 1.1 Bans a user, deletes all their threads, posts and PMs

Optimize Tables 1.0.0 This modification allows you to optimize all needed tables by a scheduled task.

passiveVid 1.1.1 Automaticlly turns video links like youtube, myspace videos, google vidoes into the video players.

ShowProfileFieldInPostBits 1.0 EMiN3M Show Profile Field In Post Bits

Yet Another Mass Private Message System 1.0.1 Allow Admin to send mass Private Message to users

Zoints: Timed Sticky 1.2.6 This hack lets you sticky threads for a certain amount of time

adam75south 01-08-2008 06:11 PM

I just tried disabling the profile fields in postbit to see if that was the conflict but still got the warning. Do I need to completely uninstall it to see?

To the other guy with the same problem can you post your mods as well?

magnus 01-08-2008 08:23 PM

Quote:

Originally Posted by adam75south (Post 1417889)
I just tried disabling the profile fields in postbit to see if that was the conflict but still got the warning. Do I need to completely uninstall it to see?

To the other guy with the same problem can you post your mods as well?

Do you receive the error only when trying to expand/collapse using the icon, or does it also display when you click the thread to view it?

adam75south 01-08-2008 09:00 PM

only when i expand.

if i get around to it i'll start uninstalling my mods until i find the one it's conflicting with.

and it's on all of my skins, not just my custom skin.

magnus 01-08-2008 10:11 PM

You don't need to uninstall the hacks. Just disable. This will retain any settings, etc.


All times are GMT. The time now is 03:06 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.01578 seconds
  • Memory Usage 1,756KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_php_printable
  • (3)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