vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   vB integration (https://vborg.vbsupport.ru/showthread.php?t=180205)

DarkGizmo 05-23-2008 12:54 AM

vB integration
 
Ok what i want to do is have posts in a certain forum on my forums display as content on my main page, only the initial post of course..

So what i need to know is where do i SELECT from in vB's table structure? I am unfamiliar with it...also is there a log-in script i can use to integrate my logins and sessions into the main site so it says "Welcome NegativeSmoke (log out)" etc.... on my main page?

JamesTalbot 05-23-2008 09:27 AM

Both are indeed possible. For the first post in a thread all you need to do is query the post table and just specifcy what the threadid is. Alternatively if you wanted the most recent post or thread you would query the thread table and the post table and then order by DESC with a limit of 0,1. I think that answers your question, if not please say.

Your second question is also possible. If you want the logon box i believe you can just copy the HTML from the logon template and use that. The important thing is that the FORM ACTION points to the vBulletin Login File.

If you would like an example please say.

James

DarkGizmo 05-23-2008 02:35 PM

Yes would you be able to provide me with examples of the code(s) and such to use?

Also, would it be possible to provide me with the queries needed?

my template structure is vB_ for the database....so for example:
vB_posts

I'm new to using SQL and a new vB user as well, i have a guy offering to do it for me but i don't trust him enough with my information especially access to my database.....and since i paid for my vB license i don't want anyone else with my info..

I'd greatly appreciate it sir. :)

see right now i have my forums living at http://zeroboards.net, i plan on moving them to http://boards.zeroboards.net and having the main site live at http://zeroboards.net

I have a layout already made too.

Dismounted 05-24-2008 03:46 AM

You shouldn't really delve into things you are not really confident with. I suggest some reading on basic PHP/MySQL, it would help in the long run.

DarkGizmo 05-24-2008 01:01 PM

Umm yeah i'm pretty sure i can do this i just need the basic set-up structure of things thats all. I'm unfamiliar with the table structure in vBulletin.

Paul M 05-24-2008 01:25 PM

Use phpmyadmin to view the database and table structure.

DarkGizmo 05-24-2008 03:23 PM

Yeah will do.

Wouldn't it just be "SELECT FROM 'vB_post' WHERE 'forum ID=XXX' " ?


All times are GMT. The time now is 02:30 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.02923 seconds
  • Memory Usage 1,718KB
  • 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
  • (7)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