Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #41  
Old 05-12-2005, 12:52 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AN-net
yeah but i know in the long run its better but now im summer is blown because first i have to learn oop then i have to learn the plug-in system and then i have to code. drrr.
You knew this was coming, you could have spend the winter learning.
Reply With Quote
  #42  
Old 05-12-2005, 01:12 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a question, if you code a hack using OOP, or OOPing the code however the correct reference goes, will it only work with 3.5 or could it be developed on 3.0.7?
Reply With Quote
  #43  
Old 05-12-2005, 01:23 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im currently developing RPG v4 in OOP, but (obviously) for .0.7
The difference is that while my $RPG class won't have to change (much), all the $vboptions's etc needs to be changed.
Reply With Quote
  #44  
Old 05-12-2005, 02:59 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
without seeing the code, it will be hard to determine

i already fear upgrading all the vb.org used hacks ^^
lol, poor admin
Reply With Quote
  #45  
Old 05-12-2005, 03:28 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
I also don't quite understand the theory of these. It sounds like they will allow you to "insert" code at various points, but many hacks don't just insert code, they actually change existing code, so how will this work ?
The instructions for installing the typical hack will no longer include steps like:

"Open showthread.php and look for:

<<CHUNK OF CODE>>

and replace it with

<<CHUNK OF CODE>>"

and init.php, search.php, etc. ad nauseum.

Instead you will upload a bunch of PHP files which vBulletin talks to in a documented way.
Reply With Quote
  #46  
Old 05-12-2005, 03:40 PM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
i have a question, if you code a hack using OOP, or OOPing the code however the correct reference goes, will it only work with 3.5 or could it be developed on 3.0.7?
Aslong as the class-name and variable given to call the class is 'unique' then no collision will occur.

I am glad to hear about OOP, it was something i always liked about IPB (back when i used it), some may see it as a pain, but from a different perspective it can really neaten codes up, optomize them, and make nice lil library files =)

I'll be looking out for the beta, so i can be prepared what to expect for the Plugins system, i'm also very interested and planning on intergating every single line of the AJAX engine, i have great plans for it.

- Zero Tolerance
Reply With Quote
  #47  
Old 05-12-2005, 03:55 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by feldon23
The instructions for installing the typical hack will no longer include steps like:

"Open showthread.php and look for:

<<CHUNK OF CODE>>

and replace it with

<<CHUNK OF CODE>>"

and init.php, search.php, etc. ad nauseum.

Instead you will upload a bunch of PHP files which vBulletin talks to in a documented way.
Without seeing the code, one can only speculate on how it will actually work. It was said that "hooks" are used throughout the program now which likely means it will consult a list of installed modifications, see which ones are registered with that hook, and execute code appropriately. Where there's no hook, you won't likely be able to affect the normal code flow, just like now. However, the way they described it, it sounds like they can easily add hooks later.

I would be worried about a hook in a loop. An irresponsible modification author may add a query to their code that registers with that hook and therefore queries in a loop.
Reply With Quote
  #48  
Old 05-12-2005, 04:11 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by filburt1
Without seeing the code, one can only speculate on how it will actually work. It was said that "hooks" are used throughout the program now which likely means it will consult a list of installed modifications, see which ones are registered with that hook, and execute code appropriately. Where there's no hook, you won't likely be able to affect the normal code flow, just like now. However, the way they described it, it sounds like they can easily add hooks later.

I would be worried about a hook in a loop. An irresponsible modification author may add a query to their code that registers with that hook and therefore queries in a loop.
Hack authors won't need to write queries very often because of the Data Manager and OOP.

Most queries that people add to their hacks search on the post table or add an index or table to supplement users, posts, threads, etc. With vB3.5, all of that should be done with Data Manager and Classes.
Reply With Quote
  #49  
Old 05-12-2005, 04:45 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
You knew this was coming, you could have spend the winter learning.
well i didnt think it would be so soon and i was busy actually coding the sections of my site. OOP= da evil!!! why cant i just code!!1
Reply With Quote
  #50  
Old 05-12-2005, 06:05 PM
Guest190829
Guest
 
Posts: n/a
Default

It's going to be great learning to code 3.5.0 in my opinion, now I have a reason to learn OOP annnd now I have things to do over the summer ^_^
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:19 AM.


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.04699 seconds
  • Memory Usage 2,259KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (9)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