Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PhotoPost vBTemplates 4.1.x/4.5.x Details »»
PhotoPost vBTemplates 4.1.x/4.5.x
Version: 1.00, by AJR AJR is offline
Developer Last Online: Aug 2009 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 11-28-2003 Last Update: Never Installs: 14
 
No support by the author.

PhotoPost vBTemplates Hack v4.5
for vBulletin 2.2.7 through 2.3.x
and PhotoPost 4.1.x or PhotoPost 4.5
THIS IS NOT FOR VB3!

Created by: AJR (arusso@vpforums.com)
Installer by: Bane

Comments and suggestions welcome!

What this hack does:
====================
If you have PhotoPost (www.photopost.com) installed along with
vBulletin, you're stuck with only 1 template style using the
.tmpl files that come with PhotoPost. This hack allows you to
make your gallery look more like the vBulletin style you're
using by pulling the vBulletin style/replacement settings.
Best of all, if you use multiple styles, each style can have
it's own templates for PhotoPost.

With PhotoPost 4.5 there is now the option to create different .tmpl
template sets which is great, but to keep up with 2 configurations
for colors and styles can be a pain.

This hack also changes the way postbit data in the comments are
displayed. The date is shown like vBulletin (May 2003 instead of
5/2003). Also, the code is included for showing the user's
avatar in the comments!

Examples:
=========
Visit the following links for different style settings:

Techie: http://www.vpforums.com/gallery/index.php?styleid=1
XP: http://www.vpforums.com/gallery/index.php?styleid=2
iMac: http://www.vpforums.com/gallery/index.php?styleid=3
Bluechrome: http://www.vpforums.com/gallery/index.php?styleid=4
Utopia: http://www.vpforums.com/gallery/index.php?styleid=5
Techb1: http://www.vpforums.com/gallery/index.php?styleid=6
Tech Forums v3: http://www.vpforums.com/gallery/index.php?styleid=7
Photon: http://www.vpforums.com/gallery/index.php?styleid=8


Version 4.5 - December 2, 2003
==============================
- This version has been updated for use with PhotoPost 4.5. If you are using 4.1.x be sure
to choose the proper version from the install

Templates Added:
- pp_showphoto_showubb

Templates Changed:
- pp_bulkupload
- pp_featurebit
- pp_login
- pp_searchbox
- pp_membhead
- pp_showgallery
- pp_showphoto
- pp_showphoto_extra6
- pp_showphoto_noslideshow
- pp_uploadphoto
- pp_uploadphoto_adminedit

Files Changed:
- bulkupload.php
- pp-inc.php
- showphoto.php


Version 4.1.5 - November 28, 2003
=================================
- This is the first release of this hack. I have tested everything
as best as I can and everything should work correctly. The version
numbering will go along with PhotoPost's version number that it is
tested with.
- Converted all .tmpl files to vB Templates
- Changed the way the 'Registered:' date shows up (shows May 2003 instead of 5/2003)
- Included code to show the users avatar when they comment on a photo.
- menubar.tmpl and diewell.tmpl still need to remain in case of errors within PhotoPost.
- Created install_pptemplates.php file to install the 127 templates needed for this hack.

Installation:
=============
The install of this hack is relatively easy. There are 17 Photopost files and 1 vBulletin
file that need to be edited. While this may seem like a lot, it's just replacing all the
calls from the .tmpl files to the new pp_ templates. Please make sure to follow each file
change carefully. If you have errors after the install, check the file changes again! It
does work. Install time is approximately 15 to 20 minutes.

I will be working on a version to work with the new PhotoPost 4.5.x that was just released on 11-20-2003. I WILL NOT be working on versions of this hack for use with vB3. If anyone would like to convert this to vB3, please do so!

11-29-03 1:35AM PST: Just noticed an error on the template install that I uploaded (it was the wrong one). It has been fixed and reuploaded.

12-2-03 12:30AM PST: Updated this hack for PhotoPost 4.5.x (also includes install for 4.1.x). Download the zip file in this post for the updated version.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-07-2003, 02:53 PM
Imhotep Imhotep is offline
 
Join Date: Aug 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 12-07-2003, 05:14 PM
jjj0923's Avatar
jjj0923 jjj0923 is offline
 
Join Date: Mar 2002
Location: Maryland
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #24  
Old 12-07-2003, 05:32 PM
Imhotep Imhotep is offline
 
Join Date: Aug 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 12-07-2003, 05:58 PM
jjj0923's Avatar
jjj0923 jjj0923 is offline
 
Join Date: Mar 2002
Location: Maryland
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #26  
Old 12-07-2003, 06:08 PM
jjj0923's Avatar
jjj0923 jjj0923 is offline
 
Join Date: Mar 2002
Location: Maryland
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 12-07-2003, 06:17 PM
AJR's Avatar
AJR AJR is offline
 
Join Date: Jan 2002
Location: Sacramento, CA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #28  
Old 12-07-2003, 06:24 PM
jjj0923's Avatar
jjj0923 jjj0923 is offline
 
Join Date: Mar 2002
Location: Maryland
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 12-07-2003, 06:27 PM
jjj0923's Avatar
jjj0923 jjj0923 is offline
 
Join Date: Mar 2002
Location: Maryland
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 12-07-2003, 06:32 PM
jjj0923's Avatar
jjj0923 jjj0923 is offline
 
Join Date: Mar 2002
Location: Maryland
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #31  
Old 12-07-2003, 06:34 PM
Imhotep Imhotep is offline
 
Join Date: Aug 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
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 09:11 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05339 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete