vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   One Last Question (https://vborg.vbsupport.ru/showthread.php?t=270773)

SpawnedX 09-23-2011 05:46 AM

One Last Question
 
I want to make the link for reputation show up on posts that are made in certain boards only. Generally this could have been handled by a simple reading of the forum ID number. Only problem is, when you view a post it is in a different script.

I assume you have to pull the forum ID the post is listed under via the database, but I am having trouble with that call. Any assistance would be appreciated.

kh99 09-23-2011 09:49 AM

I'm not sure I follow, but did you try checking $forum[forumid]?

BirdOPrey5 09-23-2011 09:15 PM

If you look at your post table in the database you will see forumid of a post is not something that is stored, but threadid is and in the thread table the forumid of the thread is available.

That means in your custom script, whatever it is, when it selects the posts from the database the query must "join" the post and thread tables so that the forumid is available. If you can find or make this query then you can make sure forumid is something you can find from the $post array or whatever you are calling it.


All times are GMT. The time now is 07:33 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.00967 seconds
  • Memory Usage 1,705KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete