Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Product Review
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #41
RE: Product Review
(11-24-2011 05:17 AM)RateU Wrote:  Basically, the links for each menu is something like this:

Code:
<a href="{$forumurl_q}filtertf_key=Value">Text to be displayed (usually, it is the same as Value)</a>


So, for your example above, your filter links are:

Code:
<a href="{$forumurl_q}filtertf_pfcat=Parts">Parts</a>

Code:
<a href="{$forumurl_q}filtertf_pfcat=Accessories">Accessories</a>

Code:
<a href="{$forumurl_q}filtertf_pfcat=Restoration Related">Restoration Related</a>

You can put those links at your chosen location on the pf_forumdisplay_threadlist template. You can wrap it inside a table or div.

If you want an active class for that menu, you can use $filters_set array for that.

Awesome!  Thank you very much!

[Image: gallery_2_628_39582.jpg]
11-24-2011 05:25 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #42
RE: Product Review
Does anyone know how I can make the 3 links a:hover red with mouseover?  I've tried a few ways but I can't get it to work!  I just want the three category links to hoover red.


Attached File(s) Thumbnail(s)
   

[Image: gallery_2_628_39582.jpg]
(This post was last modified: 11-24-2011 06:03 AM by RocketFoot.)
11-24-2011 06:02 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #43
RE: Product Review
(11-24-2011 06:02 AM)RocketFoot Wrote:  Does anyone know how I can make the 3 links a:hover red with mouseover?  I've tried a few ways but I can't get it to work!  I just want the three category links to hoover red.
Sorry!  I got the hover colors sorted out but I do still have one minor issue.  I set a couple thread prefixes for this product review forum but they don't show.  What can I do to get the prefixes to show?

[Image: gallery_2_628_39582.jpg]
11-24-2011 07:04 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #44
RE: Product Review
Add {$thread['threadprefix']} to your pf_forumdisplay_thread template.

This is a very simple example for using the $filters_set array (based on your example above):

HTML Code
1
2
3
4
5
6
7
<div style="font-weight: bold;">
	Categories:
	<span class="pfcat{$filters_set['pfcat']['nullactive']}"><a href="{$forumurl_q}">All</a></span> |
	<span class="pfcat{$filters_set['pfcat']['active']['Parts']}"><a href="{$forumurl_q}filtertf_pfcat=Parts">Parts</a></span> |
	<span class="pfcat{$filters_set['pfcat']['active']['Accessories']}"><a href="{$forumurl_q}filtertf_pfcat=Accessories">Accessories</a></span> |
	<span class="pfcat{$filters_set['pfcat']['active']['Restoration Related']}"><a href="{$forumurl_q}filtertf_pfcat=Restoration Related">Restoration Related</a></span>
</div>


And the CSS class (assuming you put the links inside your .tcat class):

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.tcat .pfcatfiltertf_active a:link, .tcat .pfcatfiltertf_active a:visited {
	color: green;
	text-decoration: none;
}

.tcat .pfcat a:link, .tcat .pfcat a:visited {
	color: #fff;
	text-decoration: none;
}

.tcat .pfcat a:hover, .tcat .pfcatfiltertf_active a:hover {
	color: red;
	text-decoration: none;
}

.tcat .pfcat a:active, .tcat .pfcatfiltertf_active a:active {
	color: yellow;
	text-decoration: none;
}


It will uses an active class for an active category.
Maybe you need to clear your cache.


(This post was last modified: 11-24-2011 07:25 AM by RateU.)
11-24-2011 07:23 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #45
RE: Product Review
OK, thanks again!  I think I have it all squared up and looking good!

On to the next project!  LOL  Biggrin

[Image: gallery_2_628_39582.jpg]
11-24-2011 08:36 AM
Find all posts by this user Quote this message in a reply
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #46
RE: Product Review
is anyone willing to extend this very slightly some for a few bucks?

my php skills are nill and I need a few things added to this mod to make it usable on my shaving forum.
12-05-2011 06:53 AM
Find all posts by this user Quote this message in a reply
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #47
RE: Product Review
(11-22-2011 06:33 AM)RateU Wrote:  
(11-21-2011 04:36 PM)Shemo Wrote:  what does the new css class do?

It acts like an active/selected class, depends on which filter being active. So, when our users select a category, they know which category being active. You can look at the screenshots of the Trading Forum example application, or this Links Directory: http://xtest.byethost7.com/forumdisplay.php?fid=9 (when you select a category, the category row will be "active").

just noticed that on my test forum, the selected categories aren't showing up as being active, when clicked on.  what did I do wrong, can't see the issue.  Aww

http://andrewshemo.com/testforum/forumdisplay.php?fid=6
12-19-2011 05:01 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #48
RE: Product Review
Check your .filtertf_active class in your global.css.

12-20-2011 04:59 AM
Find all posts by this user Quote this message in a reply
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #49
RE: Product Review
(12-20-2011 04:59 AM)RateU Wrote:  Check your .filtertf_active class in your global.css.

whoops, had it there but didn't have anything specified within the class.
12-21-2011 04:14 PM
Find all posts by this user Quote this message in a reply
Glas Offline
Member
***
Posts: 106
Joined: Jul 2010
Post: #50
RE: Product Review
[*]pf_forumdisplay_thread

HTML 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
	<tr>
		<td>
			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
				<tr>
					<td class="thead" align="center" colspan="{$colspan}">
						<div><strong><a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a></strong></div>
					</td>
				</tr>
				<tr>
					<td class="{$bgcolor}" width="1">
						<div align="center">
							<img src="{$GLOBALS['threadfields']['pfpic']['url']}/thumb320x240" alt="{$thread['subject']} Screenshot" title="{$thread['subject']} Screenshot" width="{$GLOBALS['threadfields']['pfpic']['thumbs']['320x240']['w']}" height="{$GLOBALS['threadfields']['pfpic']['thumbs']['320x240']['h']}" />
						</div>
					</td>
					<td class="{$bgcolor}" width="100%">
						<table border="0" width="100%">
							<tr>
								<td valign="top" width="120">{$GLOBALS['tplvars']['pfname']}</td>
								<td width="1" valign="top">:</td>
								<td valign="top">{$GLOBALS['GLOBALS['tplvars']']['pfname']}</td>
							</tr>
							<tr>
								<td valign="top">{$GLOBALS['tplvars']['pfdev']}</td>
								<td width="1" valign="top">:</td>
								<td valign="top"><a href="{$GLOBALS['threadfields']['pfdevurl']}">{$GLOBALS['threadfields']['pfdev']}</a></td>
							</tr>
							<tr>
								<td valign="top">{$GLOBALS['tplvars']['pfversion']}</td>
								<td width="1" valign="top">:</td>
								<td valign="top">{$GLOBALS['threadfields']['pfversion']}</td>
							</tr>
							<tr>
								<td valign="top">{$GLOBALS['tplvars']['pfrealese']}</td>
								<td width="1" valign="top">:</td>
								<td valign="top">{$GLOBALS['threadfields']['pfrealese']}</td>
							</tr>
							<tr>
								<td valign="top">{$GLOBALS['tplvars']['pfcat']}</td>
								<td width="1" valign="top">:</td>
								<td valign="top">{$GLOBALS['threadfields']['pfcat']}</td>
							</tr>
							{$rating}
							<tr>
								<td valign="top">{$lang->author}</td>
								<td width="1" valign="top">:</td>
								<td valign="top">{$thread['profilelink']}</td>
							</tr>
							<tr>
								<td valign="top">{$lang->views}</td>
								<td width="1" valign="top">:</td>
								<td valign="top">{$thread['views']}</td>
							</tr>
							<tr>
								<td valign="top">{$lang->replies}</td>
								<td width="1" valign="top">:</td>
								<td valign="top"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
							</tr>
						</table>
					</td>
					{$modbit}
				</tr>
			</table>
		</td>
		<td>&nbsp;</td>
		<td valign="top" width="30%">
			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
				<tr>
					<td class="thead" align="center" colspan="{$colspan}">
						<div><strong>{$GLOBALS['tplvars']['pfdesc']}</strong></div>
					</td>
				</tr>
				<tr>
					<td valign="top" class="{$bgcolor}" width="300">
						<div style="text-align: justify; padding: 3px;">
							<span class="float_left" style="margin: 5px 5px 0px 0px;">
								<img src="{$GLOBALS['threadfields']['pfpic']['url']}/thumb88x66" alt="{$thread['subject']} Screenshot" title="{$thread['subject']} Screenshot" width="{$GLOBALS['threadfields']['pfpic']['thumbs']['88x66']['w']}" height="{$GLOBALS['threadfields']['pfpic']['thumbs']['88x66']['h']}" />
							</span>
							{$GLOBALS['threadfields']['pfdesc']}
						</div>
						<br class="clear" />
						<span class="float_right smalltext">
							<em><a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>:
							{$lastposterlink}, {$lastpostdate} {$lastposttime}</em>
						</span>
						<br class="clear" />
						<span class="float_right smalltext">
							<img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" />
							{$icon}{$prefix}{$gotounread}
						</span>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<br />



When adding pf_forumdisplay_thread i get this error

Quote:A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.

---------------
if i put this in pfcat
Formatting Map List:
EDIT: We will use {$forumurl?} variable for this. It will detect the forum id automatically.

HTML Code
Software{|}<a href="{$forumurl?}filtertf_pfcat=Software"><span style="color: green;">Software</span></a>
Hardware{|}<a href="{$forumurl?}filtertf_pfcat=Hardware"><span style="color: blue;">Hardware</span></a>
Other{|}<a href="{$forumurl?}filtertf_pfcat=Other"><span style="color: red;">Other</span></a>


it looks weird at showthread, how can i config this?

-----------------
why when i make a new thread i can see smilies and THREAD TITLE? also product title Ouch
---

Shouldn't be my signature removed from show thread?

(This post was last modified: 03-23-2012 11:34 AM by Glas.)
03-23-2012 10:47 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: