Staredit Network

Staredit Network -> Staff Lounge -> Cache
Report, edit, etc...Posted by Yoshi da Sniper on 2005-01-12 at 01:08:12
Apparently, doing installation scripts for some mods automaticly rebuild the skin cache, which is not good at all. Apparently, while running an installation script it did just that, and reset your progress on your shoutbox modifications (you will need to reupload) sad.gif

However! I have the perfect solution.

Make a list here of the exist skin cache ID and filename you do NOT want recached. Then, CHMOD the files on the server to 755. It will deny access to rewrite the file, thus making it uneffected.

Just edit my post so its all under one place. The following files below can ONLY be rewritten through downloading off the FTP and making changes locally on your computer in some text editor. The rest of the entires MUST be changed in admin cp, or all of your changes will be lost when we recache.

File: cacheid_5/skin_pages.php
Admin CP: skin_pages
Reason: Resetting cache on this file makes all custom pages unable to be viewed.
Report, edit, etc...Posted by IsolatedPurity on 2005-01-12 at 02:35:16
Omg... you deleted the arcade from the top menu smile.gif.

We really need to figure out some type of new layout... the mods are flooding it. I was thinking of somehow putting all the games in one new section. It'll cause people to have to click twice but.... Cleaning the navigation is getting really necessary.
Shoutbox link can also be dropped (maybe?).

Either that or we do what www.blizzard.com does and write a script to do drop down menus.

QUOTE
Apparently, doing installation scripts for some mods automaticly rebuild the skin cache, which is not good at all. Apparently, while running an installation script it did just that, and reset your progress on your shoutbox modifications (you will need to reupload) sad.gif

Mods really don't need to mess with rebuilding the cache...
A mod comes with their own skin file to upload and if they make changes to files they don't "own", they give you the steps on what bits to change... Changing the cache file or the template bits via admin cp is no different.

QUOTE
However! I have the perfect solution.

Make a list here of the exist skin cache ID and filename you do NOT want recached. Then, CHMOD the files on the server to 755. It will deny access to rewrite the file, thus making it uneffected.

See... back when I first started at sen, I tried editing the skins in the admin cp. Any changes I made didn't show up because I didn't know I had to rebuild the cache. I eventually stumbled up the cache folder and noticed those files were what really mattered.

Once I found out there was a rebuild cache button, the cache folder didn' t have the chmod permissions to be able to rebuild the cache... I just thought it was broken.

Later on... I figured it all out. But after making some slight changes to the templates and then figuring out how to do it the "right" way, it was already too late. Not that I cared anymore, editing the files directly is so much easier because:
1. It's faster
2. You can use your editor directly (and I love my editor).
----- You can change things a little at a time for debugging purposes
----- You can undo massive amounts of changes
3. Searching through all the skins for something specific is easier (if your editor has a "Find in Files" function)
4. More convienent, no censored.gif ty interface... you don't have to make a billionizon clicks or invidiually load everything.
5. While editing a script in it's entirity, it's only natural to load the skin right next to it and move between the two files as they exchange data (this is especially true!).

The admin cp would be ESPECIALLY annoying when you do huge amounts of changes. If I had to use the admin cp while doing a mod of a mod (lol) or making my own script, I would go insane. Changing what values are passed into the skin would be even more annoying.

Productivity increases furthermore if your ftp client can bookmark folders for you (faster switching between cache folder and sources folder smile.gif)

QUOTE
Just edit my post so its all under one place. The following files below can ONLY be rewritten through downloading off the FTP and making changes locally on your computer in some text editor. The rest of the entires MUST be changed in admin cp, or all of your changes will be lost when we recache.

How about we do it the opposite way... CHMOD all the files we have to edit in the admin cp? smile.gif


I just don't comprehend how you could manage doing template changes via acp.


Additional (random) stuff:
"The page you're looking for doesn't exist. Refreshing the page won't make it exist."
LOL!
Just one thing... the title bar says 403. smile.gif

Another thing, do you think we could pull of a reseller account thing? When I was first setting up, our host saw a news item about me fixxing various bugs and removing the hosting page was one of them. He messaged me saying he could set one up for me if I chose... I declined for various reasons.
Later on... there was an update with new features our server will be adding, one of them is reseller accounts...

So if we could pull it off, it would be an easy +bandwidth (we are getting around 90gigs / month ~~ so far in january: 30 gigs / 12 days) and +space without paying too much extra hopefully.

I just don't like how it could be a variable income for the site's hosting fees, which might be considerably larger if we switched to a reseller account.

Btw, the customer service rep (or whatever... I usually refere to him as our host because he is our source of contact with our host) chills in our IRC channel frequently. Tyler, screen name; TySoft, if you ever need to contact him and I'm not available.

Alternatively, we could set up some shared email account and change all the server info to that account and then you could just open tickets with that email / pass.
Report, edit, etc...Posted by Yoshi da Sniper on 2005-01-12 at 09:07:37
QUOTE
We really need to figure out some type of new layout... the mods are flooding it. I was thinking of somehow putting all the games in one new section. It'll cause people to have to click twice but.... Cleaning the navigation is getting really necessary.
Shoutbox link can also be dropped (maybe?).

Yes, I think dropdowns would be a good idea. We can certainly group most of them (games, forum functions, staredit tools, mineral usage)

QUOTE
Mods really don't need to mess with rebuilding the cache...
A mod comes with their own skin file to upload and if they make changes to files they don't "own", they give you the steps on what bits to change... Changing the cache file or the template bits via admin cp is no different.
This mod did something to it, because when I ran the install file, your stuff was lost.

QUOTE
Productivity increases furthermore if your ftp client can bookmark folders for you (faster switching between cache folder and sources folder smile.gif)
What FTP client you using?

QUOTE
I just don't comprehend how you could manage doing template changes via acp.
I did it for the longest time, and now I find it quicker because I randomly and quickly edit skin bits. Searching for them in the file takes an extra few seconds. I just got used to it :\

QUOTE
Another thing, do you think we could pull of a reseller account thing? When I was first setting up, our host saw a news item about me fixxing various bugs and removing the hosting page was one of them. He messaged me saying he could set one up for me if I chose... I declined for various reasons.
I don't think we have the space/bandwidth to support something like that. I was actually surprised to see that you had different band/space usage then your host provides. The people I hosted before were mainly close friends of the site, other people didn't trust the hosting on a map site.

QUOTE
Btw, the customer service rep (or whatever... I usually refere to him as our host because he is our source of contact with our host) chills in our IRC channel frequently. Tyler, screen name; TySoft, if you ever need to contact him and I'm not available.

Alternatively, we could set up some shared email account and change all the server info to that account and then you could just open tickets with that email / pass.
That works too. You could make a quick @staredit.net one if you wish.
Report, edit, etc...Posted by IsolatedPurity on 2005-01-12 at 09:21:07
QUOTE
Yes, I think dropdowns would be a good idea. We can certainly group most of them (games, forum functions, staredit tools, mineral usage)

One navigation bar?
If so... still hide member mods from guests or show it to them and just have "You must sign in to use this" error?
One navigation bar would free up a few extra pixels.

QUOTE
This mod did something to it, because when I ran the install file, your stuff was lost.

Only if it had permission too ;/.

QUOTE
What FTP client you using?

CuteFTP Professional 6.0
Want it? angel_not.gif

QUOTE
I don't think we have the space/bandwidth to support something like that. I was actually surprised to see that you had different band/space usage then your host provides. The people I hosted before were mainly close friends of the site, other people didn't trust the hosting on a map site.

Killer2001 knows Tyler and gave us the hook-up.
Maybe I can get some extra space and bandwidth with a few extra dollars...

QUOTE
That works too. You could make a quick @staredit.net one if you wish.

Which would go down if the site goes down?
Report, edit, etc...Posted by Yoshi da Sniper on 2005-01-12 at 16:40:29
QUOTE
CuteFTP Professional 6.0
Want it?

I have my means of obtaining such things *evil laughs*

QUOTE
Maybe I can get some extra space and bandwidth with a few extra dollars...
I don't want it costing anymore out of your pocket unless absolutely necessary.

QUOTE
Which would go down if the site goes down?
Good point happy.gif make a hotmail one then.
Report, edit, etc...Posted by Mini Moose 2707 on 2005-01-12 at 20:21:44
WTF happened to half the ACP options? Or was that the problem? tongue.gif

Yoshi, get AIM. I deserve to talk to you. :/
Report, edit, etc...Posted by (U)Bolt_Head on 2005-01-12 at 21:32:14
Get MSN if deserve to talk to him.
Report, edit, etc...Posted by Yoshi da Sniper on 2005-01-12 at 21:40:23
AIM is a pain in the bum tongue.gif
Report, edit, etc...Posted by chuiu on 2005-01-12 at 21:55:33
What IS your MSN? You still using webmaster@staredit.net?
Report, edit, etc...Posted by Yoshi da Sniper on 2005-01-12 at 22:57:04
mike_lat@hotmail.com
Report, edit, etc...Posted by IsolatedPurity on 2005-01-13 at 08:50:16
QUOTE(Yoshi da Sniper @ Jan 12 2005, 08:07 AM)
I did it for the longest time, and now I find it quicker because I randomly and quickly edit skin bits. Searching for them in the file takes an extra few seconds. I just got used to it :\.


[17:33] Isolated Purity: so maybe the reversal thing works right when the skins are made right
[17:33] Isolated Purity: if we could change all the skins to work right... i could edit skin files directly and re-build the database
[17:33] Isolated Purity: and then you change the database... you can still rebuild the cache
[17:35] Isolated Purity: so i'll look into the reversal thing and try to find out why some files don't revert properly and hopefully fix them

QUOTE(Yoshi da Sniper)
I'll edit from the files now instead of admincp tongue.gif


So... what's up?
If I can get the reversal thing to work, we both can do whatever we like to do when editing skins.

And... have you made any file changes? I saw from the shoutbox you were attempting to group mods together or something... yet I don't see any changes in the change post confused.gif

On another note... people had problems with the shoutbox when they tried to switch it to some javascripted shoutbox or something (?)... I'm not sure if having a java run navigation bar would be in everyone's best interested.
However...
We could make seperate skins with the one file difference I was talking about before. Well no, it could just be a simple switch to load two different skins for the navigation.
Not even... we could export the code to two files and just have a switch load JUST the navigation code. Heh...

Idk...
Report, edit, etc...Posted by Yoshi da Sniper on 2005-01-13 at 09:15:09
I wan't grouping any mods. I was trying to put a navigation bar in, but it failed everytime.

If you want, you can do whichever with the admincp cache, but I found that cuteftp does have a real time editor, just right click file > edit for quick changes.
Report, edit, etc...Posted by IsolatedPurity on 2005-01-13 at 13:18:38
I knew of it, but, I didn't consider it real time because you download the file and then just reupload it... I was thinking it just appears to be real time. I dunno... wink.gif

Alright... I guess I won't bother with the scripting until you want to go back to doing the acp thing.

Notes from the reversal thing (just to keep in mind while you are editing):

CODE

Note :
!!! Be sure that you have backup your cached files and your skin database.

To make this mod work perfectly , your skins must keep to IPB's standard .

Thers is a standard IPB skin's cached file :

function end_nav() {
global $ibforums;
$IPBHTML = "";
//--starthtml--//

$IPBHTML .= <<<EOF
</div>
<<<EOF;

//--endhtml--//
return $IPBHTML;
}


between the function's name and HTML codes , there must be :

global $ibforums;
$IPBHTML = "";
//--starthtml--//

$IPBHTML .= <<<EOF

between the function's end and HTML codes , there must be :

<<<EOF;

//--endhtml--//
return $IPBHTML;
Report, edit, etc...Posted by Mini Moose 2707 on 2005-01-13 at 17:45:19
QUOTE(Mini Moose 2707 @ Jan 12 2005, 08:21 PM)
WTF happened to half the ACP options? Or was that the problem? tongue.gif

Report, edit, etc...Posted by IsolatedPurity on 2005-03-30 at 06:25:20
This is still pinnz0rz?
Benefit of sen v5: we have no admin cp with no rebuild skin cache.
Pwned.
I win, gg no re, lololololol yoshah lololol.
Anyways happy.gif...
Next Page (1)