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

Reply
 
Thread Tools
Details »»

Version: , by TheHideoutGuy TheHideoutGuy is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-24-2001 Last Update: Never Installs: 3
 
No support by the author.

After a crash course learning PHP, vBulletin, and vbPortal I've managed to come up with an add-on/hack based on the Nuke5 hack that is included in the package. To those experienced PHP programmers, please be kind this is my first official PHP project!

For those who are interested you can download gallery at http://gallery.sourceforge.net and vbPortal can be had at http://www.phpportals.com

This add-on consists of a folder that you install in the classes subdir which contains the database class for vBulletin. You also have to make some modifications to a couple Gallery files and real simple and minor modifications to 2 vbPortal files.

This hack uses the vB user database for assigning permissions to the various albums. It's not complete by any means, and be forewarned that the album permissions page wants to load the entire user database each time, which is obviously not good for larger sites.

Probably in future releases I'm going to remove the Nuke stuff altogether in an attempt to speed up the script, but for the moment I have left it in.

For those who don't want to run vbPortal it is entirely possible to hack init.php in gallery to always use the vBulletin database class, but I am not packaging it that way because I am using vbPortal.

Enjoy!

Show Your Support

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

Comments
  #2  
Old 09-25-2001, 05:26 PM
TheHideoutGuy TheHideoutGuy is offline
 
Join Date: Oct 2001
Location: Syracuse, NY
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Crud... Wrong forum.. Sorry..
Mods - Please move to appropriate forum.

Thanks.
Reply With Quote
  #3  
Old 05-29-2002, 11:24 AM
mars's Avatar
mars mars is offline
 
Join Date: Nov 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

had a look in the full release forums but couldn't find this ?...anyway has anyone used this without Vbportal ?
Quote:
For those who don't want to run vbPortal it is entirely possible to hack init.php in gallery to always use the vBulletin database class, but I am not packaging it that way because I am using vbPortal
Sounds straight forward but being a bit of a n00b I could do with a bit of a hand / info on this ?

Thanx in advance
Reply With Quote
  #4  
Old 06-04-2002, 12:57 AM
countryboy713 countryboy713 is offline
 
Join Date: Mar 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One problem, When accessed through vBportal you get this error if you are not admin.

Fatal error: Call to a member function on a non-object in /home/virtual/site223/fst/var/www/html/modules/Gallery/classes/Album.php on line 1037

It works fine if you access it directly.

that line, and surrounding lines are as follows

Code:
	function getPerm($permName, $uid) {
		$perm = $this->fields["perms"][$permName];
		if ($perm[$uid]) {
			return true;
		}

		global $gallery;
		/* If everybody has the perm, then we do too */
		$everybody = $gallery->userDB->getEverybody();
		if ($perm[$everybody->getUid()]) {
			return true;
		}

		/*
		 * If loggedIn has the perm and we're logged in, then
		 * we're ok also.
		 */
		$loggedIn = $gallery->userDB->getLoggedIn();
		if ($perm[$loggedIn->getUid()] &&
		    strcmp($gallery->user->getUid(), $everybody->getUid())) {
		        return true;
		}

		return false;
	}

the red line being 1037
Reply With Quote
  #5  
Old 03-23-2003, 09:10 AM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work ? is there a vb home intergration ?
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:27 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.04418 seconds
  • Memory Usage 2,237KB
  • Queries Executed 18 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete