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

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

*Looking up Paul M's Hookrequests*
Reply With Quote
  #32  
Old 09-28-2005, 05:05 PM
Mike Sullivan Mike Sullivan is offline
 
Join Date: Feb 2002
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
Oh, so my requests found the usual reject pile then.
I don't even think you've posted in that thread in the last month...
Reply With Quote
  #33  
Old 09-28-2005, 05:07 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mike Sullivan
I don't even think you've posted in that thread in the last month...
10 Days ago actually .......

http://www.vbulletin.com/forum/showp...&postcount=386
Reply With Quote
  #34  
Old 09-28-2005, 05:08 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From looking at the code, I think it should be possible to use Hooks

postbit_display_complete
member_complete
reputation_add
memberlist_bit

for what you want to do.
Reply With Quote
  #35  
Old 09-28-2005, 05:09 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
With some code changes it should be possible to make it edit-less, yes.
I can write up the instructions if you want.
Just saw your response over at vBa......

[high]* KW802 gets giddy like a little kid at the prospect of a totally edit-less vBa CMPS. :banana:[/high]
Reply With Quote
  #36  
Old 09-28-2005, 05:25 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
From looking at the code, I think it should be possible to use Hooks

postbit_display_complete
member_complete
reputation_add
memberlist_bit

for what you want to do.
I'm sure it *might* be possible to fudge/kludge/bodge it using existing hooks, I'm also sure the same applies to many hooks already added. I do also use the reputation power function in another place besides it's normal use, so I'm not sure how that would work, duplicating code in multiple hook locations is not my idea of a good way to do things.

I have managed to kludge up a way to change the pips display - but it requires a minor template change (one btw that would not affect any normal vb installations workings, so it would be nice if it were a master change).

However, it's much easier, simpler and cleaner to have a hook in each function. It's a bit worrying (from the post above) that the request doesn't appear to have even been seen.
Reply With Quote
  #37  
Old 09-28-2005, 05:29 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first I got "vBulletin 3.5 Scott done eat a Pizza"
now I got: "vBulletin 3.5 Almost"
and also with: vBulletin 3.5³
and: "vBulletin 3.5, now with coffee maker support!"

someone is making jokes !

lol, can't wait for the gold version.
Reply With Quote
  #38  
Old 09-28-2005, 05:43 PM
Mike Sullivan Mike Sullivan is offline
 
Join Date: Feb 2002
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
However, it's much easier, simpler and cleaner to have a hook in each function. It's a bit worrying (from the post above) that the request doesn't appear to have even been seen.
No, I saw it. I scrolled through a bunch of pages looking for your name and just missed it.

Regardless, I'm very wary of adding additional hooks to showthread, especially in looped areas due to overhead concerns. Hooks are not designed to account for every instance, remember.
Reply With Quote
  #39  
Old 09-28-2005, 06:43 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deathemperor
first I got "vBulletin 3.5 Scott done eat a Pizza"
now I got: "vBulletin 3.5 Almost"
and also with: vBulletin 3.5?
and: "vBulletin 3.5, now with coffee maker support!"

someone is making jokes !

lol, can't wait for the gold version.

I'm Waiting for them to put

vBulletin 3.5 Aww forget it...go back to 3.0.9
Reply With Quote
  #40  
Old 09-28-2005, 07:12 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mike Sullivan
Regardless, I'm very wary of adding additional hooks to showthread, especially in looped areas due to overhead concerns. Hooks are not designed to account for every instance, remember.
Yet there is a hook in the looped image fetch (reputation_image) which is called for every pip rather than just once per post. I know which would be more useful to me, and much less overhead. I wonder if anyone uses the reputation_image hook.

(fyi the bodge I referred to for my hack uses that hook plus the template change simply because it's all I can use, it would be far better to have one hook at the end of the function)
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 06:05 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.02270 seconds
  • Memory Usage 2,273KB
  • 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
  • (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
  • (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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete