Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
code to put in phpinclude.... Details »»
code to put in phpinclude....
Version: , by drives fast drives fast is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-09-2003 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-09-2003, 01:46 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 04-09-2003, 01:59 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 04-09-2003, 02:08 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I see where that went wrong

should I be creating a new template and have the $forum150 .= call that template?
Reply With Quote
  #5  
Old 04-09-2003, 02:55 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well...I am lost now
Reply With Quote
  #6  
Old 04-10-2003, 11:48 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

was it something I said?
Reply With Quote
  #7  
Old 04-11-2003, 01:49 PM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not one single suggestion or comment huh.

thanks
Reply With Quote
  #8  
Old 04-17-2003, 07:33 PM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 04-17-2003, 07:41 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not like we're under a contractual obligation to help you at a moment's notice...
Reply With Quote
  #10  
Old 04-17-2003, 07:47 PM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08274 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete