Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 01:48 am EDT
Geeklog Forums
Staticpages/journal plugins hacks
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
Static Pages
Improved url re-writing, lifted from gallery, tired of
http://www.domain.tld/staticpages/index.php/somepage?
Fear not, I use gallery integration and stole this idea from there. Create a .htaccess file, and add the following:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /staticpages/
RewriteRule ^([^.?/]+)/$ /staticpages/$1 [R]
RewriteRule ^([^.?/]+)$ /staticpages/index.php?page=$1 [QSA]
Funky. Journal Plugin I got the latest code from CVS, then added the ability to extend the mood list just by dropping mood emoticons into a folder. Yay. Also got the journal entry view templated and working on this further. I mailed the guy who seems to be working on the plugin to ask if I could add my code to CVS but no reply. Anyway, if you are interested in it, let me know. (Not posting the code yet incase this post prompts interest from the maintainers) Enjoy the staticpages hack ;-) [edit]Something really odd is going on with this formating...[/edit]
Text Formatted Code
Options +FollowSymLinks
RewriteEngine On
RewriteBase /staticpages/
RewriteRule ^([^.?/]+)/$ /staticpages/$1 [R]
RewriteRule ^([^.?/]+)$ /staticpages/index.php?page=$1 [QSA]
Funky. Journal Plugin I got the latest code from CVS, then added the ability to extend the mood list just by dropping mood emoticons into a folder. Yay. Also got the journal entry view templated and working on this further. I mailed the guy who seems to be working on the plugin to ask if I could add my code to CVS but no reply. Anyway, if you are interested in it, let me know. (Not posting the code yet incase this post prompts interest from the maintainers) Enjoy the staticpages hack ;-) [edit]Something really odd is going on with this formating...[/edit]
9
9
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by THEMike:I mailed the guy who seems to be working on the plugin to ask if I could add my code to CVS but no reply.
That\'s because the guy can\'t make up his mind how to proceed with the development of the Journal plugin ![Mr. Green Mr. Green](https://www.geeklog.net/forum/image_set/pixel.gif)
7
8
Quote
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
Couple of people emailed me asking for this code:
http://www.skinmaster.co.uk/downloads/php/Journal.zip
I don\'t have access to my email right now as my ADSL is down, but I\'ll drop them a line later.
In the process of setting up a CVS for a fork of the plugin, and finishing off this stuff.
Please note the contents of the templates folder needs to be moved to /journals
Mike
10
10
Quote
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
Version 1.8 of the functions.inc (and I suspect all earlier versions) have a couple of icky bugs in the pagination down the bottom (i.e. it doesn't display the last page if it's a partial page (less than 30 items) and it doesn't do the next link correctly)
here is a fixed version of the function
here is a fixed version of the function
8
12
Quote
All times are EDT. The time is now 01:48 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content