vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   code to put in phpinclude.... (https://vborg.vbsupport.ru/showthread.php?t=51365)

drives fast 04-09-2003 01:42 AM

code to put in phpinclude....
 
I am looking for the code I would put into phpinclude to display the forum title then forum thread count and finally below that the forum description?

I have a seperate php page that I am playing with and want to display that information for a specific forum id on it

the forum id is 150 on my forum

I have tried this:
PHP Code:

//test
$result mysql_query("SELECT forumid,title,description FROM forum WHERE 1 AND forumid = 150");
$forum150 mysql_result();
//end test 

but of course that brings an error at the top of the page

I have been trying many things but am aparently php stupid

thank you in advance for your help

drives fast 04-09-2003 01:46 AM

I guess the simple explanation of what I want to do is display the same thing that is displayed in the forumlist but only one forumid

being able to click on the forum title and all that.

thanks again

drives fast 04-09-2003 01:59 AM

got a little closer (I think)

I tried this:
PHP Code:

$result mysql_query("SELECT forumid,title,threadcount,description FROM forum WHERE 1 AND forumid = 150");
$forum150 .= "<a href=\"forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]\"><normalfont><b>$forum[title]</b></normalfont></a>&nbsp; &nbsp; <normalfont><b>($forum[threadcount])</b></normalfont>
<br><smallfont>
$forum[description]</smallfont>"

and I got it to display the ()

lol...still trying but could sure use an expert

drives fast 04-09-2003 02:08 AM

I think I see where that went wrong

should I be creating a new template and have the $forum150 .= call that template?

drives fast 04-09-2003 02:55 AM

well...I am lost now :)

drives fast 04-10-2003 11:48 AM

was it something I said?

drives fast 04-11-2003 01:49 PM

not one single suggestion or comment huh.

thanks

drives fast 04-17-2003 07:33 PM

I figured it out and since I received so much kindness and friendly help...I will return the favor and post the code...
PHP Code:

yea right 

thanks

filburt1 04-17-2003 07:41 PM

It's not like we're under a contractual obligation to help you at a moment's notice...

drives fast 04-17-2003 07:47 PM

and I understand that more than anyone....ever.....but I see lots of things being answered all the time and help given all the time.

I mostly noticed that help was more redily given to those that are trying and not just wanting someone to do everything for them but I got squat on this one and I was really trying....... and I returned the favor.

if you do not want to help anyone....why open a site for helping someone? If you only want to help a few....make the site private by invite only....otherwise treat everyone the same.

as I said......."thank you"


All times are GMT. The time now is 09:19 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.01025 seconds
  • Memory Usage 1,734KB
  • 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_php_printable
  • (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
  • (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