How To add new gifs?
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
How To add new gifs?
Hello,
how to add new gifs to phpBB3?
I've made a entry at the imageset.cfg . IMO I've done it with the correct syntax.
But the image is not displayed.
What could be the problem?
Which steps are necessary too?
Bye Martin
how to add new gifs to phpBB3?
I've made a entry at the imageset.cfg . IMO I've done it with the correct syntax.
But the image is not displayed.
What could be the problem?
Which steps are necessary too?
Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
Re: How To add new gifs?
Hello,
I saw that I have to have an entry in the phpbb_styles_imageset table and to activate the image in the ACP under STYLES -> Imagesets after refreshing template and theme.
But it is still not running.
IMO it seems that this is not finished in phpBB3 beta1.
Please try it yourself and give me a feedback.
Bye Martin
I saw that I have to have an entry in the phpbb_styles_imageset table and to activate the image in the ACP under STYLES -> Imagesets after refreshing template and theme.
But it is still not running.
IMO it seems that this is not finished in phpBB3 beta1.
Please try it yourself and give me a feedback.
Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
- poyntesm
- Registered User
- Posts: 176
- Joined: Fri May 13, 2005 4:08 pm
- Location: Dublin, Ireland
- Contact:
Re: How To add new gifs?
Martin,
Did you ever get this working?
I am looking at the same at the moment. I so far think you have to create the DB entry. Then decide if you want it to be under an existing imageset category or a new one.
In language/en/acp/styles.php you add the new category
Then in includes/acp/acp_styles/php where imageset_keys is defined
You will then need to have xxxxx_image in the table you mentioned.
I am only posting as I have been looking at it at the moment. I may be wrong and there may be functions defined to help with all this, but so far I have no found them and I think the above will work. So take all this is just a helpful pointer and not bible.
Did you ever get this working?
I am looking at the same at the moment. I so far think you have to create the DB entry. Then decide if you want it to be under an existing imageset category or a new one.
In language/en/acp/styles.php you add the new category
Code: Select all
IMG_CAT_XXXXX' => 'Your XXXXX image category',
Code: Select all
'xxxxx' => array(
'xxxxx_image',
),
I am only posting as I have been looking at it at the moment. I may be wrong and there may be functions defined to help with all this, but so far I have no found them and I think the above will work. So take all this is just a helpful pointer and not bible.
My Mods :phpBB Garage, Quote With Or Without Images, phpbb/Mantis Integration
My Blog :poyntesm's blog
My Blog :poyntesm's blog
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
Re: How To add new gifs?
Hello,
at the moment I'm not working on my test enviroment. I will test it next weeks.
Bye Martin
at the moment I'm not working on my test enviroment. I will test it next weeks.
Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
Re: How To add new gifs?
*push*
any new ideas about this?
any new ideas about this?
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
Re: How To add new gifs?
Hello,
look at the css files too.
Bye Martin
look at the css files too.
Bye Martin
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
Re: How To add new gifs?
thanks for your reply.
i did so far:
1.) uploaded an button image (png) to the folder on FTP
2.) insert into css:
3.) to inset the Button, i wrote this into the template:
4.) imageset.cfg (within laguage folder):
but firebug will show an empty definition within the CSS:
as you can see, the
"background-image:url({IMG_BUTTON_BOOKMARK});"
indicates, that the real image url is not pasted into the css code.
And the last (top) declaration contains nothing.
so there must be something missing. what did i forgot?
or is it easier to use one of the user defined images within the ACP? i can already set within the ACP, upload via FTp but how do i call those user difined buttons within the templates or CSS code? maybe "{USER1}" etc.?
many thanks for your help and tips!
i did so far:
1.) uploaded an button image (png) to the folder on FTP
2.) insert into css:
Code: Select all
/* Big button images */
.bookmark-icon, .bookmark-icon a { background: transparent none 0 0 no-repeat; }
Code: Select all
/* Set big button dimensions */
.buttons div.bookmark-icon { width: {IMG_BUTTON_BOOKMARK_WIDTH}px; height: {IMG_BUTTON_BOOKMARK_HEIGHT}px; }
Code: Select all
/* Icon images ---------------------------------------- */
..... .rtl .icon-bookmark, ..... {
background-position: 100% 50%;
padding: 1px 17px 0 0;
}
Code: Select all
Colours and backgrounds for buttons.css
.bookmark-icon, .bookmark-icon a
{ background-image: url("{IMG_BUTTON_BOOKMARK}") ;}
3.) to inset the Button, i wrote this into the template:
Code: Select all
<!-- IF U_BOOKMARK_TOPIC -->
<div class="bookmark-icon"><a href="{U_BOOKMARK_TOPIC}"><span>{L_BOOKMARK_TOPIC}</span></a></div>
<!-- ENDIF -->
Code: Select all
img_button_bookmark = button_mark_new.png*25*87
Code: Select all
.buttons div.bookmark-icon {
}
.buttons div {
background-position:0pt 100%;
float:left;
margin:0pt 5px 0pt 0pt;
}
.bookmark-icon, .bookmark-icon a {
background-image:url({IMG_BUTTON_BOOKMARK});
}
.bookmark-icon, .bookmark-icon a {
background:transparent none no-repeat scroll 0pt;
}
* {
margin:0pt;
padding:0pt;
}
"background-image:url({IMG_BUTTON_BOOKMARK});"
indicates, that the real image url is not pasted into the css code.
And the last (top) declaration contains nothing.
so there must be something missing. what did i forgot?
or is it easier to use one of the user defined images within the ACP? i can already set within the ACP, upload via FTp but how do i call those user difined buttons within the templates or CSS code? maybe "{USER1}" etc.?
many thanks for your help and tips!
- poyntesm
- Registered User
- Posts: 176
- Joined: Fri May 13, 2005 4:08 pm
- Location: Dublin, Ireland
- Contact:
Re: How To add new gifs?
You will need to add a new entry to includes/acp/acp_styles.php, language/en/acp/styles.php & also look at adding to phpbb_styles_imagetset_data.
Think of the top of my head those are the bits you have missed. Its not easy to add a new image anymore.
Think of the top of my head those are the bits you have missed. Its not easy to add a new image anymore.
My Mods :phpBB Garage, Quote With Or Without Images, phpbb/Mantis Integration
My Blog :poyntesm's blog
My Blog :poyntesm's blog
Re: How To add new gifs?
thank you - i will try this!
or is it easier to user one of the custom defineable buttons which also can be set within the ACP?
or is it easier to user one of the custom defineable buttons which also can be set within the ACP?
- poyntesm
- Registered User
- Posts: 176
- Joined: Fri May 13, 2005 4:08 pm
- Location: Dublin, Ireland
- Contact:
Re: How To add new gifs?
In my mind no. What if another MOD wants to use user defined 1 then you would need to update its template code.
My Mods :phpBB Garage, Quote With Or Without Images, phpbb/Mantis Integration
My Blog :poyntesm's blog
My Blog :poyntesm's blog