Page 6 of 10
Re: Forum Title Colour
Posted: Sun Nov 02, 2008 7:08 pm
by oddfish
Smog wrote:.... your MOD is working fine with exception of the index: normal colors.
Any idea when this will be added/fixed?
check your edits carefully and the correct edits a few posts above would be my only suggestion. It does work correctly.
Re: Forum Title Colour
Posted: Mon Nov 03, 2008 4:01 pm
by Sunka
Working very good.
Thanks for creating MOD

Re: Forum Title Colour
Posted: Sat Nov 08, 2008 11:57 am
by Smog
oddfish wrote:Smog wrote:.... your MOD is working fine with exception of the index: normal colors.
Any idea when this will be added/fixed?
check your edits carefully and the correct edits a few posts above would be my only suggestion. It does work correctly.
Accomplished the modifications as suggested by you, still no colored forum titles on the index.
However, in the ACP the forum titles are colored......
Re: Forum Title Colour
Posted: Sat Nov 08, 2008 7:00 pm
by danny1969
have you made the prosilver changes?
prosilver.xml
greetings, Danny

Re: Forum Title Colour
Posted: Sat Nov 08, 2008 9:00 pm
by Smog
danny1969 wrote:have you made the prosilver changes?
prosilver.xml
No, i didn't because i only use subsilver2

Re: Forum Title Colour
Posted: Sun Nov 09, 2008 1:17 am
by oddfish
Smog wrote:danny1969 wrote:have you made the prosilver changes?
prosilver.xml
No, i didn't because i only use subsilver2

From memory, there are 2 more required edits in forumlist_body.html which I'll fix in an update soon for subsilver2.
find x2
Code: Select all
<a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
replace with
Code: Select all
<a class="forumlink" 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>
cheers,
oddfish.
Re: Forum Title Colour
Posted: Thu Nov 13, 2008 2:03 am
by PunkoJotaViL
mmmm...
how i unistall this part:
Code: Select all
ALTER TABLE phpbb_forums ADD forum_name_colour varchar(6) DEFAULT '' NOT NULL;
Re: Forum Title Colour
Posted: Thu Nov 13, 2008 2:15 am
by DragonMaster1
PunkoJotaViL wrote:mmmm...
how i unistall this part:
Code: Select all
ALTER TABLE phpbb_forums ADD forum_name_colour varchar(6) DEFAULT '' NOT NULL;
If you can access the server control panel just go to that server and find phpbb_forums in the list and browse it, then check the drop down list and go to the last one and you will see forum_name_colour listed. Just check the box and delete it
There is a way to use the SQL to do this but I hesitate to post SQL code for others to use
Re: Forum Title Colour
Posted: Thu Nov 13, 2008 3:47 pm
by Smog
oddfish wrote:Smog wrote:danny1969 wrote:have you made the prosilver changes?
prosilver.xml
No, i didn't because i only use subsilver2

From memory, there are 2 more required edits in forumlist_body.html which I'll fix in an update soon for subsilver2.
find x2
Code: Select all
<a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
replace with
Code: Select all
<a class="forumlink" 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>
cheers,
oddfish.
Txs oddfish, worked partial. Please see my PM.
Re: Forum Title Colour
Posted: Thu Nov 13, 2008 7:48 pm
by oddfish
and replied thanks Smog.
A repack of this MOD for phpBB 3.0.3 with subsilver2 edits is available here :
http://www.oddfishs.com/forum/viewtopic.php?f=6&t=6
Might include Category Title Colour one day too.
cheers,
oddfish.
Re: Forum Title Colour
Posted: Fri Nov 14, 2008 3:55 am
by platinum_2007
I am getting this error :
Code: Select all
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /homepages/7/d256403619/htdocs/forum/includes/functions_display.php on line 998
Re: Forum Title Colour
Posted: Fri Nov 14, 2008 4:14 am
by oddfish
platinum_2007 wrote:I am getting this error :
Code: Select all
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /homepages/7/d256403619/htdocs/forum/includes/functions_display.php on line 998
check your edits in functions_display.php around that line #. It should look something like this ( :
Code: Select all
if (!empty($active_f_row))
{
$sql = 'SELECT forum_name
FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . $active_f_row['forum_id'];
//-- mod : forum title colour --------------------------------------------------
//-- add
$sql = str_replace('SELECT ', 'SELECT forum_name_colour, ', $sql);
//-- fin mod : forum title colour ----------------------------------------------
$result = $db->sql_query($sql, 3600);
$active_f_row['forum_name'] = (string) $db->sql_fetchfield('forum_name');
//-- mod : forum title colour --------------------------------------------------
//-- add
$active_f_row['forum_name_colour'] = $db->sql_fetchfield('forum_name_colour');
//-- fin mod : forum title colour ----------------------------------------------
$db->sql_freeresult($result);
}
// Obtain active topic
hope that helps,
oddfish.
Re: Forum Title Colour
Posted: Sun Nov 23, 2008 11:13 am
by Ahri89
Thanks a lot!!
Re: Forum Title Colour
Posted: Fri Nov 28, 2008 6:51 pm
by Smog
oddfish wrote:Might include Category Title Colour one day too.
Any progress to report?
Re: Forum Title Colour
Posted: Sun Nov 30, 2008 10:53 pm
by oddfish
Smog wrote:oddfish wrote:Might include Category Title Colour one day too.
Any progress to report?
not in the immediate future.