vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   PhotoPost vBTemplates 4.1.x/4.5.x (https://vborg.vbsupport.ru/showthread.php?t=58881)

JustCurious 01-16-2004 03:36 AM

I apologize for not reading the entire thread before posting. I assumed the installer worked or otherwise would've been removed from the hack until it was fixed.

Thanks for your help, I'll give it a try.

JustCurious 01-16-2004 03:49 AM

Quote:

Originally Posted by recumbent615
JustCurious,

How did you install the New templates? Did you use the install script provided with the hack? It has been reported several times in this thread that it does not work correctly, I have provided the sql commands in a file to add the templates and another poster has included a text based template set you can either open each template and cut and paste or you can use Chen's template backup hack ...

pp_online is one of the templates provided by this hack. I would suggest that you down load the zip file that contains the template backups and verify that you have all of the templates installed correctly.

As far as your post #69 open /forums/admin/templates.php

PHP Code:

 $only['pagenav'] = 'Page Navigation';
  
$only['pp_'] = 'PhotoPost';
  
$only['poll'] = 'Polling';
  
$only['postbit'] = 'Postbit'

add the second line there between Page Navigation and Polling

I hope this helps.

Kevin

My file looks exactly like this but still not working.

JustCurious 01-16-2004 04:49 AM

k, I went through and manually added all the templates and checked all the suggestions given above. Everything went much smoother this time, but I'm still getting this:

Fatal error: Call to undefined function: gettemplate() in /home/xxx/public_html/xx/index.php on line 171

Line 171 is: eval("\$pp_online = \"".gettemplate('pp_online')."\";");

Thanks in advance.

recumbent615 01-16-2004 04:01 PM

You may want to verify the edits in the header-inc.php file for the VB integration for VB2 or VB3. This also provides calls to the VB global.php that includes the def of the gettemplate() function. this error can occur when this file are not edited. Just a thought .. other than that... I'm lost to a degree.

Kevin

( also I'm assuming that you are running VB2.x not VB3 )

JustCurious 01-16-2004 11:22 PM

Yes VB 2.3.4

recumbent615 01-17-2004 12:10 AM

Here is the code in Header-inc.php that you need to check for and uncomment

PHP Code:

// -----> START VB2 CODE (uncomment lines down to END VB2) <-----
$vbpath ="/full/path/to/forum"// changeme
$pppath ="/full/path/to/photopost"// changeme
chdir($vbpath);
require(
"global.php");
ob_start();
eval(
"dooutput(\"".gettemplate('headinclude')."\",0);");
$bodytag="<body>";
echo 
dovars($bodytag,0);
$vbheader="<head>";
$vbheader.=ob_get_contents();
$vbheader.="</head>";
ob_end_clean();
ob_start();
eval(
"dooutput(\"".gettemplate('header')."\",0);");
$vbheader.=ob_get_contents();
ob_end_clean();
ob_start();
eval(
"dooutput(\"".gettemplate('footer')."\",0);");
$vbfooter=ob_get_contents();
ob_end_clean();
chdir($pppath);
// -----> END VB2 CODE (do not uncomment) <----- 


Mickie D 01-22-2004 11:30 AM

hi i was wondering about this hack and it seems very good hack but i have one simple question :)

if i change my style in vbulletin will it change the style so photopost has the same ???

obsidian 01-22-2004 12:07 PM

Yes it will. The hack makes it so photpost will use the vbulletin templates so when you switch vbulletin photopost follows suit. I have about 6 themes on my site so this was a godsend.

recumbent615 01-22-2004 03:50 PM

I t works that way for me, Check the Style # for the PP_ styles and I believe that if they are set to -1 they will follow into every one of your styles.

Deska 01-22-2004 04:10 PM

is this work with vB 2.3.4 and Photopost v4.6.5 ?
Thank's....


All times are GMT. The time now is 01:05 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.01273 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete