18-Jul-2010, 05:55 PM
This is the community forum. For a developer response use the Client Area.
18-Jul-2010, 06:01 PM
(17-Jul-2010, 10:40 PM)Static Wrote: I need help locating the place where the page id is set into the database, and the places where it's used that are important. I found the following files which seem relevant:
- App/processor.php
- Functions/processor.php
- Admin/Pages/manage_pages.php
The validate_page_id() function in comments/includes/functions/page.php is quite pertinent.
19-Jul-2010, 04:41 PM
Thanks, I'll look into it. However, the roadmap says Does that mean you beat me to it? Either way, great!
Code:
[Bug Fix] Removes default value for text columns in installer
[Bug Fix] Preserves URL parameters (and adjusts referrer check)
I'm giving you three guesses...
19-Jul-2010, 04:49 PM
I haven't (yet) changed anything to do with the Page ID.
I only integrated the Preserve Query add-on and added the change in post #11.
Were you expecting something else?
I only integrated the Preserve Query add-on and added the change in post #11.
Were you expecting something else?
19-Jul-2010, 04:55 PM
No, I wasn't really. Does the installation have anything to do with the type of the 'id' column? If so, how do I change the id type to string? If it helps, I have phpMyAdmin installed.
I'm giving you three guesses...
19-Jul-2010, 05:24 PM
Yes the installer sets the type of the id column in the pages table.
Go to the pages table in phpMyAdmin and click on the 'Structure' tab at the top.
On the id row, click the edit button (at the right under 'Action').
Change the 'Type' to varchar.
Set your desired maximum length (e.g. 250)
Make the 'Attributes' blank.
Deselect the auto_increment.
Click Save.
P.S. Note also that the RSS file, comments/rss.php, expects the Page ID in the URL to be a number.
P.S. Obviously you will need to re-write the Manage -> Pages page in the admin panel.
Go to the pages table in phpMyAdmin and click on the 'Structure' tab at the top.
On the id row, click the edit button (at the right under 'Action').
Change the 'Type' to varchar.
Set your desired maximum length (e.g. 250)
Make the 'Attributes' blank.
Deselect the auto_increment.
Click Save.
P.S. Note also that the RSS file, comments/rss.php, expects the Page ID in the URL to be a number.
P.S. Obviously you will need to re-write the Manage -> Pages page in the admin panel.
19-Jul-2010, 05:33 PM
I figured out how to change it in phpMyAdmin before you posted
. I'll fix the rss and manage pages along with the installer later, first, I'll have to make it work. I'll update when I get something to work.

I'm giving you three guesses...
19-Jul-2010, 05:43 PM
If it was me I would add another column to the pages table called 'page_id'.
I think it's important for the id column to autoincrement so that it's always unique.
I think it's important for the id column to autoincrement so that it's always unique.
19-Jul-2010, 06:04 PM
I know what you mean when you say "comment sessions". I can't currently think of a clearer short way to say it.
Please remember to use PHP tags when posting (mostly) PHP code. I'm going to add that to the forum rules.
Please remember to use PHP tags when posting (mostly) PHP code. I'm going to add that to the forum rules.
« Next Oldest | Next Newest »
Possibly Related Threads…
Thread / Author
Replies
Views
Last Post
Users browsing this thread: 2 Guest(s)