
Yes, I'd also like to know if this MOD works with 3.0.2.jerryT wrote:Anyone got this working on 3.0.2 ??
Code: Select all
<h1>{L_TITLE} :: {FORUM_NAME}</h1>
Code: Select all
<h1>{L_TITLE} <!-- IF FORUM_NAME -->:: {FORUM_NAME}<!-- ENDIF --></h1>
Code: Select all
<h1>{L_TITLE} <!-- IF FORUM_NAME -->:: <!-- IF S_FORUM_NAME_COLOUR --><span style="color:#{FORUM_NAME_COLOUR};"><!-- ENDIF -->{FORUM_NAME}<!-- IF S_FORUM_NAME_COLOUR --></span><!-- ENDIF --><!-- ENDIF --></h1>
Code: Select all
$s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '">' . $subforum['name'] . '</a>';
Code: Select all
$s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '" title="' . (($subforum['unread']) ? $user->lang['NEW_POSTS'] : $user->lang['NO_NEW_POSTS']) . '">' . $subforum['name'] . '</a>';
Code: Select all
//-- mod : forum title colour --------------------------------------------------
//-- delete
/*-MOD
$s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '" title="' . (($subforum['unread']) ? $user->lang['NEW_POSTS'] : $user->lang['NO_NEW_POSTS']) . '">' . $subforum['name'] . '</a>';
MOD-*/
//-- add
$subforum_name_colour = $subforum['colour'] ? 'style="color: #' . $subforum['colour'] . '"' : '';
$s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '" title="' . (($subforum['unread']) ? $user->lang['NEW_POSTS'] : $user->lang['NO_NEW_POSTS']) . '" ' . $subforum_name_colour . '>' . $subforum['name'] . '</a>';
//-- fin mod : forum title colour ----------------------------------------------
Thank you, oddfish.oddfish wrote:yes it works fine on 3.0.2
here are a couple of changes that will help you :
Firstly, copy the modx.prosilver.en.xsl into the template folder (where prosilver.xml is). Edit the prosilver.xml file with your good text editor and about line #2 change ../modx.prosilver.en.xsl to just one dot : ./modx.prosilver.en.xsl and save. Now you should be good to go opening that in your browser and make the edits required to your prosilver style.hww wrote:...
Finally, what do the installation instructions mean when they say "[r]efresh your Styles, clear your cache, set your settings, and apply the 'prosilver' XML file" (italics added)?
I've tried opening the prosilver XML file in my web browser, but just get a long, difficult to read, HTML string.
Code: Select all
Open: styles/subsilver2/template/forumlist_body.html
Find
<td class="cat" colspan="2"><h4><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a></h4></td>
Replace with
<td class="cat" colspan="2"><h4><a href="{forumrow.U_VIEWFORUM}"><!-- IF forumrow.S_FORUM_NAME_COLOUR --><span style="color:#{forumrow.FORUM_NAME_COLOUR};"><!-- ENDIF -->{forumrow.FORUM_NAME}<!-- IF forumrow.S_FORUM_NAME_COLOUR --></span><!-- ENDIF --></a></h4></td>
Open: styles/subsilver2/template/jumpbox.html
Find
<option value="{jumpbox_forums.FORUM_ID}"{jumpbox_forums.SELECTED}><!-- BEGIN level --> <!-- END level -->{jumpbox_forums.FORUM_NAME}</option>
Replace with
<option value="{jumpbox_forums.FORUM_ID}"<!-- IF jumpbox_forums.S_FORUM_NAME_COLOUR --> style="color:#{jumpbox_forums.FORUM_NAME_COLOUR}; font-weight: bold;"<!-- ENDIF -->{jumpbox_forums.SELECTED}><!-- BEGIN level --> <!-- END level -->{jumpbox_forums.FORUM_NAME}</option>
Open: styles/subsilver2/template/memberlist_view.html
Find
<td><!-- IF ACTIVE_FORUM --><b><a class="gen" href="{U_ACTIVE_FORUM}">{ACTIVE_FORUM}</a></b><br /><span class="genmed">[ {ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT} ]</span><!-- ELSE --><span class="gen">-</span><!-- ENDIF --></td>
Replace with
<td><!-- IF ACTIVE_FORUM --><b><a class="gen" href="{U_ACTIVE_FORUM}"><!-- IF S_ACTIVE_FORUM_COLOUR --><span style="color:#{ACTIVE_FORUM_COLOUR};"><!-- ENDIF -->{ACTIVE_FORUM}<!-- IF S_ACTIVE_FORUM_COLOUR --></span><!-- ENDIF --></a></b><br /><span class="genmed">[ {ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT} ]</span><!-- ELSE --><span class="gen">-</span><!-- ENDIF --></td>
Open: styles/subsilver2/template/search_results.html
Find
<p class="gensmall">{L_IN} <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a></p>
Replace with
<p class="gensmall">{L_IN} <a href="{searchresults.U_VIEW_FORUM}"><!-- IF searchresults.S_FORUM_TITLE_COLOUR --><span style="color:#{searchresults.FORUM_TITLE_COLOUR};"><!-- ENDIF -->{searchresults.FORUM_TITLE}<!-- IF searchresults.S_FORUM_TITLE_COLOUR --></span><!-- ENDIF --></a></p>
Find
<!-- IF searchresults.FORUM_TITLE -->{L_FORUM}: <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a>
Replace with
<!-- IF searchresults.FORUM_TITLE -->{L_FORUM}: <a href="{searchresults.U_VIEW_FORUM}"><!-- IF searchresults.S_FORUM_TITLE_COLOUR --><span style="color:#{searchresults.FORUM_TITLE_COLOUR};"><!-- ENDIF -->{searchresults.FORUM_TITLE}<!-- IF searchresults.S_FORUM_TITLE_COLOUR --></span><!-- ENDIF --></a>
Open: styles/subsilver2/template/viewforum_body.html
Find
<h2><a class="titles" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>
Replace with
<h2><a class="titles" href="{U_VIEW_FORUM}"><!-- IF S_FORUM_NAME_COLOUR --><span style="color:#{FORUM_NAME_COLOUR};"><!-- ENDIF -->{FORUM_NAME}<!-- IF S_FORUM_NAME_COLOUR --></span><!-- ENDIF --></a></h2>
Thanks so muchoddfish wrote:why not
cheers,Code: Select all
Open: styles/subsilver2/template/forumlist_body.html Find <td class="cat" colspan="2"><h4><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a></h4></td> Replace with <td class="cat" colspan="2"><h4><a href="{forumrow.U_VIEWFORUM}"><!-- IF forumrow.S_FORUM_NAME_COLOUR --><span style="color:#{forumrow.FORUM_NAME_COLOUR};"><!-- ENDIF -->{forumrow.FORUM_NAME}<!-- IF forumrow.S_FORUM_NAME_COLOUR --></span><!-- ENDIF --></a></h4></td> Open: styles/subsilver2/template/jumpbox.html Find <option value="{jumpbox_forums.FORUM_ID}"{jumpbox_forums.SELECTED}><!-- BEGIN level --> <!-- END level -->{jumpbox_forums.FORUM_NAME}</option> Replace with <option value="{jumpbox_forums.FORUM_ID}"<!-- IF jumpbox_forums.S_FORUM_NAME_COLOUR --> style="color:#{jumpbox_forums.FORUM_NAME_COLOUR}; font-weight: bold;"<!-- ENDIF -->{jumpbox_forums.SELECTED}><!-- BEGIN level --> <!-- END level -->{jumpbox_forums.FORUM_NAME}</option> Open: styles/subsilver2/template/memberlist_view.html Find <td><!-- IF ACTIVE_FORUM --><b><a class="gen" href="{U_ACTIVE_FORUM}">{ACTIVE_FORUM}</a></b><br /><span class="genmed">[ {ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT} ]</span><!-- ELSE --><span class="gen">-</span><!-- ENDIF --></td> Replace with <td><!-- IF ACTIVE_FORUM --><b><a class="gen" href="{U_ACTIVE_FORUM}"><!-- IF S_ACTIVE_FORUM_COLOUR --><span style="color:#{ACTIVE_FORUM_COLOUR};"><!-- ENDIF -->{ACTIVE_FORUM}<!-- IF S_ACTIVE_FORUM_COLOUR --></span><!-- ENDIF --></a></b><br /><span class="genmed">[ {ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT} ]</span><!-- ELSE --><span class="gen">-</span><!-- ENDIF --></td> Open: styles/subsilver2/template/search_results.html Find <p class="gensmall">{L_IN} <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a></p> Replace with <p class="gensmall">{L_IN} <a href="{searchresults.U_VIEW_FORUM}"><!-- IF searchresults.S_FORUM_TITLE_COLOUR --><span style="color:#{searchresults.FORUM_TITLE_COLOUR};"><!-- ENDIF -->{searchresults.FORUM_TITLE}<!-- IF searchresults.S_FORUM_TITLE_COLOUR --></span><!-- ENDIF --></a></p> Find <!-- IF searchresults.FORUM_TITLE -->{L_FORUM}: <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a> Replace with <!-- IF searchresults.FORUM_TITLE -->{L_FORUM}: <a href="{searchresults.U_VIEW_FORUM}"><!-- IF searchresults.S_FORUM_TITLE_COLOUR --><span style="color:#{searchresults.FORUM_TITLE_COLOUR};"><!-- ENDIF -->{searchresults.FORUM_TITLE}<!-- IF searchresults.S_FORUM_TITLE_COLOUR --></span><!-- ENDIF --></a> Open: styles/subsilver2/template/viewforum_body.html Find <h2><a class="titles" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2> Replace with <h2><a class="titles" href="{U_VIEW_FORUM}"><!-- IF S_FORUM_NAME_COLOUR --><span style="color:#{FORUM_NAME_COLOUR};"><!-- ENDIF -->{FORUM_NAME}<!-- IF S_FORUM_NAME_COLOUR --></span><!-- ENDIF --></a></h2>
oddfish.
@MOD author: your MOD is working fine with exception of the index: normal colors.sids23 wrote:This mod is good
I got the same problem as many other people have, that the normal colors are showing up on the index page. Its working on the search page and in the admin cp.
Ill go through the code again but any ideas why its not working...?