Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2010, 06:54 PM
m_c m_c is offline
 
Join Date: Feb 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 03-23-2010, 07:33 PM
preed preed is offline
 
Join Date: Mar 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anything ever happen with that?
Reply With Quote
  #3  
Old 03-23-2010, 08:09 PM
m_c m_c is offline
 
Join Date: Feb 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
anything ever happen with that?
huh?
Reply With Quote
  #4  
Old 03-23-2010, 10:07 PM
preed preed is offline
 
Join Date: Mar 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 04-13-2012, 04:05 AM
artoo-detoo artoo-detoo is offline
 
Join Date: Jul 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 04-19-2012, 06:52 AM
rjerina rjerina is offline
 
Join Date: Jan 2004
Location: Cleveland, OH
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by artoo-detoo View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:38 PM.


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.03615 seconds
  • Memory Usage 2,209KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete