The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Gallery2 (menalto) integration
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 - Code:
[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 I've tried to follow this guide - [How-To] Include PHP In Templates In vBulletin-4 Powered Pages 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? |
#2
|
|||
|
|||
anything ever happen with that?
|
#3
|
|||
|
|||
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 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. huh? |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
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. |
#6
|
|||
|
|||
Quote:
Thanks also in advance. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|