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)

Imhotep 12-07-2003 02:53 PM

Harlequin,

Thanks for the info on the template counter. That piece of info is most definitely not intuitive! I RTFM and found nothing relating to the counter.... and I don't understand why we're expected to pick that up through osmosis.

jjj0923,

Apparently, you have the same problem that I had last night. Read my posts and the reply from Herlequin. Which version of vB and PP are you running? You www link points to viagra.com. Somehow I suspect that's not the site you're working on.

jjj0923 12-07-2003 05:14 PM

Quote:

Originally Posted by Imhotep
Harlequin,

Thanks for the info on the template counter. That piece of info is most definitely not intuitive! I RTFM and found nothing relating to the counter.... and I don't understand why we're expected to pick that up through osmosis.


jjj0923,

Apparently, you have the same problem that I had last night. Read my posts and the reply from Herlequin. Which version of vB and PP are you running? You www link points to viagra.com. Somehow I suspect that's not the site you're working on.

I'm using vb 2.9 and pp 4.5

the url is correct - however the vb & pp are hidden and for internal use.

- jeff

Imhotep 12-07-2003 05:32 PM

You're running v2.9, eh? That interesting considering the latest stable release is 2.3.3 and from there it's going to go straight to 3.0. Where'd you find a version 2.9?

I think what AJ is trying to tell you is that you have not yet editied the header-inc.php file in PP root. I believe this will solve your problem. (In addition to installing the templates correctly)

This is what you need to uncomment in header-inc.php

Code:


// vBulletin Integration
// Instead of using the static header/footer file specified in the Admin options
// panel, you can use your existing default vBulletin header/footer.  Just change
// $vbpath and $pppath below to the proper full paths and remove the "//" slashes
// from the beginning of the 17 lines of code below.  If PhotoPost has an odd
// background color or squished width, you will need to edit vbulletin's default
// "header" style input box / template and change "{pagebgcolor}" and "{tablewidth}"
// (near the bottom) to your preferred background color and table width, respectively.

//$vbpath ="/full/path/to/forum"; // changeme
//$pppath ="/full/path/to/photo"; // 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);


As for installing the template hack correctly, do not use the provided installer. It's got some issues. :) If you used it, just use it again to uninstall the templates. From there, download your style file and add the contents of "ppstyle 4.5.txt" before the final set of pipes "|||" in the style file. Use the CP to upload/overwrite the newly edited style.

With any luck this will solve your problem.

Like I said before, your bug is (was) the same as mine. It can be worked out if you just have a little patience.

jjj0923 12-07-2003 05:58 PM

I just did that - no luck.
I did use the provided installer.
the variable in pp_index are not getting set - however gettemplate is not failing any longer - like the rest of you - it just seems as though the templates are not being read at all.

ps: where can I find the ppstyle 4.5.txt file?

- jeff

jjj0923 12-07-2003 06:08 PM

I downloaded the style.

then I took the contents that your specified and inserted them before that last ||| in the original style file.

save it and uploaded it using the uploade style set and the import ran correctly.

however none of the pp_ templates show up in the template list.

- jeff

AJR 12-07-2003 06:17 PM

The first line of every template file should look something like this:

2.3.2|||name|||name|||name|||23|||116|||

- The first number is the vBulletin version numer it was made for.
- The name name name are the Style, Replacement, and Template set names.
- The 23 is the number of Replacements to add
- The 116 is the number of Templates to add

You would add 127 (v4.1.x) or 128 (v4.5.x) to 116 = 243

The above is an example of what to do. Numbers are going to be different in every style file, but the format stays the same!

jjj0923 12-07-2003 06:24 PM

Quote:

Originally Posted by AJR
The first line of every template file should look something like this:

2.3.2|||name|||name|||name|||23|||116|||

- The first number is the vBulletin version numer it was made for.
- The name name name are the Style, Replacement, and Template set names.
- The 23 is the number of Replacements to add
- The 116 is the number of Templates to add

You would add 127 (v4.1.x) or 128 (v4.5.x) to 116 = 243

The above is an example of what to do. Numbers are going to be different in every style file, but the format stays the same!


this is what mine looks like.

2.2.9|||Default|||Default|||Default|||23|||362|||{ timecolor}|||#000000|||{textareacols_IE}|||60|||{p agetextcolor}|||#000000|||{linkcolor}|||#000000||| {hovercolor}|||#0000FF|||{categoryfontcolor}|||#FF FFFF|||{pagebgcolor}|||#FFFFFF|||{tableheadtextcol or}|||#FFFFFF|||{firstaltcolor}|||#FFFFFF|||{table headbgcolor}|||#235CDA|||<body>|||<body bgcolor="#215AD6" text="#000000" id="all" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000020" vlink="#000020" alink="#000020" background="{imagesfolder}/j2.gif">|||{tableouterborderwidth}|||0|||{tablebor dercolor}|||#000000|||{categorybackcolor}|||#235CD A|||{titleimage}|||http://www.viagra.com/upload/images/t2.jpg|||{secondaltcolor}|||#A3BFF9|||{contenttabl ewidth}|||100%|||{tablewidth}|||100%|||{tableinner borderwidth}|||1|||{textareacols_NS4}|||60|||{text areacols_NS6}|||60|||{htmldoctype}|||<!DOCTYPE HTML PUBLIC\"-//W3C//DTD HTML 4.01 Transitional//EN\">|||{imagesfolder}|||http://www.viagra.com/upload/images|||911|||{htmldoctype}


so - you're saying that not only do I have to paste the new file in at the end of the file beofre the final ||| but I also have to change the number in the first line?

is that correct?

- jeff

jjj0923 12-07-2003 06:27 PM

therefore I would paste in your new stuff at the end of this file and change the 362 in the header to 490 (add 128) ???

jeff

jjj0923 12-07-2003 06:32 PM

I'm about to just give up on this.

I added your file at the end.
I added 128 to the nuber at the top.
I used to function in admin to upload it and no pp_ templates are showing up.

this seems like more trouble than it's worth to be honest.

Imhotep 12-07-2003 06:34 PM

Quote:

so - you're saying that not only do I have to paste the new file in at the end of the file beofre the final ||| but I also have to change the number in the first line?

is that correct?

According to the installation instructions provided with the hack, yes, that is correct with regards to changing the number of templates.

AJ, I missed the part where I add an additional 1 to the number of templates. I am running PP 4.5.1. I will add that extra 1 to the counter, but I am curious, what exactly is the purpose of the counter?


All times are GMT. The time now is 06:22 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.01290 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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