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?
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?