vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vB3 Hacking 101 Guide (https://vborg.vbsupport.ru/showthread.php?t=60872)

Ninth Dimension 01-28-2004 05:42 PM

vB3 Hacking 101 Guide
 
Hi all, sorry if this is the wrong forum, but here goes:

Has anyone written, or is anyone going to write a hacking guide for vB3?

I (like a lot of other people here I should imagine) am used to vB2, and the way that works and all it's functions (how to do queries, pull templates, etc..), but now, so far as I can see, all of that has changed and a whole bunch of new functions have been introduced.

I'm keen to jump in the hacking bandwagon and develop a new articles system add-on, as well as maybe update vBstory, but I'm not too sure where to start...

Thank you in advance.

Ninth Dimension 01-29-2004 05:16 PM

Anyone?

Xenon 01-31-2004 12:16 AM

Well there are some beginnerguidlines in the moding hints and tips forum, but a full vb3 hacking guide isn't there to my knowledge.

iirc there were plans that the devs will write up a guide about the vb3 code, but not sure

Ninth Dimension 01-31-2004 12:32 AM

TBH all I'm looking for is a very basic guideline so I know what to do, and what not to do, for example I was looking at things like
PHP Code:

define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''vbindex'); 

and I'm not sure what they are for...

I'm also interesting in knowing what's the best way to do queries and pull templates, I mean I can learn from some of the other hacks that have been released, but then... what's to say that the hack i'm looking at have been done in the best way?

I hope that someone does sit down and write a guide, just very basic stuff, and I can pick up the rest myself :)

Zachery 01-31-2004 10:50 AM

Check my sig, it has some nice starting points :)

Dean C 01-31-2004 11:44 AM

Ninth Dimension - in your post above you have a constant. A constant holds data in a similar way to variables.

Whereas a variable would hold date like so: $var = 'string';

A constant would use: define(VAR, 'string');

It's just another alternative data-holder really :)

Gary King 01-31-2004 11:52 AM

The crew at http://www.everythingvb.com/forumhome.php? are going to make a hacking guide soon, I believe :)

Ninth Dimension 01-31-2004 12:13 PM

Sounds good to me, thanks for the links guys, I'll be sure to check them out, with luck I'll have my article system up and running soon...

Mist, I knew what the code did, I was more interested in what it was used for within the scope of vB... but thank you for offering your help :D

Link14716 02-13-2004 01:29 AM

THIS_SCRIPT is used a lot in conditionals and stuff, very useful indeed.

NO_REGISTER_GLOBALS just stops vB from emulating register_globals = on, since it isn't needed anymore.


All times are GMT. The time now is 01:01 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.00988 seconds
  • Memory Usage 1,726KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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