Advertisement:

Author Topic: SMFPacks.com Shoutbox, Chat  (Read 1035261 times)

Offline Brajanz0r

  • Newbie
  • *
  • Posts: 7
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2580 on: October 16, 2015, 12:45:10 AM »
Oh thank you, it worked!! I'm so grateful man! How did you do it, what was the problem?

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2581 on: October 16, 2015, 12:55:33 AM »
That bracket was moved from somewhere else and somehow found it's way into the shoutbox code. Just out of curiousity; how are you editing files? I ask because you had a ton of empty space between lines of code- we pretty much had identical index.templates and yours was about 80 lines more than mine- most of which was just empty lines/space.

Offline Brajanz0r

  • Newbie
  • *
  • Posts: 7
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2582 on: October 16, 2015, 01:07:02 AM »
To be honest, I still didn't edit anything manually. Does transferring forum from one hosting to another can make the difference? Or maybe some plugins, I really don't know.. Thanks anyway for solving this, you're the man! :)

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2583 on: October 16, 2015, 01:26:06 AM »
You're welcome. Glad you got it working. :)

Offline joeyjojoshabadoo

  • Jr. Member
  • **
  • Posts: 143
Re: SMFPacks Shoutbox [SMF 2.0.2 Supported - 1.0.4 Released]
« Reply #2584 on: October 21, 2015, 07:46:43 PM »
How can i change the position of where the Shoutbox appears? I want it to fit in my forum between the Left and Right panels, under the images i have for advertisement.... Can someone help me figure this out?


my forum now:


I want it to look like this:




Hi all, seeking help if anyone is available.

A solution was given to the above by live367 on this thread two years ago as

Create a PHP Portal block and put the following code in it:

Code: [Select]
//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox

Remove the same code from index.template.php[/i]

This isn't working for me, can anyone help?

I removed that piece of code from index.template.php on the core theme,

Where should I put that php into a block, how visible does it need to be etc. ( I put it into a top block, in between the two sidebars) and the SMFpacks chat stayed where it was right across the page at the top ( as per the image from the other user).

Is that block meant to show the chatbox then as in the second image? ( sorry if these are daft questions)

ps- help on smfpacks forum is hard to get so your help would be much appreciated.

Anyway, thanks to anyone who can help.


Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: SMFPacks Shoutbox [SMF 2.0.2 Supported - 1.0.4 Released]
« Reply #2585 on: October 21, 2015, 10:26:49 PM »

I removed that piece of code from index.template.php on the core theme,

Are you using the core theme yourself? If you removed that code from the core theme but are using the default curve or some other custom theme, it won't work- unless you move that code in the index.template.php of the theme you are using.

Also, which portal mod are you using?

Offline joeyjojoshabadoo

  • Jr. Member
  • **
  • Posts: 143
Re: SMFPacks Shoutbox [SMF 2.0.2 Supported - 1.0.4 Released]
« Reply #2586 on: October 23, 2015, 08:49:06 AM »

I removed that piece of code from index.template.php on the core theme,

Are you using the core theme yourself? If you removed that code from the core theme but are using the default curve or some other custom theme, it won't work- unless you move that code in the index.template.php of the theme you are using.

Also, which portal mod are you using?

Hi Mate.

Im using Skyline paid theme, but i didnt see that code in the index template on that theme so i assumed it was jsut the core theme i had to do?

Also, im using simple portal.

Site is dropkickrugby.com/forum. Some stuff is blocked unless youre a member ( the live chat for example) but once youre a certain member group ( 10 posts or more) the live chat appears as per the previous poster's picture above).

Does that helo?

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2587 on: October 23, 2015, 09:49:28 PM »
You have to remove that shoutbox code from the index.template.php of the SMF Default Theme - Curve  and not core.

Then you can add that shoutbox code to a php block. Once you do that, you also have to go into the shoutbox settings in your admin panel, and where it says "Pages where Shoutbox will be printed", make sure you type in sportal_main.

Offline joeyjojoshabadoo

  • Jr. Member
  • **
  • Posts: 143
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2588 on: November 01, 2015, 07:58:08 PM »
You have to remove that shoutbox code from the index.template.php of the SMF Default Theme - Curve  and not core.

Then you can add that shoutbox code to a php block. Once you do that, you also have to go into the shoutbox settings in your admin panel, and where it says "Pages where Shoutbox will be printed", make sure you type in sportal_main.

Hi br360.

Thanks for coming back on this.

I tried what you said and the code isn't present in Curve's index.template.php.

One other thing I should mention, the only people who can see the chatbox are members with 10 posts or more ( in a certain membergroup - its invisible to non members entirely..

Does that help?

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2589 on: November 02, 2015, 02:31:24 AM »
Are you seeing the shoutbox on your index(main page)? If you are then the code below has to be in either your custom theme's index.template.php or your curve's

Code: [Select]
//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox

That is the block of code that is in the index.template.php to make it appear. In order for the code to work in a portal page, that code must be removed from your index.templae.php and placed in a new php block.'

Quote
One other thing I should mention, the only people who can see the chatbox are members with 10 posts or more ( in a certain membergroup - its invisible to non members entirely..

That would most likely be a separate issue and have something to do with permissions. Make sure all of your membergroups have the permission to view and post in the shoutbox.

Offline joeyjojoshabadoo

  • Jr. Member
  • **
  • Posts: 143
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2590 on: November 02, 2015, 09:01:03 AM »
Hi Br, thanks agian for yoru help with this it's really appreciated.


So I have the shoutbox at the top of the index main page only. ( boardindex)

I have gone into Core and taken it out again, and have taken it out of the old theme, br finale, and checked for the current global theme ( skyline) and it wasnt in there. I then set visibiity to only sportal_main, had the code in the Php box named test, but all thats coming up is the header for the block called test, nothing is in it ( as in totally blank).

So currently its back to the way it was with the code not anywhere, just visibility set to boardindex in the shoutbox settings, and working fine, but its still pagewide.

Tearing my hair out!  ;D

On the permissions - Only members can see it there's private stuff we keep away from the public on that for operational reasons ( i know that sounds ridiculous but its genuine).

ANy mroe help welcome!

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2591 on: November 02, 2015, 05:06:31 PM »


I have gone into Core and taken it out again, and have taken it out of the old theme, br finale, and checked for the current global theme ( skyline) and it wasnt in there. I then set visibiity to only sportal_main, had the code in the Php box named test, but all thats coming up is the header for the block called test, nothing is in it ( as in totally blank).

I think this may be the issue that we are getting confused on. The core theme is just an extra theme that comes with a standard install- and any changes you make to it will affect only that theme. The theme you need to check to make sure the shoutbox code was removed from is the curve theme. Default curve is the theme that all others fall back to if they don't have their own theme specific files.

Didn't know that you purposely set your permissions to have a post count criteria to use the shoutbox. It doesn't seem ridiculous at all, and is a good idea actually. It wouldn't cause the issue you are having in regards to shoutbox not appearing in a portal page though. Admins have all permissions, and if you yourself can't see it in a portal block, it's not a permission issue.

Offline joeyjojoshabadoo

  • Jr. Member
  • **
  • Posts: 143
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2592 on: November 04, 2015, 07:36:01 PM »
Hi Br,

 thanks again for thoughts.

it was definitely out of Curve, still is - no reference in there to shoutbox at all except for the following at the end of the line 174 section

// Custom banners and shoutboxes should be placed here, before the linktree.

   // Show the navigation tree.
   theme_linktree();
}


Not sure what's wrong here to be honest.  :(

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2593 on: November 04, 2015, 10:40:25 PM »
If you are ok with setting up a temp admin account for me on your site, I would be more than happy to troubleshoot and see if I can get it to work for you. Feel free to send me a pm if you do want me to take a look.

Offline CHINasty

  • Newbie
  • *
  • Posts: 8
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2594 on: November 15, 2015, 05:50:34 PM »
What is the custom theme you are using? Can you check your custom theme's index.template.php and find-

Code: [Select]
}

function template_body_below()
{

and make sure this is before it-

Code: [Select]
//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox

I am currently running 2.0.11 and had the same problem. I added this code in the same exact spot and the shoutbox appeared on my forum. I am running the Inferno theme. Only problem I have is that the shoutbox appears above the logo, shows up at the very top of the page and stretched across the entire width. Do I need to put this code somewhere else or is there something I can add to move the location? I would like it in the body, preferably above the forum stats and users online.

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2595 on: November 16, 2015, 06:47:21 PM »
I'm not too familiar with that theme, but take a look at this link which will show you how to move it there in the default theme- http://www.simplemachines.org/community/index.php?topic=269091.msg3740850#msg3740850

If that doesn't work for the theme you are using; since it is a paid one from dzinerstudio, they might be able to help you get the shoutbox exactly where you want it.

Offline sprntrcr

  • Semi-Newbie
  • *
  • Posts: 17
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2596 on: November 20, 2015, 02:23:54 PM »
I can't seem to get the shoutbox to display on all pages, it is only showing on the index page.

Pages where Shoutbox will be printed
forum
collapsecategory
boardindex

index.template.php
Code: [Select]
//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox

I'm not using the default theme.

www.worldwidebeekeeping.com [nofollow]

Any advice would be appreciated.


Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2597 on: November 20, 2015, 02:52:14 PM »
Where the Pages where Shoutbox will be printed, try adding these under the ones you already have -

messageindex
unreadtopics
display
memberlist
groups
showhelp
messagemain
post
post2
who

Offline sprntrcr

  • Semi-Newbie
  • *
  • Posts: 17
Re: SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]
« Reply #2598 on: November 20, 2015, 08:57:29 PM »
Where the Pages where Shoutbox will be printed, try adding these under the ones you already have -

messageindex
unreadtopics
display
memberlist
groups
showhelp
messagemain
post
post2
who

That did it,  Thank you :-)

Offline jayantsr

  • Newbie
  • *
  • Posts: 5
Re: SMFPacks Shoutbox [SMF 2.0.2 Supported - 1.0.4 Released]
« Reply #2599 on: December 21, 2015, 01:13:48 AM »
Sorry, my fault - I hadn't gone into the std admin permissions - all works beautifully on Android, FF, Opera, Seamonkey and Chrome :) Thank you :)  :)

I have enabled all the permissions still my mobile users can't see the shout box ??  HELP please