PDA

View Full Version : Gallery2 (menalto) integration


m_c
03-23-2010, 06:54 PM
I'm currently working on getting a site updated from 3.7.x to 4, but I'm hitting my head against a brick wall trying to get the gallery2 integration working.

I used the original mod (https://vborg.vbsupport.ru/showthread.php?t=111931) and surprisingly, it partially works. My gallery user account was created, and the makings of the gallery page are displayed, but the layout is totally wrong, and links/images don't work.

I've tried updating the gallery2 template to use vB4 template variables, but as soon I change any of the old style variables in the template, I get an internal server error (500).
Having checked the error log, the errors are -
[Tue Mar 23 19:31:58 2010] [error] [client x] PHP Parse error: syntax error, unexpected T_STRING in /var/www/html/test/gallery2.php(45) : eval()'d code on line 1, referer: http://www.mtbrider.com/test/gallery2.php
[Tue Mar 23 19:31:58 2010] [error] [client x] PHP Parse error: syntax error, unexpected T_STRING in /var/www/html/test/gallery2.php(173) : eval()'d code on line 2, referer: http://www.mtbrider.com/test/gallery2.php
Line 45 is a comment, and line 173 is the closing php tag.

I've tried to follow this guide - [How-To] Include PHP In Templates In vBulletin-4 Powered Pages (https://vborg.vbsupport.ru/showthread.php?t=228928)
and was hoping to work on converting sections at a time, but I'm getting no where due to the above problem.

Can anybody provide me with some tips as to any obvious bits that need changed, before I start commenting out large sections of code while trying to figure out and understand the new vB variable system?

preed
03-23-2010, 07:33 PM
anything ever happen with that?

m_c
03-23-2010, 08:09 PM
Been doing a bit more searching on this, and am slowly starting to get things working.
The template/server error was down to not using the the old fetch_template function, instead of the newer vB_Template class (Using custom templates within your own vBulletin 4 based files (http://www.vbulletin.com/forum/entry.php?2388-Using-custom-templates-within-your-own-vBulletin-4-based-files) for a basic summary).

I've now got the basic navigation menu displayed, but the CSS isn't being loaded (I'm guessing I need another vB style variable to load the right template?)

I also need to convert other bits of gallery2.php, so the g2 output is transferred via $templater, which I'm only slowly starting to understand.

anything ever happen with that?
huh?

preed
03-23-2010, 10:07 PM
sorry if i wasnt clear, i am trying to do the same thing and im not finding out much information at all on it.
menalto gallery2 + vb4 integration.

im switching over from smf which i use the gallery in and now i want to move it to my new vb4.0. i thought i saw a codex in here once but heck if i can find it now.

artoo-detoo
04-13-2012, 04:05 AM
Did either of you ever get this to work cleanly (vB4 with Gallery2.x)?

Hoping to snag the gallery2.php file rather than reinventing the wheel.

Thanks in advance.

rjerina
04-19-2012, 06:52 AM
Did either of you ever get this to work cleanly (vB4 with Gallery2.x)?

Hoping to snag the gallery2.php file rather than reinventing the wheel.

Thanks in advance.

+1 :)

Thanks also in advance.