MyBBHacks.com Plugins for  MyBB

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change font of Gallery List in ezGallery
#1
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.
Reply
#2
It would be inside the php code in ezgallery.php in the " mainview()" function
Reply
#3
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?
Reply
#4
That would only change it when you are viewing the inside of the category
Reply
#5
(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?
Reply
#6
It should be in the same function just down more below.
Reply
#7
(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.
Reply
#8
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>';
            }
Reply
#9
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>';
Reply
#10
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>';
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)