Support Forum
currently no built in way to limit chars in a signature... though you could use a filter that is on the signatures to limit... the filter is 'sph_PostIndexUserSignature'.. or maybe even better 'sph_display_signature_filter'... the trick being of course to not break the html... you could probably use our excerpt filter routine sp_filter_content_excerpt()....
and you can force use of bbcode editor, but its across the board... not just for signatures...
Visit Cruise Talk Central and Mr Papa's World
Thanks @mr-papa, I'll look into using the filter. A little bit beyond my capability but will save this post for when I feel adventurous.
@yellow-swordfish do you think it's possible to pull it out from the Advanced Search box and into the header, like next to the user avatar? I'll look through the php files later and see if I can do this. If you can point me in the right direction I would appreciate it.
I like SimplePress so far.
Great support!
Keep up the good work guys.
Not exactly sure what you mean by advanced search box... I will assume you mean the search input box and perhaps the additional search parameter revealed if you click on the advanced search link...
If you take a at the spHead.php template file (for example in Default theme), you can see where the search stuff is displayed..
sp_SearchForm($searchForm);
you can move it pretty much where you like... however, if you move it, you may have to tweak the css of the search stuff for the new location...
Visit Cruise Talk Central and Mr Papa's World
Actually - I have been having a little play with this over the last hour and it's not quite as easy as it might look. If you wanted to just bring the topics posted and started buttons out you can replicate that display code simply enough but you would have to build the full form around it which starts to get complex and highly customised.
There might be a better way of manipulating the CSS for hiding and showing the components but even then you are talking some custom JavaScript. Not pretty...
YELLOW
SWORDFISH
|
there is a page you can load - that is what the buttons link you too... its actually a form to submit, vice a direct url, but the effect is the same... and as Andy said, you could just pull the code out of the advanced search form...
that would be this code:
<form id="searchposts" action="https://simple-press.com/wp-admin/admin-ajax.php?action=search&_wpnonce=9b986fa0f3" method="post" name="searchposts"> <input id="searchoption" class="sfhiddeninput" name="searchoption" value="2" type="hidden"> <input id="userid" class="sfhiddeninput" name="userid" value="18786" type="hidden"> <input class="spSubmit" name="membersearch" value="Topics Posted In" type="submit"> <input class="spSubmit" name="memberstarted" value="Topics Started" type="submit"> </form>
the userid value would need to be the user you wanted topics started or posted in.. this is an example code to output the above
$out = ''; $out.= "<div>"; $out.= '<form action="'.wp_nonce_url(SPAJAXURL.'search', 'search').'" method="post" id="searchposts" name="searchposts">'; $out.= '<input type="hidden" class="sfhiddeninput" name="searchoption" id="searchoption" value="2" />'; $out.= '<input type="hidden" class="sfhiddeninput" name="userid" id="userid" value="'.$spThisUser->ID.'" />'; $out.= '<input type="submit" class="spSubmit" name="membersearch" value="Topics Posted In" />'; $out.= '<input type="submit" class="spSubmit" name="memberstarted" value="Topics Started" />'; $out.= '</form>'; $out.= "</div>"; echo $out;
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)