Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Is there a link/button to view topics I have started?
Avatar
R083RT
Member
sp_UserOfflineSmall Offline
Apr 7, 2017 - 9:44 am

Would like a quick way to view my own posts.

I like SimplePress so far.

Great support!  

Keep up the good work guys.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 7, 2017 - 12:54 pm

'View your own posts' is not quite the same as 'view topics you have started'. The latter is available from a button on the Advanced Search dropdown and is also available from your SP popup profile.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2017 - 3:16 pm

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...

Avatar
R083RT
Member
sp_UserOfflineSmall Offline
Apr 8, 2017 - 3:58 am

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 8, 2017 - 11:52 am

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...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 8, 2017 - 12:01 pm

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
R083RT
Member
sp_UserOfflineSmall Offline
Apr 8, 2017 - 10:17 pm

I will look into this.  Is there not a url I can't point to that will load a page with posts that the user has started?  That would be simplest way to go around any complexity as you say there is.

I like SimplePress so far.

Great support!  

Keep up the good work guys.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 9, 2017 - 12:23 am

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;
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616