Quote:
For Newbb 4.3 the English images are in:
newbb/images/imagesets/default/english
The above path is used for 3.08
In 4.3 the imagesets feature is removed but another best and full customization feature for images is introduced and available.
Quote:
* Priority for path per types:
* NEWBB_ROOT - IF EXISTS XOOPS_THEME/modules/newbb/images/, TAKE IT;
* ELSEIF EXISTS XOOPS_THEME_DEFAULT/modules/newbb/images/, TAKE IT;
* ELSE TAKE XOOPS_ROOT/modules/newbb/templates/images/.
* types:
* button/misc - language specified;
* //indicator - language specified;
* icon - universal;
* mime - universal;
*/
look here for detail information for newbb 4.3 image customization:
https://xoops.org/modules/newbb/viewtopic.php?post_id=347900As for "text links" instead of "images", i can not see any easy way for doing it.
I will take a deep a look in newbb 3.08 and 4.3 codes when i find some times but im agree that it is very needed feature.
deka87:
I found a solution for you. (It is a temporary solution)
It is works in 4.3 and i think it will be worked in 3.08 (i will test later)
firstly you should find all "newbb_displayImage" and change the display to false:
for example most of them are in newbb/class/post.php
change this:
$thread_buttons['edit']['image'] = newbb_displayImage('p_edit', _EDIT);
with this:
$thread_buttons['edit']['image'] = newbb_displayImage('p_edit', _EDIT,false);
Then go to newbb/class/icon.php and change assignImage function:
change this:
function assignImage($image, $alt = "", $extra = "")
{
$this->setImage($image, $alt, $extra);
return true;
}
with this:
function assignImage($image, $alt = "", $extra = "")
{
$this->setImage($image, $alt, $extra);
return $alt;
}
Hope you can test in 3.08 sooner than me.
Hope newbb developer set a yes/no in newbb configuration for displaying images.
edit:
I found a better solution for the above. (still is not final)
instead of changing all "newbb_displayImage" just go to newbb/include/functions.render.php and in newbb_displayImage function change
$display default value from true to false like this:
change this:
function newbb_displayImage($image, $alt = "", $display = true, $extra = "class='forum_icon'")
{
$icon_handler = newbb_getIconHandler();
if (empty($display)) {
return $icon_handler->assignImage($image, $alt, $extra);
} else {
return $icon_handler->getImage($image, $alt, $extra);
}
}
with this:
function newbb_displayImage($image, $alt = "", $display = false, $extra = "class='forum_icon'")
{
$icon_handler = newbb_getIconHandler();
if (empty($display)) {
return $icon_handler->assignImage($image, $alt, $extra);
} else {
return $icon_handler->getImage($image, $alt, $extra);
}
}