Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 96
Member
Member
Offline
Joined: Nov 2001
Posts: 96
Here is the Infopop Support Forum thread that started this idea.

http://community.infopop.net/2/Open...313&m=4193079547&r=8283052647#8283052647

In a nutshell, my manually edited vars_graemlins.cgi file now reverts to the default when I save the “General” page in the 6.6 Control Panel. This is because saving this page saves all the tabs at once, including the Graemlins tab. Since my customizations can’t be normally entered on this tab, it thinks the file is corrupt as is forcibly tries to save it and overwrites with a default vars_graemlins.cgi file.

Since I don’t want to have to fire up FTP and re-upload my vars file each time I make a change to the “General” page in CP, I need to find the best way around this.

Should I just remove the Graemlins tab from the General page? Would this prevent the Graemlins from being saved and reverting? I haven’t tried removing write permissions on the file, but I have a feeling that might have other repercussions. Is there a better way I can surgically stop the reverting of the vars_graemlins.cgi file whenever it detects an “error”?


"For who would lie idle when the king has returned?"
www.MinasTirith.com
Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
If you don't mind manually editing the file each time, you can comment out line 752 of cp2_vars.cgi:

$problems .= &SetVarsGraemlins;

That will prevent vars_graemlins from ever being written, even if changes are made to the page.

Technically, the file isn't reverted... the stock graemlins are hard-coded in the subroutine, then any changes you've made to the stock set are ported over.

Your particular problem is that you've combined both the stock set and the custom set into just the stock's area, which caused all sorts of problems....


UBB.classic: Love it or hate it, it was mine.
Joined: Nov 2001
Posts: 96
Member
Member
Offline
Joined: Nov 2001
Posts: 96
There are days when I get straight, simple answers to in-depth questions. It is days like these when I love you, Charles.


"For who would lie idle when the king has returned?"
www.MinasTirith.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
*hugs CC*

*goes to remove line*

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
so CC, I could go into cp2_vars.cgi and edit that hardcoding? All I would give up is support, right? (I use ubbdev for support anyway tipsy )

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Editing the recovery of the DEFAULT graemlins may break things in unexpected ways...


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Well I only want the 8-) and :-/ smilies to work, could that cause an error?

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Unless you do it right. Right being completely subjective, though...

The code wasn't designed to think that way.


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
quote:
Originally posted by Charles Capps:
The code wasn't designed to think that way.
But a certain someone could add them to a further release, couldn't he wink


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)