Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Is there a way to add the chat box into another page?
Is that possible with this application: http://vanillaforums.org/addon/basicpages-application
If so, how?
Thanks!
Tagged:
0
Comments
I am going by your title "Is there a way to add the chat box into another page?"
yes, using the extrapage plugin and putting the shoutbox in panel.
with these settings.
$Configuration['Plugin']['Van2Shout']['ContentAsset'] = '';
$Configuration['Plugins']['ExtraPage']['WithPanel'] = '1';
I'm sure someone can provide you with a solution via basic pages. addon if you post under that add-on.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
By using that plugin it will add the shoutbox on the sidebar, what i'm looking for is add it in the main section.
worked for me shoutbox in content.
add this to the extrapage plugin in the create function.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
On the console it says this:
Uncaught ReferenceError: Firebase is not defined
Uncaught ReferenceError: UpdateShoutbox is not defined
And when I type a message:
Uncaught TypeError: Cannot read property 'child' of undefined
So insted of adding
$Sender->AddModule('van2shoutdiscussionsmodule','Content');
in defualt.php
I added
And didn't had to add
<script> jQuery(document).ready(function($) { UpdateShoutbox(); }); </script>
to extrapagea.php
And now it works
@Linc here is your first "Solutionsayer" Badge nominee !!!
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@vrijvlinder Thanks, done.
if you wanted to include emotify you need to include the js - you might need to cut and paste from that line from van2shout create method to the extrapage create as well.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I tried that, and it works. But is it possible to ONLY add it to that extrapage Ive set up? Currently it shows on all pages. I just want it to show in that extrapage. Thanks!
start with clean code from both plugins.
yes. the only page you want it to show is ExtraPageA.
modify class.van2shout,plugin.php
comment out the line indicated with //
in default.php in ExtraPages plugin
change
$Sender->Render($this->GetView('extrapagea.php'));
}
to
and add this routine
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine thank you!
Can I use Extra Page with Roles/Permissions?
yes, but that would be a new discussion topic under extrapages plugin with you version number of vanilla (assuming you want me to answer the question).
so you would need to follow protocol
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine thanks a lot for 3.1 - permissions are working now!
The van2shout is also working well, just need to remove a " ; " from this code, after the script tag:
$Sender->Head->AddString("\n<script src='https://cdn.firebase.com/v0/firebase.js'></script>;");
(lol for some reason I cannot remove the " ; " when I put code tags, it's simply added automatically)
..and also maybe comment out this css from exp.css so you don't mess the header/navbar:
Thank you very much for your help!