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
Message above all forums
Avatar
Bill Murray
Member
Free Members
Offline
Sep 5, 2011 - 10:16 pm

Is there a setting to display the message above all forums, as in the message here "Our support forum is currently ...." ?

I know there is a message to display above a forum group, but the message here seems to display above all forum groups, whereas the group message displays before the group name.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Sep 5, 2011 - 11:32 pm

many ways this can be done...

In this case, we have hooked into the sp hook 'sph_AfterDisplayStart' in order to display a message... so in the functions.php file of our wp theme, we tied into that hook and output the message.

But that was because as we launched and tried to output that message, we found a bug in the sp code.  We wanted to output that code by simply writing the text on the wp page the forum appears on.  That is really the easiest way to do it.  But we had a bug that was preventing the text on the wp page from showing up, so we went the hook route.  The bug has since been fixed and the code committed to 5.0...

Another way you could do it would be to simply put in in your them spHead.php file...

And there are multiple other sp hooks that could be used besides the one we did use to do very similar... notice the hook we used is after display start... that means after the main forum container has been output...  you could do 'sph_BeforeDisplayStart' to output before the sp main container...  Or for the end of display, there is 'sph_BeforeDisplayEnd' and 'sph_AfterDisplayEnd'.

These hooks (meaning all the new ones in 5.0) are incredibly powerful and allow you to customize wildly (just ask Lee)...  Of course, we need to get started on our documentation of all these hooks so you dont have to search for them...  With the alpha winding down, that process will begin.  And yes, we will be looking for volunteers to help (did you hear that Lee?). wink

Avatar
Bill Murray
Member
Free Members
Offline
Sep 6, 2011 - 12:07 am

Thanks for the quick reply and pointers on hooks.  I'm familiar with the concept from building/tweaking Genesis themes, where they are used a lot. 

I'd consider adding this as an SPF setting.  After all, you have a group special message.  I think it's a common need, and something people aren't going to want to edit PHP to do. It would be neat to have the message include the option of a start and end date, which would support maintenance announcements, vacations, special offers, etc.

I must have the fix for text on a WP page displaying, because that works for me, but that's harder to style since that text is outside of the spMainContainer div.

On an unrelated note, I had to type this 2x, because of strangeness using the editor.  I added a sentence to the end of a paragraph before the end of my forum post and then scrolled down, which caused my cursor to disappear.  Trying to figure out where I was, I hit the backspace, and lost my post.  I sort of recall this happening in earlier versions of SPF.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Sep 6, 2011 - 12:09 am

the editor jumping around appeared to be fixed with the latest version of tinymce, but perhaps not... Its been a bothersome one and I will reopen the ticket...

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: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10120
Posts: 79607