View Single Post
  #258  
Old 10-03-2007, 11:14 AM
NineVB NineVB is offline
 
Join Date: May 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, I decided to take a fat chance and try installing Gallery 2.2 (Latest) with vBulletin 3.6.8, and lo and behold it worked. Well, almost.

Here's what I did:
I created the gallery2 directory within the forum home, as indicated.
But then I struck a small problem. The "Your album" as well as clicking on an image, would take me to /v/<name>.
So, I then proceeded to move gallery2.php to /gallery2/gallery2.php, (didn't need to change the embed.php line or anything) and nothing came up. I then linked the file back to gallery2.php and it worked. No snags yet. (See minor issues below.)

I did try and add the .xml files for the two addons, and also hit a serious snag.:erm:
Trying to add it as a product said this looks like a Plugin...
Ok, so now to add a plugin.
And I had to do a quick crash course. So here goes for those that don't want to do too mouch soul or web searching:

In the add new plugin part:
  1. Select vBulletin in the first dropdown. (Mine contains vDrupal as well.)
  2. Select the Hook Location as userdata_postsave in the first one and userdata_delete in the second one.
  3. The titles are "Update Gallery User" and "Delete Gallery User" respectively.
  4. Now take the first section from "CDATA[" (Not including, in otherwords, first line starts with "require_once") up to before "]]></phpcode" and paste that as the Plugin PHP Code.
  5. Make sure you do this for both parts, that are listed within the xml file.
  6. Ensure that you have enabled the plugins, and you're done.

I am still trying to figure out, how to not pass the gallery out of the vBulletin forums, when you click on "My Gallery" and any images.

This however is not a major issue right now, as I will change the skin to allow you to go back to either the home page or the forum anyway.

Thankyou for all the work Brent. Well done.
Now I need to figure out how to do a group control from vBulletin to gallery, whereby only members of a specific forum group can add images to the gallery.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01157 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete