Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
I update my site to V7.6.2 and have trouble with my old header.php files. It seems that the code to pull the wrapper has changed.

my old header.php
Code
<?php
$wrapper_id = $style_array['wrappers'];
$tbopen = $wrappers[$wrapper_id]['open'];
$tbclose = $wrappers[$wrapper_id]['close'];

echo <<<HTML_BLOCK
$tbopen
<tr>
<td colspan="3" class="lefttdheader">
[some html code]
</td>
</tr>
$tbclose
HTML_BLOCK;
?>

Can someone help me out to change the code for 7.6.2?


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
1) What seems to be the problem?

I've followed your link in your signature and your forum looks fine upon first inspection.
http://www.dragonclan-forum.de/board/ubbthreads.php/forum_summary
(attached screenshot)

The majority of changes between 7.5.x -> 7.6.x were related to updating the html/css to responsive, so that it would display properly on all screen sizes. Desktop and mobile.

The bit of code you've shared is what I assume is the content of your customized /includes/header.php file. I see that you are declaring strings in there which are already declared within the main /libs/html.inc.php and /libs/ubbthreads.inc.php files. There is no reason for duplication of them.

2) What exact version of UBB.threads did you upgrade from? Knowing that may also be helpful.

Thanks


e1: /includes/header.php is customized within Control Panel / General: HTML Includes / Default Header

e2: the information posted at this link might be helpful to you if you have custom styles. especially the "STYLE ADJUSTMENTS, WHEN UPGRADING FROM UBB.threads 7.5.x to 7.6.x" section under "STYLES - ADVANCED".
https://www.ubbcentral.com/forums/u...re-7-6-0-changelog-discussion#Post259088
Attachments
20181212_03-12-32-Dragon-Clan Community - Forums powered by UBB.threads.png

Last edited by isaac; 12/12/2018 7:27 AM. Reason: added file path and config location clarity

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
Hi,

it was an update from V7.5.6p2 to 7.6.2
Yes, it is /includes/header.php and the code I use in it was running up to 7.5.6 without a change. It should pull the wrapper to put my own header in a box. Long time ago I got a sample for it here in the forums somewhere. I will read your link and maybe find out to pull the wrapper again.

Regards
Zarzal


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Try just using HTML:
Code
<table width="100%">
<tr>
<td class="alt-1">
[some html code]
</td>
</tr>
</table>

If you needed a header (like "Quick Reply") just add this cell above the lefttdheader:
Code
<tr>
<td class="tdheader">
</td>
</tr>


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
Thanks, found this solution already in the linked answer.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)