UBB.Dev
Posted By: JoshPet [6.2] Special Header/Footer 1.1 - 03/16/2003 7:02 PM
Mod Name / Version - Special Headers and Footers 1.1
   Version 1.1 fixes a bug where the guest footer was displayed in showprofile.php

Description - This modification allows you to use two different header and footer files. If the user is not logged in, they will view guest_header.php and guest_footer.php include. If they are Logged in AND they are a member of the "User" group (#3) they will still view the guest includes. If they are not a member of the user group and logged in, then they will view the member_header.php and member_footer.php. This is useful so that perhaps guests and regular members see banner ads on your site. But admins, mods and members of
special user groups can perhaps view a header and footer without banners.

Working Under - UBB.Threads 6.2

Pre-requisites - none

Author - JoshPet - www.joshuapettit.com

Credits - Based on an original mod by JustDave - commissioned by kordegnen

Files Altered - ubbt.inc.php, admin/menu.php

Database Altered - none

New Files - in the includes directory: guest_header.php, member_header.php,
guest_footer.php, member_footer.php


Attached File
Posted By: Ian_W Re: [6.2] Special Header/Footer 1.0 - 03/16/2003 7:07 PM
Cool idea. Thanks Josh
Posted By: Kordegnen Re: [6.2] Special Header/Footer 1.0 - 03/17/2003 12:18 PM
it´s set up and running like a charm ;O)

thanx

thomas
Posted By: Kordegnen bug report 1 - 03/18/2003 2:30 PM
hi

found 1 bug so far.

when a member looks at an profile it uses the guest footer ??

thomas
Posted By: JoshPet Re: bug report 1 - 03/19/2003 9:02 AM
[]kordegnen said:
hi

found 1 bug so far.

when a member looks at an profile it uses the guest footer ??

thomas [/]

Ah OK - just about everwhere uses the $user variable, but the showprofile.php script uses $thisuser

I made adjustments for that and updated the main post to version 1.1.
Posted By: AllenAyres Re: bug report 1 - 03/28/2003 9:56 AM
excellent for paid membership sites
Posted By: Ian_W Re: bug report 1 - 08/24/2003 8:56 PM
Josh - I have just set this up - and have noticed now that postlist.php - the bit that shows additional pages is now showing every post as a page.

( Pages 1 2 3 4 ... 112 113 all )

for a post 113 message slong.

I have the sidebar pal activated - but apart from that and running 6.3.1 the mod is as per your instructions.

Any thoughts?
Posted By: JoshPet Re: bug report 1 - 08/24/2003 11:20 PM
Wow.

I just studied the instructions of the hack. I have no idea how it can do anything to postlist.

This basically is using the mechinism in place to have specific headers per forum.... but instead using user status to determine it instaed.



The only instructions are in the send_header and send_footer functions..... that shouldn't have any impact on postlist.
Posted By: Ian_W Re: bug report 1 - 08/25/2003 12:07 AM
Exactly what I thought. A very strange error.

Hmmmm I am wondering if it because I did not do the footer part - but then I can't see how this would affect things either.

I undid the $thisuser, $user addition to the send header function and the code beneath that for the actual group etc., and the problem went away.



Posted By: JoshPet Re: bug report 1 - 08/25/2003 2:05 AM
Hmm......

What about if you put $user back in.... I wonder if $thisuser is the problem. Nearest I can tell, that's only used on showprofile.php that's why I had to do it like that.
Posted By: smilesforu Re: bug report 1 - 12/09/2003 12:23 AM
Anybody give this one a go on 6.4... I am moving to a paid blended site and need to offer this one.
Posted By: coloradok5 Re: bug report 1 - 12/09/2003 6:20 PM
I need this for 6.4 also.
© UBB.Developers