I'm currently using the Rhuk2 theme from rhuk.net (their current default theme) on my site, and for the Administration Message as well as the Center Blocks (not the news), there is no center block title for the block or any graphical enhancements for this center block like there is for the news blocks or the side blocks. I'm trying to get the center block to look like the side blocks as far as the graphics are concerned, but I cannot find anywhere in the theme files from rhuk where the center block is coded.
When I asked Rhuk about it, he stated that the center block cannot be graphically coded like the side blocks can. I don't feel this is an accurate answer, why? because if I look at a few of the core themes from postnuke, they do show up like the side blocks, graphically and with center block title.
Anyone know where in the theme I should be looking to correct this problem? Thanks!
Anvil
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
The Look of the Center Block...
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
celest
I'm currently using the Rhuk2 theme from rhuk.net (their current default theme) on my site, and for the Administration Message as well as the Center Blocks (not the news), there is no center block title for the block or any graphical enhancements for this center block like there is for the news blocks or the side blocks. I'm trying to get the center block to look like the side blocks as far as the graphics are concerned, but I cannot find anywhere in the theme files from rhuk where the center block is coded.
When I asked Rhuk about it, he stated that the center block cannot be graphically coded like the side blocks can. I don't feel this is an accurate answer, why? because if I look at a few of the core themes from postnuke, they do show up like the side blocks, graphically and with center block title.
Anyone know where in the theme I should be looking to correct this problem? Thanks!
Anvil
Anvil,
I've just downloaded and taken a look at this theme. To modify the look of the blocks you can alter the themesidebox function. This begins at line 240 of theme.php and looks as follows :-
Code
/************************************************************/
/* Function themesidebox() */
/************************************************************/
function themesidebox($block) {
global $block_side, $thename;
if (empty($block['position'])) {
$block['position'] = "a";
}
if ($block['position'] == 'l' || $block['position'] == 'r') {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"150\" style=\"border: 1px solid " . getColor("border") . ";\">\n"
."<tr><td bgcolor=\"" . getColor("hilitehead") . "\" style=\"border-bottom: 1px solid " . getColor("border") . ";\"><img src=\"themes/Rhuknet2/images/dots.gif\" height=\"5\" width=\"13\"></td></tr>\n"
."<tr><td bgcolor=\"" . getColor("sectionhead") . "\" align=\"center\" height=\"20\" style=\"font : bold 13px;
color : " . getColor("font") . ";\">\n"
."<b>$block[title]</b>\n"
."</td></tr>\n"
."<tr><td bgcolor=\"" . getColor("border") . "\"><img src=\"themes/Rhuknet2/images/pixel.gif\" width=\"100%\" height=\"1\"></td></tr>\n"
."<tr>\n"
."<td bgcolor=\"" . getColor("sectionbody") . "\" style=\"padding:4px\">$block[content]</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n\n\n";
}
if ($block['position'] == 'c') {
echo "<font>$block[content]</font>";
}
}
The key section for the centre block is
Code
You alter the HTML layout of the centre block here. Look at how the left and right sideboxes are done for an example.
-Mark -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
celest
Worked out nicely! Thank you so much!
Anvil
No problem, glad to be able to help.
-Mark -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Mar 10, 2003
- Posts: 7
Thanks for the info. I'll add it to the theme in the next couple of days.
rhuk
rhuk@rhuk.net
http://www.rhuk.net
- Moderated by:
- Support
