Perfect 'idea@. Just tried it: http://www.solo-elite.com/modules/myiframe/index.php?iframeid=1 As you can see it works well but i want it to stretch the website template and NOT create scroll bars. I messed about with the margin settings etc but they didnt do anything. Will myiframe 1.4 be any better for this if so where can i download it?
I have a XOOPS website and recently moved away from phpbb as our host includes a supported forum in our package. With phpbb it would be displayed within the template. With SMF i know you need to include the mainfile, header and footer in the index.template.php file of the SMF theme.
Xoops is pirmarily on the website in the first directory, but SMF is installed in a secondary directory called Forum2. I need to put the include path php code in but i dont know where in the index.template.php to place them or exactly what paths to use.
SMF are struggling to solve this one, any help on this subject would be good. Here is my current code:
[code] // Version: 1.1 RC1; index
/* This template is, perhaps, the most important template in the theme. It contains the main template layer that displays the header and footer of the forum, namely with main_above and main_below. It also contains the menu sub template, which appropriately displays the menu; the init sub template, which is there to set the theme up; (init can be missing.) and the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content. It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user wants and or needs.
// Initialize the template... mainly little settings. function template_init() { global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme? if this is 'always', images from the default theme will be used. if this is 'defaults', images from the default theme will only be used with default templates. if this is 'never' or isn't set at all, images from the default theme will not be used. */ $settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.) 'xhtml' for an XHTML 1.0 document type definition. 'html' for an HTML 4.01 document type definition. */ $settings['doctype'] = 'xhtml';
/* The version this template/theme is for. This should probably be the version of SMF it was created for. */ $settings['theme_version'] = '1.1 RC1'; }
// The main sub template above the content.
function template_main_above()
include("/home/soloel2/public_html/mainfile.php"); { global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating. echo '
', $context['page_title'], '';
// The ?rc1 part of this link is just here to make sure browsers don't cache it full of wronfulness. echo '
';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...) Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual. Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big. Standards compliance mode happens when you use xhtml... */ if ($context['browser']['needs_size_fix']) echo ' ';
// Show all the relative links, such as help, search, contents, and the like. echo '
';
// If RSS feeds are enabled, advertise the presence of one. if (!empty($modSettings['xmlnews_enable'])) echo ' ';
// If we're viewing a topic, these should be the previous and next topics, respectively. if (!empty($context['current_topic'])) echo '
';
// If we're in a board, or a topic for that matter, the index will be the board's index. if (!empty($context['current_board'])) echo ' ';
// We'll have to use the cookie to remember the header... if ($context['user']['is_guest']) $options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers'], '
';
include("/home/soloel2/public_html/header.php");
echo'
';
template_menu(); echo'
welcome to ',$context['forum_name'],'
User Info
News
';
// If the user is logged in, display stuff like their name, new messages, etc. if ($context['user']['is_logged']) { echo '
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough. if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari']) { // The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself. echo ' '; }
echo '
' }
// Show the menu up top. Something like [home] [help] [profile] [logout]... function template_menu() { global $context, $settings, $options, $scripturl, $txt;
I have got a problem with phpBB. When i try and delete forums i dont want i get the following error:
Couldn't obtain moderator list
"DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 6
SELECT ug.uid FROM xoops_phpbbi_auth_access a, xoops_groups_users_link ug WHERE a.forum_id = 10 AND a.auth_mod = 1 AND ug.groupid = a.groupid AND ug.uid NOT IN ()
Line : 722 File : /home/soloel2/public_html/modules/xphpbbi/admin/admin_forums.php"
I looked on the support forums and i found a topic that said you need to remove group mods before you can delete it. Now i have no mods on the forum and it still wont delete? I posted in another thread but no one seems to have an answer? Please help!
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 6
SELECT ug.uid FROM xoops_phpbbi_auth_access a, xoops_groups_users_link ug WHERE a.forum_id = 10 AND a.auth_mod = 1 AND ug.groupid = a.groupid AND ug.uid NOT IN ()
Line : 722 File : /home/soloel2/public_html/modules/xphpbbi/admin/admin_forums.php
Same problem, i removed the mods to the forums i am trying to delete but i still get the same error. I removed them from the admin pannel, is there soemthing i need to do from the XOOPS control panel?
"WARNING: File /home/soloel2/public_html/mainfile.php is writeable by the server. Please change the permission of this file for security reasons. in Unix (444), in Win32 (read-only)"
I have set this file to 44 usin FTP but it changes itself back right away! Ive used different FTPS and have had no luck! Any help would be cool!