Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Photopost 4.8.5 - Use seperate VB Header and Navbar Details »»
Photopost 4.8.5 - Use seperate VB Header and Navbar
Version: 1.00, by trackpads trackpads is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 12-19-2004 Last Update: Never Installs: 3
 
No support by the author.

First, let me say that this is my first hack and I appreciate any and all feedback. I want to acknowledge the idea which was given to me by using atroll's Additional Navbar hack. If you use this please click install on his aswell:

https://vborg.vbsupport.ru/showthread.php?t=65198

>>>---------------------------->

Software needed:

VB 3.03 (may work on others, didnt test)
PhotoPost 4.8.5

>>>---------------------------->

What it does & why:

On my site I have a standard navigation system set up on the site and while I loved the new integration that comes with PP 4.8.5 I wanted to keep the gallery with its own seperate identity without losing the integration features like style sheets and others. So using atrolls hack as a guide I create both a seperate VB Header and Navbar for the Gallery.

You can see it in action here:
My Forum: http://www.trackpad.com/forum
My Gallery: http://www.trackpads.com/gallery

>>>---------------------------->

Here is how you do it:


Step 1 - Create/Edit New Templates

You will need to create 2 new templates in your VB style(s) that you use. First thing is to open your current header & navbar templates and copy the information as a basis for your new ones. Save them in txt files or wherever for the moment.

A. Create a new template called headerg and paste the information from the original header. Make any gallery specific modifcations that you want. You can always come back later through and edit the file.

B. Create a new template called navbarg and paste the information from the original navbar. Make any gallery specific modifcations that you want. You can always come back later through and edit the file.

When this step is complete you should have 2 new custom templates called headerg & navbarg.

C. Edit your phpinclude_start template and add the following anywhere in the file:

Code:
eval('$navbarg = "' . fetch_template('navbarg') . '";');
eval('$headerg = "' . fetch_template('headerg') . '";');
>>>---------------------------->

Step 2 - File Edits


VB File Edits:

A. Since the template is uncached you will have an extra query on each page. To fix, open global.php and FIND:

Code:
// misc useful
ADD BELOW:

Code:
'navbarg',
'headerg',

Photopost File Edits:

A. Open the file header-inc.php and FIND:

Code:
	eval('$navbar = "' . fetch_template('navbar') . '";');
And REPLACE with the following:

Code:
	eval('$navbarg = "' . fetch_template('navbarg') . '";');

B. In the same file FIND:

Code:
                {ppheader}
                </head>
                <body onload="editInit();">
                $header
                $navbar
                <div align="center">
And REPLACE with:

Code:
                {ppheader}
                </head>
                <body onload="editInit();">
                $headerg
                $navbarg
                <div align="center">
C. AGAIN in the same file FIND:

Code:
                {ppheader}
                </head>
                <body onload="editInit();">
                $header
                $navbar
                <div align="center">
And AGAIN REPLACE with:

Code:
                {ppheader}
                </head>
                <body onload="editInit();">
                $headerg
                $navbarg
                <div align="center">
D. In the same file FIND:

Code:
{ppheader}
</head>
<body>
$header
$navbar
<div align="center">
And AGAIN REPLACE with:

Code:
{ppheader}
</head>
<body>
$headerg
$navbarg
<div align="center">
>>>---------------------------->


Finally. Save all files and upload to the server. REMEMBER, always make a backup incase something is wrong so you can just re-upload the original without de-hacking the file.

Again, no screenshots are attached. Just look at the differences on my forum and gallery. If you have any questions please ask, I am no expert though but I will try to help you. Please clickty click install if you like and use. It will make my day

Show Your Support

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

Comments
  #2  
Old 12-20-2004, 05:36 PM
ArAb4NoKiA ArAb4NoKiA is offline
 
Join Date: Jun 2004
Location: Saudi Arabia-Jeddah
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanXxXx
Reply With Quote
  #3  
Old 12-21-2004, 03:25 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good job, and i see your still using my comments hack (toney = me = b6gm6n = minx) cheers

btw, i did upgrade the latest comments hack to include permissions, if a person hasn't got viewing rights, an alternative (blank) thumbnail is shown

i'll post it up if i can find it

-b6
Reply With Quote
  #4  
Old 12-22-2004, 12:03 AM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heck yes! It is one of the most usefull things in my gallery! Are you gonna post it here? You should!
Reply With Quote
  #5  
Old 12-22-2004, 06:54 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Latest Comments Hack for PPv5 - VBulletin 3.0.x

stylesheets are now the same as what is set in your PP admin, automated headers & footers, languages, vbulletin usergroup permissions, please check the configuarble elements in comshow.php to make customization easier.

it's all yours!

It's far from the best script ever written, but it works!
Enjoy!

-b6
Reply With Quote
  #6  
Old 12-22-2004, 09:07 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent!
Reply With Quote
  #7  
Old 12-23-2004, 11:07 AM
tteal tteal is offline
 
Join Date: May 2004
Location: Pasadena, Maryland
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm confused as to what your mod does.... I thought that photopost integrates right into vb 3.0.3? Thanks.
Reply With Quote
  #8  
Old 12-23-2004, 01:39 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tteal
I'm confused as to what your mod does.... I thought that photopost integrates right into vb 3.0.3? Thanks.
Yes, but if you use the complete integration you have to use your forums header and navbar. This allows you to have your own seperate vb header and navbar. Please see the example links above.

-Jason
Reply With Quote
  #9  
Old 01-14-2005, 04:50 PM
ngto ngto is offline
 
Join Date: Nov 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks trackpads, works like a champ.
Reply With Quote
  #10  
Old 03-25-2005, 09:12 PM
funkmeister funkmeister is offline
 
Join Date: Oct 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm just using the header part of this hack and it works out great for changing out the header, but for some reason it's messing with my Photopost's VB integrated footer - not sure how, since there's nothing in there that seems to be calling the footer, but mine is getting left aligned instead of centered for some reason. As soon as I revert the hack changes everything is perfectly fine, but then I'm left with the original Photopost header which is what I'm trying to change!!

I'm on VB 3.07 and Photopost 5.02 VB3 Enhanced.

Any ideas? Thanks.
Reply With Quote
Reply

Thread Tools

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:43 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.05296 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (11)bbcode_code
  • (1)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
  • (1)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