Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Heavy bug on Lyrics site
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #1
Rolleyes Heavy bug on Lyrics site
Live: http://www.beatdj.net/foros/Forum-Letras...http://www.beatdj.net/foros/Forum-Letras-de-cancio

1. Click on Dance Dance Revolution category (http://www.beatdj.net/foros/Forum-Letras...http://www.beatdj.net/foros/Forum-Letras-de-canciones-Lyrics?filtertf_xtlyrics_cat=Dance%20Dance%20R
2. Click on PAGE 2 OR NEXT (http://www.beatdj.net/foros/Forum-Letras...http://www.beatdj.net/foros/Forum-Letras-de-canciones-Lyrics?page=2?filtertf_xtlyrics_cat=Dance%20Dance%20R
3. You appear at Page 2 OF ALL CATEGORIES but URL is still
http://www.beatdj.net/foros/Forum-Letras...http://www.beatdj.net/foros/Forum-Letras-de-canciones-Lyrics?page=2?filtertf_xtlyrics_cat=Dance%20Dance%20

What do? =(

!
03-22-2012 10:09 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Heavy bug on Lyrics site
(03-22-2012 10:09 AM)glas Wrote:  What do? =(
Well, if it really is heavy, might need to do some weight lifting...

Looks like a conflict with Google SEO URLs.
I'll see if I can do something about it.

My Blog
03-22-2012 11:04 AM
Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #3
RE: Heavy bug on Lyrics site
it really is beacuse i can only see the first 8 songs  from each cat, other ones are unaccesable beacuse of the bug (exept if they are saw in "all categories" mode)
03-22-2012 11:39 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: Heavy bug on Lyrics site
You can try this edit to inc/xthreads/xt_forumdhooks.php

Replace

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
		$filterargs_html = htmlspecialchars_uni($xthreads_forum_filter_args);
		$GLOBALS['sorturl'] .= $filterargs_html;
		
		// inject URL into multipage - template cache hacks
		global $templates;
		$tpls = array('multipage_end', 'multipage_nextpage', 'multipage_page', 'multipage_prevpage', 'multipage_start');
		foreach($tpls as &$t)
			if(!isset($templates->cache[$t])) {
				$templates->cache(implode(',', $tpls));
				break;
			}
		
		// may need to replace first & with a ?
		if(($mybb->settings['seourls'] == 'yes' || ($mybb->settings['seourls'] == 'auto' && $_SERVER['SEO_SUPPORT'] == 1)) && $GLOBALS['sortby'] == 'lastpost' && $GLOBALS['sortordernow'] == 'desc' && ($GLOBALS['datecut'] <= 0 || $GLOBALS['datecut'] == 9999))
			$filterargs_html = '?'.substr($filterargs_html, 5);
		
		foreach($tpls as &$t) {
			$templates->cache[$t] = str_replace('{$page_url}', '{$page_url}'.$filterargs_html, $templates->cache[$t]);
		}

with

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
		// if Google SEO is active, force our URL into that
		if(function_exists('google_seo_url_cache')) {
			// force cache load
			$gsurl = google_seo_url_cache(GOOGLE_SEO_FORUM, $foruminfo['fid']);
			if(strpos($gsurl, '?') !== false)
				$gsurl .= $xthreads_forum_filter_args;
			else
				$gsurl .= '?'.substr($xthreads_forum_filter_args, 1);
			// pollute Google SEO's cache with our param
			$GLOBALS['google_seo_url_cache'][GOOGLE_SEO_FORUM][$foruminfo['fid']] = $gsurl;
		} else {
			// use standard multipage template hack
			$filterargs_html = htmlspecialchars_uni($xthreads_forum_filter_args);
			$GLOBALS['sorturl'] .= $filterargs_html;
			
			// inject URL into multipage - template cache hacks
			global $templates;
			$tpls = array('multipage_end', 'multipage_nextpage', 'multipage_page', 'multipage_prevpage', 'multipage_start');
			foreach($tpls as &$t)
				if(!isset($templates->cache[$t])) {
					$templates->cache(implode(',', $tpls));
					break;
				}
			
			// may need to replace first &amp; with a ?
			if(($mybb->settings['seourls'] == 'yes' || ($mybb->settings['seourls'] == 'auto' && $_SERVER['SEO_SUPPORT'] == 1)) && $GLOBALS['sortby'] == 'lastpost' && $GLOBALS['sortordernow'] == 'desc' && ($GLOBALS['datecut'] <= 0 || $GLOBALS['datecut'] == 9999)) //  && (strpos(FORUM_URL_PAGED, '{page}') === false) - somewhat unsupported, since MyBB hard codes the page 1 elimination behaviour
				$filterargs_html = '?'.substr($filterargs_html, 5);
			
			foreach($tpls as &$t) {
				$templates->cache[$t] = str_replace('{$page_url}', '{$page_url}'.$filterargs_html, $templates->cache[$t]);
			}
		}


My Blog
(This post was last modified: 03-22-2012 02:00 PM by ZiNgA BuRgA.)
03-22-2012 01:59 PM
Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #5
RE: Heavy bug on Lyrics site
Now seems to be working fine

Thanks!! Biggrin
03-23-2012 02:15 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: