Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Robbo_ on February 27, 2009, 09:59:39 AM

Title: Custom Pages
Post by: Robbo_ on February 27, 2009, 09:59:39 AM

 
   
Author: Robbo (http://www.simplemachines.org/community/index.php?action=profile;u=165532)    Supported Languages: English    (https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4EFY4RWXV58ZL)
Link to mod (http://custom.simplemachines.org/mods/index.php?mod=1347) | Mod Bugtracker (http://dev.eninja.com.au/projects/index.php?project=2) | My Other Mods (http://custom.simplemachines.org/mods/index.php?action=profile;u=165532)


Summary
This mod is used to create a custom page within your forum through the administration centre.
Basically you add, edit and remove pages through the admin interface which makes use of the same BBCode editor and a similar HTML editor like when making a post. There is also the ability to control who can see what page with various permission settings.

Change Log

Version 1.0.12
- Fixed problem with package installation

Version 1.0.11
- Fixed compatability issues with various mods
- Will now install/upgrade on SMF 2.0 RC1-1
- Added additional options to each page
- Added the ability to style each individual page
- Added session checks to increase security

Version 1.0.10
- Disabled the WYSIWYG features of the BBCode editor as it was causing problems

Version 1.0.9
- Quick fix for 1.0.8

Version 1.0.8
- Fixed a problem with editing pages not remembering the permissions set when previewing your page
- HTML editor now uses text variables properly
- Added the rest of functionality to the HTML editor so it is just like the BBCode one except for 'remove formatting', 'toggle view' and smilies which will not be added
- Changed how the page list is viewed so that lots of permissions or long URLs will not deface the page
- Other small fixes

Version 1.0.7
- Added ssi_recentPages function- Basic HTML editor added (will be adding more functionality in next version)
- Client-side validation removed
- Page views are now logged with flood protection
- Fixed bug where pressing cancel when prompted to delete a page would still deleting it

Version 1.0.6
- Fixed a bug causing the "delete" button to not show up
- Added action logging for when a page is changed in some way

Version 1.0.5
- Client-side validation is now off by default. To enable it go into {source_dir}/ManagePages.php and set $context['customPages_use_js'] to true on line 74
- Fixed some minor bugs

Version 1.0.4
- Fixed a heap of error log spam of unknown indexes
- Added a check to make sure the id is only a letter, number or underscore
- Added client-side validation
- Other small fixes

Version 1.0.3
- Fixed the who's online "unknown action"
- SSI support added

Version 1.0.2
- Fixed some problems with installation
- Fixed a bug with displaying a group permission

Version 1.0.1
- Updated to work with SMF 2.0 beta 4

Version 1.0.0
- Initial release
Title: Re: Custom Pages
Post by: Angelotus on February 27, 2009, 10:48:10 AM
Nice,
Is it possible to automate list the pages?
Title: Re: Custom Pages
Post by: Robbo_ on February 27, 2009, 07:21:49 PM
I don't understand what you mean...

List all the pages or something?
Title: Re: Custom Pages
Post by: Angelotus on February 27, 2009, 08:00:46 PM
No, just an SSI function that makes a list of all recent added pages. It would also be nice if you add a function that counts the views of each page.
Nice mod by the way :)
Title: Re: Custom Pages
Post by: Robbo_ on February 28, 2009, 10:45:10 PM
I like both those ideas. I will add them to the next version.
Title: Re: Custom Pages
Post by: shumilica on March 01, 2009, 06:45:52 AM
I wanted to embed this script:
http://www.heyzap.com/publishers
wich doesn't work because it uses the same parser with the one from posts. Is there anyway i can do a different page with it?
Title: Re: Custom Pages
Post by: Propaganistas on March 01, 2009, 09:31:24 AM
I get this error when trying to apply the mod:

QuoteFatal error: require() [function.require]: Failed opening required '/home/ecto.nl/www/forum/Packages/temp/install.php' (include_path='.:/usr/share/php') in /home/ecto.nl/www/forum/Sources/Packages.php on line 918

Please help?
Thanks in advance,
Propa
Title: Re: Custom Pages
Post by: Robbo_ on March 01, 2009, 07:15:21 PM
Quote from: shumilica on March 01, 2009, 06:45:52 AM
I wanted to embed this script:
http://www.heyzap.com/publishers
wich doesn't works because it uses the same parser with the one from posts. Is there anyway i can do a different page with it?
Next versions will support using BBCode or HTML so that getting embedded will work. I can't think of an easy way for you to do it so I guess you will just have to wait until I get the next version finished.

Quote from: Propaganistas on March 01, 2009, 09:31:24 AM
I get this error when trying to apply the mod:

QuoteFatal error: require() [function.require]: Failed opening required '/home/ecto.nl/www/forum/Packages/temp/install.php' (include_path='.:/usr/share/php') in /home/ecto.nl/www/forum/Sources/Packages.php on line 918

Please help?
Thanks in advance,
Propa
Have you been able to install any other mods? Uninstall the mod if it says it is installed, then delete that temp folder and try and install again. If it still doesn't work then you might want to try the support forums as that sounds like an issue with packaging and not the mod itself.
Title: Re: Custom Pages
Post by: shumilica on March 01, 2009, 09:30:47 PM
Robbo, currently I needed just one custom page, for that site so i modified custompages.template.php a little :), look: http://www.fcrp.ro/forum/index.php?action=page;sa=jocuri . I know, i'm like a gipsy, but for now it's ok for me and i'll just wait untill you have time so that i can use more than one custom page.
Title: Re: Custom Pages
Post by: Robbo_ on March 01, 2009, 09:51:50 PM
Cool :)

I am working on the next version now and just spotted a bug. There is no button to remove a page (well at least for me there isn't). I am going to put a quick fix up asap.

Then I will get back to work on adding logging, HTML editor and more SSI functions. If there are any other features people would like then now would be the time to tell me ;)
Title: Re: Custom Pages
Post by: Robbo_ on March 01, 2009, 11:20:40 PM
New Version (1.0.6)

This version fixes the bug causing the delete button to not show up and adds action logging so when you change a page in some way it is logged and shown in the admin log (providing admin logging is enabled).

To update from 1.0.5 or any previous versions simply uninstall your current version without checking "Remove all data associated with this modification" and then install version 1.0.6.

Next version should contain everything noted in the to-do list. Should be done some time this week.
Title: Re: Custom Pages
Post by: drhamad on March 02, 2009, 01:16:56 AM
Do you have screenshots or a demo?
Title: Re: Custom Pages
Post by: Robbo_ on March 02, 2009, 03:55:57 AM
I have internet problems atm. Once as they are sorted (Friday at the latest) I will setup a demo site for all mods I make. Screen shots will come then as well.
Title: Re: Custom Pages
Post by: Groundhog on March 02, 2009, 05:11:24 AM
Robbo_

This is such a major and important mod to have. I'm glad to see it here today. Having just converted my forum from YaBB I used this mod there also and had very many pages that were custom and was hoping to move them to my SMF site also. The problem is they are all HTML so I am looking forward to your new HTML compatible version.

Have you any idea when this might become available?

Keep up the good work and thanks.

Thanks
Title: Re: Custom Pages
Post by: Robbo_ on March 02, 2009, 05:44:14 AM
Hopefully I will have it done some time this week.

I'm glad people are finding some use for it :)
Title: Re: Custom Pages
Post by: Groundhog on March 02, 2009, 05:49:49 AM
QuoteHopefully I will have it done some time this week.

Fantastic Robbo_

Thanks
Title: Re: Custom Pages
Post by: shumilica on March 02, 2009, 07:30:51 AM
Groundhog, if you don't have scripts, basic html (even flash) can be applied (after you disable wysiwyg editor) with the [html ] html code here[/html ] tag.
Title: Re: Custom Pages
Post by: Groundhog on March 02, 2009, 08:51:18 AM
Thanks shumilica, I'll give that a try  8)
Title: Re: Custom Pages
Post by: Propaganistas on March 02, 2009, 10:57:31 AM
Quote from: Robbo_ on March 01, 2009, 07:15:21 PM
Have you been able to install any other mods? Uninstall the mod if it says it is installed, then delete that temp folder and try and install again. If it still doesn't work then you might want to try the support forums as that sounds like an issue with packaging and not the mod itself.

Deleting the temp directory worked out for me. Thanks a bunch!

It seems that the list tag gets displayed in preview, but it doesn't in the parsed page. Anyone else experiencing this?
Title: Bugs bugs bugs
Post by: PerryM on March 02, 2009, 07:52:41 PM
Of course there are bugs just uploading and installing this thing:

   
1.[/t] Execute Modification ./index.php Test failed

Let me know when this is fixed.
Title: Re: Custom Pages
Post by: Robbo_ on March 02, 2009, 08:22:43 PM
Quote from: PerryM on March 02, 2009, 07:52:41 PM
Of course there are bugs just uploading and installing this thing:

  
1.[/t] Execute Modification ./index.php Test failed

Let me know when this is fixed.
Do you have any other mods installed? Can you show me the actions array in your index.php?

Quote from: Propaganistas on March 02, 2009, 10:57:31 AM
Quote from: Robbo_ on March 01, 2009, 07:15:21 PM
Have you been able to install any other mods? Uninstall the mod if it says it is installed, then delete that temp folder and try and install again. If it still doesn't work then you might want to try the support forums as that sounds like an issue with packaging and not the mod itself.
I'll look into this now. If I find the problem I will get a quick update done

Deleting the temp directory worked out for me. Thanks a bunch!

It seems that the list tag gets displayed in preview, but it doesn't in the parsed page. Anyone else experiencing this?
I can't replicate this issue.
Title: Re: Custom Pages
Post by: PerryM on March 03, 2009, 12:27:19 AM
I installed a new version of smf 2.0 RC1 and this mod installed fine.

I created a custom page.

For the life of me I haven't a clue how to use this page - is this spelled out somewhere?
Title: Re: Custom Pages
Post by: Robbo_ on March 03, 2009, 02:42:15 AM
The url would be: {site_url_here}/index.php?action=page&sa={page_id}

You can get to the page by clicking on the name of the page in the admin area.

For users to get to a page you have to make a link somewhere on your forum.

After I finish this mod and another one I am working on atm I will be making a custom link mod which will go hand in hand this mod making so you can add links to the main menu for your custom pages.
Title: Re: Custom Pages
Post by: swampy on March 04, 2009, 05:33:37 PM
Quote from: Robbo_ on March 03, 2009, 02:42:15 AM
The url would be: {site_url_here}/index.php?action=page&sa={page_id}

You can get to the page by clicking on the name of the page in the admin area.

For users to get to a page you have to make a link somewhere on your forum.

After I finish this mod and another one I am working on atm I will be making a custom link mod which will go hand in hand this mod making so you can add links to the main menu for your custom pages.

Now that will be SWEET!  One key to a custom page being immediately useful would be an option to rename HOME to FORUM and naming the new page HOME

Just a thought.
Title: Re: Custom Pages
Post by: Robbo_ on March 06, 2009, 01:04:10 PM
Quote from: swampy on March 04, 2009, 05:33:37 PM
... One key to a custom page being immediately useful would be an option to rename HOME to FORUM and naming the new page HOME
That is something that will be much easier to add to the custom links mod rather then the custom pages one. And it's a good idea so I will when I make it ;)

UPDATE: New custom pages version is done which adds a HTML editor, logs page views, removes client-side validation code since it is pretty useless, fixed minor bugs and a new SSI function (ssi_recentPages).
I just need to package it which is the part I hate so I am done for the night. I'll try get it all packaged sometime during the weekend.

Anyone who wants to port to SMF 1.x be my guest. I'm not looking forward to doing it myself.
Title: Re: Custom Pages
Post by: Groundhog on March 06, 2009, 04:02:07 PM
QuoteUPDATE: New custom pages version is done which adds a HTML editor

That's great Robbo_  :)
Title: Re: Custom Pages
Post by: pariofdreamz on March 06, 2009, 06:39:37 PM
Please Make it Compatible with 1.1.8 :(
Title: Re: Custom Pages
Post by: shumilica on March 09, 2009, 11:40:28 AM
We're waiting eagerly for your release :)
Title: Re: Custom Pages
Post by: Robbo_ on March 09, 2009, 01:15:26 PM
Due to a bug with SMF I am still trying to package it so that people won't lose their data when upgrading from 1.0.6.

I will give it a go now and if all goes well new version will be up very soon!
Title: Re: Custom Pages
Post by: Broken Arrow on March 09, 2009, 03:36:23 PM
It's not compatible with 1.1.8   :'(
Title: Re: Custom Pages
Post by: Robbo_ on March 09, 2009, 03:48:23 PM
Version 1.0.7 released.
See first post for details.

Quote from: Broken Arrow on March 09, 2009, 03:36:23 PM
It's not compatible with 1.1.8   :'(
Compatibility for 1.1.8 will be in the next version (unless I have to make a quick fix).
Title: Re: Custom Pages
Post by: Broken Arrow on March 09, 2009, 03:58:29 PM
thanks!

I am trying to find one of the pages mods that will actually work with v1.1.8 and the aero theme


I'll wait for your's  :)
Title: Re: Custom Pages
Post by: Groundhog on March 10, 2009, 08:18:51 AM
Robbo_

Well done. I have installed this mod and it's doing way more than I could have asked for.

I was able to copy 2 of my 44 original custom pages that I was using in YaBB into your custom pages mod and they work perfectly.  :)

Thanks for this mod Robbo  8)
Title: Re: Custom Pages
Post by: Shortie on March 13, 2009, 07:32:00 AM
Hi All


A really dumb question

Can I use PHP code with this - I am no coder so any help would be great

As for the mod it is just what I am looking for already wrapped the sites webmail into a page really looks good

Thanks

Shortie
Title: Re: Custom Pages
Post by: Robbo_ on March 13, 2009, 10:42:25 AM
No you can't use PHP in it and I have no plans to add PHP use. If you want to make a page with PHP you should look into making a small mod. You can use the custom pages template with another PHP page.

To do this create a new source page with your code. You then need an 'entry point' function that the index page will call on a certain action. So say you create Sources/Test.php with the  function testing.
In that function use...
   loadTemplate( 'customPages');
Now in your PHP code define $context['page']['title'] for what you want to appear in the title row and then $context['page']['body'] for what you want to appear in the content.

Finally you will want to add your action to the $actions array in your main index.php file. In this case it will be $actions['test'] = array('test.php', 'testing');

Some of the above info could be wrong as I am typing this from memory. If you have a little knowledge in PHP this shouldn't be to hard for you to do.
Title: Re: Custom Pages
Post by: Shortie on March 13, 2009, 05:29:56 PM
Many thanks for the info

Shortie
Title: Re: Custom Pages
Post by: willerby on March 15, 2009, 06:45:46 PM
Great mod Robbo. Takes Deprecated's 'bakers dozen pages' (http://custom.simplemachines.org/mods/index.php?mod=1477) to its natural conclusion.

Thanks - permission based pages an absolute godsend.
Title: Re: Custom Pages
Post by: willerby on March 15, 2009, 07:22:38 PM
I have a member group that the admin panel refuse to accept - I check it to allow access to a page but it never includes it - although it includes all others selected.

If I select just that member group I get the 'must include a permission' error.

Am I missing a separate permission somewhere to allow this group access? If not, appears to be a bug somewhere...

Title: Re: Custom Pages
Post by: Xavi-Nena on March 16, 2009, 04:25:00 AM
I anticipate the upgraded release.
Title: Re: Custom Pages
Post by: Robbo_ on March 16, 2009, 05:21:51 AM
Quote from: willerby on March 15, 2009, 07:22:38 PM
I have a member group that the admin panel refuse to accept - I check it to allow access to a page but it never includes it - although it includes all others selected.

If I select just that member group I get the 'must include a permission' error.

Am I missing a separate permission somewhere to allow this group access? If not, appears to be a bug somewhere...

I'll look into it once I get a chance and get a new version out.
Title: Re: Custom Pages
Post by: tfs on March 19, 2009, 09:56:59 PM
I installed CustomPages 1.07, and it was working when I tested it a few days ago.  But now I can't get it to work.  I have one page that worked when I first installed called test01, and I used to be able to see it.  Now when I try to view that page it just goes to the home page and acts like CustomPages is not there at all.

I'm running SMF 2/RC1 and using the default theme only.  Since installing CustomPages I installed AjaxChat Integration 3.0

Now when I try to add a page it won't save anything in the Page Body.  If I preview the page it comes up empty and I get a message that says "You need to fill out the Page Body", and if I try to save it I get the same message.  In either case whatever text I've entered into the body disappears and the page won't save.

So I thought I'd uninstall it, but when running the uninstall I get...

5. Execute Modification ./Sources/Who.php Test failed
  1. Replace ./Sources/Who.php Test failed
  2. Replace ./Sources/Who.php Test successful

Any suggestions?
Title: Re: Custom Pages
Post by: Robbo_ on March 19, 2009, 10:35:00 PM
Quote from: willerby on March 15, 2009, 07:22:38 PM
I have a member group that the admin panel refuse to accept - I check it to allow access to a page but it never includes it - although it includes all others selected.

If I select just that member group I get the 'must include a permission' error.

Am I missing a separate permission somewhere to allow this group access? If not, appears to be a bug somewhere...



I have looked into this and can't replicate the issues. What is the name of the membergroup you are trying to add?

Quote from: tfs on March 19, 2009, 09:56:59 PM
I installed CustomPages 1.07, and it was working when I tested it a few days ago.  But now I can't get it to work.  I have one page that worked when I first installed called test01, and I used to be able to see it.  Now when I try to view that page it just goes to the home page and acts like CustomPages is not there at all.

I'm running SMF 2/RC1 and using the default theme only.  Since installing CustomPages I installed AjaxChat Integration 3.0

Now when I try to add a page it won't save anything in the Page Body.  If I preview the page it comes up empty and I get a message that says "You need to fill out the Page Body", and if I try to save it I get the same message.  In either case whatever text I've entered into the body disappears and the page won't save.

So I thought I'd uninstall it, but when running the uninstall I get...

5. Execute Modification ./Sources/Who.php Test failed
  1. Replace ./Sources/Who.php Test failed
  2. Replace ./Sources/Who.php Test successful

Any suggestions?

Sounds to me lik the AjaxChat Integration 3.0 has broken the installation when it comes to the installation errors.

When someone doesn't have permission to view a certain page they are sent to the home page. When you go to view the page does the URL contain action=page or is it just your home page URL?

With the body issues I can't think of anything that could cause that issue with or without other mods as it is all handled by CustomPages files. Have you tried using both the HTML and BBCode editors?

I have been working on the next version which I am just about to start packaging. Upgrading to this version through the package manager should solve the body not being filled out issue however it may or may not fix the other issues.

EDIT: I just looked through the AjaxChat Integration mod and it shouldn't cause any conflicts with the changes mt mod makes. I guess you will just have to wait until I get the new version packaged and see if that helps. Also check if there is anything in your error log.
Title: Re: Custom Pages
Post by: tfs on March 19, 2009, 11:51:08 PM
QuoteWhen someone doesn't have permission to view a certain page they are sent to the home page. When you go to view the page does the URL contain action=page or is it just your home page URL?

The Custom Pages link points to http://xxxx.xxxxx.com/forum/index.php?action=page;sa=test01, but when I try to go to that link it immediately sends me to http://xxxx.xxxxx.com/forum/index.php.  I'm logged in as admin.

Two things from the error log, each showing up several times today.

The first from Custom Pages...

admin   Today at 05:26:25 PM 
xx.xx.xx.xx     9ff82346ca023e0225e78b01b0a079a8 
   Type of error: Undefined 
http://xxxx.xxxxx.com/forum/index.php?action=admin;area=pages;sa=edit;pid=test01 
8: Undefined variable: perms
File: /var/www/xxxx/forum/Sources/ManagePages.php
Line: 256

Line 256 of ManagePages.php has the following...
if($perms == 'error')


The second interesting error is from Simple Portal.

admin   Today at 05:24:43 PM 
xx.xx.xx.xx     9ff82346ca023e0225e78b01b0a079a8 
   Type of error: Undefined 
http://xxxx.xxxxx.com/forum/index.php? 
8: Undefined index: DESCRIPTION
File: /var/www/xxxx/forum/Sources/SPortal2.php
Line: 2047


Line 2047 of SPortal2.php has the following...
echo '<em>', $rss_data['DESCRIPTION'], '</em><br />';

QuoteWith the body issues I can't think of anything that could cause that issue with or without other mods as it is all handled by CustomPages files. Have you tried using both the HTML and BBCode editors?

Yes, they both act the same way.





Title: Re: Custom Pages
Post by: tfs on March 20, 2009, 12:04:02 AM
QuoteThe second interesting error is from Simple Portal.

I figured that one out from a post on their forum.  It was because of an RSS feed I had created today.
Title: Re: Custom Pages
Post by: Robbo_ on March 20, 2009, 12:17:03 AM
Quote from: tfs on March 19, 2009, 11:51:08 PM
The Custom Pages link points to http://xxxx.xxxxx.com/forum/index.php?action=page;sa=test01, (http://xxxx.xxxxx.com/forum/index.php?action=page;sa=test01,) but when I try to go to that link it immediately sends me to http://xxxx.xxxxx.com/forum/index.php. (http://xxxx.xxxxx.com/forum/index.php.)  I'm logged in as admin.
This means it thinks you don't have permission to view the page. In the current version admin can't see all pages, there are some which are restricted. Next version fixes this. The other problem might be with loading the page as if that fails it will also redirect to the main page.

Quote from: tfs on March 19, 2009, 11:51:08 PM
Two things from the error log, each showing up several times today.
The first error has been fixed in the next version and is unrelated to your problems.

The second error was related to showing the RSS feeds block in Simple Portal and I am guessing is fixed in the next version as it has a new RSS block (one your using is kinda hacky).

For the time being you should be able to use a HTML Simple Portal block to show your custom page. Hopefully my next version will fix your problems.

Also do you have any other mods installed?
Title: Re: Custom Pages
Post by: tfs on March 20, 2009, 12:31:58 AM
QuoteAlso do you have any other mods installed?

1. eNinja - Custom Pages 1.0.7
2. SMF Quiz 1.0.3
3. Cristalab Icon Set 1.0
4. AjaxChat Integration 3.0
5. SimplePortal 2.1.1
6. SMF Media Gallery 1.5.5
Title: Re: Custom Pages
Post by: tfs on March 20, 2009, 12:38:26 AM
QuoteThis means it thinks you don't have permission to view the page. In the current version admin can't see all pages, there are some which are restricted. Next version fixes this.

You're right.  When I change the permissions on the page (the one I created a few days ago "test01") to "everyone", I can now see the page.  All it says is "Test test test", and I'm still unable to modify the content of the page, nor can I add a new one, but I can at least see it.  Hopefully a new release will get me fixed up.
Title: Re: Custom Pages
Post by: Robbo_ on March 20, 2009, 02:40:59 AM
Version 1.0.9
    - Quick fix for version 1.0.8

Version 1.0.8
     - Fixed a problem with editing pages not remembering the permissions set when previewing your page
     - HTML editor now uses text variables properly
     - Added the rest of functionality to the HTML editor so it is just like the BBCode one except for 'remove formatting', 'toggle view' and smilies which will not be added
     - Changed how the page list is viewed so that lots of permissions or long URLs will not deface the page
     - Other small fixes
Title: Re: Custom Pages
Post by: tfs on March 20, 2009, 03:21:31 AM
I still get a "You need to fill out the Page Body" whenever I try to create a new page.  It refuses  to save any text that i put in the editor.  1.08
Title: Re: Custom Pages
Post by: tfs on March 20, 2009, 03:24:32 AM
Quote from: tfs on March 20, 2009, 03:21:31 AM
I still get a "You need to fill out the Page Body" whenever I try to create a new page.  It refuses  to save any text that i put in the editor.  1.08

Same with 1.09
Title: Re: Custom Pages
Post by: KahneFan on March 20, 2009, 03:38:50 AM
Great mod. Installed on 2.0RC1 and works well. Manually added a tab to my top menu (see "Extras (http://ipostyoupost.com/index.php?action=page;sa=Games)" tab)


If you ever do look at creating a tab, you could (maybe) make it easier on your self by only making 1 main menu tab, which the admin can name, and the create the pages within kind of like Bakers Dozen does. Maybe it wouldn't be easier... I don't know.
Title: Re: Custom Pages
Post by: Robbo_ on March 20, 2009, 06:15:22 AM
Quote from: tfs on March 20, 2009, 03:24:32 AM
Quote from: tfs on March 20, 2009, 03:21:31 AM
I still get a "You need to fill out the Page Body" whenever I try to create a new page.  It refuses  to save any text that i put in the editor.  1.08

Same with 1.09
See if it will let you uninstall properly now. If it doesn't then maybe we should have a chat on IRC about it.

Quote from: KahneFan on March 20, 2009, 03:38:50 AM
Great mod. Installed on 2.0RC1 and works well. Manually added a tab to my top menu (see "Extras (http://ipostyoupost.com/index.php?action=page;sa=Games)" tab)


If you ever do look at creating a tab, you could (maybe) make it easier on your self by only making 1 main menu tab, which the admin can name, and the create the pages within kind of like Bakers Dozen does. Maybe it wouldn't be easier... I don't know.
My next mod will go hand in hand with this one so that you can customize your sites links however you want to link to any custom pages. It will most likely be called Custom Links. Might make a custom home page mod for people who don't want to use a whole porta (or just add it to this mod). I wonder if there is any other mods I can make with 'Custom' in the name... custom... ummm.. text?  :p

Btw next version probably won't be up for at least a month and will hopefully include SMF 1.x support.
Title: Re: Custom Pages
Post by: 6aro on March 20, 2009, 07:18:23 AM
Quote from: tfs on March 20, 2009, 03:24:32 AM
Quote from: tfs on March 20, 2009, 03:21:31 AM
I still get a "You need to fill out the Page Body" whenever I try to create a new page.  It refuses  to save any text that i put in the editor.  1.08

Same with 1.09

I have this error too!
Title: Re: Custom Pages
Post by: Eclipse16V on March 20, 2009, 08:46:51 AM
I have this error too!
Title: Re: Custom Pages
Post by: tfs on March 20, 2009, 09:55:01 AM
Quote from: Robbo_ on March 20, 2009, 06:15:22 AM
See if it will let you uninstall properly now. If it doesn't then maybe we should have a chat on IRC about it.

Still the same error on the first instance of "Who.php"...


5. Execute Modification ./Sources/Who.php Test failed  
  1. Replace ./Sources/Who.php Test failed  

Find:
function determineActions($urls, $preferred_prefix = false)
{
global $txt, $user_info, $modSettings, $smcFunc, $context, $sourcedir;


Replace:
function determineActions($urls, $preferred_prefix = false)
{
global $txt, $user_info, $modSettings, $smcFunc, $context


After some investigation.... FOUND IT!  The problem is SMFQuiz.  It has split the two lines you're looking for.  See here...

function determineActions($urls, $preferred_prefix = false)
{ // SMFQuiz start
loadLanguage('SMFQuiz');
// SMFQuiz end
// SMFQuiz start
global $settings, $scripturl;
// SMFQuiz end

global $txt, $user_info, $modSettings, $smcFunc, $context, $sourcedir;


Of course, that means I've found the uninstall issue, but is this the same thing that breaks the inability to create or edit a new Custom Page?
Title: Re: Custom Pages
Post by: tfs on March 20, 2009, 01:10:16 PM
Some FUP... I ran the uninstall (allowing the error) and then edited Who.php by hand to remove ", $sourcedir" from the one line affected.  Of course when trying to run a reinstall of Custom Pages I get the same warning, because of the SMFQuiz items that have been inserted at the same position you are looking for in the replace.

So, as a note of interest, it would appear that Custom Pages and SMFQuiz are not compatible.

There ought to be a database to store this information, regarding incompatible mods.  Perhaps there is?
Title: Re: Custom Pages
Post by: Xavi-Nena on March 20, 2009, 09:46:32 PM
I cannot wait until the next version comes out...im so dying to have it work with 1.1.8
Title: Re: Custom Pages
Post by: Robbo_ on March 20, 2009, 10:03:25 PM
Quote from: 6aro on March 20, 2009, 07:18:23 AM
Quote from: tfs on March 20, 2009, 03:24:32 AM
Quote from: tfs on March 20, 2009, 03:21:31 AM
I still get a "You need to fill out the Page Body" whenever I try to create a new page.  It refuses  to save any text that i put in the editor.  1.08

Same with 1.09

I have this error too!
Can everyone with this error please post what mods they have installed.

Quote from: tfs on March 20, 2009, 01:10:16 PM
Some FUP... I ran the uninstall (allowing the error) and then edited Who.php by hand to remove ", $sourcedir" from the one line affected.  Of course when trying to run a reinstall of Custom Pages I get the same warning, because of the SMFQuiz items that have been inserted at the same position you are looking for in the replace.

So, as a note of interest, it would appear that Custom Pages and SMFQuiz are not compatible.

There ought to be a database to store this information, regarding incompatible mods.  Perhaps there is?
To reinstall simple put the global back how it was before (add $sourcedir). Next version I will sort out the compatibility issues with that mod.

The chances are that even when you reinstall it won't work as other people are now reporting the same issue. Hopefully I will track it down today. If I could reproduce it I would have had it fixed long ago :/


EDIT: I have found the problem and the reason it wasn't happening to everyone. A temporary workaround until I get a fix up is to click the (http://www.simplemachines.org/community/Themes/smsite/images/bbc/toggle.gif)(Toggle View) button so that you are editing the page without previewing what it looks like ie []text (minus the ) instead of text.
Title: Re: Custom Pages
Post by: Robbo_ on March 20, 2009, 11:17:09 PM
Version 1.0.10
    - Disabled the WYSIWYG features of the BBCode editor as it was causing problems
Title: Re: Custom Pages
Post by: 6aro on March 22, 2009, 01:56:59 PM
Now, everything is fine.    Thanks!
Title: Re: Custom Pages
Post by: Harvester on March 27, 2009, 11:53:11 PM
this mod looks awesome! Any chance of making it work with 1.1.8 please?
Title: Re: Custom Pages
Post by: Zagdul on March 28, 2009, 03:28:12 AM
I can't seem to find the configuration for this in the Admin Control panel.

Where is it supposed to be located?

Never Mind... Not compatible with 1.1.8 =*(.
Title: Re: Custom Pages
Post by: Robbo_ on March 29, 2009, 04:02:32 AM
I will port it to 1.1.8 when I get a chance.
Title: Re: Custom Pages
Post by: Harvester on March 29, 2009, 12:34:34 PM
Quote from: Robbo_ on March 29, 2009, 04:02:32 AM
I will port it to 1.1.8 when I get a chance.

awesome! thank you! :D
Title: Re: Custom Pages
Post by: Xavi-Nena on March 29, 2009, 08:13:52 PM
Quote from: Robbo_ on March 29, 2009, 04:02:32 AM
I will port it to 1.1.8 when I get a chance.

oh yeah! that would be awesome..i look forward to that too.
Title: Re: Custom Pages
Post by: Yigal on April 11, 2009, 09:36:43 PM
http://www.simplemachines.org/community/index.php?topic=304294.msg2012780#msg2012780
Title: Re: Custom Pages
Post by: Mraza on April 12, 2009, 08:08:19 AM
it would be great if it is compatible with 1.1.8.... thanks
Title: Re: Custom Pages
Post by: Xavi-Nena on April 12, 2009, 02:21:53 PM
Quote from: Robbo_ on March 29, 2009, 04:02:32 AM
I will port it to 1.1.8 when I get a chance.

Quoteit would be great if it is compatible with 1.1.8.... thanks

yes I am waiting for that too.. :)
Title: Re: Custom Pages
Post by: abbyh on April 17, 2009, 01:40:57 AM
I think somebody has deleted my reply on this thread. Why?

Again, I am having problem regarding this mod. Though I installed this correctly, and able to add a page, I can't edit the page, and when I click the 'Edit page' tab, this error is appearing.

An Error Has Occurred!
Wrong value type sent to the database. Array of integers expected. (id)

I hope the modder will help me on this. Thanks in advance.
Title: Re: Custom Pages
Post by: Robbo_ on April 17, 2009, 03:12:01 AM
I'll look into it when I get a chance.

In the mean time answer soem questions...

What is the full error (go to the error log)?

What type of database are you using?

What other mods are installed?

What version of SMF are you using?
Title: Re: Custom Pages
Post by: mattchewone on April 17, 2009, 08:42:35 AM
I have installed it and it is running fine. But am i missing something as i have created the page but it isnt being displayed any where. Surely it should be along the top menu bar, but it isnt.

Could it be that i have portamx installed?
Title: Re: Custom Pages
Post by: KahneFan on April 17, 2009, 10:05:40 AM
Quote from: abbyh on April 17, 2009, 01:40:57 AM
I think somebody has deleted my reply on this thread. Why?

SMF transferred to a new SQL server, or something like that, yesterday. Some posts were missing for a little while, but (should) be back by now.
Title: Re: Custom Pages
Post by: Robbo_ on April 17, 2009, 11:05:48 PM
Quote from: mattchewone on April 17, 2009, 08:42:35 AM
I have installed it and it is running fine. But am i missing something as i have created the page but it isnt being displayed any where. Surely it should be along the top menu bar, but it isnt.

Could it be that i have portamx installed?
The custom pages mod is to make pages. It doesn't make links to pages, that is up to the theme until my next mod which will go hand in hand with this mode, custom links.
To view your page you simply need to make a link to the url that is shown in the admin area.
Title: Re: Custom Pages
Post by: KahneFan on April 17, 2009, 11:24:13 PM
There are a couple of custom tabs mods which you can use. They both of a field to enter a URL, which you would use the URL of your custom page, then you can enter a tab title.
Title: Re: Custom Pages
Post by: Kyle P on April 18, 2009, 12:35:43 AM
This mod is accutly pretty awesome [I've used it once].

Thanks for such a feature =]
Title: Re: Custom Pages
Post by: abbyh on April 18, 2009, 12:56:27 AM
Quote from: Robbo_ on April 17, 2009, 03:12:01 AM
I'll look into it when I get a chance.

In the mean time answer soem questions...

What is the full error (go to the error log)?

What type of database are you using?

What other mods are installed?

What version of SMF are you using?

Hi, I am sorry formy late reply.

Here are thedetails from the Error log.

Type of error: Critical

URL http://nlelp.org/nlelp/index.php?action=admin;area=pages;ce3e87cd=09eac082c0300dba1348e6a6e4eb179c

Wrong value type sent to the database. Array of integers expected. (id)
Function: loadPages

File: /home/abbyh/public_html/nlelp/Sources/ManagePages.php
Line: 166

Database? not sure. But is MySQL.

My Mods are:

1.     New Topic Button     1.0     [ Uninstall ]
2.    Enhanced Dropdown    1.1    [ Uninstall ]
3.    PM Readed    1.0    [ Uninstall ]
4.    RSS Feed Icon    1.1    [ Uninstall ]
5.    Post_Board_Select    1.0    [ Uninstall ]
6.    Avatar On Board RC1    2.1    [ Uninstall ]
7.    eNinja - Custom Pages    1.0.10    [ Uninstall ]
8.    Date_Registerd on post    1.0    [ Uninstall ]
9.    Thank-O-Matic    2.0 Beta 9    [ Uninstall ]
10.    Cat Avatars    1.0    [ Uninstall ]
11.    Animated Avatars    1.0    [ Uninstall ]
12.    Dog Avatars    1.0    [ Uninstall ]
13.    Amazon MP3    1.0    [ Uninstall ]
14.    Advanced Login Form    1.2    [ Uninstall ]
15.    Language Drop    1.0    [ Uninstall ]
16.    Board Message Icon    1.0    [ Uninstall ]
17.    View Single Post    1.0    [ Uninstall ]
18.    Single Category    1.0    [ Uninstall ]
19.    Quick PM    1.0    [ Uninstall ]
20.    Search Focus Dropdown    1.2    [ Uninstall ]
21.    Activate account redirection    0.1    [ Uninstall ]
22.    Topic Starter Moderator    1.0    [ Uninstall ]
23.    New Style Message Icon    1.1    [ Uninstall ]
24.    Display Location on posts    1.0    [ Uninstall ]
25.    Permissions_Info    1.4    [ Uninstall ]
26.    MessagePreviewOnHover    1.7    [ Uninstall ]
27.    Redirect on Login and/or Logout mod    0.3    [ Uninstall ]
28.    Auto Merge Double Post    1.2    [ Uninstall ]
29.    EmailValidator    1.0    [ Uninstall ]
30.    FontandSizeDropdown_1.3    1.3    [ Uninstall ]

And SMF version is 2.0RC1.

Thank You fo Replying.

And to KahneFan, Thank you for that explanation regarding my post being lost.
Title: Re: Custom Pages
Post by: Robbo_ on April 18, 2009, 05:07:32 AM
That URL is wrong for editing the page. If I remember correctly it should have ;sa=edit;pid={page_id}  instead of your session.

For now you can manually edit the pages by changing the url. No idea why it is wrong for you but I will look into it in more detail when I have time. Unfotunely I have a lot of work backed up so won't be able to get to it for a while.

Full URL to use: http://nlelp.org/nlelp/index.php?action=admin;area=pages;sa=edit;pid={page_id}
Title: Re: Custom Pages
Post by: abbyh on April 18, 2009, 06:44:09 AM
Hi, it redirects me to the page edit though, when I click the save button, the same error is appearing again. But the page has appeared edited. Maybe next time I'll do some edit or removing pages, I'd do a manual input of the URL at the 'browser'?

Anyway, despite of this error, I'd like to thank you having this mod.
Title: Re: Custom Pages
Post by: Robbo_ on April 18, 2009, 09:02:01 AM
It's a very unusual error. Putting the URL into the browser manually is all you can do for the time being unfortunly. You could try a reinstall just incase something went wrong, just be sure not to delete the data when asked during uninstall so you don't lose your pages.

And thanks to the kind feedback about my mod. It motivates me to make more (oh and this one better). :)
Title: Re: Custom Pages
Post by: vickiing on April 23, 2009, 05:33:02 AM
is it working on SMF 1.1.8?
Title: Re: Custom Pages
Post by: vickiing on April 25, 2009, 11:21:56 AM
" is it working on SMF 1.1.8? " no one to answer ?  :(
Title: Re: Custom Pages
Post by: Robbo_ on April 25, 2009, 11:46:48 AM
Compatible With: 2.0 Beta 3.1 Public, 2.0 Beta 4, 2.0 RC1

Quote from: Robbo_ on March 29, 2009, 04:02:32 AM
I will port it to 1.1.8 when I get a chance.
Title: Re: Custom Pages
Post by: jpaytoncfd on April 27, 2009, 08:51:14 AM
anyone know how I would embed a php code into a page? I have a top sites script that would be nice if I could embed.

forum: http://chforum.netau.net
Top Sites: http://chforum.netau.net/top100

tried and all it does is shows code, maybe I did something wrong. yes I switched to HTML edtior.

Thanks,
Joe
Title: Re: Custom Pages
Post by: jpaytoncfd on April 27, 2009, 09:06:11 AM
this is the code that shows:
fetch("SELECT * FROM {$CONF['sql_prefix']}_settings", __FILE__, __LINE__); $CONF = array_merge($CONF, $settings); $ad_breaks = explode(',', $CONF['ad_breaks']); $CONF['ad_breaks'] = array(); foreach ($ad_breaks as $key => $value) { $CONF['ad_breaks'][$value] = $value; } $result = $DB->query("SELECT category, skin FROM {$CONF['sql_prefix']}_categories ORDER BY category", __FILE__, __LINE__); while (list($category, $skin) = $DB->fetch_array($result)) { $CONF['categories'][$category] = $skin; } $CONF['skins_path'] = "{$CONF['path']}/skins"; $CONF['skins_url'] = "{$CONF['list_url']}/skins"; $TMPL['skins_url'] = $CONF['skins_url']; $TMPL['list_name'] = $CONF['list_name']; $TMPL['list_url'] = $CONF['list_url']; // Combine the GET and POST input $FORM = array_merge($_GET, $_POST); // The language file require_once("{$CONF['path']}/languages/{$CONF['default_language']}.php"); // Determine the category and skin if (isset($FORM['cat']) && isset($CONF['categories'][$FORM['cat']])) { $TMPL['skin_name'] = $CONF['categories'][$FORM['cat']]; } else { $TMPL['skin_name'] = $CONF['default_skin']; } if (!is_dir("{$CONF['path']}/skins/{$TMPL['skin_name']}/") || !$TMPL['skin_name']) { $TMPL['skin_name'] = $CONF['default_skin']; } if (!is_dir("{$CONF['path']}/skins/{$CONF['default_skin']}/")) { $TMPL['skin_name'] = 'fusion'; } require_once("{$CONF['path']}/sources/misc/skin.php"); // Is it a new day/week/month? list($last_new_day, $last_new_week, $last_new_month, $TMPL['original_version']) = $DB->fetch("SELECT last_new_day, last_new_week, last_new_month, original_version FROM {$CONF['sql_prefix']}_etc", __FILE__, __LINE__); $time = time() + (3600*$CONF['time_offset']); $current_day = date('d', $time); $current_week = date('W', $time); $current_month = date('m', $time); if ($last_new_day != $current_day) { require_once("{$CONF['path']}/sources/misc/new_day.php"); new_day($current_day); } if ($last_new_week != $current_week) { require_once("{$CONF['path']}/sources/misc/new_day.php"); new_week($current_week); } if ($last_new_month != $current_month) { require_once("{$CONF['path']}/sources/misc/new_day.php"); new_month($current_month); } // Adjust the output text based on days, weeks, or months if ($CONF['ranking_period'] == 'weekly') { $LNG['g_this_period'] = $LNG['g_this_week']; $LNG['g_last_period'] = $LNG['g_last_week']; } elseif ($CONF['ranking_period'] == 'monthly') { $LNG['g_this_period'] = $LNG['g_this_month']; $LNG['g_last_period'] = $LNG['g_last_month']; } else { $LNG['g_this_period'] = $LNG['g_today']; $LNG['g_last_period'] = $LNG['g_yesterday']; } // Check if installer is there if (file_exists("{$CONF['path']}/install/")) { $TMPL['header'] = $LNG['g_error']; $base = new base; $base->error($LNG['g_delete_install']); } // Check for hits in require_once("{$CONF['path']}/sources/in.php"); $in = new in; // Array containing the valid .php files from the sources directory $action = array( 'admin' => 1, 'in' => 1, 'join' => 1, 'lost_pw' => 1, 'out' => 1, 'page' => 1, 'rankings' => 1, 'rate' => 1, 'search' => 1, 'stats' => 1, 'user_cpl' => 1 ); // Require the appripriate file if (isset($FORM['a']) && isset($action[$FORM['a']])) { $page_name = $FORM['a']; } else { $page_name = 'rankings'; } require_once("{$CONF['path']}/sources/{$page_name}.php"); $page = new $page_name; // Display the page $skin = new main_skin('wrapper'); echo $skin->make(); $DB->close(); // Print out debugging info, if necessary if ($CONF['debug']) { echo '
'; foreach ($DB->queries as $value) { echo "
{$value}
"; } echo '
';
  print_r($_REQUEST);
  echo '
'; echo '
'; } ?>


This is the code Im trying to get to work:
<?php
//===========================================================================\\
// Aardvark Topsites PHP 5.2                                                 \\
// Copyright (c) 2000-2009 Jeremy Scheff.  All rights reserved.              \\
//---------------------------------------------------------------------------\\
// http://www.aardvarktopsitesphp.com/                http://www.avatic.com/ \\
//---------------------------------------------------------------------------\\
// This program is free software; you can redistribute it and/or modify it   \\
// under the terms of the GNU General Public License as published by the     \\
// Free Software Foundation; either version 2 of the License, or (at your    \\
// option) any later version.                                                \\
//                                                                           \\
// This program is distributed in the hope that it will be useful, but       \\
// WITHOUT ANY WARRANTY; without even the implied warranty of                \\
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General \\
// Public License for more details.                                          \\
//===========================================================================\\

// Help prevent register_globals injection
define('ATSPHP', 1);
$CONF = array();
$FORM = array();
$TMPL = array();

// Change the path to your full path if necessary
$CONF['path'] = '.';
$TMPL['version'] = '5.2.1';
// Set to 1 to display SQL queries and GET/POST/COOKIE data
$CONF['debug'] = 0;

// Require some classes and start the timer
require_once("{$CONF['path']}/sources/misc/classes.php");
$TIMER = new timer;

// Connect to the database
// Set the last argument of $DB->connect to 1 to enable debug mode
require_once("{$CONF['path']}/settings_sql.php");
require_once(
"{$CONF['path']}/sources/sql/{$CONF['sql']}.php");
$DB = "sql_{$CONF['sql']}";
$DB = new $DB;
$DB->connect($CONF['sql_host'], $CONF['sql_username'], $CONF['sql_password'], $CONF['sql_database'], $CONF['debug']);

// Settings
$settings = $DB->fetch("SELECT * FROM {$CONF['sql_prefix']}_settings", __FILE__, __LINE__);
$CONF = array_merge($CONF, $settings);

$ad_breaks = explode(',', $CONF['ad_breaks']);
$CONF['ad_breaks'] = array();
foreach (
$ad_breaks as $key => $value) {
 
$CONF['ad_breaks'][$value] = $value;
}

$result = $DB->query("SELECT category, skin FROM {$CONF['sql_prefix']}_categories ORDER BY category", __FILE__, __LINE__);
while (list(
$category, $skin) = $DB->fetch_array($result)) {
 
$CONF['categories'][$category] = $skin;
}

$CONF['skins_path'] = "{$CONF['path']}/skins";
$CONF['skins_url'] = "{$CONF['list_url']}/skins";
$TMPL['skins_url'] = $CONF['skins_url'];
$TMPL['list_name'] = $CONF['list_name'];
$TMPL['list_url'] = $CONF['list_url'];

// Combine the GET and POST input
$FORM = array_merge($_GET, $_POST);

// The language file
require_once("{$CONF['path']}/languages/{$CONF['default_language']}.php");

// Determine the category and skin
if (isset($FORM['cat']) && isset($CONF['categories'][$FORM['cat']])) {
 
$TMPL['skin_name'] = $CONF['categories'][$FORM['cat']];
}
else {
 
$TMPL['skin_name'] = $CONF['default_skin'];
}
if (!
is_dir("{$CONF['path']}/skins/{$TMPL['skin_name']}/") || !$TMPL['skin_name']) {
 
$TMPL['skin_name'] = $CONF['default_skin'];
}
if (!
is_dir("{$CONF['path']}/skins/{$CONF['default_skin']}/")) {
 
$TMPL['skin_name'] = 'fusion';
}
require_once(
"{$CONF['path']}/sources/misc/skin.php");

// Is it a new day/week/month?
list($last_new_day, $last_new_week, $last_new_month, $TMPL['original_version']) = $DB->fetch("SELECT last_new_day, last_new_week, last_new_month, original_version FROM {$CONF['sql_prefix']}_etc", __FILE__, __LINE__);
$time = time() + (3600*$CONF['time_offset']);
$current_day = date('d', $time);
$current_week = date('W', $time);
$current_month = date('m', $time);
if (
$last_new_day != $current_day) {
 require_once(
"{$CONF['path']}/sources/misc/new_day.php");
 
new_day($current_day);
}
if (
$last_new_week != $current_week) {
 require_once(
"{$CONF['path']}/sources/misc/new_day.php");
 
new_week($current_week);
}
if (
$last_new_month != $current_month) {
 require_once(
"{$CONF['path']}/sources/misc/new_day.php");
 
new_month($current_month);
}

// Adjust the output text based on days, weeks, or months
if ($CONF['ranking_period'] == 'weekly') {
 
$LNG['g_this_period'] = $LNG['g_this_week'];
 
$LNG['g_last_period'] = $LNG['g_last_week'];
}
elseif (
$CONF['ranking_period'] == 'monthly') {
 
$LNG['g_this_period'] = $LNG['g_this_month'];
 
$LNG['g_last_period'] = $LNG['g_last_month'];
}
else {
 
$LNG['g_this_period'] = $LNG['g_today'];
 
$LNG['g_last_period'] = $LNG['g_yesterday'];
}

// Check if installer is there
if (file_exists("{$CONF['path']}/install/")) {
 
$TMPL['header'] = $LNG['g_error'];
 
$base = new base;
 
$base->error($LNG['g_delete_install']);
}

// Check for hits in
require_once("{$CONF['path']}/sources/in.php");
$in = new in;

// Array containing the valid .php files from the sources directory
$action = array(
           
'admin' => 1,
           
'in' => 1,
           
'join' => 1,
           
'lost_pw' => 1,
           
'out' => 1,
           
'page' => 1,
           
'rankings' => 1,
           
'rate' => 1,
           
'search' => 1,
           
'stats' => 1,
           
'user_cpl' => 1
         
);

// Require the appripriate file
if (isset($FORM['a']) && isset($action[$FORM['a']])) {
 
$page_name = $FORM['a'];
}
else {
 
$page_name = 'rankings';
}

require_once(
"{$CONF['path']}/sources/{$page_name}.php");
$page = new $page_name;

// Display the page
$skin = new main_skin('wrapper');
echo
$skin->make();

$DB->close();

// Print out debugging info, if necessary
if ($CONF['debug']) {
 echo
'<div style="clear: both;">';
 foreach (
$DB->queries as $value) {
   echo
"<hr /><pre>{$value}</pre>";
 }
 echo
'<hr /><pre>';
 
print_r($_REQUEST);
 echo
'</pre>';
 echo
'</div>';
}
?>

Title: Re: Custom Pages
Post by: Robbo_ on April 27, 2009, 12:44:51 PM
This mod doesn't support PHP in pages. If you are trying to use PHP then you should do it properly using your own action and PHP files. I'm sure you can find out how to do that with a little searching. There might be other mods that do it already, custom action mod maybe?
Title: Re: Custom Pages
Post by: Darkorical on April 27, 2009, 02:29:03 PM
alright maybe I am missing something. but can someone tell me the difference between this and

Custom Action Mod by winrules (http://custom.simplemachines.org/mods/index.php?mod=331) | Forum Thread (http://www.simplemachines.org/community/index.php?topic=86793.0)

aside from Custom Action Mod supports php pages and is already 1.1.8 compatable
Title: Re: Custom Pages
Post by: jpaytoncfd on April 28, 2009, 04:23:01 AM
from just looking at the other ones decription I think it gives you blank pages, but im not 100% sure so im going to give it a try.

update: im using 2.0 RC1 and that other mod dosent work at all, the devoloper thread is 22 pages long all with different problems. As far as whats wrong with it you name it. once I got to the actions screen, (by using the URL) I tried to add a page which made a page that had my index theme but the stuff I put in to it dident work, snytax errors.
Title: Re: Custom Pages
Post by: jpaytoncfd on April 28, 2009, 05:35:19 AM
Quote from: Robbo_ on April 27, 2009, 12:44:51 PM
This mod doesn't support PHP in pages. If you are trying to use PHP then you should do it properly using your own action and PHP files. I'm sure you can find out how to do that with a little searching. There might be other mods that do it already, custom action mod maybe?

Darn might it be considered in the furtre? I use your mod for a coupple other things and its great, adding php support would make it my best mod bay far. besides portamx
Title: Re: Custom Pages
Post by: Robbo_ on April 28, 2009, 11:53:18 PM
When I port to 1.x I will think about PHP support.
Title: Re: Custom Pages
Post by: Darkorical on April 29, 2009, 12:32:22 PM
Quote from: jpaytoncfd on April 28, 2009, 04:23:01 AM
from just looking at the other ones decription I think it gives you blank pages, but im not 100% sure so im going to give it a try.

update: im using 2.0 RC1 and that other mod dosent work at all, the devoloper thread is 22 pages long all with different problems. As far as whats wrong with it you name it. once I got to the actions screen, (by using the URL) I tried to add a page which made a page that had my index theme but the stuff I put in to it dident work, snytax errors.

I'm currently using Custom Actions mod to create and display 22 different PHP pages and it is working just fine for my site. but I will install this one on a test site to see how it works altho without PHP support its pretty much useless for me as everything I do with it is keyed off  at least user name and or member group variables
Title: Re: Custom Pages
Post by: Enders on May 08, 2009, 09:31:09 AM
1) It should be possible to make an html/php page if needed.
2) Is it possible to remove "how many views" for certain pages?
3) How do I remove the frame on some of the pages?
Title: Re: Custom Pages
Post by: Robbo_ on May 08, 2009, 06:26:46 PM
You can make HTML pages, not PHP.
Next version will have an option to remove the views of each page and also options to use custom CSS on each page.

I'm still not decided on if this will ever support PHP pages.

1.1.x support will hopefully come soon, I still haven't had time to port this.
Title: Re: Custom Pages
Post by: amlucent on May 13, 2009, 08:17:59 PM
This mod BORKS nnennos shoutbox..

If you place

Quoteglobal $scripturl;

at the beginning of your edit to Modifications.english.php it works great though.
Title: Re: Custom Pages
Post by: Robbo_ on May 14, 2009, 01:39:46 AM
Cheers mate. I'll add that to the next version.
Title: Re: Custom Pages
Post by: KahneFan on May 22, 2009, 03:21:54 PM
Will you be updating for 2.0RC1.1?
Title: Re: Custom Pages
Post by: fdLP. on May 22, 2009, 03:26:20 PM
Is it or will you make it compatible with 1.1.9?
Title: Re: Custom Pages
Post by: Robbo_ on May 22, 2009, 05:05:25 PM
It will be when I get time to port it to 1.1.x.
Title: Re: Custom Pages
Post by: RedCairo on May 23, 2009, 05:12:40 AM
Thank you for this terrific mod!!

I saw the note that one could "disable the wysiwyg editor" and "use html between  tags". But I can't find any place in the menu (I mean... there's only two simple screens... where could it be hiding... :-)) that lets me disable the editor.

For a few pages (not all) I want to be able to put in an iFrame and pull a page from my website on another server into my simple portal/smf. So I need html to work. Can you give me a hint as to how to make this happen?

Thanks again!!

PJ

Title: Re: Custom Pages
Post by: Robbo_ on May 23, 2009, 06:06:37 AM
There is a link under "Page Body:" which says "Use HTML".
Title: Re: Custom Pages
Post by: RedCairo on May 25, 2009, 01:35:20 PM
Thanks, got it.

So I spent days getting these awesome custom pages to work.

Then SMF said I had to upgrade to the next RC level, and I had to uninstall everything, upgrade, then reinstall my mods.

Blessedly, simple portal KEPT all its settings, thank god!  I thought I was going to have to redo all that stuff.

But Custom Pages doesn't work, turns out it tells me "file is either corrupted or doesn't work for this version". I'm guessing it's a version issue. Wish I'd looked at that before I upgraded, though I was so hoping maybe the bleeping text editor problems would have been fixed in this version I just kinda spaced.

So... now the site I just designed is history. Any idea when the 2.0 RC1.1 version might be available?

Many thanks,
Palyne
Title: Re: Custom Pages
Post by: RedCairo on May 25, 2009, 01:45:04 PM
Never mind. I just discovered that I can "un-install" a forum upgrade just as much as I can a mod, so I reverted to the previous version until you get this mod updated. :-)  Thanks.  Palyne
Title: Re: Custom Pages
Post by: Robbo_ on May 25, 2009, 04:39:42 PM
I will make it compatable with RC 1-1 as soon as I have free time. If I haven't done it by the end of the week then remind me in this thread.
Title: Re: Custom Pages
Post by: Drover on May 28, 2009, 04:24:00 PM
Quote from: Robbo_ on May 25, 2009, 04:39:42 PM
I will make it compatable with RC 1-1 as soon as I have free time. If I haven't done it by the end of the week then remind me in this thread.

Perfect timing for me!  Thanks!
Title: Re: Custom Pages
Post by: Robbo_ on May 28, 2009, 05:08:32 PM
I should be able to find time to do this on Sunday.
Title: Re: Custom Pages
Post by: Drover on June 01, 2009, 07:54:34 AM
Any chance it's done?  :D
Title: Re: Custom Pages
Post by: Robbo_ on June 01, 2009, 09:33:49 AM
Will be very soon.
Title: Re: Custom Pages
Post by: Robbo_ on June 04, 2009, 07:42:32 AM
Version 1.0.11
     - Fixed compatability issues with various mods
     - Will now install/upgrade on SMF 2.0 RC1-1
     - Added additional options to each page
     - Added the ability to style each individual page
     - Added session checks to increase security

Next version will support PHP pages which will be the last feature I plan to add to this mod. Then when everything is working fine for everyone I will port it to SMF 1.1.9.
Title: Re: Custom Pages
Post by: Arveles on June 04, 2009, 07:54:16 PM
error:
Parse error: syntax error, unexpected $end in /home/eleleyizor/domains/egitimforumu.com/public_html/SSI.php on line 2296
Title: Re: Custom Pages
Post by: dav12 on June 04, 2009, 10:17:29 PM
When I click either Edit Pages or New Page, the following database error comes up:

Quote
Database Error

Table 'gamemas3_royal.smf_pages' doesn't exist
File: /home/gamemas3/public_html/Sources/ManagePages.php
Line: 133
Title: Re: Custom Pages
Post by: Robbo_ on June 04, 2009, 11:10:41 PM
Quote from: <<Anadolu>> on June 04, 2009, 07:54:16 PM
error:
Parse error: syntax error, unexpected $end in /home/eleleyizor/domains/egitimforumu.com/public_html/SSI.php on line 2296
Did you install or upgrade? Can you attach your SSI.php here please.
What SMF version?

Quote from: dav12 on June 04, 2009, 10:17:29 PM
When I click either Edit Pages or New Page, the following database error comes up:

Quote
Database Error

Table 'gamemas3_royal.smf_pages' doesn't exist
File: /home/gamemas3/public_html/Sources/ManagePages.php
Line: 133
I don't know why the table is missing, kinda weird.
Did you install or upgrade?
Try reinstalling to fix the problem.
What SMF version?

I'll look into these issues more as soon as you answer the questions so I can get a fix up asap.

Has anyone else installed without any problems?

EDIT: working on a fix to the database problem now, should be up very soon.
Title: Re: Custom Pages
Post by: dav12 on June 04, 2009, 11:38:28 PM
Quote from: Robbo_ on June 04, 2009, 11:10:41 PM
I don't know why the table is missing, kinda weird.
Did you install or upgrade?
Try reinstalling to fix the problem.
What SMF version?

I'll look into these issues more as soon as you answer the questions so I can get a fix up asap.

Has anyone else installed without any problems?

EDIT: working on a fix to the database problem now, should be up very soon.

Okay, I was going to tell you that you missed something that is suppose to create the database table.

Because I tried it on my test site...fresh install, same problem.

By the way, both my main & test sites are fresh SMF 2.0RC1-1 installs.

Can't wait for the fix. Good luck 8)
Title: Re: Custom Pages
Post by: Robbo_ on June 04, 2009, 11:40:25 PM
Quote from: dav12 on June 04, 2009, 11:38:28 PM
Quote from: Robbo_ on June 04, 2009, 11:10:41 PM
I don't know why the table is missing, kinda weird.
Did you install or upgrade?
Try reinstalling to fix the problem.
What SMF version?

I'll look into these issues more as soon as you answer the questions so I can get a fix up asap.

Has anyone else installed without any problems?

EDIT: working on a fix to the database problem now, should be up very soon.

Okay, I was going to tell you that you missed something that is suppose to create the database table.

Because I tried it on my test site...fresh install, same problem.

By the way, both my main & test sites are fresh SMF 2.0RC1-1 installs.

Can't wait for the fix. Good luck 8)
All fixed!

Version 1.0.12
    - Fixed problem with package installation
Title: Re: Custom Pages
Post by: dav12 on June 05, 2009, 12:19:00 AM
After I created the page, when I visit the link, it leads me right to the forum index.

Is it suppose to do that or am I missing something?
Title: Re: Custom Pages
Post by: Robbo_ on June 05, 2009, 12:25:13 AM
What permissions have you set on the page? My fresh install is working fine.
Title: Re: Custom Pages
Post by: dav12 on June 05, 2009, 12:48:08 AM
Okay, never mind, I got it.

Had to re-parse the /index & /Sources/Admin.php

The custom page codes were actually missing.

Thanks a bunch :D
Title: Re: Custom Pages
Post by: dav12 on June 06, 2009, 09:46:16 AM
Is it possible that I can get a search box code that targets the content(s) of specific custom page(s) that I create.

Because I've tried attaching certain search box codes to some of my custom pages but they end up returning a "404" error or jumping to my index.

So I thought it would be cool if there was a code that is able to search specifically, on/within certain pages.

Thanks.
Title: Re: Custom Pages
Post by: CerebralJam on June 07, 2009, 07:57:09 AM
Hi there, this sounds like a really exciting Mod...

Not sure it will do what I want so placing a query here.  I don't know php!  And yeah, that's rather odd for someone running a forum that runs on it...  :-[

BUT.

I would like to modify the really, really boring profile page so that members can edit it to add their personalisation - I run an online sharing singing site... (mouthful) and it would be nice for them to be able to add links to songs, embedded widgets, photos, comments from users etc.

Is it possible to integrate this mod to allow that?  Simple forums is badly lacking the personalisation side of things - and I know this would make it 90% more attractive for my users.  And me.

I am used to html and CSS, so have been trying to work out for ages how to do this...

I'm on RC2 but not the latest because I am fearful of uninstalling all the mods to reinstall, I was glad they worked the first time and really wish they'd make that link through to automate the upgrade work!

Let me know!  If this won't work or it is too much work to recreate the profile page?  ARgggh because of the php working for everything else, would you consider creating a profile mod that does do this?  Would be fantastic ... heh.  I know time is limited! 

Appreciate that you have even done this.  I'm going to download and look at it in the meantime... thanks.
Title: Re: Custom Pages
Post by: Robbo_ on June 07, 2009, 10:43:09 AM
Quote from: dav12 on June 06, 2009, 09:46:16 AM
Is it possible that I can get a search box code that targets the content(s) of specific custom page(s) that I create.

Because I've tried attaching certain search box codes to some of my custom pages but they end up returning a "404" error or jumping to my index.

So I thought it would be cool if there was a code that is able to search specifically, on/within certain pages.

Thanks.
You want it so that when someone searches your forums it also searches the custom pages content right?
I might add that depending on how hard it will be since I have never looked at the SMF search source files.
Title: Re: Custom Pages
Post by: CerebralJam on June 07, 2009, 11:04:31 AM
 :D  Okay 2 RC1  gimme a break!  :P

I live in the future.  Always hopeful.

Hmmm.

Thanks anyway.

I suppose I could redirect to a clone page and back?  LOL
Title: Re: Custom Pages
Post by: dav12 on June 07, 2009, 09:50:25 PM
Quote from: Robbo_ on June 07, 2009, 10:43:09 AM
You want it so that when someone searches your forums it also searches the custom pages content right?
I might add that depending on how hard it will be since I have never looked at the SMF search source files.

Yes but preferably, one that searches only select custom pages per setting/configuration.
Title: Re: Custom Pages
Post by: CowboyLogic on June 08, 2009, 12:34:42 AM
Error when installing Customer Pages on 2.0 RTC1-1

This is where you create, edit and remove custom pages. It is all fairly straight forward. The only thing to keep in mind is that the page ID needs to be unique. Support and feedback here.

An Error Has Occurred!
Wrong value type sent to the database. Array of integers expected. (id) 

This was the latest .12 release... any ideas?
Title: Re: Custom Pages
Post by: Robbo_ on June 08, 2009, 01:10:14 AM
Quote from: dav12 on June 07, 2009, 09:50:25 PM
Quote from: Robbo_ on June 07, 2009, 10:43:09 AM
You want it so that when someone searches your forums it also searches the custom pages content right?
I might add that depending on how hard it will be since I have never looked at the SMF search source files.

Yes but preferably, one that searches only select custom pages per setting/configuration.
You mean like using the browsers search function?

Quote from: CowboyLogic on June 08, 2009, 12:34:42 AM
Error when installing Customer Pages on 2.0 RTC1-1

This is where you create, edit and remove custom pages. It is all fairly straight forward. The only thing to keep in mind is that the page ID needs to be unique. Support and feedback here.

An Error Has Occurred!
Wrong value type sent to the database. Array of integers expected. (id)  

This was the latest .12 release... any ideas?
I think I have found the problem. Go into Sources/ManagePages.php, line 153.
Replace the code before 'default:' and 'break;' with the following and see if it fixes your problem.


                // Empty perms
                $perms = '';

                // Explode the groups.
            $groups = explode(',', $row['page_perms']);

            // Now query all the groups used.
            if (!empty($groups))
                {
                    $result = $smcFunc['db_query']('', '
                   SELECT group_name
                   FROM {db_prefix}membergroups
                   WHERE id_group IN ({array_int:id})
                   ORDER BY id_group ASC ' ,
                   array(
                      'id' => $groups,
                   )
                );

                // Loop through and make the $perms value.
                while($row2 = $smcFunc['db_fetch_assoc']($result))
                   $perms .= $row2['group_name'] . ', ';

                // I am free!
                $smcFunc['db_free_result']($result);

                // Remove the last comma.
                $perms = substr($perms,0,strlen($perms)-2);
                }
Title: Re: Custom Pages
Post by: cybergoblin on June 08, 2009, 06:36:46 AM
Does some one have the empty database tables for this mod, my install keeps getting database creation errors see below.

Database Error
Table 'tradejo1_smf.pages' doesn't exist
File: /home/tradejo1/public_html/Sources/ManagePages.php
Line: 133
Title: Re: Custom Pages
Post by: Robbo_ on June 08, 2009, 09:07:41 AM
Quote from: cybergoblin on June 08, 2009, 06:36:46 AM
Does some one have the empty database tables for this mod, my install keeps getting database creation errors see below.

Database Error
Table 'tradejo1_smf.pages' doesn't exist
File: /home/tradejo1/public_html/Sources/ManagePages.php
Line: 133

I have no idea why it isn't creating your tables. My compat.php file should fix the errors in RC1 that cause the problems :/ Maybe something got changed in RC1-1 that I haven't noticed.

What database are you using, SMF versiona and what is the error you get on install when it fails to make the tables.

Here is the sql to make the tables...

CREATE TABLE `{prefix_here}pages` (
  `id_page` varchar(255) NOT NULL,
  `page_title` varchar(255) NOT NULL,
  `page_body` text NOT NULL,
  `page_perms` varchar(255) NOT NULL,
  `page_views` bigint(11) NOT NULL default '0',
  `page_format` tinyint(1) NOT NULL default '0',
  `page_time` int(10) NOT NULL default '0',
  `page_settings` varchar(10) NOT NULL default '1:1:0',
  `page_class` varchar(255) NOT NULL default 'tborder',
  `page_styles` varchar(255) NOT NULL default '',
  `title_class` varchar(255) NOT NULL default 'titlebg',
  `title_styles` varchar(255) NOT NULL,
  `body_class` varchar(255) NOT NULL default 'windowbg',
  `body_styles` varchar(255) NOT NULL,
  PRIMARY KEY  (`id_page`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

CREATE TABLE `{prefix_here}log_cpfloodcontrol` (
  `ip` char(16) NOT NULL,
  `log_time` int(10) NOT NULL,
  `id_page` varchar(255) NOT NULL,
  PRIMARY KEY  (`ip`,`log_time`,`id_page`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


I'll get a new version out as soon as possible to fix these new issues.
Title: Re: Custom Pages
Post by: Legendary Guardian on June 08, 2009, 04:14:09 PM
I receive this error whenever I try to use anything with this modification.

QuoteTable 'ilmatar.smf_pages' doesn't exist
File: /home/magmod/magistia.net/ilmatar/Sources/Subs-CustomPages.php
Line: 56

This is my first time using Simple Machines, and it's version 2.0 of SM, so...I don't know what else to tell you besides that. Any idea what's wrong and why it's not working?
Title: Re: Custom Pages
Post by: allisondk on June 10, 2009, 12:06:16 PM
I´ve tried to install this on a test forum i´ve got running 1.1.9 with simple portal and just tried it at the "working forum" running 2.0RC1 both places i got this error:
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Any idea why?
Title: Re: Custom Pages
Post by: CowboyLogic on June 10, 2009, 10:05:37 PM
Quote from: Robbo_ on June 08, 2009, 01:10:14 AM
Quote from: dav12 on June 07, 2009, 09:50:25 PM
Quote from: Robbo_ on June 07, 2009, 10:43:09 AM
You want it so that when someone searches your forums it also searches the custom pages content right?
I might add that depending on how hard it will be since I have never looked at the SMF search source files.

Yes but preferably, one that searches only select custom pages per setting/configuration.
You mean like using the browsers search function?

Quote from: CowboyLogic on June 08, 2009, 12:34:42 AM
Error when installing Customer Pages on 2.0 RTC1-1

This is where you create, edit and remove custom pages. It is all fairly straight forward. The only thing to keep in mind is that the page ID needs to be unique. Support and feedback here.

An Error Has Occurred!
Wrong value type sent to the database. Array of integers expected. (id) 

This was the latest .12 release... any ideas?
I think I have found the problem. Go into Sources/ManagePages.php, line 153.
Replace the code before 'default:' and 'break;' with the following and see if it fixes your problem.


                // Empty perms
                $perms = '';

                // Explode the groups.
            $groups = explode(',', $row['page_perms']);

            // Now query all the groups used.
            if (!empty($groups))
                {
                    $result = $smcFunc['db_query']('', '
                   SELECT group_name
                   FROM {db_prefix}membergroups
                   WHERE id_group IN ({array_int:id})
                   ORDER BY id_group ASC ' ,
                   array(
                      'id' => $groups,
                   )
                );

                // Loop through and make the $perms value.
                while($row2 = $smcFunc['db_fetch_assoc']($result))
                   $perms .= $row2['group_name'] . ', ';

                // I am free!
                $smcFunc['db_free_result']($result);

                // Remove the last comma.
                $perms = substr($perms,0,strlen($perms)-2);
                }


I need a little more information please.

Do I replace
//Now loop through all the rows on down to "Break;", or
//Work out the perms value to use
      switch($row['page_perms']) down to "Break;"?
Title: Re: Custom Pages
Post by: Robbo_ on June 11, 2009, 02:07:20 AM
Sorry made a typo with that. I mean to say "Replace the code in-between 'default:' and 'break;' with the following and see if it fixes your problem."

To everyone else I will get to making a new version as soon as I have time which will hopefully fix all your problems.
Title: Re: Custom Pages
Post by: allisondk on June 11, 2009, 06:26:51 AM
1.0.1.2 and just updated to rc1-1
Its the modification on index.php that fails
Title: Re: Custom Pages
Post by: CowboyLogic on June 11, 2009, 09:14:45 PM
No love yet I'm afraid.
Here is what my ManagePages.php looks like now. See attachment
Title: Re: Custom Pages
Post by: Robbo_ on June 12, 2009, 01:13:26 AM
Quote from: CowboyLogic on June 11, 2009, 09:14:45 PM
No love yet I'm afraid.
Here is what my ManagePages.php looks like now. See attachment
It must be a bug to do with what other people are having problems with because what I told you to change looks fine.

I'll try get a patch out this weekend.
Title: Re: Custom Pages
Post by: allisondk on June 12, 2009, 05:12:03 AM
OK, just tried again and it works like a charm, alongside simpleportal this is cool.

I´m trying to get a lightbox to work on a custom page, any idea if that is possible (like www.ilms-erl.com/teams.html)
Title: Re: Custom Pages
Post by: dav12 on June 12, 2009, 07:57:42 PM
Robo, I was talking about adding a search engine & box (that will be able to search through the contents of the database, smf_pages).

Is that possible or doable?
Title: Re: Custom Pages
Post by: Robbo_ on June 13, 2009, 08:40:47 AM
I don't know if I will ever get a search feature added. I don't see much use for it and I barely have time to maintain the mod.
Title: Re: Custom Pages
Post by: MMcGrad2 on June 13, 2009, 01:03:45 PM
Give it the ability to create new tabs in the forum which display the unique page id.
Title: Re: Custom Pages
Post by: dav12 on June 14, 2009, 08:35:22 AM
Quote from: Robbo_ on June 13, 2009, 08:40:47 AM
I don't know if I will ever get a search feature added. I don't see much use for it and I barely have time to maintain the mod.

I really really really do need 1. If you can quickly make one...please?
Title: Re: Custom Pages
Post by: pkrpkr on June 21, 2009, 02:25:21 PM
This is a really useful mod - thanks!
How do I donate?
Title: Re: Custom Pages
Post by: CowboyLogic on June 21, 2009, 03:08:26 PM
Just checking in Robbo, any ETA on that patch?
Title: Re: Custom Pages
Post by: Robbo_ on June 21, 2009, 08:50:34 PM
I'll try patch it this week. Just need to get some more work done for a client before I look into any of my stuff.

You can donate through paypal to [email protected]. Thanks for any donations! :)
Title: Re: Custom Pages
Post by: CowboyLogic on June 21, 2009, 09:48:54 PM
Awesome. Thanks for the update.
Title: Re: Custom Pages
Post by: dav12 on June 22, 2009, 05:34:34 PM
Should I keep my hopes up for the search feature?
Title: Re: Custom Pages
Post by: Robbo_ on June 22, 2009, 11:32:09 PM
It's not going to be added anytime soon (if ever).
Title: Re: Custom Pages
Post by: allisondk on June 24, 2009, 05:08:23 AM
Any idea why i cant get it to work with SMF 2.0RC1-1. It seems to be a problem with the custom form fields?

I have to edit the index.php, but when i do it screws up the forum

Error when editing the index.php:
Parse error: syntax error, unexpected ';', expecting ')' in /xxxx/xxxx/xxxx/forum/index.php on line 327
Title: Re: Custom Pages
Post by: allisondk on June 24, 2009, 05:18:08 AM
Solved, i added
   
    // Custom page action
    $actionArray['page'] = array('CustomPages.php', 'viewPage');
the wrong place  :P
Title: Re: Custom Pages
Post by: Robbo_ on June 24, 2009, 08:53:00 AM
I'll look at custom fields mod one day to work out why that happens.
If I have the motivation at the time I'll make it so you can put your pages onto a custom action instead of under the page action. eg "site.com?action=my_custom_page" instead of "site.com?action=page;sa=my_custom_page"
Title: Re: Custom Pages
Post by: CowboyLogic on June 24, 2009, 09:19:32 AM
...Sounds promising
Title: Re: Custom Pages
Post by: mark2300 on June 25, 2009, 03:24:27 AM
Quote from: CowboyLogic on June 08, 2009, 12:34:42 AM
An Error Has Occurred!
Wrong value type sent to the database. Array of integers expected. (id) 

This was the latest .12 release... any ideas?

I, too, was getting this error. It appeared on the Edit Pages page in the Admin area. I found the cause, at least in my case:

I was previously running SMF 1.1.8 and had installed the "Pages Mod" by 2by2host. When I upgraded to SMF 2.0RC1-1, I removed the Pages Mod, but apparently the pages I had created with the Pages Mod were not removed, and the {db_prefix}pages table was left behind as well. Robbo_'s "Custom Pages" mod uses a table by the same name, and when it iterates through the table, it assumes all entries have a value in the id_page field. The entries left behind by the Pages Mod don't have a value in this field, though. Hence the error that an array of integers (ids) was expected, but not given--the missing id_page values (NULL) aren't integers.

If you don't mind losing the pages you've created so far, the best solution is to uninstall the Custom Pages mod, drop the {db_prefix}pages table, then reinstall the Custom Pages mod.

If you don't want to lose the pages you've created, there are two workarounds:

Insert this line into Sources/ManagePages.php at line 131:


WHERE id_page is not NULL


or, simply remove all of the entries in the {db_prefix}pages table that don't have an id_page value.

Hope this helps.

-Mark
Title: Re: Custom Pages
Post by: mark2300 on June 25, 2009, 03:42:52 AM
It appears this mod doesn't actually create any links to the custom pages it creates, is that correct? Therefore a separate mod would be needed to add those links to the main menu?

I used this mod to create a "Forum Rules" page that I wanted to make easily accessible from the main menu, just as I had done with the "Pages Mod" I mentioned in my previous post. However, after creating my new custom page, I don't see any links to it anywhere other than the Edit Pages page within the Admin area.

I just want to make sure I'm not overlooking something. Is there a link to my custom pages somewhere other than the Edit Pages page?

Thank you for making this mod, by the way. Although it doesn't appear to do exactly what I want, it does 90% of what I want, and I can manually do the other 10% without much difficulty (since I'm a PHP programmer also).

-Mark
Title: Re: Custom Pages
Post by: Robbo_ on June 25, 2009, 07:51:39 AM
Thanks for finding the solution to that bug. I haven't had time to look into it. I'll rename the tables next update which should fix everything :)

About the link. This mod only makes the pages, not links are added anywhere. The reason for this is because the next mod I will be making will be a custom links mod. Each mod will work together to easily add links to custom pages or whatever you want.
Title: Re: Custom Pages
Post by: RedCairo on June 27, 2009, 05:32:50 AM
Hi there -- still no work with 1.1.9?  My main forum I have to do major redesign on for a July 1 start month-long party uses that, and a forum I'm setting up in the UK this weekend also to open July 1 has that. I really counted on using this mod (as I use it on my RC2 site elsewhere) in those forums!  Darn, I didn't expect that version wouldn't be available. Do you have any plans to do that soon (er, really soon)? Or should I just get the baker's dozen pages instead? I like yours so much better. Thanks again for it.  Palyne

PS I would volunteer to donate to inspire you but right now I overspent and don't even have food money. In a week I will though, if it would help!
Title: Re: Custom Pages
Post by: Robbo_ on June 27, 2009, 06:01:51 AM
Once I am done with my current clients I won't be taking anymore clients so I can work on my personal stuff like this mod. That could be anywhere from a couple weeks to a couple months.
Title: Re: Custom Pages
Post by: Sabre™ on July 12, 2009, 07:27:10 AM
First off, Robbo_ congrats mate, this is a useful mod :)
On a fresh install of SMF RC1-1 with only this mod installed, I created a test page and ran the HTML validator.
It returned with 11 errors.
Is anyone else experiencing this?

Cheers :)

EDIT
Slight error in the CustomPages.template.php... change
<table cellpadding="4" cellspacing="0" border="0" class="', $context['page']['page_class'], '"', empty($context['page']['page_styles']) ? '' : ' style="' . $context['page']['page_styles'] . '" ', 'width="100%">';


to
<table cellpadding="4" cellspacing="0" border="0" class="', $context['page']['page_class'], '"', empty($context['page']['page_styles']) ? '' : ' style="' . $context['page']['page_styles'] . '" ', ' width="100%">';


And I found if I don't select the Display title: box, then the page validates.
Title: Re: Custom Pages
Post by: Robbo_ on July 12, 2009, 10:32:43 AM
Personally I don't care about a page being valid. Since you brought it up I'll make sure the next patch it is xhtml valid. I test my mod on each browser and if it works then I'm happy but for you I'll make it valid ;)

I need a space before "width"? I'll look into it when I'm less under the influence ;) Thanks for your feedback.

I have had ISP problems so haven't been able to update this mod. I will try get the new version out by next week and then start porting to 1.1.9 after it is out.
Title: Re: Custom Pages
Post by: Sabre™ on July 12, 2009, 05:16:54 PM
Quote from: Robbo_ on July 12, 2009, 10:32:43 AM
Personally I don't care about a page being valid.

I've had the same chain of thought, but figured I may aswell start doing things 'correct', instead of half.
The space before width eliminates a structure error.
I'll have a look at the code after school, and help with validation, it shouldn't be too difficult.

Cheers
Title: Re: Custom Pages
Post by: Robbo_ on July 14, 2009, 10:23:09 AM
Quote from: Sabre™ on July 12, 2009, 05:16:54 PM
Quote from: Robbo_ on July 12, 2009, 10:32:43 AM
Personally I don't care about a page being valid.

I've had the same chain of thought, but figured I may aswell start doing things 'correct', instead of half.
The space before width eliminates a structure error.
I'll have a look at the code after school, and help with validation, it shouldn't be too difficult.

Cheers
Thanks for your help. I will be sure to make future versions valid. When I said that I don't care about it, I didn't mean I wouldn't do it. If this was just for me then I probably wouldn't but since I have made this mod for a wide range of people I will try to cater for everyones requests. However only when I have time...
Title: Re: Custom Pages
Post by: Sabre™ on July 14, 2009, 06:11:51 PM
Quote from: Robbo_ on July 14, 2009, 10:23:09 AM
However only when I have time...

I know what you mean, my holidays finished as of yesterday, so now Im back to studying/training from 9:30am to 10:30pm most week days.
I'm afraid I wont be able to help (not that you need it anyways), as I only have a couple hours online now(if even that!).

Cheers, and thanks again for your efforts :)
Title: Re: Custom Pages
Post by: chaky! on July 24, 2009, 03:15:39 PM
on the body accept php code?


thanks;)
Title: Re: Custom Pages
Post by: Robbo_ on July 24, 2009, 03:44:03 PM
PHP code isn't supported yet. Hopefully it will be in the next version. When I get around to making it that is.
Title: Re: Custom Pages
Post by: ultide on July 30, 2009, 07:40:39 AM
Sir

is it compitable with smf 1.1.9???
Title: Re: Custom Pages
Post by: Robbo_ on July 30, 2009, 09:21:03 AM
Multiple places give you an answer for that question. First there is the mod page, then there is the first post in this thread, then there is at-least another 5 posts (probably one on each page) in this thread. Find out the hard way (reading).
Title: Re: Custom Pages
Post by: gbsothere on July 30, 2009, 10:28:28 AM
Quote from: ultide on July 30, 2009, 07:40:39 AM
Sir

is it compitable with smf 1.1.9???


ultide, it isn't.   :)


Perhaps this might be something you can use?   I installed it on my forum when it was 1.1.9 and it works beautifully.  This is the mod link and from there, you can click on the support thread link for it.

http://custom.simplemachines.org/mods/index.php?mod=1477 (http://custom.simplemachines.org/mods/index.php?mod=1477)


Title: Re: Custom Pages
Post by: wongeaton on July 30, 2009, 12:19:28 PM
I am using SMF software to hold a forum. On the right top coner, there is a Simple Machine logo. I want to put something else at the position. Can I delete the Simple Machine logo? Will that violate the license agreement? Thanks a lot.
Title: Re: Custom Pages
Post by: Arantor on July 30, 2009, 01:40:51 PM
wongeaton: please open a support topic in the support forum rather than here.
Title: Re: Custom Pages
Post by: Sabre™ on July 30, 2009, 05:34:30 PM
Quote from: wongeaton on July 30, 2009, 12:19:28 PM
I am using SMF software to hold a forum. On the right top coner, there is a Simple Machine logo. I want to put something else at the position. Can I delete the Simple Machine logo? Will that violate the license agreement? Thanks a lot.

Yes mate, you may remove it, it does not violate any agreement.
Use the search function located in the top right hand corner of this site, you will find different ways to accomplish what you want. There is even a mod that will completely remove it if you like, so no need to manually touch your file :)

Quote from: Arantor on July 30, 2009, 01:40:51 PM
wongeaton: please open a support topic in the support forum rather than here.

x2
Title: Re: Custom Pages
Post by: JoJolThelMaster on August 09, 2009, 11:51:21 AM
On my SMF it won't show the "Edit Page" or "Add new Page" buttons.

I'm currently using SMF 2.0 RC1-1.
What should I do? Please help me.
Title: Re: Custom Pages
Post by: Arantor on August 09, 2009, 11:58:17 AM
JoJo|The|Master, is this related to this specific mod? If not please post in the main 2.x support board (http://www.simplemachines.org/community/index.php?board=147.0) - this will enable more people to see it.
Title: Re: Custom Pages
Post by: Sabre™ on August 10, 2009, 12:04:30 AM
Quote from: JoJolThelMaster on August 09, 2009, 11:51:21 AM
On my SMF it won't show the "Edit Page" or "Add new Page" buttons.

I'm currently using SMF 2.0 RC1-1.
What should I do? Please help me.

Check if you have a file named  Modifications.english-utf8.php  and copy the edits for  Modifications.english.php  into it.
If you are using a language other than english, then either translate the code into your selected languages template, or just copy it over.
eg. Modifications.klingon.php
Title: Re: Custom Pages
Post by: JoJolThelMaster on August 11, 2009, 11:02:48 AM
Quote from: Sabre™ on August 10, 2009, 12:04:30 AM
Quote from: JoJolThelMaster on August 09, 2009, 11:51:21 AM
On my SMF it won't show the "Edit Page" or "Add new Page" buttons.

I'm currently using SMF 2.0 RC1-1.
What should I do? Please help me.

Check if you have a file named  Modifications.english-utf8.php  and copy the edits for  Modifications.english.php  into it.
If you are using a language other than english, then either translate the code into your selected languages template, or just copy it over.
eg. Modifications.klingon.php

Thank You it works now.
Title: Re: Custom Pages
Post by: Sabre™ on August 11, 2009, 12:15:49 PM
Brilliant!
Enjoy buddy, and welcome to SMF :)
Title: Re: Custom Pages
Post by: shroomAzoom on August 25, 2009, 10:44:03 AM
Robbo_

Great mod, just what I was looking for. Just wanted to pop in and say THANKS for it! Looking forward to your "Custom Links" mod when you get that out too.

BTW, I too had a problem with my first install, but I uninstalled, deleted the test folder and reinstalled as you suggested earlier in this thread and the second install worked flawlessly.

Again, great job! Thanks!
Title: Re: Custom Pages
Post by: Robbo_ on August 25, 2009, 11:50:07 AM
No problem man. Glad you like my mod :)
Title: Re: Custom Pages
Post by: Propaganistas on September 14, 2009, 06:12:18 AM
Hi,

I'd like to bring this to your attention. A while ago, I posted this:
http://www.simplemachines.org/community/index.php?topic=295943.msg1959071#msg1959071
I was using 2.0 beta 4.

Now I've set up a newly installed 2.0 RC1.2 forum on a new host, and I'm still experiencing this problem.
I've attached an image as a proof.

I'm working on another pc, so it has to be software/serverside...

Any help would be appreciated (those *-replacements don't look that great you know ;) )

Thanks!

PS: I also experience this in the integrated Simpleportal version of this mod. (not installed at the same time of course)
Title: Re: Custom Pages
Post by: Robbo_ on September 14, 2009, 11:39:09 PM
This mod has nothing to do with the SimplePortal custom pages. They are coded by different people and with different functionality. Since it is happening in both mods I still think it must be something else causing the problems or some mistake we have both made.

What exactly is the problem though? BBCode not parsing properly? The link you gave about your previous post doesn't go to one of your posts...
Title: Re: Custom Pages
Post by: Propaganistas on September 15, 2009, 03:52:01 AM
The link goes to your reply to my previous post. (second quote)

Well, all but one BBCode gets parsed for some reason.. = list-tag

I'll ask some support at SP, as it now also has custom pages.. (which I'm going to use :) )

Thanks anyway
Title: Re: Custom Pages
Post by: Robbo_ on September 15, 2009, 08:28:30 AM
Well if they find your solution then be sure to tell me so I can also apply it ;)
Title: Re: Custom Pages
Post by: TheListener on October 14, 2009, 04:49:05 PM
Using this mod would I be able to:

1. have a menu tab with the required title?

2. Be able to use banners?


NOTE: I want to be able to display banners which can link users to other sites similar to the affiliates mod except I want these to be seperate from the banners I will be displaying in that mod.

Title: Re: Custom Pages
Post by: Robbo_ on October 14, 2009, 04:54:06 PM
1. the latest mod I have been working on will work with this mod to allow for custom menu tabs.

2. not sure what you mean?
Title: Re: Custom Pages
Post by: TheListener on October 14, 2009, 04:56:08 PM
Can banners be displayed so people can be linked to other websites?

An example would be clicking on my sig banner.
Title: Re: Custom Pages
Post by: Robbo_ on October 14, 2009, 05:00:52 PM
In the custom page you can use bbc or html to show an image and link it to another site.
Title: Re: Custom Pages
Post by: TheListener on October 14, 2009, 05:13:10 PM
Thanks Robbo.

This may be what I am looking for.

What is meant by Page ID as I presume this is what is required to make the page public.

Where would I find the page on the forum?
Title: Re: Custom Pages
Post by: Robbo_ on October 14, 2009, 10:43:36 PM
At the url shown in admin. http://www.yoursite.com/index.php?action=page;p={page_id}. Something like that I think, been a while since I have looked at it.
Title: Re: Custom Pages
Post by: Daredee on October 14, 2009, 11:58:00 PM
Hello Robby! Is it any progress in portating to SMF 1.*?
Title: Re: Custom Pages
Post by: Robbo_ on October 15, 2009, 12:03:15 AM
I still don't have time to make a 1.1.x port.
Title: Re: Custom Pages
Post by: TheListener on October 15, 2009, 01:36:49 PM
Have had no luck with the mod so it looks like back to the drawing board.
Title: Re: Custom Pages
Post by: kingkingston on November 05, 2009, 06:23:13 PM
Quote from: Daredee on October 14, 2009, 11:58:00 PM
Hello Robby! Is it any progress in portating to SMF 1.*?
use the bakers dozen mod,i think that will work on 1.1.10
Title: Re: Custom Pages
Post by: Hoodie on November 12, 2009, 12:14:43 PM
Support for RC2?
Title: Re: Custom Pages
Post by: Robbo_ on November 13, 2009, 12:40:54 AM
You can install it on RC2 atm but I think there might be a bug or 2. Will get into it as soon as possible.
Title: Re: Custom Pages
Post by: tonnybarros on November 16, 2009, 04:43:42 AM
Help intall 2.0
Title: Re: Custom Pages
Post by: tonnybarros on November 17, 2009, 07:48:41 AM
I changed the install file and could install the SMF RC2

http://www.tectonny.com/forum/index.php?action=page;sa=contato
Title: Re: Custom Pages
Post by: Hoodie on November 18, 2009, 07:26:56 PM
Quote from: Robbo_ on November 13, 2009, 12:40:54 AM
You can install it on RC2 atm but I think there might be a bug or 2. Will get into it as soon as possible.

Thanks for the update and can't wait for the release for RC2..
Title: Re: Custom Pages
Post by: rbeuker on November 21, 2009, 11:24:32 AM
I really like your mod, thx a lot! I'm using it on RC2 already, after fiddling a bit with the installer files I got it to install. ;)

Anyway, I was wondering: can I somehow enable a Moderator on my Forum the ability to access index.php?action=admin;area=pages and edit/add pages there? Or could I use another access link? (This is about someone who is NOT an administrator)
Title: Re: Custom Pages
Post by: Robbo_ on November 21, 2009, 10:06:41 PM
I have set it up so only people who are full admins can manage pages I think. I might change it so that you can give certain membergroups the ability to manage pages. I could possibly also add an option to make it so moderators can do it. The only problem is I also plan to give the ability to use PHP in the page which basically makes it so whoever is using the mod can do anything to the site. I think I will restrict PHP pages to full admins only since if you weren't full admin then you could make yourself one with a simple query on a page.

I'm on holidays now so should have a fixed RC2 version, added PHP page support and possibly some of what I have talked about above soon. Soon being some time in the next 2 weeks hopefully.
Title: Re: Custom Pages
Post by: rbeuker on November 22, 2009, 02:59:30 PM
Yes I agree that only Admins should be able to use php on the pages.  A 'can use php' security setting could be an idea as well.

Anyway, for now enjoy your holiday! You should not even be reading this. ;)
Title: Re: Custom Pages
Post by: » мιsтєя мιsғιт « on December 10, 2009, 09:58:18 AM
Any news on the update for this? Great mod, have used it in the past, but now I'm on RC2 .. no functionality. Look forward to a reply! :)
Title: Re: Custom Pages
Post by: LP on December 10, 2009, 10:37:22 AM
Robbo_ , thanks for the great mod.  I use SimplePortal but prefer to use your custom pages mod because it does a couple of things I can't do with SP's version.

Quick question I hope you can answer for me.  I have permissions set so that only Registered users can view a particular page, but the link to that page is exposed to Guest users as well.  Currently if a Guest user clicks the link it appears to do nothing at all.  I would like to instead redirect them to a login page or at least display something that says "You must log in to view this page".

Any idea how I might accomplish this?

Thanks!
Title: Re: Custom Pages
Post by: illusioner on December 10, 2009, 03:22:29 PM
I tried to use the modification (SMF 2.0 RC 2) and got this error where (databasename) was my databasename and (path) was the correct path to the php folder:

Table '(databasename).smfsb2_pages' doesn't exist
File: (path)/Sources/Subs-CustomPages.php
Line: 56

Do I have to create the table myself or is there something else going on?

Thanks so much for the modification. I appreciate any feedback.
Title: Re: Custom Pages
Post by: Robbo_ on December 10, 2009, 05:50:20 PM
Quote from: » мιsтєя мιsғιт « on December 10, 2009, 09:58:18 AM
Any news on the update for this? Great mod, have used it in the past, but now I'm on RC2 .. no functionality. Look forward to a reply! :)
Coming very soon...

Quote from: LP on December 10, 2009, 10:37:22 AM
Robbo_ , thanks for the great mod.  I use SimplePortal but prefer to use your custom pages mod because it does a couple of things I can't do with SP's version.

Quick question I hope you can answer for me.  I have permissions set so that only Registered users can view a particular page, but the link to that page is exposed to Guest users as well.  Currently if a Guest user clicks the link it appears to do nothing at all.  I would like to instead redirect them to a login page or at least display something that says "You must log in to view this page".

Any idea how I might accomplish this?

Thanks!
When someone goes to a page they have no access to then it will simply redirect to the home page. I can make it add a message saying they have no access instead next patch.

Quote from: illusioner on December 10, 2009, 03:22:29 PM
I tried to use the modification (SMF 2.0 RC 2) and got this error where (databasename) was my databasename and (path) was the correct path to the php folder:

Table '(databasename).smfsb2_pages' doesn't exist
File: (path)/Sources/Subs-CustomPages.php
Line: 56

Do I have to create the table myself or is there something else going on?

Thanks so much for the modification. I appreciate any feedback.

This is due to changes in RC2 that make it so you have to manually put the table prefix when changing columns, it used to be automatic. So it is looking for the wrong table name, this will be fixed next patch.

Next patch should be up some time next week, will include PHP page support for those who wanted that.
Title: Re: Custom Pages
Post by: » мιsтєя мιsғιт « on December 10, 2009, 06:02:17 PM
Awesome! :)
Title: Re: Custom Pages
Post by: LP on December 11, 2009, 12:50:59 AM
Quote from: Robbo_ on December 10, 2009, 05:50:20 PM
Quote from: LP on December 10, 2009, 10:37:22 AM
Robbo_ , thanks for the great mod.  I use SimplePortal but prefer to use your custom pages mod because it does a couple of things I can't do with SP's version.

Quick question I hope you can answer for me.  I have permissions set so that only Registered users can view a particular page, but the link to that page is exposed to Guest users as well.  Currently if a Guest user clicks the link it appears to do nothing at all.  I would like to instead redirect them to a login page or at least display something that says "You must log in to view this page".

Any idea how I might accomplish this?

Thanks!
When someone goes to a page they have no access to then it will simply redirect to the home page. I can make it add a message saying they have no access instead next patch.


Yeah, I wasn't very clear about that.  I knew it redirected to the home page.  I meant that the exposed link is on the home page, so it appears to do nothing at all for guests except refresh the home page ;D

If you could add a message saying they have no access that would be great.  I'm not sure other people would prefer it that way, though.  Maybe an option for the page?  That is probably too much trouble though.

Thanks for the reply!
Title: Re: Custom Pages
Post by: Robbo_ on December 11, 2009, 05:58:38 AM
I actually should of had it say you don't have access from the start, I was being lazy. Also this mod doesn't add links so it is up to you to add links with the same permissions manually.

I have a mod I am working on which will make adding links easily and will work hand in hand with this mod so you can easily link to other pages. You can follow its progress here. http://www.simplemachines.org/community/index.php?topic=352408.0
Title: Re: Custom Pages
Post by: LP on December 11, 2009, 12:55:08 PM
Quote from: Robbo_ on December 11, 2009, 05:58:38 AM
I actually should of had it say you don't have access from the start, I was being lazy. Also this mod doesn't add links so it is up to you to add links with the same permissions manually.

I have a mod I am working on which will make adding links easily and will work hand in hand with this mod so you can easily link to other pages. You can follow its progress here. http://www.simplemachines.org/community/index.php?topic=352408.0

I would just set the permissions on whether or not the link is even displayed for Guests, but I want them to see that the link is there.  It helps get people to sign up if they see a link to something that looks interesting but they can't get there as a Guest. 8)
Title: Re: Custom Pages
Post by: Robbo_ on December 13, 2009, 10:49:48 AM
I will be making a new version of this which will a complete code overhaul but after that I am not supporting this mod. So anyone who wants to takeover it after my next patch then please private message me.
Title: Re: Custom Pages
Post by: supahben on December 24, 2009, 03:02:07 PM
Questions:

can i use php on the custom pages?
will it work on 1.1.11?
Title: Re: Custom Pages
Post by: Robbo_ on December 24, 2009, 09:23:51 PM
No. But the next version I am making you will be able to.
Title: Re: Custom Pages
Post by: Reliquary on January 25, 2010, 08:57:43 PM
Really love the idea of this mod.

Any chance 1.1.x support will come ... er .. soon-ish?  ;D


cheers!
Title: Re: Custom Pages
Post by: Robbo_ on January 25, 2010, 09:41:15 PM
Working on a big upgrade for 2.x when I hate time. Don't know if I will ever support 1.1.x, maybe if I get bored.
Title: Re: Custom Pages
Post by: CrisisX on January 26, 2010, 10:44:36 PM
How do I manually remove pages? Please tell me how to, because one of my pages (page 12) corrupts my server or something (it's a weird script) and I can't delete it because when I reinstall pages then page 12 is there so I have to manually delete that mod, so how could I possibly delete one of my pages?
Title: Re: Custom Pages
Post by: Robbo_ on January 26, 2010, 11:42:08 PM
Either manually remove from the database (smf_customPages I think is the table) or uninstall the mod and check the option to remove data. Then install again.

Next version will have an option to remove the page from the list of pages instead of having to go into it. You should be able to remove it by going into edit on the page and clicking remove?
Title: Re: Custom Pages
Post by: Mick. on February 06, 2010, 05:45:24 PM
available for RC2?
Title: Re: Custom Pages
Post by: Robbo_ on February 06, 2010, 08:40:52 PM
RC2 version is in the works. Is a pretty big update so taking me a while longer then normal.
Title: Re: Custom Pages
Post by: Sakae on February 11, 2010, 08:11:46 AM
Quote from: Robbo_ on February 06, 2010, 08:40:52 PM
RC2 version is in the works. Is a pretty big update so taking me a while longer then normal.

Can't wait for it :)
Title: Re: Custom Pages
Post by: Robbo_ on February 14, 2010, 12:57:28 PM
Custom Pages Version 1.1.0 Beta1 now undergoing testing!

More details here -> http://www.planetsmf.com/index.php?topic=84.0 (including ability to download and test).

Change Log (may not contain everything):
- Updated templates to use the new default theme properly
- Added a fatal error for when someone is not allowed to view a page
- pages database table changed
  * renamed to custom_pages
  * removed page_ from field names
  * id_page changed from varchar(255) to smallint(5)
  * views changed from bigint(11) to int(10)
  * format changed from tinyint(1) to tinyint(3)
- Added ability to create PHP pages
- Pages now take advantage of caching to increase performance
- log_cpfloodcontrol table removed, I now use the log_floodcontrol table instead since I have a proper unique id in the custom_pages table
- Pages are no longer located at http://yoursite.com/?action=page;page=page_id
  * they are now their own action in the format {id_page}-{title}
  * eg. http://yoursite.com/?action=6-a_page_title
- Small changes like function and file renaming
  * ManagePages.php renamed to ManageCustomPages.php
  * New template for ManagePages instead of using the CustomPages template

Title: Re: Custom Pages
Post by: tfs on February 14, 2010, 01:51:27 PM
SMF 2.0 RC2, Core

When trying to create a page in the beta I get this...

Fatal error: Cannot use string offset as an array in /xxx/Sources/Load.php on line 1821
Title: Re: Custom Pages
Post by: Robbo_ on February 14, 2010, 10:41:14 PM
Hmm sounds like a bug I fixed just after I made the package. Mustn't have updated the package properly.

I'll update the package today and you will just have to reinstall it to get it working.
Title: Re: Custom Pages
Post by: Robbo_ on February 15, 2010, 10:13:24 AM
Ok updated the package on the other site. Will attach it here too. If it has the same problem then say so, I just repackaged my files instead of actually testing...

Edit: removed package due to it being old
Title: Re: Custom Pages
Post by: tfs on February 15, 2010, 12:11:02 PM
Still problems.  When I made the first custom page it allowed me to make it, and then it won't allow me to edit it.  When I click on "modify" noting happens.  Then when I try to make a second custom page, after clicking on "Post" I get...

Fatal error: Cannot use string offset as an array in /xxx/Sources/Load.php  on line 1821

The error log had 12 entries after that.

SMF 2.0 RC2

  Apply Filter: Only show the error messages of this member  admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174 
  Reverse chronological order of list Today at 12:04:18 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /xxx/Sources/Load.php
Line: 1793
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174 
  Reverse chronological order of list Today at 12:04:18 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: Database
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
Database Error: Duplicate entry '0' for key 1
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 432
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174 
  Reverse chronological order of list Today at 12:04:18 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
8: Undefined index: admin_pages
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 68
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174 
  Reverse chronological order of list Today at 12:01:38 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /xxx/Sources/Load.php
Line: 1793
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174 
  Reverse chronological order of list Today at 12:01:38 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: Database
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
Database Error: Duplicate entry '0' for key 1
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 432
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174
  Reverse chronological order of list Today at 12:01:38 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
8: Undefined index: admin_pages
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 68
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174
  Reverse chronological order of list Today at 12:01:30 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 494
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174
  Reverse chronological order of list Today at 12:01:30 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
8: Undefined index: view_page_new
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 494
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174
  Reverse chronological order of list Today at 12:01:30 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
8: Undefined index: admin_pages
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 68
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174
  Reverse chronological order of list Today at 12:01:08 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=new;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
8: Undefined index: admin_pages
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 68
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174
  Reverse chronological order of list Today at 12:00:59 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;sa=edit;p=0
Apply Filter: Only show the errors with the same message
8: Undefined index: admin_pages
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 68
Apply Filter: Only show the error messages of this member admin
Apply Filter: Only show the error messages of this IP address 71.243.195.174
  Reverse chronological order of list Today at 12:00:52 PM
Apply Filter: Only show the error messages of this session 471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://test1.patsong.com/index.php?action=admin;area=managepages;cca31f02d4b6=471d4e93e2c6a5ce6bd1c07409931ec5
Apply Filter: Only show the errors with the same message
8: Undefined index: admin_pages
Apply Filter: Only show the errors from this file
File: /xxx/Sources/ManageCustomPages.php
Line: 68
Title: Re: Custom Pages
Post by: Robbo_ on February 15, 2010, 12:21:50 PM
Weird. I'll have a proper look into it tomorrow if I get time.

Cheers for testing it.
Title: Re: Custom Pages
Post by: Robbo_ on February 16, 2010, 07:35:49 AM
This version should work properly. If there are no more bugs then the next version should be the final beta and just need some basic testing.

New package attached.
Title: Re: Custom Pages
Post by: zushiba on February 18, 2010, 04:06:18 PM
No update for 2.0 RC2? The above package doesn't function.
Title: Re: Custom Pages
Post by: tfs on February 18, 2010, 05:18:17 PM
I guess I should chime in too.  I tried the above file a couple of days ago and it didn't work at all.  On a vanilla 2.0 RC2 running curve.
Title: Re: Custom Pages
Post by: Robbo_ on February 18, 2010, 10:00:49 PM
Wow how annoying. I'll test some more when I have time.
Title: Re: Custom Pages
Post by: Robbo_ on February 19, 2010, 07:14:08 PM
Do you get any errors or anything? Package is installing fine for me...
Title: Re: Custom Pages
Post by: Sakae on March 09, 2010, 09:49:22 PM
Quote from: Robbo_ on February 19, 2010, 07:14:08 PM
Do you get any errors or anything? Package is installing fine for me...

Hey Robbo, installed great on my SMF 2.0 RC2 here.

But I got this problem when tried to create a new page:

QuoteFatal error: require_once() [function.require]: Failed opening required '/home/*****/public_html/Sources/Pages.php' (include_path='.:/usr/share/pear') in /home/******/public_html/Sources/Admin.php on line 809

Title: Re: Custom Pages
Post by: nlvl on April 19, 2010, 03:54:54 AM
I have a fresh new SMF 2.0 RC3 Install and when installing the Custom Pages 1.12 package I get a error saying that the mod is not for my smf version. I even tried installing Custom Pages 1.10 and it comes with the same error.

Can I please get some help?

Thanks.
Title: Re: Custom Pages
Post by: Robbo_ on April 19, 2010, 04:40:05 AM
Did you ever think you might get that error because it is not compatible with your SMF version? There is a new version on the way but it is a fairly big update and needs to be tested more and a few more features finished.
Title: Re: Custom Pages
Post by: nlvl on April 19, 2010, 04:40:48 PM
Alright so you're saying a new SMF Release candidate will come out and you will only make your update for that?
Title: Re: Custom Pages
Post by: Robbo_ on April 20, 2010, 03:43:49 AM
I am saying you will get your update when I finish making it.
Title: Re: Custom Pages
Post by: nlvl on April 21, 2010, 03:02:20 AM
Alright, thank you very much and I am really anxious to use your mod.
Keep up the hard work ;) hope you release your update soon.
Title: Re: Custom Pages
Post by: cro.senator on May 08, 2010, 03:00:56 AM
working on rc3?
Title: Re: Custom Pages
Post by: Robbo_ on May 08, 2010, 06:53:40 AM
Quote from: cro.senator on May 08, 2010, 03:00:56 AM
working on rc3?
Try reading? I'm sick of answering this question. This is the last time!

This mod currently DOES NOT work with RC3. I have a big update in the works but I am having trouble finding time to finish it. It will be our when it is ready.
Title: Re: Custom Pages
Post by: Scratching my Head on June 19, 2010, 06:56:31 PM
I just want to thank you for your work.

;)
Title: Re: Custom Pages
Post by: Zagdul on July 10, 2010, 03:31:32 AM
Robbo, thanks again for putting the final touches on this mod for RC2.

I don't have RC2 on my site, nor do I plan on moving forward and using it as I've installed a purchased custom skin for my board.

I was wondering if you have tried to use this mod on 1.1.1x and if not you, anyone else? If I were to go ahead with a manual install of the mod and force it, what kind of issues (if any) would I see? I don't really keep track of the particular changes SMF makes from version to version, so reversing your mod to compare what issues it'd have would take me quite some time considering I'm no programmer..etc...

So, in your opinion would it totally break my site if I went ahead with a force?
Title: Re: Custom Pages
Post by: Robbo_ on July 10, 2010, 10:09:56 AM
Yeah it would. SMF 2.0 uses a database abstraction layer which would be the main problem. I don't have any plans to back port however I might oneday. I still don't even have it working with the latest 2.0 version due to lack of time. When I do find more time hopefully I can release more often.
Title: Re: Custom Pages
Post by: anarkiamx on July 30, 2010, 04:49:35 AM
sorry if im grave digging, just seems like this mod isnt outdated so i was wondering before I download it, is if it allows you to add tabs easily? If it doesn't is there a simple way to add tabs on your forums to link to these custom pages, I am all ears (or eyes)
Title: Re: Custom Pages
Post by: Robbo_ on July 30, 2010, 08:47:34 AM
The current versions are a little dated as I haven't had time to get them up to date (might work on it a little tonight and see if I can get it out). There has been a lot of requests to add this to the main menu and most people are directed to another topic which explains how to add them. I might add that information into the first topic or maybe some functionality for it, I am undecided.

My plan was to release a Menu Manager which would work well with this mod to add pages to the menu. You can read about it here. http://www.simplemachines.org/community/index.php?topic=352408.0

I haven't had much time for my mods lately and will try and get some more done soon.
Title: Re: Custom Pages
Post by: anarkiamx on August 07, 2010, 10:42:30 PM
Quote from: Robbo_ on July 30, 2010, 08:47:34 AM
The current versions are a little dated as I haven't had time to get them up to date (might work on it a little tonight and see if I can get it out). There has been a lot of requests to add this to the main menu and most people are directed to another topic which explains how to add them. I might add that information into the first topic or maybe some functionality for it, I am undecided.

My plan was to release a Menu Manager which would work well with this mod to add pages to the menu. You can read about it here. http://www.simplemachines.org/community/index.php?topic=352408.0

I haven't had much time for my mods lately and will try and get some more done soon.

thanks alot
Title: Re: Custom Pages
Post by: Galaxy Computers on November 21, 2010, 08:47:44 AM
Is it possible to have a drop down sub menu on the custom pages?

Thanks
Title: Re: Custom Pages
Post by: Galaxy Computers on November 21, 2010, 04:12:48 PM
I notice that I can only have 2 custom pages I need at least 7 to 10 pages how can add more pages?
Title: Re: Custom Pages
Post by: Robbo_ on November 21, 2010, 10:58:06 PM
You can have as many as you like.
Title: Re: Custom Pages
Post by: Galaxy Computers on November 21, 2010, 10:59:53 PM
Quote from: Robbo_ on November 21, 2010, 10:58:06 PM
You can have as many as you like.

How do I add more pages?
Title: Re: Custom Pages
Post by: Robbo_ on November 21, 2010, 11:01:35 PM
Click add page? I don't have time to support my mods until I have my actual work done sorry. Maybe someone else here can tell you.
Title: Re: Custom Pages
Post by: Galaxy Computers on November 21, 2010, 11:07:38 PM
I have looked under Modification Settings (Custom Pages and Tabs Configuration) and there is no "Click add page" at all
Title: Re: Custom Pages
Post by: Robbo_ on November 21, 2010, 11:13:57 PM
This has nothing to do with tabs. You make pages, it doesn't do anything with tabs. Are you even talking about this mod? I haven't been able to finish the latest versions.
Title: Re: Custom Pages
Post by: Galaxy Computers on November 21, 2010, 11:17:07 PM
Yes, I am talking about this mod. it can only make 2 custom pages.
Title: Re: Custom Pages
Post by: rebekahc on August 10, 2011, 03:53:57 PM
Thanks for this mod - it's exactly what I needed! 

One problem/issue... Is there a size or character limit when making a custom page - and if so is it adjustable?  I've made several custom pages which work fine, but the last few I've made (containing more data) look fine on preview, but seem to get cut off about 2/3 of the way down when I acually view the page.
Title: Re: Custom Pages
Post by: DutchJam on December 23, 2011, 11:00:59 AM
Merry Christmas everybody!

Normally the linktree 'follows' your route on the forum, like

forum name > board > topic

Now I created some custom pages (with this mod: Custom Pages, works excellent on SMF 2.0.2), but after navigating to such a custom page, the page is not listed in the linktree.

I also checked the 'who is online' list, and when a user is on a custom page it is listed there.

Anybody got an idea how to get the custom pages listed in the linktree?

Thanks & enjoy your Chrismas Cake!
Title: Re: Custom Pages
Post by: billis_2 on December 23, 2011, 11:50:39 AM
Installed it on SMF 2.0.2 and work good :)
Thanks.
Title: Re: Custom Pages
Post by: DutchJam on December 25, 2011, 03:20:14 AM
Quote from: billis_2 on December 23, 2011, 11:50:39 AM
Installed it on SMF 2.0.2 and work good :)
Thanks.

Including listing in the linktree?
Title: Re: Custom Pages
Post by: Michael Pfaff on February 05, 2012, 03:41:49 PM
GoDaddy really screwed me over with a auto-upgrade to 2.0.2. After their upgrade, all of my custom changes were gone...

Now, I still have Custom Pages on my server, however, everything is deactivated. I only had one Custom Page. Where is the HTML for the custom page saved on the server? I want to see if the Custom Page's data is still available...
Title: Re: Custom Pages
Post by: fullmoonya on February 21, 2012, 12:59:33 AM
why i cant insert a table with this mod? i tried to put an edit on the page but nothing happens.
Title: Re: Custom Pages
Post by: DutchJam on March 02, 2012, 12:14:05 PM
Greetings again,

Still don't get the custom pages listed into the linktree... Anyone?

And...

Is there a way to include the content of the custom pages into the search results of the default SMF Search Box?

Thanks!
Title: Re: Custom Pages
Post by: pastorvictor on February 10, 2013, 01:53:52 AM
Does this mod work with 2.0.4?
Title: Re: Custom Pages
Post by: Crozz on February 10, 2013, 01:58:46 AM
Quote from: pastorvictor on February 10, 2013, 01:53:52 AM
Does this mod work with 2.0.4?
Don't think so, but you can take advantage of portals like SimplePortal which has the ability to add custom pages, articles and lot more.
Title: Re: Custom Pages
Post by: Ghostryder on March 29, 2013, 07:30:13 PM
I get the following error on install, and not being well versed in Php or mysql, have no idea where to even start:

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TYPE=MyISAM' at line 17
File: /webroot/g/h/ghost020/primary/www/Packages/temp/CustomPages_1.0.12/Compat.php
Line: 142
Title: Re: Custom Pages
Post by: hashend94 on July 12, 2013, 06:47:24 PM
The editing is totally messed up. When I try to edit via bbcode the code appears weirdly on html with tags in one box and content in the other. Could you possibly fix this ?
Title: Re: Custom Pages
Post by: TheListener on July 12, 2013, 07:06:38 PM
The mods author has not been online since: 1 June 2012

The mod was last compatible with 2.0 RC1.2 so I would suggest you look at an alternative.
Title: Re: Custom Pages
Post by: hashend94 on July 13, 2013, 02:15:15 AM
Looked in the mod site and couldn't find any :/
Title: Re: Custom Pages
Post by: lolicute on November 14, 2013, 03:27:03 AM
Hmm someone recommend install this mod on 2.0.6?
Title: Re: Custom Pages
Post by: j0hny21 on December 03, 2013, 06:14:12 AM
Pls update to 2.0.6 :)
Title: Re: Custom Pages
Post by: j0hny21 on December 04, 2013, 05:20:02 AM
After installed in 2.0.6 version, show up error:
Fatal error: Cannot redeclare ssi_customPage() (previously declared in /virtual/----------.---.--/SSI.php:2001) in /virtual/-----------.---.--/SSI.php on line 2162
Title: Re: Custom Pages
Post by: Arantor on December 04, 2013, 08:13:05 AM
That looks like you installed it twice.
Title: Re: Custom Pages
Post by: j0hny21 on December 05, 2013, 03:43:29 AM
Quote from: Arantor Beeblebrox the First on December 04, 2013, 08:13:05 AM
That looks like you installed it twice.

I fixed it but still doesn't work:

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 'TYPE=MyISAM' at line 6
Plik: /virtual/========.===.==/Packages/temp/CustomPages_1.0.12/Compat.php
Linia: 142
Title: Re: Custom Pages
Post by: Arantor on December 05, 2013, 10:43:41 AM
That's because the mod is several years old and doesn't do the installation properly and should be rewritten.
Title: Re: Custom Pages
Post by: suresh1983 on April 23, 2014, 11:21:34 PM
Hi,


I am trying to add new pages to my website and used custom pages plugin but got a database error.

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 'TYPE=MyISAM' at line 17
File: /home/xxxxx/xxxxxx/Packages/temp/CustomPages_1.0.12/Compat.php
Line: 142

Please help on creating new pages.

The reason behind creating new pages is because I am planning of creating a tutorial for my website users. If you have any suggestions for the same, please share.

Thanking you in advance,
Suresh
Title: Re: Custom Pages
Post by: Kammi_ on August 19, 2016, 03:11:59 PM
can u pls fix this error

// Create the table!
$smcFunc['db_query']('', $table_query,
'security_override'
);  <-- line 142
Title: Re: Custom Pages
Post by: Kammi_ on August 20, 2016, 12:49:54 AM
Quote from: Kammi_ on August 19, 2016, 03:11:59 PM
can u pls fix this error

// Create the table!
$smcFunc['db_query']('', $table_query,
'security_override'
);  <-- line 142


fixed this error, open Compat.php go to line 137

$table_query .= ') TYPE=MyISAM';

change it to

$table_query .= ') ENGINE=MyISAM';
Title: Re: Custom Pages
Post by: evez on September 19, 2016, 05:59:49 PM
Hello,

   I'm getting this error on the Admin panel Custom Pages:

Table '*****_smf196.smfep_pages' doesn't exist
File: /home/*****/public_html/viceforextrading/Sources/ManagePages.php
Line: 133



Please Help