MyBBHacks.com Plugins for MyBB

Full Version: How to change font of Gallery List in ezGallery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I'm new to myBB and ezGallery.  I have installed myBB and ezGallery and both are working fine.  I wish to change the font for the list of galleries I have created that are displayed on the ezgallery.php page.

Currently the font of the list of the gallery names are not large enough and I would also like to bold the text as well.  I have looked through the php files of ezGallery, and nothing jumps out as to what needs to be modified.

Any help would be appreciated.
It would be inside the php code in ezgallery.php in the " mainview()" function
Hey Thanks. I tried the following to bold the text in the " mainview()" function but it didn't change anything.

$context['gallery_cat_name'] = '<b>'.$row1['title'].'</b>';

Any ideas?
That would only change it when you are viewing the inside of the category
(12-03-2015, 03:31 PM)MyBBHacks Wrote: [ -> ]That would only change it when you are viewing the inside of the category

Thanks and you're right.  So what line controls the category display outside the category?
It should be in the same function just down more below.
(12-04-2015, 12:09 PM)MyBBHacks Wrote: [ -> ]It should be in the same function just down more below.

Still no luck.  Getting frustrating.  Can you give the precise line in the code?

Thanks.
Around line 471 in this code area
Code:
            if ($row['image'] == '')
                echo '<td colspan="2"><a href="ezgallery.php?cat=' . $row['ID_CAT'] . '">' . $parser->parse_message($row['title'], $parser_options) . '</a></td><td>' . $parser->parse_message($row['description'], $parser_options) . '</td>';
            else
            {
                echo '<td><a href="ezgallery.php?cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" alt="" /></a></td>';
                echo '<td><a href="ezgallery.php?cat=' . $row['ID_CAT'] . '">' . $parser->parse_message($row['title'], $parser_options) . '</a></td><td>' . $parser->parse_message($row['description'], $parser_options) . '</td>';
            }
BINGO!!

Here is the code for other who have struggled with this. This will bold the title and description.

if ($row['image'] == '')
echo '<td colspan="2"><a href="ezgallery.php?cat=' . $row['ID_CAT'] . '"><b>' . $parser->parse_message($row['title'], $parser_options) . '</b></a></td><td><b>' . $parser->parse_message($row['description'], $parser_options) . '</b></td>';
Better yet, here's the code to also increase the font size too.

if ($row['image'] == '')
echo '<td colspan="2"><a href="ezgallery.php?cat=' . $row['ID_CAT'] . '"><b><font size="3">' . $parser->parse_message($row['title'], $parser_options) . '</font></b></a></td><td><b><font size="3">' . $parser->parse_message($row['description'], $parser_options) . '</font></b></td>';
Pages: 1 2