vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBPrivate Threads (https://vborg.vbsupport.ru/showthread.php?t=109096)

Eikinskjaldi 03-01-2006 05:26 AM

When did you install the hack? Do you have any other plugins or file edits to forumdisplay.php? Could you show what that line (and surrounding lines) contains in your file?

The only change to forumdisplay.php (from my hack) should be a plugin, and I'm not experiencing any problems using it at all.

Ambie 03-01-2006 06:43 AM

Quote:

Originally Posted by Eikinskjaldi
When did you install the hack? Do you have any other plugins or file edits to forumdisplay.php? Could you show what that line (and surrounding lines) contains in your file?

The only change to forumdisplay.php (from my hack) should be a plugin, and I'm not experiencing any problems using it at all.


I installed it tonight. Yeah I have a lot of things in the forumdisplay. This is what is around line 938



I will go disable things one by one and see if it is another hack causing it :)

Eikinskjaldi 03-01-2006 07:50 AM

I think you're supposed to use CODE or PHP tags to hide the code from non-licensed users :)
If line 938 is the hook, and other plugins are using that hook, then the problem may be the order that the code is executed in. I know that the order can cause some problems. Perhaps try turning off the other plugins for that location?

Ambie 03-01-2006 08:01 AM

Quote:

Originally Posted by Eikinskjaldi
I think you're supposed to use CODE or PHP tags to hide the code from non-licensed users :)
If line 938 is the hook, and other plugins are using that hook, then the problem may be the order that the code is executed in. I know that the order can cause some problems. Perhaps try turning off the other plugins for that location?

I just took it out of my post.:nervous:


Thanks, that is what I am trying now. :)

Eikinskjaldi 03-02-2006 04:59 AM

Tell me how it turns out so I can look into why it might be eroring for you, need to fix bugs even if I cant reproduce it. :D

waza 03-02-2006 07:50 AM

@ambie: If you disable the product of this hack, do you still get the error, if so it has nothing to do with this hack, otherwise:
post the content of the plugin from this hack in the hook: threadbit_display.

drex 03-02-2006 03:48 PM

@Eikinskjaldi (or anyone else) -- before i go live with this, is the issue about the last post linking fixed, or can anyone see the thread/and or its contents?

do i have to do this?


Quote:

I think you missed out something like:

Code:
$threadinfo['privateusers'] = $threadinfo['privateusers'] ? implode(";",unserialize($threadinfo['privateusers'])) : "";

in the showthread.php file, and then change $restrictedusers to $threadinfo[privateusers] in the showthread template.

And I've made it admin only, by doing things like the following in the newthread and the edit thread templates:

Quote:
<if condition="$foruminfo['allowprivate'] == 1 and is_member_of($bbuserinfo, 6)">




Where 6 is the id of the Admins usergroup
I didn't follow the above..

Thanks

drex

drex 03-02-2006 03:56 PM

crap new posts in the vbcmps doesn't work now. whole board is screwy.

uninstalling....

drex 03-02-2006 04:03 PM

ok, now that i was able to stop a disaster. (and no, i don't have a test board -- too much work), the issues are:

1) if you are not an admin, or one of the 'allowed' users, and you click on the LAST POST link, you get the error listed above that ambie stated.

2) the search for 'New Posts' on the Vbadvanced CMPS front page doesn't work either

luckily, if you turn off the 'private threads allowed' forums, all goes back to normal.

this is a little too buggy to use live. needs more work, though great hack...

drex 03-02-2006 04:05 PM

the vbcmps error:

Fatal error: Cannot break/continue 1 level in /home/-----/public_html/search.php(2207) : eval()'d code on line 4
__________________


All times are GMT. The time now is 04:52 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.01111 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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