Imageset and Theme Refreshing
-
- Supporter
- Posts: 316
- Joined: 18 Sep 2007, 14:35
- Real name: David
- Contact:
Imageset and Theme Refreshing
I've looked at the file where this is done in the ACP, but it looks kina complicated, and I don't know what's going on. Isn't there an easier way? Does anyone have a script that will refresh the theme and imageset for all installed styles?
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
Re: Imageset and Theme Refreshing
Ummm...recompile stale style files in load settings?? You''ll still have to refresh the imageset though, I think.
-
- Supporter
- Posts: 316
- Joined: 18 Sep 2007, 14:35
- Real name: David
- Contact:
Re: Imageset and Theme Refreshing
I'm talking about code...
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Imageset and Theme Refreshing
It's a bit tricky to get working independently, but there's some code in acp_styles.
- we're poor!
-
- Supporter
- Posts: 316
- Joined: 18 Sep 2007, 14:35
- Real name: David
- Contact:
Re: Imageset and Theme Refreshing
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Imageset and Theme Refreshing
Well... have you tested it yet?
BTW, do not hesitate to paste the code in a code tag, the pastebin gets pruned all the time so, that's more a temporary thing. With prosilver's great code boxes it's also less of a problem .
BTW, do not hesitate to paste the code in a code tag, the pastebin gets pruned all the time so, that's more a temporary thing. With prosilver's great code boxes it's also less of a problem .
- we're poor!
-
- Supporter
- Posts: 316
- Joined: 18 Sep 2007, 14:35
- Real name: David
- Contact:
Re: Imageset and Theme Refreshing
I already tried posting it three times. But it was so long or something that everything disappeared and all it showed was [code][/code] I have tested this, and it results in no error, but I also have no guarantee that it does anything. The theme part I've had for a longer while, and I think it does something, but I'm not sure about the imageset.
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Imageset and Theme Refreshing
Fair enough.
I havn't tested it, but after reading through it, i'd say it looks pretty much like it should work.
I havn't tested it, but after reading through it, i'd say it looks pretty much like it should work.
- we're poor!
-
- Supporter
- Posts: 316
- Joined: 18 Sep 2007, 14:35
- Real name: David
- Contact:
Re: Imageset and Theme Refreshing
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
Re: Imageset and Theme Refreshing
If the [code=php] tag comes up empty upon preview/post, don't use it. Just use the normal code tags...
-
- Supporter
- Posts: 316
- Joined: 18 Sep 2007, 14:35
- Real name: David
- Contact:
Re: Imageset and Theme Refreshing
Wait, I still don't get it. Do you mean if the code=php thing shows up after you have posted, not in the textarea for writing your post, don't use it?
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Imageset and Theme Refreshing
No, the other way round.
It is a problem with PHP itself. They have some kind of limit on the highlight_string() function (which is called by phpBB), and if that limit is exceded, it returns a blank string. So if you try to put very long code snippets into a [code=php] tag, it will not get highlighted. In the textarea (when editing or quoting the post) it is shown though. You can just use a normal [code] tag. I don't mind if i can't see fancy colours .
It is a problem with PHP itself. They have some kind of limit on the highlight_string() function (which is called by phpBB), and if that limit is exceded, it returns a blank string. So if you try to put very long code snippets into a [code=php] tag, it will not get highlighted. In the textarea (when editing or quoting the post) it is shown though. You can just use a normal [code] tag. I don't mind if i can't see fancy colours .
- we're poor!
-
- Supporter
- Posts: 316
- Joined: 18 Sep 2007, 14:35
- Real name: David
- Contact:
Re: Imageset and Theme Refreshing
Ahh, I get it!!! thanks Evil<3 and sTraTo.
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: No registered users and 33 guests