Alphabetical Filtering
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #5
RE: Alphabetical Filtering
Hello again, back with a filtering question. I said that the xt_filters and the tf_filters did not chain together nicely, and I now have an example to show what I mean.

In this forum >>  http://www.leefish.nl/mybb/forumdisplay....http://www.leefish.nl/mybb/forumdisplay.php?filtertf_prefix=Sims2&filtertf_pfcat=Buy&filterxt_uid=501&fid=22&sortby=starter&order=desc

I have filtered by game:sims2, category:buy and uid501:XanderGC. As you can see, the filter has worked perfectly, but in the uploader box the name of the selected uploader (xt_uid) is not showing, though it does show the selected value in the game and category. It would be very cool if I could get the username that has been selected to show as it does for the other two options but I cannot figure it out. Help appreciated.

Here is my html (used in the forumdisplay_threadlist)

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
33
34
35
36
37
38
39
40
41
<div>
	
<form action="forumdisplay.php" method="get">
				<label>Game</label><select name="filtertf_prefix">
<option value="">All</option>
<option value="Sims2"{$GLOBALS['filters_set']['prefix']['selected']['Sims2']}>Sims2</option>
<option value="Sims3"{$GLOBALS['filters_set']['prefix']['selected']['Sims3']}>Sims3</option>
 </select>

				<label>Category</label><select name="filtertf_pfcat">
					<option value="">All</option>
<option value="Buy"{$GLOBALS['filters_set']['pfcat']['selected']['Buy']}>Buy</option>
<option value="Build"{$GLOBALS['filters_set']['pfcat']['selected']['Build']}>Build</option>
<option value="Bodyshop"{$GLOBALS['filters_set']['pfcat']['selected']['Bodyshop']}>Bodyshop</option>
<option value="CAS"{$GLOBALS['filters_set']['pfcat']['selected']['CAS']}>CAS</option>
<option value="Community Lot"{$GLOBALS['filters_set']['pfcat']['selected']['Community Lot']}>Community Lot</option>
<option value="Food"{$GLOBALS['filters_set']['pfcat']['selected']['Food']}>Food</option>
<option value="Mods and Hacks"{$GLOBALS['filters_set']['pfcat']['selected']['Mods and Hacks']}>Mods and Hacks</option>
					
				</select>

				<label>Uploader</label><select name="filterxt_uid">
					<option value="">All</option>
<option value="334"{$GLOBALS['filters_set']['xt_uid']['selected']['Michelle']}>Michelle</option>
<option value="501"{$GLOBALS['filters_set']['xt_uid']['selected']['501']}>XanderGC</option>
				 </select>

</if>

<label style="margin: 5px;width: 80px;"><input type="submit" class="button" value="Apply Filters" /></label>
				<input type="hidden" name="fid" value="{$fid}" />
				<input type="hidden" name="sortby" value="{$sortby}" />
				<input type="hidden" name="order" value="{$sortordernow}" />
				<input type="hidden" name="datecut" value="{$datecut}" />

<span style="{$filters_set['__all']['visiblecss']}"><a href="forumdisplay.php?fid={$fid}"><span class="sigbutton">Clear filter</a></span>
		</form>



</div>



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 09-11-2012 01:04 AM by leefish.)
09-10-2012 03:41 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Alphabetical Filtering - leefish - 07-11-2012, 10:24 PM
RE: Alphabetical Filtering - ZiNgA BuRgA - 07-11-2012, 10:43 PM
RE: Alphabetical Filtering - leefish - 07-11-2012, 11:17 PM
RE: Alphabetical Filtering - ZiNgA BuRgA - 07-12-2012, 08:40 PM
RE: Alphabetical Filtering - ZiNgA BuRgA - 09-10-2012, 11:05 AM
RE: Alphabetical Filtering - leefish - 09-10-2012, 11:16 AM

 Standard Tools
Forum Jump: