vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Gallery2 (menalto) integration (https://vborg.vbsupport.ru/showthread.php?t=238936)

m_c 03-23-2010 06:54 PM

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

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

Quote:

Originally Posted by preed (Post 2008930)
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 03: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 05:52 AM

Quote:

Originally Posted by artoo-detoo (Post 2319629)
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.


All times are GMT. The time now is 03:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01428 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete