News:

Wondering if this will always be free?  See why free is better.

Main Menu

Creating a custom page

Started by dennisvdz, July 13, 2008, 12:18:32 PM

Previous topic - Next topic

dennisvdz

I'd like to create a custom PHP/HTML page.
For this I'd like something like ?action=mypage, so it include mypage.php in the window..

So how I do that?

Thanks, Dennis.

sawz

try the custom action mod

This mod will add an unlimited number of custom actions, configurable in Features and Options. There are 3 types, HTML, BBC, and PHP. They can be accessed by going to http://www.yoursite.com/smf/index.php?action=action name. Each action has an unlimited number of sub-actions, which can be accessed by going to http://www.yoursite.com/smf/index.php?action=action name;sa=sub-action name.
keep smiling, they'll always wonder what your up too.....

dennisvdz

Cool!

Now still one question, when I install mods, get I:

Miscellaneous
-----------------------------
There are no modifications installed that have added any settings to this area yet.

So, where and how to install?

dennisvdz

So other;
When I upload all to my Sources dir, I get this error when start Install.php:


Fatal error: Call to undefined function updateSettings() in ***/public_html/forums/Sources/install.php on line 9

sawz

you install the mod through the package manager.

Admin > Packages > Download New Packages

browse for the zipped mod on your computer and upload it,
then you'll apply it. you'll find the settings for it in Features and Options.
keep smiling, they'll always wonder what your up too.....

dennisvdz

Okay.. Its installed. Now I need to add pages, but i see nowhere where I can do that.

dennisvdz

hmm.. I'v got an error now that it's not compitable with my version of SMF.. But I use SMF 2.0 Beta 3.1 Public.

Nathaniel

Which version did of the mod did you download? You will need the "customaction3-0.zip" package for SMF 2 Beta.
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.

dennisvdz


dennisvdz

Need I upload the RAR in the package manager?

If yes, I do, It says thats its succesfully installed, but I see neverwhere the MOD, alsoo not in the Installed Pagages.

Nathaniel

Have a read of the Package Manager documentation, if you are having trouble understanding it. Yes you do need to upload the "customaction3-0.zip" file via the package manager.

The settings for the Custom Action Mod for SMF 2 Beta, should in the admin area under "Configuration" -> "Features and Options" -> "Custom Actions", not in the normal "Modifications.." section.
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.

dennisvdz

But I don't see that Custom Action page..

Nathaniel

Ah, I remember this problem, there may be an issue with the language string. Try to "Empty the file cache." and then find the settings page again, you can empty the file cache at "Maintenance" -> "Forum Maintenance" -> "Empty the file cache.", it should refresh the template/languages cache, which will hopefully make the link to the settings page ''appear.
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.

dennisvdz

Nope..
Also in the Installed Mods page, the Custom Page not appear..

Nathaniel

Are you sure that you installed it correctly? To install it you need to click on it in the mods list and follow the package installation instructions, at the end of the installation process it should say "The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.". If you haven't seen this message then you haven't installed the mod...
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.

dennisvdz

When I install again, it ays that the package already exist..

Nathaniel

That message comes up, when you try to upload the package, but its already there. Go to the "Browse Packages" list and click on the "[ Apply Mod ]" text next to the "Custom Action Mod" entry on the list. Then you just need to follow the steps...
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.

dennisvdz

Okay. Thats the good page :o)

Now i get again an error..

"You cannot download or install new packages because the Packages directory or one of the files in it are not writable!"
But all are writeable

Nathaniel

Are you sure that the package folder is set to 0777?
How do I chmod? / what is chmod?
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.

dennisvdz


Advertisement: