Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 10-04-2008, 04:48 PM
danceswithmoths Offline
forum loafer
 
Join Date: Oct 2008
Posts: 3
Arrow Adding new pages

hi all, I just installed the latest version of pixelpost to my server last week and so far I'm really enjoying the simplicity of this software. I'm wanting to add two information pages, and am unsure of what template to use as a baseline for text only. Also, once I create new pages, what existing templates will need to be modified with links added in order to view the new pages?
I'm using the simple template. Any info. and help would be greatly appreciated

thanks!
Reply With Quote
  #2  
Old 10-04-2008, 06:11 PM
dhdesign's Avatar
dhdesign Offline
pixelpost guru
 
Join Date: Mar 2007
Location: Ohio
Posts: 431
It's fairly easy to create new pages.

I would suggest using the browse_template.html from the simple theme to use as the basis for each new page. You would need to do "save as" with the proper template name (i.e., info page would be info_template.html; a contact page would be contact_template.html) for the filename.

Once you have saved the file, open it in a plain text editor similar to Notepad (Windows) or TextEdit (Mac-make sure it is set to plain text mode per this post) and edit this section of the page
Code:
<div id="page">
<span class="title">Browse Archive:</span><hr /><br />
<div align="center">
<BROWSE_CATEGORIES>
<br /><br />
<THUMBNAILS>
</div>
</div>
replacing the red text with the content that you would like the page to display, and changing the blue text to the proper page title.

To add the links for the new pages, you would need to edit this section of code in all of the _template.html files in the Simple template:

Code:
<span class="menu">
<a href="index.php" title="Return to Homepage">Home</a> |
<a href="<SITE_BROWSELINK>" title="Browse">Browse</a> |
<a href="index.php?x=about" title="About">About</a>
</span>
Here is the same code with the html added for 2 new pages - you'll need to edit it to reflect your page names and the proper url:

Code:
<span class="menu">
<a href="index.php" title="Return to Homepage">Home</a> |
<a href="<SITE_BROWSELINK>" title="Browse">Browse</a> |
<a href="index.php?x=about" title="About">About</a> |
<a href="index.php?x=newpage1" title="New Page 1">New Page 1</a> |
<a href="index.php?x=newpage2" title="New Page 2">New Page 2</a>
</span>
The newpage1 portion of the url would be the first part of the template file name, i.e., info_template.html would translate to index.php?x=info.

Hope this helps!
__________________
My photoblog: KP Images
Reply With Quote
  #3  
Old 10-04-2008, 08:24 PM
guiz Offline
pp veteran
 
Join Date: Oct 2006
Location: Italy
Posts: 86
... and to do it without index.php? ...

Code:
<span class="menu">
<a href="./" title="homepage">home</a> |
<a href="<SITE_BROWSELINK>" title="browse">browse</a> |
<a href="link" title="link">link</a> |
<a href="about" title="about">about</a>
</span>
and the .htaccess file for a rewrite of the page name:

Code:
RewriteEngine On

RewriteRule ^(browse|link|about)$ index.php?x=$1&pagenum=1 [NC]
PS: to change to "browse" you must edit the file index.php:

Code:
$tpl = ereg_replace("<SITE_BROWSELINK>","./index.php?x=browse",$tpl);
$tpl = ereg_replace("<SITE_BROWSELINK_PAGED>","./index.php?x=browse&amp;pagenum=1",$tpl);
will be:

Code:
$tpl = ereg_replace("<SITE_BROWSELINK>","./browse",$tpl);
$tpl = ereg_replace("<SITE_BROWSELINK_PAGED>","./browse&amp;pagenum=1",$tpl);
Reply With Quote
  #4  
Old 10-24-2008, 04:06 PM
danceswithmoths Offline
forum loafer
 
Join Date: Oct 2008
Posts: 3
thanks so much for the help- took me awhile to refind the forum, appreciate the replies
Reply With Quote
  #5  
Old 11-26-2008, 07:31 AM
iamadrenaline Offline
forum loafer
 
Join Date: Nov 2008
Posts: 4
Quote:
Originally Posted by dhdesign View Post
It's fairly easy to create new pages.

I would suggest using the browse_template.html from the simple theme to use as the basis for each new page. You would need to do "save as" with the proper template name (i.e., info page would be info_template.html; a contact page would be contact_template.html) for the filename.

Once you have saved the file, open it in a plain text editor similar to Notepad (Windows) or TextEdit (Mac-make sure it is set to plain text mode per this post) and edit this section of the page
Code:
<div id="page">
<span class="title">Browse Archive:</span><hr /><br />
<div align="center">
<BROWSE_CATEGORIES>
<br /><br />
<THUMBNAILS>
</div>
</div>
replacing the red text with the content that you would like the page to display, and changing the blue text to the proper page title.

To add the links for the new pages, you would need to edit this section of code in all of the _template.html files in the Simple template:

Code:
<span class="menu">
<a href="index.php" title="Return to Homepage">Home</a> |
<a href="<SITE_BROWSELINK>" title="Browse">Browse</a> |
<a href="index.php?x=about" title="About">About</a>
</span>
Here is the same code with the html added for 2 new pages - you'll need to edit it to reflect your page names and the proper url:

Code:
<span class="menu">
<a href="index.php" title="Return to Homepage">Home</a> |
<a href="<SITE_BROWSELINK>" title="Browse">Browse</a> |
<a href="index.php?x=about" title="About">About</a> |
<a href="index.php?x=newpage1" title="New Page 1">New Page 1</a> |
<a href="index.php?x=newpage2" title="New Page 2">New Page 2</a>
</span>
The newpage1 portion of the url would be the first part of the template file name, i.e., info_template.html would translate to index.php?x=info.

Hope this helps!

Hi,

I tried your method and now my Browse becomes http://example.com/browse.
However, my other links remain as index.php?x=aboutus, etc.

Does anyone have any idea in correcting this such that ALL the links are now under index.php?
Reply With Quote
  #6  
Old 11-26-2008, 09:15 AM
iamadrenaline Offline
forum loafer
 
Join Date: Nov 2008
Posts: 4
Hi,

I tried guiz's method of leaving out the index.php. However, I am only able to remove the index.php from my Browse page. Is there any other way to remove the index.php from more than one page?
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 11:52 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs