| Author |
Message |
Shados
Beginner


Joined: Dec 23, 2007 Posts: 7
|
Posted: Wed Dec 26, 2007 9:52 am Post subject: Bug: g2image insert block does not work in signatures |
|
|
| Title basically says it all. If you click insert from the g2Img block, it doesn't insert the code. Of course, I can start a post, insert the image I want into that post and then CnP that into my signature, but that's a fairly clunky work-around. |
|
| Back to top |
|
|
AdBot
|
| Post subject: Bug: g2image insert block does not work in signatures |
|
|
|
|
|
| Back to top |
|
 |
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 898
|
Posted: Wed Dec 26, 2007 11:09 am Post subject: Re: Bug: g2image insert block does not work in signatures |
|
|
Actually, I wasn't even aware that the same posting options are available for creating sigs. I suspect the problem is that the form name is different for sigs and posting messages and that is why it doesn't work.
I'll check into it...thanks for the report! |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 898
|
Posted: Wed Dec 26, 2007 12:21 pm Post subject: Re: Bug: g2image insert block does not work in signatures |
|
|
Here is the fix for this issue:
In styles/prosilver/template/posting_buttons.html, replace this existing mod:Code: › <input type="button" class="button2" name="g2image" value="g2Img" onclick="g2ic_open('postform', 'message');" title="{L_BBCODE_G_HELP}" />
With this one:Code: › <input type="button" class="button2" name="g2image" value="g2Img" onclick="g2ic_open('postform', '<!-- IF S_POST_ACTION -->message<!-- ELSEIF S_UCP_ACTION -->signature<!-- ENDIF -->');" title="{L_BBCODE_G_HELP}" />
In styles/subsilver2/template/posting_buttons.html, replace this existing mod:Code: › <input type="button" class="btnbbcode" name="g2image" value="g2Img" onclick="g2ic_open('postform', 'message');" title="{L_BBCODE_G_HELP}" />
With this one:Code: › <input type="button" class="btnbbcode" name="g2image" value="g2Img" onclick="g2ic_open('postform', '<!-- IF S_POST_ACTION -->message<!-- ELSEIF S_UCP_ACTION -->signature<!-- ENDIF -->');" title="{L_BBCODE_G_HELP}" /> |
|
| Back to top |
|
|
Shados
Beginner


Joined: Dec 23, 2007 Posts: 7
|
Posted: Thu Dec 27, 2007 3:12 am Post subject: Re: Bug: g2image insert block does not work in signatures |
|
|
| Works now, and you have a very nice response time ^^. |
|
| Back to top |
|
|
baiwei01
Beginner


Joined: Apr 21, 2008 Posts: 2
|
Posted: Wed Apr 23, 2008 6:13 am Post subject: Re: Bug: g2image insert block does not work in signatures |
|
|
I've installed Gallery2 phpBB3 Integration Pack 1.0.1a. I can't get g2image insert block work in signatures either. And I tried to modify the code as directed, but there's no effect.
Can someone help me out? |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 898
|
Posted: Wed Apr 23, 2008 9:08 am Post subject: Re: Bug: g2image insert block does not work in signatures |
|
|
Works fine for me...
You should not have had to make those changes to 1.0.1a because this is an old thread from an older version and these changes are already in the new version.
Maybe you have permissions set wrong in the phpbb acp?
Are there any error messages? What doesn't work about it? Does g2image work in posting messages? |
|
| Back to top |
|
|
baiwei01
Beginner


Joined: Apr 21, 2008 Posts: 2
|
Posted: Fri Apr 25, 2008 8:17 pm Post subject: Re: Bug: g2image insert block does not work in signatures |
|
|
I used firefox 2.0.0.14. When I clicked insert button, the pop-up window just didn't close as you usually use this function.
g2image seems work fine well in the forum. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 898
|
Posted: Sun Apr 27, 2008 9:32 pm Post subject: Re: Bug: g2image insert block does not work in signatures |
|
|
| Does it insert the bbcode in the signature and just not close the window? It seems to work fine for me. |
|
| Back to top |
|
|
|
|
|
|
|