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
  #82  
Old 01-23-2004, 07:05 PM
Walab Walab is offline
 
Join Date: Feb 2003
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone was wanting to modify the search.php file to read from vbulletin templates rather than photopost templates, and doesn't know how to, I did it for you. I added four modified vbulletin templates and modified the photopost file. Since I thought the vb3 RC2 style looks rediculously ugly, I made it look similar to the vb2 style. Here's what I had done, I'll try to make everything as clear as possible.

- Add four new templates
-- pp_search
-- pp_results_top
-- pp_results_mid
-- pp_results_btm
- Modify two php file
-- search.php
- /languages/english/search.php

Template: pp_search
Code:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
	<td bgcolor="{categorybackcolor}" colspan="2"><normalfont color="{categoryfontcolor}"><b>{$Globals['pp_lang']['searchg']}</b></normalfont></td>

</tr><form method="post" action="{$Globals['maindir']}/search.php">
<tr> 
<td bgcolor="{tableheadbgcolor}" valign="top"><smallfont color="{tableheadtextcolor}"><b>{$Globals['pp_lang']['keyword']}</b></smallfont></td><td bgcolor="{tableheadbgcolor}" valign="top"><smallfont color="{tableheadtextcolor}"><b>{$Globals['pp_lang']['searchuser']}</b></smallfont></td>

</tr><tr>
        <td bgcolor="{firstaltcolor}" align="left" valign="top"><smallfont><br>
            <input type="text" name="keywords" size="35" class="bginput">
	<br><br>
	<b>Basic query:</b>
	separate your search terms with spaces.<br>
	<br>
            </smallfont>
        </td><td bgcolor="{firstaltcolor}" align="left" valign="top"><smallfont>
            <br>
            <input type="text" name="name" class="bginput" size="25">
          <br></td>
</tr>
        </table></td>
</tr>
</table>
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
	<td bgcolor="{categorybackcolor}" colspan="3"><normalfont color="{categoryfontcolor}"><b>{$Globals['pp_lang']['within']}</b></normalfont></td>

</tr><tr> 

<td bgcolor="{tableheadbgcolor}" valign="top"><smallfont color="{tableheadtextcolor}"><b>{$Globals['pp_lang']['catsearch']}</b></smallfont></td><td width="45%" bgcolor="{tableheadbgcolor}" valign="top"><smallfont color="{tableheadtextcolor}"><b>{$Globals['pp_lang']['daterange']}</b></smallfont></td>

</tr><tr>
        <td bgcolor="{firstaltcolor}" rowspan="2" align="left" valign="center"><smallfont>
            <select name="cats[]" class="bginput" multiple size="10">
            <option value="all" $seltext>{$Globals['pp_lang']['allcats']}</option>
            $catoptions
            </select>
            </td><td bgcolor="{firstaltcolor}" valign="top" align="center"><smallfont>
            <br><p> 
            <input type="text" name="when" size="3" class="bginput" />
            <select name="whenterm" class="bginput">
            <option value="">any date</option>
            <option value="d">{$Globals['pp_lang']['day']}</option>
            <option value="w">{$Globals['pp_lang']['week']}</option>
            <option value="m">{$Globals['pp_lang']['month']}</option>
            <option value="y">{$Globals['pp_lang']['year']}</option>
            </select>
            </p></smallfont></td></tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan="2" valign="top"><smallfont>
            <br>
<table><td><smallfont>
            <input type="radio" name="what" value="title" class="formboxes">
            {$Globals['pp_lang']['whichkeys1']}
            <br>
            <input type="radio" name="what" value="titledesc" class="formboxes">
            {$Globals['pp_lang']['whichkeys2']}
</smallfont></td><td><smallfont>
            <input type="radio" name="what" checked="checked" value="allfields" class="formboxes">
            {$Globals['pp_lang']['whichkeys3']}
            <br>
            <input type="radio" name="what" value="comments" class="formboxes">
            {$Globals['pp_lang']['whichkeys4']}
</smallfont></td></table>
            <br>
            <input type="checkbox" name="preview" value="yes" checked="checked" class="formboxes" />
            {$Globals['pp_lang']['preview']}
            <br></smallfont>
        </tr>
        </tr>
        </table></td>
</tr>
</table>

 <br>

<table cellpadding="2" cellspacing="0" border="0" width="100%"  align="center">
<tr>
	<td align="center">       <input type="submit" name="final" value="{$Globals['pp_lang']['execute']}" class="bginput">	<input type="reset" class="bginput" name="reset" value="{$Globals['pp_lang']['reset']}"></td>
</tr></form>
</table>
Template: pp_results_top
Code:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat" align="center">
	<td bgcolor="{categorybackcolor}" colspan="2"><normalfont color="{categoryfontcolor}"><b>$comcount {$Globals['pp_lang']['results']}</b></normalfont>            
        </tr>
Template: pp_results_mid
Code:
        <tr bgcolor="$bgcolor">
        <td width="175" align="center" valign="top" nowrap="nowrap">
            <normalfont>{$thumbrc[$x]}<b>{$ucuser[$x]}</b></normalfont><br />
            <smallfont>{$imgdate[$x]} <font color="{timecolor}">{$imgtime[$x]}</font></smallfont>            
        </td>
        <td width="100%" valign="top">
                    <normalfont>{$commenttext[$x]}</normalfont>
          </td>
        </tr>
Template: pp_results_btm
Code:
        <tr>
        <td bgcolor="{tableheadbgcolor}" colspan="2" valign="top" align="right">
            <smallfont>$more</font>
        </td>
        </tr>
</table></td>
</tr>
</table>
File Modification: search.php

Find:
Code:
include( "$PP_PATH/templates/menubar.tmpl" );
    include( "$PP_PATH/templates/search.tmpl" );
Replace with:
Code:
$templatesused='pp_menubar,pp_search';

eval("dooutput(\"".gettemplate('pp_menubar')."\");");

eval("dooutput(\"".gettemplate('pp_search')."\");");
Find:
Code:
include( "$PP_PATH/templates/menubar.tmpl" );
        include( "$PP_PATH/templates/search-r.tmpl" );
Replace with:
Code:
$templatesused='pp_menubar,pp_search,pp_results_top,pp_results_mid,pp_results_btm';

eval("dooutput(\"".gettemplate('pp_menubar')."\");");

eval("dooutput(\"".gettemplate('pp_results_top')."\");");

for( $x=0; $x < $itemnum; $x++ ) {
$bgcolor = ($counter++ % 2 == 0) ? "{firstaltcolor}" : "{secondaltcolor}";

eval("dooutput(\"".gettemplate('pp_results_mid')."\");");

}

eval("dooutput(\"".gettemplate('pp_results_btm')."\");");
File Modification: /languages/english/search.php

Select All; Replace with,
Code:
<?
$Globals['pp_lang']['badcall'] = "Script not called correctly.  Navigate to a specific photo, then click on the edit link.";
$Globals['pp_lang']['closed'] = "We're sorry, but our Photo Boards are currently down for maintainence. Please try again later.";
$Globals['pp_lang']['searchg'] = "{$Globals['galleryname']} Search Engine";
$Globals['pp_lang']['instruct'] = "Fill in the fields below to execute a search.";
$Globals['pp_lang']['catsearch'] = "Select Categories";
$Globals['pp_lang']['s_instruct'] = "You can search one category, all or select multiple categories from the list below.";
$Globals['pp_lang']['keyword'] = "Search By Keyword";
$Globals['pp_lang']['whichkeys1'] = "Search title only";
$Globals['pp_lang']['whichkeys2'] = "Search title and description";
$Globals['pp_lang']['whichkeys3'] = "Search all fields";
$Globals['pp_lang']['whichkeys4'] = "Search comments";
$Globals['pp_lang']['searchuser'] = "Search By Username";
$Globals['pp_lang']['daterange'] = "Specify A Date Range";
$Globals['pp_lang']['within'] = "Search Options";
$Globals['pp_lang']['day'] = "day(s)";
$Globals['pp_lang']['week'] = "week(s)";
$Globals['pp_lang']['month'] = "month(s)";
$Globals['pp_lang']['year'] = "year(s)";
$Globals['pp_lang']['execute'] = "Preform Search";
$Globals['pp_lang']['reset'] = "Reset Fields";
$Globals['pp_lang']['allcats'] = "All Categories";
$Globals['pp_lang']['searching'] = "Performing Search";
$Globals['pp_lang']['results'] = "result(s) to your search.";
$Globals['pp_lang']['preview'] = "Show thumbnails in comment search";
?>
That's all, upload the updated search.php files, and give me feedback.

Updated Feb.24
Alternating colors in comment search
Updated template for search page
Added another replacement ['reset'] in language file

Updated Mar.06
Added time color to comment search
Reply With Quote
  #83  
Old 01-24-2004, 12:03 AM
recumbent615 recumbent615 is offline
 
Join Date: Apr 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Nicely Done... Works very well...

Kevin
Reply With Quote
  #84  
Old 01-24-2004, 10:38 PM
Mickie D Mickie D is offline
 
Join Date: Jun 2002
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any ports to vb3 for this ?
Reply With Quote
  #85  
Old 01-27-2004, 06:28 PM
Fargo's Avatar
Fargo Fargo is offline
 
Join Date: Jan 2004
Location: North Dakota
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is perfect!! thank you!
Reply With Quote
  #86  
Old 02-04-2004, 01:01 PM
Mickie D Mickie D is offline
 
Join Date: Jun 2002
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i will port this to vb3 if i have permission to do so

give me a few days so i can test it all out
Reply With Quote
  #87  
Old 02-15-2004, 01:02 PM
NSeXcellent NSeXcellent is offline
 
Join Date: Jan 2002
Location: Tampa Bay
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea if this works for PP4.6.x ??
Reply With Quote
  #88  
Old 02-22-2004, 03:26 PM
Rampag33's Avatar
Rampag33 Rampag33 is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well a vb3 port be out soon?
Reply With Quote
  #89  
Old 02-22-2004, 10:04 PM
AJR's Avatar
AJR AJR is offline
 
Join Date: Jan 2002
Location: Sacramento, CA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NSeXcellent
Any idea if this works for PP4.6.x ??
I will hopefully be working on a version for 4.6.x soon. They've made quite a few changes from 4.5.x to 4.6.x so I have to go through every line of code to check what has changed.

Quote:
Originally Posted by Rampag33
Well a vb3 port be out soon?
I will not be using vB3 for awhile so I will not do the port for vB3. I know a few people in this thread have said they will port it to vB3, so all I can say is to PM them to see what the status may be.

AJ
Reply With Quote
  #90  
Old 06-24-2004, 07:56 PM
smokkinjoe smokkinjoe is offline
 
Join Date: Jan 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the port to 4.6.x working yet looking forward to using it if you are still working on it.

Joe
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:55 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.06415 seconds
  • Memory Usage 2,327KB
  • Queries Executed 24 (?)
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
  • (9)bbcode_code
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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