MyBB Hacks

Full Version: Product Review
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
(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!
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.
(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?
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
<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:
.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.

OK, thanks again!  I think I have it all squared up and looking good!

On to the next project!  LOL  Biggrin
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.
(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
Check your .filtertf_active class in your global.css.
(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.
[*]pf_forumdisplay_thread

HTML Code
<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?

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Reference URL's