vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   want to make a encylopedia using current DB (https://vborg.vbsupport.ru/showthread.php?t=73667)

Marco van Herwaarden 01-11-2005 06:01 AM

Quote:

Originally Posted by aussiev8
anyone?

Start by looking through the function libraries in your includes directory, then look how those functions are being learned.

You already got the best manual there is: the vB source code.

aussiev8 01-11-2005 07:42 AM

uhmm cool, i don't want someone to walk me through it, for an open source project the documentation is limited and the community help is shocking...

nobody wants to help a new coder get off his feet...
i think you guys are stuck up!

cinq 01-11-2005 08:25 AM

Quote:

Originally Posted by rake
to get all the terms from the database starting with a certain letter, you could use this query:

SELECT * FROM table WHERE title LIKE '$letter%'

then loop through all rows to display the list of entries for that letter..

rake already provided the solution to what you are asking :)

Marco van Herwaarden 01-11-2005 08:28 AM

Well i consider myself a new coder as well, but i learned myself the way i described it. And in my view that is the only way you can (good) learn something like this.

If you have any specific questions, you will find to community and the members/coders/staff to be very willing to answer and help you solve your problems.

memobug 01-11-2005 10:40 PM

Quote:

Originally Posted by aussiev8
uhmm cool, i don't want someone to walk me through it, for an open source project the documentation is limited and the community help is shocking...

nobody wants to help a new coder get off his feet...
i think you guys are stuck up!

I tried to help. It seems you just wouldn't answer my question

-- A stuck-up coder

aussiev8 01-11-2005 11:25 PM

its just an addon, never mind
i'll go about it on my own..
thanks to the guys that helpd.

cinq 01-12-2005 12:08 AM

Quote:

Originally Posted by memobug
I tried to help. It seems you just wouldn't answer my question

I think aussie knows how to code php/mysql in general, just that he wants to learn how to tie it in with vb using vb's various functions.

Please correct me if I am wrong.

memobug 01-12-2005 04:09 AM

Yes. I (still have) no clue from his post how, even generally, this encyclopedia was going to integrate with vbulletin. Did it appear on thread view and list every term on that page for definition? Did it appear beside a post? Was it somehow related to search? Maybe I'll never know.

Regards,

Matt

aussiev8 01-12-2005 12:40 PM

as i stated, i wanted it to be a thread view, (hence asking about how to make it look like the forum) sorry if i wasn't clear enough..

i just wanted it to act, for instance the same as "articles" this is the best way i could think of setting it out...

it'll have [a b c d e f g h i j k l m n o p q r s t u v w x y z ] in a bar
and when you click on a letter all of the definitions for that letter will come up!

ant
apple
ashtay

then when you click on the "ashtray" link it'll take you to a thread like view with the definition..

?? follow??

ps. i'm sorry i lost the plot, was just getting fed up with it not working the way i wanted it too.. i scrapped the previous attempt and will be a bit calmer and ask for help :)
i can't bevelie i make coporate fully interactive php styled secure sites, but i'm having trouble with this!

please someone either help me, or shoot me ;)

rake 01-12-2005 06:47 PM

start with a blank page,
require("./global.php");
to get the vb back-end, so you can access vb resources..

Get your database structure straight. One table should be enough to start with. Something like id ; title ; definition will work.

if($_REQUEST['do'] == showletter)
{
globalize($_REQUEST, array ('l' => STR));

$l = $DB_site->query("SELECT * FROM table WHERE title LIKE '$letter%' ORDER BY title ASC");
while($def = $DB_site->fetch_array("$l"))
{
.....
}
}

This should be enough to get you started. You can work your way up from there. If you don't know what something is, just search here, or through the vb files, and you'll find it.


All times are GMT. The time now is 06:59 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.01251 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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