Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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
Attachments
73272-SpecialHeaderFooter1.1.txt (0 Bytes, 140 downloads)

Last edited by JoshPet; 03/19/2003 2:01 AM.
Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Cool idea. Thanks Josh


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
it´s set up and running like a charm ;O)

thanx

thomas

Daine #240808 03/18/2003 7:30 AM
Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
hi

found 1 bug so far.

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

thomas

shame4me #240809 03/19/2003 2:02 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
[]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.

Sponsored Links
Daine #240810 03/28/2003 2:56 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
excellent for paid membership sites


- Allen wavey
- What Drives You?
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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?


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #240812 08/24/2003 4:20 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Daine #240813 08/24/2003 5:07 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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.





Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #240814 08/24/2003 7:05 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Sponsored Links
Daine #240815 12/08/2003 5:23 PM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Anybody give this one a go on 6.4... I am moving to a paid blended site and need to offer this one.

Kelly #240816 12/09/2003 11:20 AM
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
I need this for 6.4 also.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)