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
  #52  
Old 12-19-2003, 06:04 PM
liquidblaze liquidblaze is offline
 
Join Date: Sep 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone can tell me if this works with 4.6 too?
Reply With Quote
  #53  
Old 12-22-2003, 02:41 PM
orca's Avatar
orca orca is offline
 
Join Date: Oct 2001
Location: Switzerland
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Imhotep
ok... so how do I update the templates from the ZIP file? I can't find this so-called template importer.
Well, I also didn't have the importer...so I updated all templates by copy&paste using the vBulletin template system in the admin area. A bit of work but it was wortn it.
Reply With Quote
  #54  
Old 12-22-2003, 02:42 PM
orca's Avatar
orca orca is offline
 
Join Date: Oct 2001
Location: Switzerland
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by liquidblaze
anyone can tell me if this works with 4.6 too?
Hmm, no idea. Would be nice, though. Need to check the change log. But I guess you need to do any file modifications again. At least for the files which changed from 4.5.1 to 4.6.
Reply With Quote
  #55  
Old 12-22-2003, 06:33 PM
obsidian's Avatar
obsidian obsidian is offline
 
Join Date: Apr 2003
Location: Austin Tx
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by liquidblaze
anyone can tell me if this works with 4.6 too?
I have it running with VBportal and PP 4.6. Did everything manually and it worked like a charm.
Reply With Quote
  #56  
Old 12-28-2003, 03:55 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the 4.6 out allready?
Reply With Quote
  #57  
Old 12-28-2003, 05:32 PM
oly51's Avatar
oly51 oly51 is offline
 
Join Date: Mar 2002
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was released on 12/17....
Reply With Quote
  #58  
Old 12-29-2003, 12:50 PM
recumbent615 recumbent615 is offline
 
Join Date: Apr 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All,

I just installed it on 4.6 last night, works very well. There are two addtional templates in 4.6 ppopen and ppclose that do not have VB telmates to replace them so you need to leave them in the template directoy. I had renamed my stylesheets and TEmplates folders and fould that in 4.6 there were two new templates being called.

As this was my second install, I just dumped my template table that included all of the pp_% templates and then ran the sql commands directly on the new v4.6 install. Much easier than editing each one by hand. I have attached my sql command for those of you who are comfortable with SQL to use it.

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

Ok I have found an issue, and it seems to be related to this hack, but I have not unhacked to see if it works, I'm running both 4.6 and 4.5.x of PP and the latest full release of VB/VBPortal. the issue shows up in the form of not representing the catagories and sub-cats as in this is how the cat and sub cat appear when setup in the admin :

Code:
main cat  [1]
       sub cat [1]
       sub cat [2]
second cat [2]
       sub2 cat [1]
       sub2 cat [2]
third cat [3]
        sub3 cat [1]
        sub3 cat [2]
and shown in PP index.php looks like this

Code:
main cat  [1]
       sub cat [1]
       sub cat [2]
       second cat [2]
       sub2 cat [1]
       sub2 cat [2]
       third cat [3]
       sub3 cat [1]
       sub3 cat [2]
now the catagory does now show up ( second cat and third cat ) when you click on main cat.




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

Here's An Update on this problem:

I have been looking at this problem since last night ( WOW what a way to ring in the New Year) or as my kids would say "what a nerd" in a loving kind of way. I have determined that it is this Hack that has caused the problem and just to prove to my self I reinstalled PP without this hack and pointed it at the same data and it works... or should I say that it correctly represents the hierarchyof the Catagories.
Here's a screen shot of the unhacked PP;



The Offending Code seems to be in index.php.


Anybody seen this issue or is it just me? If it is just me can anyone tell me where to look to correct this error.

Thanks.

And Happy New Year's From Boston.

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

Ok,

After determining a fix for this issue this morning, and making a typo that make it look like the fix didn't work I found my typo and now have this fixed.

In the index.php file find:
PHP Code:
                }
    
$details .= "$detail";
       }
}
eval(
"\$pp_categories = \"".gettemplate('pp_categories')."\";"); 

and change it to this:

PHP Code:
                       }
           
$details .= "$detail";
           
$indent '';
          }
}
eval(
"\$pp_categories = \"".gettemplate('pp_categories')."\";"); 

as it turns out the data in $indent was never cleared so after you indented one subcatagory all following catagories were indented as much as the last one.

I love this Hack. Make my Photopost look just like evey other page on my site. Thank you AJ for making this It's tops.

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 06:10 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.04921 seconds
  • Memory Usage 2,325KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_php
  • (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