Site Integration Mod

Started by live627, April 29, 2008, 07:45:20 PM

Previous topic - Next topic

openinteractive

Is there an easy way to define one of my site integration pages as the default home page of my forum?

for example /index.php?action=home points to my home.php file. but t get there i have to specifically link to that action, where as i would like to just have /index.php default to this file and just use my action=forum to go to the forum page.

ive been digging through alot of code, but dont see any where obvious to make this happen.

any help appreciated.

thanks,

joe

[unplugged]

You could just use .htaccess to point visitors to any page you want them to "start" at. Google for how to use it (that's what I did).  ;)
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Nathaniel

Ironically, this is going to be a feature of the next version of this mod as I have stated in some of my other posts, and it could have been a feature of the last version except that I was going to add it to a different mod, but now its going to be a part of this one.  I should start work on the new version in a few days after I have finished some of my other mods, it will hopefully be finished before next weekend. :)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

ianus

Greetings!

First, some basic information.
Im runnig SMF 1.1.4 with TP 0.98 and a custom theme based on default.
I like to show a DokuWiki in this environment and dislike the iframe solution (because of the stupid "high= xx px" setting.

Maybe your mod is not written to support "complex" software, but I like to try it.
Quote from: LHVWB on June 08, 2008, 06:08:29 AM
This mod is not designed to integrate entire software packages into SMF, so it may have some odd results

After downloading SiteIntegrationMod_v1.3.1, the PacketManager give me the hint, that the SMF Extra Settings Framework Mod must be installed.
Well this was mentioned here before.
http://www.simplemachines.org/community/index.php?topic=236625.msg1544297#msg1544297

The given link seems to lead to a protected site, which is explained also.

But after reading this
Quote from: LHVWB on June 07, 2008, 10:14:17 AM
I am happy to announce that I have updated this Mod so the version 1.3 works with SMF 1.1.5 and 1.1.4.

Full changes, v1.3.1:
A minor bug fix, two of the settings had similar names and this created an annoying bug.
Updated version 1.3 so the it supports SMF 1.1.5 and 1.1.4.
I thought, this mod will work with 1.1.4, but the PaketManager told me that there is an error in Sources/ManageServer.php

So. Questions are:
What do I need to install this mod and where can I get it?
Has somebody give a try to integrate more than a single php page?

Thanks in advance.

Regards
ianus

Nathaniel

What do I need to install this mod and where can I get it?
As I said in that earlier post, you no longer need that other mod to run the Site Integration Mod for SMF 1.1.4 or SMF 1.1.5. That was the whole point of the 1.3.1 version of the mod. I am sorry that I forgot to remove the message about it in the install page, and I am sure that it has created some confusion, I will definetly remove it when I update this mod next (~1week).

Has somebody give a try to integrate more than a single php page?
I have no idea, there was somebody earlier who gave this a go, but I am not sure how successful they were.  If you could do it then it would involve steps like changing the base url of the software package to an action within SMF, renaming the index.php (of the software package) to something else (say wiki.php for action=wiki) and etc. I am happy to try and give this software package a go when I get some time.

I am not sure about your error with 'Sources/ManageServer.php', I have tested this mod severa timesl (and again just now) with clean versions of SMF 1.1.4, and it installed and worked perfectly. It is possible that there may be some clashes with other mods, if you post your 'Sources/ManageServer.php' then I may be able to find out what the problem is.

SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

openinteractive

thanks for the suggestions guys.
i ended up using a not so elegant hack to the index.php file.

simply added the following:

if(!$_GET["action"]){
   $_GET["action"] = "home";
}


basically if action is not set, define it as home.
which happens to be my home page file name....

just thought id share in case anyone else needs a temporary fix until the next version is available.

cheers!


rawonam

I've got two questions/suggestions...
1) Why do you need to rename files to .php? Wouldn't .html be nicer for articles?
2) Wouldn't it be better instead of adding the protection code at the beginning, to add a redirection code, so that, for instance, domain.com/myarticle.html would open the article within smf?..

ianus

Greetings!

Reply to:
http://www.simplemachines.org/community/index.php?topic=236625.msg1595411#msg1595411


Confusion – one of my best friends.
You are right, of course. I have asked only to be sure and as you said, nothing but the mod itself is necessary.


The Sources/ManageServer.php Problem.
I don´t know what causes this error message. The PacketManager changed the code correctly.
I have checked it manually before and after choose the "install anyway button".

Something with the code for the ModSettings - the part after // Handles the Site Integration Settings - seems to cause the problem.
After adding the code manually, everything works as expected.

So thanks for your reply and for this mod. Your kind support is appreciated.

Nathaniel

#108
@rawonam

Okay, fair comments/suggestions,.

1) I supose that I could add this into the next version of the Mod, I will have a look into this. One of the issues with this is making sure that I cover as many different extension types as possible, off the top of my head I can think of '.html' and '.htm' which I could add, if there are any others which you think should be added then please post them.
2) Yes, that would probably work better, I will add that to the documentation.

Thank you for the comments/suggestions, I am always open to them, especially ones that will improve the mod in any way. :D

@ianus

If you need anymore help then feel free to ask, I'm always happy to help! :D
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

KarKess

I'm using smf 1.1.5 and after installation all I get is a bunch of code at the top of the screen.  Any suggestions?

Thanks,

Karl
[nofollow]

Nathaniel

Quote from: KarKess on June 30, 2008, 04:13:04 AM
I'm using smf 1.1.5 and after installation all I get is a bunch of code at the top of the screen.  Any suggestions?

Thanks,

Karl
I am not sure what you error could be.. Could you please post the code that appears at the top of the forums, so that I can try to find the problem?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

KarKess

#111
here's a screen shot.  Also this shows on every page of the forums. :(
[nofollow]

[unplugged]

It looks like all of your code was added on one line (no linebreaks). This has been happening quite a bit and with several mods. The only way I know of to "fix" it is to manually go into each modified file and add the linebreaks (enter) where needed. Not much of an answer per se but a good starting point.  ;D
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Nathaniel

#113
@KarKess, I am not sure how you managed to do this, but it appears that the changes have been made to the wrong spot within the modifications.english.php file. You can fix this by manually opening up your /themes/{themes to change}/languages/modifications.english.php file and moving the ?> php tag from before that code which is being shown on the page, to the end of the file.

Is it possible that you are using english-utf8? Because my mods language edits for that could theoretically have some bugs .

@ SunKing, that actually wasn't the issue but good guess. :) The reason that its all on one line is because its separated by a line break in the .php file which html doesn't recognize as a line break, instead it just shows it as a single space.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

KarKess

I'll try that, but won't have time to really get into it until the weekend. I will update and let you know how it went.  Thanks for the speed of you replies.
[nofollow]

KarKess

#115
Ok I got it working, but I don't have a clue how to use it. Can you give examples of what info should be put in the fields?  I want to make my site look like this   And want to know what I have to do.  Do I need to make a new file with just my header and footer?  Or can I just use my index file?  And can I link directly to this file?  Or do I need to put a copy of it elsewhere?


Thanks
[nofollow]

erlend_sh

Hey! He used it for a custom menu! I thought this mod didn't do that? :P How will your "Custom Menu Mod" do this any different?

KarKess

No that is just a photoshop edit, but this is what I want my site to look like.
[nofollow]

Nathaniel

Okay, first of all. Sorry that I haven't replied earlier, I have been 'on hiatus' ;) for a few days, having a holiday.

@ KarKess, I am not entirely sure that you are trying to use this Mod for what it is meant to do, this mod is meant to allow you to include your own files as actions into your SMF install, it appears that you actually want to edit the template files so that your forums appear different. You can get some help with that from the "Graphics and Templates" forum, which discusses editing template files. You can find the template_header() and template_footer() functions which you will need to edit, in the index.template.php file for each of your themes.

This Mod can help you to create a page that uses that header and footer from the template along with certain benefits from integration with the SMF member system and etc., and puts your own custom page in between.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

KarKess

Gotcha! ;)  I'm mistaken, I thought this mod actually put smf on your web page using your webpages' header and footer placing smf in between.  Dangit, this means work.  Hi-Ho-Hi-Ho!
[nofollow]

Advertisement: