How can I make this modification to C.F.I?
 
 
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> DHTML Collapsible Forum Index
View previous topic :: View next topic  
Author Message
Robert Tetenman
Apprentice
Apprentice


Joined: 05 Dec 2004
Posts: 12

PostPosted: Thu Dec 30, 2004 12:35 am    Post subject: How can I make this modification to C.F.I? Reply with quote

Great MOD,

I have posted here before asking about modifications. I do have one question that perhaps is not as complicated as some of the others I had and has a quick code fix.

I have successfully moved the + and - icons to a different location and a different table cell. By default your MOD has the entire row as a link to collapse or expand. I have been able to change it to operate on a table cell and not the whole row (although I am not sure I got all the code right) but what I really want to do is make the actual icon image (+ and -) as the link to collapse and expand, not the table cell or entire table row.
How can I accomplish this?

Thanks
Robert
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Thu Dec 30, 2004 1:31 am    Post subject: Re: How can I make this modification to C.F.I? Reply with quote

hmm.... please, try to remove the call to CFIG_slideCat() from the <tr> element and from the link to the forum category. And use it in the onclick event of the sign image only.

If you had this (in your index_body.tpl):

Code:
  <tr onclick="CFIG_slideCat('{catrow.CAT_ID}', false);" style="cursor:pointer;cursor:hand;"  title="{catrow.CAT_DESC}">
   <td class="cat" colspan="2" height="28">&nbsp;&nbsp;<img name="icon_sign_{catrow.CAT_ID}" src="{SPACER}" border="0" />&nbsp;&nbsp;<span class="cat"><a href="{catrow.U_VIEWCAT}" onclick="return CFIG_slideCat('{catrow.CAT_ID}', true);" onfocus="this.blur();" class="cat">{catrow.CAT_DESC}</a></span></td>
   <td class="rowpic" colspan="3" align="right" background="{U_PHPBB_ROOT_PATH}templates/subVereor/images/cellpic4.gif" />&nbsp;</td>
  </tr>


It should look something like:

Code:
  <tr>
   <td class="cat" colspan="2" height="28">&nbsp;&nbsp;<img name="icon_sign_{catrow.CAT_ID}" src="{SPACER}" border="0" onclick="CFIG_slideCat('{catrow.CAT_ID}', false);" style="cursor:pointer;cursor:hand;"  title="{catrow.CAT_DESC}" />&nbsp;&nbsp;<span class="cat"><a href="{catrow.U_VIEWCAT}" class="cat">{catrow.CAT_DESC}</a></span></td>
   <td class="rowpic" colspan="3" align="right" background="{U_PHPBB_ROOT_PATH}templates/subVereor/images/cellpic4.gif" />&nbsp;</td>
  </tr>

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Robert Tetenman
Apprentice
Apprentice


Joined: 05 Dec 2004
Posts: 12

PostPosted: Thu Dec 30, 2004 2:46 am    Post subject: Re: How can I make this modification to C.F.I? Reply with quote

Thank you vey much. Worked like a charm.

Robert
 
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> DHTML Collapsible Forum Index All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum