A+ | A - | RESET
Fixed | Wide | Full | Reset

Capture360.Net

Cover Every Angle

  Advanced search
Welcome, Guest. Please login or register.
Did you miss your activation email?
23:21 GMT - Fri 26 Apr 24

Login with username, password and session length
Pages: [1]
Author Topic: Drupal menu  (Read 10751 times)
0 Members and Guests are viewing this topic.
Liakoni
Conscript
*******
Posts: 1


« at: 14:22 GMT - Fri 28 Sep 12 »

I followed the instruction for the instalation for g2drupal, but i had problem with the step:
"Navigate to "Structure >> Menus" and add links to your Gallery 2 site to menus "

I've done that, but it just redirect me to Gallery2 page (outside drupal) when i click the link.
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #1 at: 14:46 GMT - Fri 28 Sep 12 »

Are you sure you have fully followed the steps?

Particularly
- that you have installed the Drupal module
- that you have enabled the Drupal module
- that you have configured the Drupal module
- that you have installed the Gallery2 module
- that you have configured the Gallery2 module
- that you have activated the Gallery2 module
- that you have edited the Gallery2 main.php correctly
- that you have uploaded and unpacked the Gallery2 lib zip

and others

I'll suggest taking a print out of the codex page and tick off each step on the page
Logged
TerryBennington
Conscript
*******
Posts: 4


« Reply #2 at: 23:39 GMT - Thu 15 Nov 12 »

Dayo: I too have the same issue. 

* Yes, I've installed the G2Drupal module, activated and configured with full path and tag.

* Yes, I've created a menu item in Drupal which points to the gallery2 directory.

* Yes, I've installed Gallery2, configured it, created an album and uploaded a few images. 

*Yes, I modified main. php as instructed.

* Yes, Gallery works, I can view the album, and all the images.

But, when I go through the menu item in Drupal, Gallery isn't embedded into Drupal; it's just a "normal" stand-alone Gallery site without my Drupal navigational menus, etc.  And, if I'm logged into Drupal as the administrator, I am not logged into Gallery.

For the record, the directory hierarchy looks like:
/home/myuserid/mydomain. com/
/home/myuserid/mydomain. com/gallery2
/home/myuserid/mydomain. com/gallery2/lib
/home/myuserid/mydomain. com/gallery2/lib/G2RefineHTML
/home/myuserid/mydomain. com/gallery2/lib/G2SimpleHTMLDom
/home/myuserid/mydomain. com/gallery2/lib/events
/home/myuserid/mydomain. com/gallery2/modules/g2drupal
/home/myuserid/mydomain. com/gallery2/modules/g2drupal/classes
/home/myuserid/mydomain. com/gallery2/modules/g2drupal/data
/home/myuserid/mydomain. com/gallery2/modules/g2drupal/templates

Thanks!
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #3 at: 15:26 GMT - Fri 16 Nov 12 »

@TerryBennington,

First, on the user syncing, this has not yet been implemented due to other work/life pressures and is on the back burner for now.

As for the process not showing up as expected, this means one of the following.

* The user has not set things up as should.
* The package has a bug somewhere.

As a user, you would probably tend to think it is the latter and as the coder, I would like to think it is the former.

I suppose I need to retest the set up process again to satisfy myself that it works but I don't have access to my dev machine right now so will have to ask you to again make sure you have followed the set up steps.

Note that the Gallery2 module part is designed to throw up a big error message if it cannot hook into a Drupal installation and the absence of this message suggests the G2 module may not be active.

Can you confirm that you installed, configured and, importantly, activated the G2Drupal module in Gallery2?
Logged
TerryBennington
Conscript
*******
Posts: 4


« Reply #4 at: 15:40 GMT - Fri 16 Nov 12 »

Dayo: being new to both Drupal and Gallery2, I think I discovered part the problem.    The last step for installing G2Drupal reads "Install, configure and activate.   " Being a neophyte, this was rather meaningless.    I say to myself "Drupal works.    Gallery works.    I guess they must, therefore, be installed, configured and activated.   "

While going through the admin stuff in Gallery, I discovered there is a plugin named "G2Drupal" with a link to "Install.   " Which, after clicking "Install," it becomes a link to "Configure.   "

Now I get an error message after clicking "Configure" that there was an error "while retrieving hxxp: mydomain.   com/gallery2/main.   php?g2_view=core.   SiteAdmin&g2_subView=g2drupal.   AdminG2Drupal.   "

Newbies.   .   .    don't ya just hate 'em? :-)
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #5 at: 15:49 GMT - Fri 16 Nov 12 »

That is useful feedback. I'll spell out the "Install, configure and activate" portion in minute detail for the damned newbies :- )


There is an error somewhere in the code and I'll need to debug this.

Subscribe to the announcements thread to be informed when an updated version is posted.
Logged
TerryBennington
Conscript
*******
Posts: 4


« Reply #6 at: 17:02 GMT - Fri 16 Nov 12 »

I used to teach computer programming for the Department of Defense (15+ years).  If I never learned anything else in all those years, I learned two things: 1) a newbie will try things a seasoned, experienced code-slinger would never dream of doing, and 2) some C compilers have a "print" macro defined in stdio. h that doesn't do the same thing as "printf. "

I'd be glad to review your instructions from an idiots point of view.  I assUme you can see my email address (and yes, it actually works!).  Feel free to send an email, and I'll send ya my review!
Logged
TerryBennington
Conscript
*******
Posts: 4


« Reply #7 at: 21:38 GMT - Fri 16 Nov 12 »

Dayo: I turned-on debuging in config.   php (i.   e.    I uncommented  $gallery->setDebug('buffered');) and tried to configure G2Drupal.    Got a new error message saying there was an undefined method Is_Empty().   

I looked, and there wasn't an Is_Empty anywhere.    I did find isEmpty in the class G2DrupalUtils.    So, I did a global replace in AdminG2Drupal.   inc:

g/Is_Empty/s//isEmpty/g

Everything works.    I turned-off debug, configured G2Drupal, activated and Gallery is now embedded as expected.   

Hope this helps.   As noted earlier, I taught 26 different programming languages for the DoD, but I don't program in PhP.   Let me know if I'm going to accidentally send nuclear missiles to Toledo (OH) or something!!!
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #8 at: 06:48 GMT - Sat 17 Nov 12 »

Nice work and the good people of Toledo can sleep tight as well.

I'll try to update the package today.
Logged
Pages: [1]
Jump to:  

Latest Posts
by Dayo
[21:04 GMT - Tue 19 Aug 14]

[22:20 GMT - Sat 16 Aug 14]

[21:15 GMT - Wed 09 Apr 14]

by Dayo
[17:18 GMT - Tue 21 Jan 14]

[15:55 GMT - Sun 15 Sep 13]
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Corto design TinyPortal v0.9.8 © Bloc
Configured by Dayo Akanji
Contact