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
  #62  
Old 01-09-2004, 07:41 AM
Etcher Etcher is offline
 
Join Date: Mar 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed... Took twice to do it, but I found that I was also trying to use the supplied installer the first time... Without it I had it up in no time...
Works perfect with the default theme, but is having a little trouble with the font color and mouse over on the other one...
Other than that it is working well...

Great job, and needed by most of us...
Reply With Quote
  #63  
Old 01-10-2004, 12:58 PM
sawalton1964 sawalton1964 is offline
 
Join Date: Nov 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having problems with the photopost login and search buttons at http://www.globalphotosite.org/photopost/index.php

login ->> Fatal error: Call to undefined function: gettemplate() in /home/sites/site29/web/photopost/login-inc.php on line 23

search ->> Warning: main(/home/sites/site29/web/photopost/templates/search.tmpl) [function.main]: failed to create stream: No such file or directory in /home/sites/site29/web/photopost/search.php on line 43

Warning: main() [function.main]: Failed opening '/home/sites/site29/web/photopost/templates/search.tmpl' for inclusion (include_path='.:/usr/lib/php') in /home/sites/site29/web/photopost/search.php on line 43

Also when I looked at Techie: http://www.vpforums.com/gallery/index.php?styleid=1
from the first post the problem is there too.
Reply With Quote
  #64  
Old 01-10-2004, 01:21 PM
Etcher Etcher is offline
 
Join Date: Mar 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

'/home/sites/site29/web/photopost/templates/search.tmpl' for inclusion
it should not be calling that file...

Do you have another hack in there?

Lines 23 logininc.php
eval("\$pp_menubar = \"".gettemplate('pp_menubar')."\";");
eval("dooutput(\"".gettemplate('pp_login')."\");") ;

I am thinking that you have made a mistake somewhere...
Look over it again and check for typo's
Also what version on PhotoPost?
Reply With Quote
  #65  
Old 01-10-2004, 01:57 PM
recumbent615 recumbent615 is offline
 
Join Date: Apr 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Etcher,

I was going to say the same thing until I re read the post. The Error at line 23 is looking for and not finding gettemplate ( a vb routine ) define in admin/functions.php.

Be sure that you have all the correct information in the pp/header-inc.php file for VB integration.

Kevin
Reply With Quote
  #66  
Old 01-10-2004, 02:06 PM
recumbent615 recumbent615 is offline
 
Join Date: Apr 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sawalton1964,

The error's that you are seeing in search.php are due to the fact that that is a new file since this hack was created and is sitll looking for the PP templates. there are a few templates that will need to be put back in to the template directrory until this hack is adapted for the new search funtions. ... Just find the old templates and copy them back into the PP/templates dir. that will get the search function working, but it will not look as nice as the rest of the integration.

Kevin
Reply With Quote
  #67  
Old 01-10-2004, 02:25 PM
recumbent615 recumbent615 is offline
 
Join Date: Apr 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's the first step in updating the search.php file

On line 42 of search.php

find:
PHP Code:
   include( "$PP_PATH/templates/menubar.tmpl" );
    include( 
"$PP_PATH/templates/search.tmpl" );
    
printfooter(); 
Replace with:

PHP Code:
##   include( "$PP_PATH/templates/menubar.tmpl" );
    
eval("\$pp_menubar = \"".gettemplate('pp_menubar')."\";");
    include( 
"$PP_PATH/templates/search.tmpl" );
    
printfooter(); 
and dont forget to put search.tmpl back in the PP/templates directory

Kevin
Reply With Quote
  #68  
Old 01-10-2004, 06:32 PM
sawalton1964 sawalton1964 is offline
 
Join Date: Nov 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, decided to revert to a non-moded gallery for the time being, the owner has plans to re-brand the site and hopefully a photopost 4.6 VBulletin 2.3.4 (or better ) version is out by the time he makes up his mind.

Cheers, keep up the good work
Reply With Quote
  #69  
Old 01-15-2004, 06:31 PM
JustCurious JustCurious is offline
 
Join Date: Aug 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I deleted the templates with the exception of those two and got about 4 errors plus a fatal error. I reuploaded the templates and now all of the errors are gone except the fatal which is: Fatal error: Call to undefined function: gettemplate() in /home/xxxx/public_html/gg/index.php on line 171

Any ideas? This is line 171 in index.php: eval("\$pp_online = \"".gettemplate('pp_online')."\";");

I don't see pp_online anywhere and I'm sure where it came from.

Thanks in advance.
Reply With Quote
  #70  
Old 01-15-2004, 06:34 PM
JustCurious JustCurious is offline
 
Join Date: Aug 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And what is this telling me during install?

You need to make changes to the following vBulletin files:
template.php (1 change) [groups PhotoPost templates in cp]
Reply With Quote
  #71  
Old 01-16-2004, 12:44 AM
recumbent615 recumbent615 is offline
 
Join Date: Apr 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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:17 AM.


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.04595 seconds
  • Memory Usage 2,322KB
  • 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
  • (3)bbcode_php
  • (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