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
Changing Default Search Options
Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 6:09 pm

That's brilliant, thanks!

One more, if I may, I want to remove the permalinks icon from the posts so that members don't see it.  Not sure if that is in this same file or not.  

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 6:19 pm

No problem.

That would be spTopicViewDesktop.php, so you'd need to bring that template in to your child theme, placed in the same 'desktop' folder as your spHeadDesktop.php, and the function you would want to comment out with the hash is:

sp_PostIndexPermalink('tagClass=spButton spLeft', '', __sp('The post permalink'));
Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 7:31 pm

Is there anyway to change that for everyone except the administors?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 7:32 pm

change what???  the permalink??

if so, change it to:

if ($spThisUser->admin) sp_PostIndexPermalink('tagClass=spButton spLeft', '', __sp('The post permalink'));
Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 7:40 pm

Great, thank you!

One more if I am may, when I am viewing the forum with a list of threads, I would like to remove the name of who started the thread. So the section that reads Started By: LynnThomas.  The date and time can stay, I would just like to remove the name. 

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 9:44 pm

from spForumViewDesktop.php, just remove this line:

                                    sp_TopicIndexFirstPost('iconClass=spIcon spLeft&icon=sp_ArrowRightSmall.png&nicedate=0&date=1&time=1&stackdate=0&stackuser=0&stackdate=0&itemBreak= - ', __sp('Started By'));

keep in mind, we keep telling you about desktop, but you may need to make similar changes in the mobile version too if you want...

Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Apr 30, 2015 - 4:38 pm

Thanks.  Is there anyway to just remove the name from this line and keep the date? 

I notice when I put a "#" in front of the line the date goes away as well. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 30, 2015 - 4:58 pm

Yes. If you see the article here: https://simple-press.com/docum.....firstpost/

You can decide which components to display as shown

andy-signature.png
YELLOW
SWORDFISH
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: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625