Site Integration Mod

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

Previous topic - Next topic

Nathaniel

#80
Oh okay, that should be easy to do. Open up the template_menu() function from the index.template.php file for your theme and set a check for a variable that is only declared by the gallery, sorry about the bad explanation but if you have a look at the function, you should be able to work it out.

There should be some condition checking for the currently selected button, you just need to change that slightly so that it checks for some variable which is a part of coppermine.
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

just uninstalled the site integration mod that wasnt working and then installed the newest version you just posted. but still does not show up in "settings and options". and ('index.php?action=featuresettings;sa=siteintegration;')  just shows the home page.

do i need the SMF Extra Settings Framework Mod? and if so, where can i download it.
there doesnt seem to be any results when i search the mod site.

im installing with english version language.

Nathaniel

Okay, that's really odd!

You don't need the "SMF Extra Settings Framework Mod", that no longer exists and is no longer necessary for the running of this mod, there is an explanation of why you don't need it.

I have attached an image of what I see, about the location of the settings area. If its definitely not there then try directly using your forums url with 'index.php?action=featuresettings;sa=siteintegration;' at the end, eg 'www.yourdomain/index.php?action=featuresettings;sa=siteintegration;'. If that doesn't work then the mod can't have installed properly, and you should post your 'sources/ModSettings.php' file, so I can see what the mod failed to change.
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.

jglonek

#83
Quote from: LHVWB on June 08, 2008, 12:49:59 AM
Yep, you can change the permissions of the included action/file that you want them to view, so that guests can view the page.

Ah well that's good to know I can do it! Except it's not working :(

I have SMF 1.1.5, and Integration 1.3.1. When I go to the Features and Options for it I can see at the bottom where it says "Manage Included Files/Actions".. but nothing is listed. Now I know that it's finding the files in the folder I told it to look in because the action links work that I've been playing with over the weekend.

So how do I get the files to appear in the managed area?

----

Oh and also, although I'm not sure this is an issue with the mod, we are using the Orange-lt theme and when we go to Features and Settings we see "Basic Features |  | Layout & Options | Karma". For some reason Site Integration isn't showing up in that | | area. We have to reset the theme to default SMF to bring the link up

---

And apparently a third issue. It seems like I can't have a call to a sql database in whatever file is being included in the action call. If I do I just get a "page cannot be displayed" error. Is there a way around this?
Fixed this issue! Apparently it needs to be in the same database. got it.

Nathaniel

Put the below code into one of your actions, it should produce a list of the actions which are being included by your program, could you please post those results?

var_dump($context['siteintegration_actions']);

I am not sure about the theme error, I will look furthur into that later today.

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.

jglonek

Quote from: LHVWB on June 09, 2008, 05:31:40 PM
Put the below code into one of your actions, it should produce a list of the actions which are being included by your program, could you please post those results?

var_dump($context['siteintegration_actions']);

I am not sure about the theme error, I will look furthur into that later today.

As in just put that code into one of my php files that I'm calling as an action and see what it says?

If I do that I Get:

array(0) { }

So maybe I didn't do it right.

openinteractive

Hey there,
nothing showing up for me in admin. and linking directly just shows me the home page.
i have attached my mod settings file as you requested. I appreciate any help you can offer.

thanks,

Joe

Nathaniel

Quote from: openinteractive on June 10, 2008, 05:08:40 PM
Hey there,
nothing showing up for me in admin. and linking directly just shows me the home page.
i have attached my mod settings file as you requested. I appreciate any help you can offer.

thanks,

Joe

Okay, thank you for attaching the file.

From what I can tell, the mod hasn't installed at all, because none of the edits have been made to that file. I would suggest trying to reinstall it again, however make sure that you are installing it correctly this time, remember that you should try to install it via the package manager and that it should have no errors when you try to install it.

If necessary then you may wish to try manual installation, you can get 'Manual Install Instructions for SMF' from the mod download page. I do however recommend trying to install the mod properly.
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.

Nathaniel

#88
Quote from: jglonek on June 10, 2008, 04:58:34 PM

As in just put that code into one of my php files that I'm calling as an action and see what it says?

If I do that I Get:

array(0) { }

So maybe I didn't do it right.

Okay, I worked out how to solve the theme error, your custom theme 'orange-lt', actually has its own Modifications.english.php file, this means that whenever you install a mod, all of its language strings will go into the default templates language files, but when using the custom theme you will be using its own language file and you won't have access to the mods language strings.

To fix this I would recommend that you open up your 'Modifications.english.php' file from the default template ('themes/default/languages/Modifications.english.php') and then copy the contents (excluding the php tags <?php and ?>) into the 'Modifications.english.php' file from your custom theme ('themes/(theme name)/languages/Modifications.english.php'), be careful not to delete any of the current language strings from the custom themes file though because that could stuff the theme up.

I can perform the edits if you post the Modifications.english.php file from the custom theme.

In terms of your manage actions/files issue, I am not sure why this would be happening, could you please post your main smf index.php file? That's where the included files/actions are defined, so thats where any error would be. Although its possible that there may be an error with your 'sources/Modifications.php file'.
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

ok, i may have to try the manual install.
ive tried to install using the package manager several times.
ill let you know how it goes. much thanks!

joe

openinteractive

got it working in my degault theme. ill have to also add it to my new theme manually.
but it works! im so excited.

thanks so much for your help

jglonek

Quote from: LHVWB on June 10, 2008, 06:48:37 PM
Okay, I worked out how to solve the theme error, your custom theme 'orange-lt', actually has its own Modifications.english.php file

In terms of your manage actions/files issue, I am not sure why this would be happening, could you please post your main smf index.php file? That's where the included files/actions are defined, so thats where any error would be. Although its possible that there may be an error with your 'sources/Modifications.php file'.

Putting the code into the theme's modification file worked! Now I can see the Site Integration information under our normal theme, thanks!

I've attached the main index.php to this reply. I don't have a modifications.php file.. I have a modsettings.php which I've attached as well.

Nathaniel

It appears that you performed some of the required edits 3 times, in the index.php file this meant that after the first time it scanned for files, it would wipe the array which lists the included files/actions and then it wouldn't add any new ones to it.

Anyway, I performed the required edits and the new and tested files are attached.
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.

jglonek

It works now, thanks! I really appreciate it :D

SilverKnight

I really don't get this.. not very well documentated mod from what ive seen.. ok so ive installed the mod.. left with a number of boxes.. what now? what do i do??? what do i enter? what do i edit... all i want really is to put a simple banner and a few links.. yet it wont let me of course.. any other way around it.. how do i do this intergration mod ugh !!!  >:(

Nathaniel

Quote from: SilverKnight on June 20, 2008, 07:15:02 PM
I really don't get this.. not very well documented mod from what Ive seen.. ok so ive installed the mod.. left with a number of boxes.. what now? what do i do??? what do i enter? what do i edit... all i want really is to put a simple banner and a few links.. yet it wont let me of course.. any other way around it.. how do i do this intergration mod ugh !!!  >:(

I apologize if my explanation and documentation aren't very clear, its not particularly an area that I have great skill in. However from what you said, you may be trying to use this mod for something that it can't be used for.

This mod is used to include your .php files into the SMF system so that you can access them by going to index.php?action=filename.

If you want to put a different banner into your theme or add some links into the theme, then I suggest that you ask about that in the Graphics and Templates forum.

I will have a read over my documentation on the download page to see if there is anything that I can make clearer.

Edit: I am happy to try to explain to you how exactly you can use the mod, if you tell me exactly what you want to do.





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.

Nathaniel

Okay, I have done a full update of the Mod download page documentation. Please have a read of it and tell me what you think. I will try to update the "More information" section to make it more clearer when I get some time.

Please tell me if you find any issues with the documentation, I am more than happy to try to fix it and make it clearer.

Thank you,
LHVWB
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.

[unplugged]

I had no problem understanding what this mod was for, and how to implement it, so the instructions/documentation for it must have been at least moderately adequate. A simple request for a more detailed explanation would have sufficed.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



digit

So am I correct in thinking that the functionality is the same as the CustomAction mod?
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Nathaniel

Quote from: digit on June 23, 2008, 03:03:16 AM
So am I correct in thinking that the functionality is the same as the CustomAction mod?

No, they are very similar, but the Custom Action Mod stores the files in a database meaning that you cannot easily access them from outside SMF, while the Site Integration Mod allows you to create/edit your pages outside of SMF, meaning that you can use your own WYSIWYG editor and etc to create/edit your pages.

It also has the "Language Includes" settings and invalid permissions settings (redirection action and show guests login page) and etc. I am also planning to add the ability to list the actions in the whosonline list, to change your home action (eg index.php) and to make a 404-like error action system which allows you to show users a certain action if they try to load an invalid action - in the way that vBulletin does it, as opposed to just showing the home page (normally board index) you will be shown a page saying something like "Sorry you must have followed an invalid link, please report this to the site admin by clicking here.".

I am adding features to the Site Integration Mod which could be useful to anyone trying to integrate their website with SMF, not just people that want to add new actions, although that is the main function of this mod.

In short, the Site Integration Mod is aimed more at people who don't want to mess around with editing SMF source code or using the SSI.php functions but still want the power of editing their own code in their own editor, while the Custom Menu Mod is for people that want to add simple actions to their forums with the least amount of fuss.

Edit: PS: Sorry about the huge post! ;)

Extra note to everyone:
I will be finishing up one of my other mods and then updating this mod to version 1.4, it should be updated sometime within the week.

Thank you,
LHVWB.
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.

Advertisement: