Adding new buttons

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[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
harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Adding new buttons

Postby harmlessgoat22 » 01 Jun 2008, 16:24


That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

User avatar
igorw
Past Contributor
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: Adding new buttons

Postby igorw » 01 Jun 2008, 16:35

You need to also add the button to imageset.cfg and then refresh your imageset. You need to add it to includes/acp/acp_styles.php, if it's localised you also need to add it to includes/acp/acp_language.php afaik.

When that's done you can display it as an image using {NEW_BLOG_POST}.

If you want to have it using spans though (like in prosilver), you have to add it to the css files in the theme folder.

- we're poor!

harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Adding new buttons

Postby harmlessgoat22 » 01 Jun 2008, 16:36


That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

User avatar
igorw
Past Contributor
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: Adding new buttons

Postby igorw » 01 Jun 2008, 16:38

Nope. But a way to get less edits would be to put all the css into a separate css file and have that imported in stylesheet.css (prosilver). If you want to see all that's needed, look at my evil quick reply mod. ;)

- we're poor!

harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Adding new buttons

Postby harmlessgoat22 » 01 Jun 2008, 16:40


That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Adding new buttons

Postby harmlessgoat22 » 04 Jun 2008, 11:50

False alarm. I got it to work, but apparently I didn't record the change, so now it isn't working when I do the same things to a fresh board. Help please!!!

That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Adding new buttons

Postby harmlessgoat22 » 04 Jun 2008, 20:40

Got it to work again...maybe I had to refresh my browsers cache...

That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

User avatar
igorw
Past Contributor
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: Adding new buttons

Postby igorw » 05 Jun 2008, 16:34

Unless you're using opera that should never really be needed.

- we're poor!

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Adding new buttons

Postby Obsidian » 05 Jun 2008, 16:53


harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Adding new buttons

Postby harmlessgoat22 » 05 Jun 2008, 16:54

Hmm...that's weird. I still don't know what I did.

@sTraTo. I think he's just talking about the caching of the images.

That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever

User avatar
igorw
Past Contributor
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: Adding new buttons

Postby igorw » 06 Jun 2008, 11:55

Yes, i was talking about caching. Opera has very strong caching, which can sometimes be very annoying. :)

- we're poor!

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Adding new buttons

Postby Obsidian » 06 Jun 2008, 12:57


harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Adding new buttons

Postby harmlessgoat22 » 06 Jun 2008, 13:50

I did refresh the imageset, but it was a few hours after that that I came back on the computer and it was working...

That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever


[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
[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

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 28 guests