Results 1 to 2 of 2

Thread: Changing the colspan value doesn't work

  1. #1

    Default Changing the colspan value doesn't work

    Hi,
    So in the Latest Forum Topics module which uses recentthreads.php with three templates:
    • adv_portal_recthreads_lean,
    • adv_portal_recthreads_exp and
    • adv_portal_recthreads_exp_head

    and with the module wrapper working,
    changing the colspan in the module does not change it in the pages that module is used in.
    It *was* 5 and is set to 2 (as there are two columns), but is still showing colspan="5" in the page. Caching is off.
    It looks ok in FF but in IE, of course, there is a blank space were IE renders three extra columns.
    The adv_portal_module_wrapper template has
    [HTML]<td class="tcat" colspan="$mods[colspan]">[/HTML] and if I manually change it to 2, it works ok.
    So the value of $mods[colspan] is incorrect somehow.
    This is the page:
    http://www.avforums.com/home/movies_tv_music.html
    Any help urgently appreciated. Thanks.
    Stuart Wright, founder of AVForums.com.
    Very grateful user of vBAdvanced.

  2. #2

    Default

    Sounds of tumbleweed round here.

    Found the answer:
    Code:
    		$mods['colspan'] = 4;
    in recentthreads.php
    Changed it to
    Code:
    		$mods['colspan'] = 1;
    and added
    Code:
    		if ($mod_options['portal_threads_replies'])
    		{
    			$mods['colspan']++;
    		}
    
    		if ($mod_options['portal_threads_views'])
    		{
    			$mods['colspan']++;
    		}
    Stuart Wright, founder of AVForums.com.
    Very grateful user of vBAdvanced.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. page layout colspan?
    By jimsflies in forum "How Do I..." Questions
    Replies: 5
    Last Post: 02-12-2010, 01:48 PM
  2. CMPS colspan does nothing
    By JamesCybert in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 02-14-2008, 02:07 PM
  3. custom colspan working?
    By indie in forum Troubleshooting & Problems
    Replies: 3
    Last Post: 08-09-2007, 03:04 PM
  4. Colspan ?
    By Aery in forum "How Do I..." Questions
    Replies: 2
    Last Post: 05-23-2007, 12:30 PM
  5. Question on Colspan
    By dboogie2288 in forum Troubleshooting / "How do I..." Questions
    Replies: 2
    Last Post: 03-03-2005, 01:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •