Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools Display Modes
  #81  
Old 09-14-2005, 02:13 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is another approach.

Installation Developer
1) Upload all Files
2) Import product-ds4p.xml
3) At the end (right before ?>) of includes/config.php ADD
PHP Code:
require_once(CWD '/includes/class_datastore_pluginsupport.php'); 
Installation Enduser
1) Upload class_datastore_pluginsupport.php
2) Import product-ds4p.xml
3) At the end (right before ?>) of includes/config.php ADD
PHP Code:
require_once(CWD '/includes/class_datastore_pluginsupport.php'); 

Usage Developer
In ACP/Plugin Manager there is a new Entry Datastore Item Manager where you can define the Datastore Requirements for your Product.
When a Plugin requires a Datastore Item that is not being loaded by Default use
PHP Code:
$vbulletin->datastore->do_fetch('myitem'); 
in the Plugin.
That's it.

Usage Enduser
Nothing special, just use Product Management as normal.

Pros
- Supports all storage Methods
- Does take care of Plugin System getting disabled (will not load custom items then) without Overhead
- Easy to use for Developer and Enduser
- Only 1 one-time, one-line File Edit necessary

Cons
- Slightly stronger Query
- New Table added
Attached Files
File Type: zip ds4p.zip (6.4 KB, 9 views)
  #82  
Old 09-14-2005, 02:24 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks kirby, I'll give this one a try
  #83  
Old 09-14-2005, 02:48 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will have a look also today i hope.
  #84  
Old 09-14-2005, 03:59 AM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well done kirby, thats basically what I saw the fix being for the requirement.
  #85  
Old 09-18-2005, 01:19 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump*
Anyone except merk willing to take a look at this?
Sad that I apparently wrote it for nothing
  #86  
Old 09-18-2005, 01:51 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
*bump*
Anyone except merk willing to take a look at this?
Sad that I apparently wrote it for nothing
Never !!! .... I got a hack I can try it with
  #87  
Old 09-18-2005, 02:39 AM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
*bump*
Anyone except merk willing to take a look at this?
Sad that I apparently wrote it for nothing
I hope Jelsoft have an eye on this thread because something is needed to allow this to occur, even if they write their own solution to the problem, there are many good ideas in here.

But as ive said before, im not about to modify such a core part of vbulletin when its only 1 more query per page for all my datastore items, until a time comes when it is default.

Its a shame that the default datastore classes dont have a method to fetch more items without overwriting the default "always load" (causing some pretty strange bugs).
  #88  
Old 09-18-2005, 05:01 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry Kirby, i have my hands full with RL work and family stuff at the moment. I will look at this as soon as i have some time.
  #89  
Old 03-30-2006, 12:32 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump - I forgot about this, looking @ his again, just waken others up to an old subject.

[move to Coders area] ?
  #90  
Old 01-11-2007, 04:37 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone still messing with this?

I set this up for a private mod way back then on one of my sites. Now I can't install vBSEO on that site even though it runs fine on other sites on the same server. I am wondering if this is the culprit. It's the only thing different.

EDIT: I can confirm that this mod does interfere with vBSEO.
Closed Thread


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 11:46 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.04730 seconds
  • Memory Usage 2,278KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_php
  • (2)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
  • (3)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
  • (1)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete