Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Shoutbox: Is it possible to...
pinstripesc (New Admin) 2/3/2011 9:17 PM EST : Shoutbox: Is it possible to...
pinstripesc
Posts: 4895
Zomgawsh Poster

We've got the Shoutbox on our forums page, but it would be preferable if it didn't show up under every topic, just the general forums. Does that make sense?
TopBottom

Aaron Lewis (Blue Collar) 2/4/2011 1:03 PM EST : RE: Shoutbox: Is it possible to...
GuildPortal Dev
Aaron Lewis
Posts: 1979
Zomgawsh Poster

Hello!

Not possible with the point-and-click tools.. However, each widget outputs attributes that make them uniquely identifiable. You could use these attributes, along with some custom JavaScript, to show/hide the shout box depending upon whether the user is viewing the general forums listing or not (for example, if there is a ForumID in the URL, they're not in the forum listing, but in a specific forum.
Aaron Lewis, GuildPortal.com
TopBottom

pinstripesc (New Admin) 2/5/2011 11:09 PM EST : RE: Shoutbox: Is it possible to...
pinstripesc
Posts: 4895
Zomgawsh Poster

Ah, sounds enjoyably complex.
TopBottom

Mottie (MVP) 2/6/2011 1:03 AM EST : RE: Shoutbox: Is it possible to...
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Hi Pinstripesc!

It's not that complex

Just add this bit of code to your custom scripting (Control Panel > Custom HTML & Script > Custom Javascript/JQuery > Document Ready Event tab). Make sure you enable the code before saving.
// Hide the shout box when viewing forum topics/posts
if (window.location.href.match('ForumID')) {
 $('.gpWidget-shout').hide();
}
TopBottom

pinstripesc (New Admin) 2/6/2011 7:55 PM EST : RE: Shoutbox: Is it possible to...
pinstripesc
Posts: 4895
Zomgawsh Poster

Bam..just like that. Thanks kindly!
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%