vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   which template determines guest for showthread? (https://vborg.vbsupport.ru/showthread.php?t=219181)

testbot 07-25-2009 02:35 PM

i'll give that a try... thanks :)

testbot 07-27-2009 12:55 PM

ok, i suck. lol

i don't suppose someone wants to help me make this happen?

testbot 07-29-2009 02:15 PM

guess not haha

testbot 08-05-2009 07:27 PM

so i'm still working on this and i've decided the best way is to use the external_complete hook.

i think i just need to recreate the query without the following 'AND thread.visible = 1' and 'AND post.visible = 1' but i'm not sure. i feel like there's a better way.

maybe something like

if ($_REQUEST['forumid'] == 5 && $_GET['secretpass'] == 'somerandomsh!t')
{
-recreate case rss here-
or maybe
-recreate query here-
}

i feel like ya don't like me anymore since i ranted a bit in another thread. lol

anyway, can you at least tell me if i'm on the right track? if you're feeling really generous provide some detail. :)

Lynne 08-05-2009 09:03 PM

I just don't really know permissions - that is why I haven't posted any more in this thread (and I have no idea what other thread you are talking about).

What I was thinking is that you would want to set something like $vbulletin->bf_ugp_forumpermissions['canview'] to true if a certain parameter is passed. But, I've never played with it and so I really don't know if that would do it. You can try using a plugin before line 444 and setting that and $vbulletin->bf_ugp_forumpermissions['canviewthreads'] to true and see what the results are on a test site. If changing the permissions that way does what you want, then that is probably the easiest way to go about it.

testbot 08-05-2009 09:33 PM

oh, i get what you're saying now! thanks... i'll give that a try and report back. :)


All times are GMT. The time now is 04:55 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.01654 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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