Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2002
Posts: 48
Member
Member
Offline
Joined: Jan 2002
Posts: 48
Charles, any specific information you can share about these IE quirks?

Part of my site's layout really needs to be editable by the end user (a header and a sponsor sidebar). The users (Moderators) are responsible for maintaining their part of the site. Using frames is a fairly easy way to accomplish this (aside from the many target issues).

The UBB Styles html header and footer is too complex and sensitive to allow these users access to the CP. What I need is the ability for the header and footer html variable to call a file from another folder on my site, a user editable file. (edited with a totally separate script.)

That way, I can maintain the forum's style header and footer html safely, and give the user a place to edit the contents of a table cell within the header html.

If vars_style{Header} was a script instead of a string of html, I could use a script to create the html to place in the header.

I'm not a perl coder, but I've been able to do things like modify existing subroutines to get the desired result. This looks like it would be a pretty significant change to the cp_styles code, and likely over my head. But simple for an expert?

I'm thinking I should add two vars to to the %vars_style, $HeaderCustom and $FooterCustom, and have an on/off var $UseCustom that says "use HeaderCustom or use Header". That way, I could have both my standard html in the style *and* custom html. I could turn off the custom html if a user screwed up his contribution to HeaderCustom.
[code][/code]

$HeaderCustom and $FooterCustom would be created by a sub that gets an external file (the custom content) and inserts it into the specified table wrapper. Then that completed html would be written into the $Header var for the specified style.

Anyone want to give it a shot or suggest how I should start?

Thanks and best regards,
Greg Stasko

Sponsored Links
Entire Thread
Subject Posted By Posted
Custom Header Mod to use separate HTML file instead of var $Header GetAGrip 01/24/2002 5:15 AM
Re: Custom Header Mod to use separate HTML file instead of var $Header Charles Capps 01/24/2002 10:22 PM
Re: Custom Header Mod to use separate HTML file instead of var $Header GetAGrip 01/26/2002 1:57 AM
Re: Custom Header Mod to use separate HTML file instead of var $Header GetAGrip 01/31/2002 11:12 AM

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
hatter
hatter
USA
Posts: 69
Joined: January 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
Morgan 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 20240506)