Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Bitmap Bitmap is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-07-2002 Last Update: Never Installs: 10
Is in Beta Stage  
No support by the author.

hmm ... ok. because i needed it desperately i asked a friend of mine to write me this hack. and he wrote it
for me it works ok, but i am not quite sure if it is secure or if it has some errors in it. that's why i am attaching it in this forum.

well. if you find some errors feel free to fix them ...

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-17-2002, 12:15 PM
Big Chief Big Chief is offline
 
Join Date: Jan 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, i am the friend that Bitmap talked of. And I?m the creator of this little Hack. Nice to hear that you like it.

Here are some changes that should make cheating it impossible and make the hack more secure. Hope it works well

ATTENTION:
You need both, the FIRST VERSION AND THIS ONE.

It?s just an expension .
Reply With Quote
  #13  
Old 01-17-2002, 02:11 PM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Big Chief - I'll implement this tonight and see how it goes! Many thanks for your efforts.
Reply With Quote
  #14  
Old 01-21-2002, 09:44 AM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I've been playing around with this for a while. A few bugs to be found - I've tested the install of this 3 times now.

Code:
// ###################### Start styles #######################
if ($action=="styles") {

    $getforumid=$DB_site->query("SELECT forumid FROM moderator WHERE userid=$bbuserinfo[userid];");
Im quite sure $bbuserinfo[userid]; should not have the ";" at the end.

The security thing is a bit weird too. I'm not sure if the above made a difference. If the user cannot edit the style (i.e. no permission in the control panel) - the list of styles shows they can edit the default style. When you click the link its lets you edit the style associated with the forum you moderate (which is supposed to happen, but only if you have the permission)

I've really busy with RL stuff at the moment, but I'll try and track down where this might be going wrong.

Thanks again,

Martz
Reply With Quote
  #15  
Old 01-21-2002, 02:01 PM
Big Chief Big Chief is offline
 
Join Date: Jan 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm ..... here it works perfectly. And Bitmap also used my Hack.txt to install the hack herself ..... also no probs.

But i know, that the expension is pretty complicated. I?ll try to make everything a bit easier to install by creating a new function.

If this works, i?ll create a new hack.txt with both parts above in it.

I?m sorry about it, but i don?t have much time ...... cause I have to code another script for my friend?s SWG-Homepage. I?m her "PHP-Slave" as she calls me
Reply With Quote
  #16  
Old 01-22-2002, 07:18 AM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problems mate.

I'll give it another shot and see if I can come up with the requried result.
Reply With Quote
  #17  
Old 01-24-2002, 09:54 PM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I've got it installed great - I'll always be a newbie :frus:

Testing this now, live - so no bugs I hope!

Obviously if the user is a moderator of 2 forums with different styles, they can only edit one of them (the style associated with the first moderator id) - which may be a draw back, but it isn't the case at the moment. Maybe an improvment in the future if your Mistress of php lets you.

Great job though. leased:
Reply With Quote
  #18  
Old 01-25-2002, 11:32 AM
Bitmap Bitmap is offline
 
Join Date: Oct 2001
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Martz
[B]Obviously if the user is a moderator of 2 forums with different styles, they can only edit one of them (the style associated with the first moderator id) - which may be a draw back, but it isn't the case at the moment. B]
actually i have several mods who have two different forums with two different styles ... and they can modify both styles or wans't that what you meant?
Reply With Quote
  #19  
Old 01-26-2002, 10:11 AM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Bitmap
actually i have several mods who have two different forums with two different styles ... and they can modify both styles or wans't that what you meant?
Thats exactly what I meant. I have a Test Mod who can edit 2 different styles, Style A and Style B. They are both listed when I click "Modify Styles" but when I click to edit either style it only shows Style A.
Reply With Quote
  #20  
Old 01-26-2002, 01:09 PM
Snake~eyes Snake~eyes is offline
 
Join Date: Oct 2001
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Martz, let me know when you are using this hack officially on your boards. Because then i'm going to. lol..
Reply With Quote
  #21  
Old 01-27-2002, 01:06 PM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am live with it now

I have around 10 community moderators editing styles and their own templates. So far so good, however helping them out with vB templates is great fun :P
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:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05893 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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