The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
PhotoPost vBTemplates 4.1.x/4.5.x Details »» | |||||||||||||||||||||||||
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
|
Comments |
#22
|
|||
|
|||
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. |
#23
|
||||
|
||||
Quote:
the url is correct - however the vb & pp are hidden and for internal use. - jeff |
#24
|
|||
|
|||
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. |
#25
|
||||
|
||||
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 |
#26
|
||||
|
||||
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 |
#27
|
||||
|
||||
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! |
#28
|
||||
|
||||
Quote:
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 |
#29
|
||||
|
||||
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 |
#30
|
||||
|
||||
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. |
#31
|
|||
|
|||
Quote:
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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|