Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Small problem with Template Tags
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Apr 8, 2016 - 7:39 am

Hi boys!

in "Newest topics", I am trying to switch off the "balloon" including post content extract on link to be shown on mouse over.

I thought it was postTip to be set to 0 in sp-NewestTopics-tag.php, but it doesn't work. The balloons are still there...

How can I remove them?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 8, 2016 - 10:40 am

Hey Stefano,

I would agree that I'd expect changing postTip to 'false' should probably remove the post content showing in the tooltip. Are you just checking it on existing newest topics in the list or does it still not work for a new item appearing in the list after making the change?

Also, how are you using it? Are you just adding the tag to a widget and making the argument change to the sp-NewestTopics-tag.php file?

Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Apr 9, 2016 - 4:46 am

Hi Ike!

Bloody hell, it was easier than that!

I opened the widget in the admin page and there is a tick to switch off those tooltips!

Problem solved!

Thank you so much and sorry for posting a stupid simple thing laugh

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 9, 2016 - 5:02 am

You know even I had forgotten that was there! And I coded it 🙂

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Apr 22, 2016 - 5:49 pm

Hey guys, I just noted that the same thing happens in the list of threads.

Immagine.jpgImage Enlarger

How can I switch it off?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 22, 2016 - 6:38 pm

You mean you want to disable tooltips displaying post content within the forum itself? I guess for people viewing the front of your forum who don't have access? If so you can disable this by adding the 'tip=0' argument to the function sp_ForumIndexLastPost in spGroupViewDesktop.php so it would appear:

sp_ForumIndexLastPost('tagClass=spInRowPostLink spLeft&tip=0&nicedate=0&date=1&time=0&stackdate=0&itemBreak= - ', __sp('Last Post'), __sp('No Topics'));

You can also do the same for sp_TopicIndexLastPost in spForumViewDesktop.php if you want to get rid of them from forum view.

Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2016 - 4:16 am

Fantastic, Ike!

It works perfectly.

Thank you so much! laugh

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2016 - 4:49 am

Happy to help as always!

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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625