Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic YaBB in Iframes (Read 4790 times)
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: YaBB in Iframes
Reply #4 - Oct 22nd, 2014 at 8:37pm
Print Post  
The code this mod disables to has been removed in later versions of 2.6.1 - it created major problems when trying to view templates in the AdminCenter.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: YaBB in Iframes
Reply #3 - Jul 5th, 2014 at 6:33am
Print Post  
Code
Select All
<edit file>
Languages/German/Admin.lng
</edit file>

<search for>
);

%floodtxt = (
</search for>

<add before>
'in_iframe' => 'Wollen Sie ihr Forum als iframe einbinden? (Anmerkung: Dies erlaubt anderen Webseiten, <b>Ihr</b> Forum in <b>deren</b> Seite einzubinden).',
</add before> 






Code
Select All
<edit file>
Languages/German_Du/Admin.lng
</edit file>

<search for>
);

%floodtxt = (
</search for>

<add before>
'in_iframe' => 'Willst Du Dein Forum als iframe einbinden? (Anmerkung: Dies erlaubt anderen Webseiten, <b>Dein</b> Forum in <b>deren</b> Seite einzubinden).',
</add before> 

  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: YaBB in Iframes
Reply #2 - Jul 4th, 2014 at 9:26pm
Print Post  
I really shouldn't be testing mods when I'm exhausted   Embarrassed - new file in first post.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: YaBB in Iframes
Reply #1 - Jul 4th, 2014 at 8:57pm
Print Post  
Code
Select All
<add above>
        {
            description => qq~<label for="in_iframe">$admin_txt{'in_iframe'}</label>~,
            input_html => qq~<input type="checkbox" name="in_iframe" id="in_iframe" value="1"${ischecked($in_iframe)} />~,
            name => 'in_iframe',
            validate => 'boolean',
        },
</add above> 



Somehow it does not work. I can install the German files without problems, but not the English.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
YaBB in Iframes
Jul 4th, 2014 at 2:28pm
Print Post  
YaBB in Iframes 2.6.0

This mod allows the admin to choose whether or not to allow their YaBB forum to appear in an iframe. (The 2.6.0 default is to break out of iframes.)

Version History
---------------
0.1 alpha - First release - July 4, 2014

For YaBB 2.6.0 

Instructions:
Apply the mod and upload (in ASCII mode):

cgi-bin/yabb2/Admin/Modlist.pm
cgi-bin/yabb2/Admin/NewSettings.pm
cgi-bin/yabb2/Admin/Settings_Main.pm
cgi-bin/yabb2/Languages/English/Admin.lng
cgi-bin/yabb2/Sources/Subs.pm
cgi-bin/yabb2/Templates/default/default.html
« Last Edit: Jul 4th, 2014 at 9:27pm by Dandello »  

yabbiniframe_260_01.zip (Attachment deleted | 36 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint