Jump to content
WebFlake
  • 0

Subforum bug :(


hermit101

Question

Hi All ,Basically a bit of a problem with my subforums on my new skin and im not sure how to resolve it and wondered if some kind soul could help me out please ,ok example picture of a set of my subforums

 

hg604_AS.png

 

When ever i click a subforum the link it goes to is broken in terms of spaces for example

 

Screenshot_1.png

 

but if i copy the link from the browser tab and paste it ,it comes out like below with %20 where the spaces are showing :/

http://www.fragzonegaming.co.uk/index.php?/%20forum/129%20-fz-homefront-cracked%20/

it should be showing for example this with no spaces

http://www.fragzonegaming.co.uk/index.php?/forum/129-fz-homefront-cracked/

Can someone tell me what i need to edit to fix this issue please

 

Kind Regards Hermit101

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

One spot that jumped out at me is this line

 </if> <a href="{parse url=" showforum={$__data[0]} " seotitle="{$__data[2]} " template="showforum " base="public "}" title='{$this->lang->words[' go_to_forum ']}'>{$__data[1]}</a>

change to

 </if> <a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public "}" title='{$this->lang->words[' go_to_forum ']}'>{$__data[1]}</a>
  • Upvote 1
Link to comment
Share on other sites

  • 0
{parse js_module="board"}
{parse variable="sidebar_enabled" default="$show_side_blocks"}
<if test="boardIndexTop:|:true"></if>
<div id='board_index' class='ipsLayout <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'>    
    <div id='categories' class='ipsLayout_content clearfix'>
    <!-- CATS AND FORUMS -->
        <if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">
            <foreach loop="categories:$cat_data as $_data">
                <if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
                    <div id='category_{$_data['cat_data']['id']}' class='category_block block_wrap'>
                        <h3 class='maintitle'>
                            <a class='toggle right' href='#' title="{parse expression="sprintf( $this->lang->words['toggle_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}">{parse expression="sprintf( $this->lang->words['toggle_cat'], $_data['cat_data']['name'] )"}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a>
                        </h3>
                            <div class='ipsBox_container'>
                                <table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_data']['name']}'">
                                    <tr class='header hide'>
                                        <th scope='col' class='col_c_icon'>&nbsp;</th>
                                        <th scope='col' class='col_c_forum'>{$this->lang->words['cat_name']}</th>
                                        <th scope='col' class='col_c_stats stats'>{$this->lang->words['stats']}</th>
                                        <if test="canSeeLastInfoHeader:|:$this->memberData['gbw_view_last_info']"><th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th></if>
                                    </tr>
                                    <!-- / CAT HEADER -->
                                    <foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
                                        <if test="forumRedirect:|:$forum_data['redirect_on']">
                                            <tr class='redirect_forum' id='f_{$forum_data['id']}'>
                                                <td class='col_c_icon'>
                                                    <img src='{$this->settings['img_url']}/f_redirect.png' />
                                                </td>
                                                <td <if test="canSeeLastInfoRedirect:|:$this->memberData['gbw_view_last_info']">colspan='2'</if> class='col_c_forum'>
                                                    <h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</a></h4>
                                                    <p class='desc'>{$forum_data['description']}</p>
                                                </td>
                                                <td class='desc'>
                                                    <ul class='last_post ipsType_small'>
                                                        <li class='desc lighter'><em>{parse format_number="$forum_data['redirect_hits']"} {$this->lang->words['rd_hits']}</em></li>
                                                    </ul>
                                                </td>
                                            </tr>
                                        <else />
                                            <tr class='<if test="hasUnreadClass:|:$forum_data['_has_unread']">unread</if>'>
                                                <td class='col_c_icon'>
                                                    <if test="hasUnread:|:$forum_data['_has_unread']">
                                                        <a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=forum&amp;forumid={$forum_data['id']}&amp;returntoforumid={$this->request['f']}&amp;i=1" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><img src='{$this->settings['img_url']}/f_icon.png' /></a>
                                                    <else />
                                                        <img src='{$this->settings['img_url']}/f_icon_read.png' />
                                                    </if>
                                                </td>
                                                <td class='col_c_forum'>
                                                    
                                                    <h4>
                                                        <if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])">
                                                            <a href='{parse url="showforum={$forum_data['id']}&amp;modfilter=unapproved" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['view_unapproved']}' class='ipsBadge ipsBadge_orange' data-tooltip="{parse expression="sprintf( $this->lang->words['f_queued'], $forum_data['queued_topics'], $forum_data['queued_posts'])"}" style='vertical-align: top'>{$this->lang->words['f_queued_badge']}</a>
                                                        </if>
                                                        <a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</a>
                                                    </h4>

                                                    <p class='desc __forum_desc ipsType_small'>{$forum_data['description']}</p>    
                                                        
                                                    <if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
                                                        <br />
<strong>Sub Forums:</strong>
<ol class='subforums1'>
    <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
</ol>
<ol class='subforums2'>
    <if test="showSubForumsLit:|:$__data[3]">
        </foreach>
</ol>
<ol class='subforums3'>
    <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
</ol>
<ol class='subforums'>
    <if test="showSubForumsLit:|:$__data[3]">
        <li class='newposts'>
            <else />
            <li>
    </if> <a href="{parse url=" showforum={$__data[0]} " seotitle="{$__data[2]} " template="showforum " base="public "}" title='{$this->lang->words[' go_to_forum ']}'>{$__data[1]}</a>
    </li>
    </foreach>
</ol>
                                                    </if>                                        
                                                </td>
<td style="width: 7%;">
    <span class="statsNumber">{$forum_data['topics']}</span>
    <span class="statsText">{$this->lang->words['topics']}</span>
</td>

<td style="width: 7%;">
    <span class="statsNumber">{$forum_data['posts']}</span>
    <span class="statsText">{$this->lang->words['replies']}</span>
</td>
                                                <if test="canSeeLastInfo:|:$this->memberData['gbw_view_last_info']">
                                                <td class='col_c_post'>
                                                    <if test="hideLastInfo:|:$forum_data['hide_last_info']">
                                                        <ul class='last_post ipsType_small'>
                                                            <li class='desc lighter'><em>{$this->lang->words['f_protected']}</em></li>
                                                        </ul>
                                                    <else />
                                                        <if test="hideTopicInTitle:|:$forum_data['_hide_last_date']">
                                                        {parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => '' )"}
                                                        <else />
                                                        {parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => sprintf( $this->lang->words['bindex_userphoto_alt'], $forum_data['last_title'], $forum_data['members_display_name'] ) )"}
                                                        </if>
                                                        <ul class='last_post ipsType_small'>
                                                            <if test="!$forum_data['last_id']">
                                                                <li class='desc lighter'><em>{$this->lang->words['f_none']}</em></li>
                                                            <else />
                                                                <li>
                                                                    {$forum_data['last_topic_title']}
                                                                </li>
                                                                <if test="lastPosterID:|:$forum_data['last_poster_id']">
                                                                    <li>{$this->lang->words['by']} {parse template="userHoverCard" group="global" params="$forum_data"}</li>
                                                                </if>
                                                                <if test="hideDateUrl:|:$forum_data['_hide_last_date']">
                                                                    <li class='desc lighter blend_links'>{parse date="$forum_data['last_post']" format="DATE"}</li>
                                                                <else />
                                                                    <li class='desc lighter blend_links'><a href='{parse url="showtopic={$forum_data['last_id']}&amp;view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="DATE"}</a></li>
                                                                </if>
                                                            </if>
                                                        </ul>
                                                    </if>
                                                </td>
                                                </if>
                                            </tr>
                                        </if>
                                    </foreach>
                                </table>
                            </div>
                        <br />
                    </div>
                </if>
            </foreach>
        </if>
    </div>
    <if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
        <div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
            <foreach loop="side_blocks:$side_blocks as $block">
                {$block}
            </foreach>
        </div>
        <a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="&times;">&nbsp;</a>
    </if>
</div>
<script type='text/javascript'>
//<![CDATA[
    var markerURL  = ipb.vars['base_url'] + "app=forums&module=ajax&section=markasread&i=1"; // Ajax URL so don't use &amp;
    var unreadIcon = "<img src='{$this->settings['img_url']}/f_icon_read.png' />";
    
    <if test="markercatforums:|:is_array( $cat_data ) AND count( $cat_data )">
        <foreach loop="markercategories:$cat_data as $_data">
            <if test="markerhasforums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
                <foreach loop="markerforums:$_data['forum_data'] as $forum_id => $forum_data">
                    <if test="markernotredirect:|:!$forum_data['redirect_on']">
                        <if test="markerhasunread:|:$forum_data['_has_unread']">
    ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
                        </if>
                    </if>
                </foreach>
            </if>
        </foreach>
    </if>
//]]>
</script>

any idea where here it might be ?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...