Custom Pages

Started by Robbo_, February 27, 2009, 09:59:39 AM

Previous topic - Next topic

Robbo_

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.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Daredee

Hello Robby! Is it any progress in portating to SMF 1.*?

Robbo_

I still don't have time to make a 1.1.x port.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

TheListener

Have had no luck with the mod so it looks like back to the drawing board.

kingkingston

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

Hoodie


Robbo_

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.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

tonnybarros


tonnybarros


Hoodie

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..

rbeuker

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)

Robbo_

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.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

rbeuker

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. ;)

» мιsтєя мιsғιт «

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! :)


LP

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!

illusioner

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.

Robbo_

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.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

» мιsтєя мιsғιт «



LP

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!

Robbo_

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
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Advertisement: