[pmwiki-users] PublishPDF - Can you disable URL links on the output PDF?

2007-10-07 Thread Crisp, Steve [UK]
All,
 
As subject really.  I'm getting some really quite impressive results with 
PublishPDF.  The only problem is that I would like to disable the URL links (to 
Wiki pages) in the output PDF document.  Just to be clear at present it 
displays (W) which when you click goes to the wiki page.
 
Do I have to adjust the templating system on the server?  By the way, I'm using 
my own installation of the server as I am behind a firewall so adjusting these 
templates is possible if that is what is required.
 
Thanks in advance for any assistance,
-Steve.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Is it possible? Draft Page indication and crossreference

2007-07-05 Thread Crisp, Steve [UK]
Hagan,

One slight problem...

If you are using the publish draft support i.e.:

$EnableDrafts = 1;
$EnablePublishAttr = 1;

...then the recipe below seems to conflict by always greying out the
'Publish' button in the Edit Form.  The symptoms are as if you have set
a 'publish' password on the page or group (obviously I have not).

I didn't notice it first of all as I'd previously edited a site
protected page and entered the admin password.  Only when I restarted my
browser to edit the sandbox I saw the Publish button greyed out.

Commenting out this recipe and refreshing the page brought back the
Publish button.

I've tried to debug this one and can not see what could be causing it.
Perhaps it's the names of your variables conflict with
scripts/draft.php.  I'm wondering if you see the same thing.

Any ideas / pointers welcome?

Best regards,
-Steve.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:pmwiki-users-
> [EMAIL PROTECTED] On Behalf Of Crisp, Steve [UK]
> Sent: 05 July 2007 12:49
> To: H. Fox
> Cc: pmwiki-users@pmichaud.com
> Subject: Re: [pmwiki-users] Is it possible? Draft Page indication and
> crossreference
> 
> Hagan,
> 
> You are a star!  I've implement that IAW your recipe and it works
well.
> Instead of adding to the sidebar I thought it best to add to the
> 'Site.PageActions' file.  On mine I colour code 'View Draft' to red
and
> 'View Published' in green.
> 
> Thanks for your support on this one - great enhancement.
> -Steve.
> 
> > -----Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of H.
> Fox
> > Sent: 04 July 2007 21:02
> > To: Crisp, Steve [UK]
> > Cc: pmwiki-users@pmichaud.com
> > Subject: Re: [pmwiki-users] Is it possible? Draft Page indication
and
> > cross reference
> >
> > On 7/4/07, H. Fox <[EMAIL PROTECTED]> wrote:
> > > Or you can put this in config.php
> > >
> > >$pagename = ResolvePageName($pagename);
> > >if (CondAuth($pagename, 'edit')
> > >  && PageExists($pagename.'-Draft')) { $EditDraft = TRUE; }
> > >
> > > and use this in your SideBar
> > >
> > >(:if enabled EditDraft:)
> > >[-([[{*$FullName}-Draft | View draft ]])-]
> > >(:if:)
> >
> > Better still, switch in both directions.
> >
> >http://www.pmwiki.org/wiki/Cookbook/SwitchToAndFromDraft
> >
> > Hagan
> 
> ___
> pmwiki-users mailing list
> pmwiki-users@pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Is it possible? Draft Page indication and cross reference

2007-07-05 Thread Crisp, Steve [UK]
Hagan,

You are a star!  I've implement that IAW your recipe and it works well.
Instead of adding to the sidebar I thought it best to add to the
'Site.PageActions' file.  On mine I colour code 'View Draft' to red and
'View Published' in green.

Thanks for your support on this one - great enhancement.
-Steve.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of H.
Fox
> Sent: 04 July 2007 21:02
> To: Crisp, Steve [UK]
> Cc: pmwiki-users@pmichaud.com
> Subject: Re: [pmwiki-users] Is it possible? Draft Page indication and
> cross reference
> 
> On 7/4/07, H. Fox <[EMAIL PROTECTED]> wrote:
> > Or you can put this in config.php
> >
> >$pagename = ResolvePageName($pagename);
> >if (CondAuth($pagename, 'edit')
> >  && PageExists($pagename.'-Draft')) { $EditDraft = TRUE; }
> >
> > and use this in your SideBar
> >
> >(:if enabled EditDraft:)
> >[-([[{*$FullName}-Draft | View draft ]])-]
> >(:if:)
> 
> Better still, switch in both directions.
> 
>http://www.pmwiki.org/wiki/Cookbook/SwitchToAndFromDraft
> 
> Hagan

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Is it possible? Draft Page indication and cross reference

2007-07-04 Thread Crisp, Steve [UK]
All,

I am using pmwiki-2.2.0-beta54 with the new EnableDrafts feature.  This
works really well however I'd like to know if the following capability
is available/possible.  Below assumes you have a 'published' page and a
draft page saved (as work in progress)

1. Draft page indicator - From the published page have a link/indication
that a draft page exists.  One example could be an asterix (*) next to
the page title marking a draft exists.  Clicking the asterix would take
you to view the latest draft.

2. Draft caveat - When viewing a draft page, could the page title
(:title:) be appended with 'DRAFT' in red?  This would be a good
indication that you are viewing the Draft page not the published page.
Obviously, the draft suffix could be configurable via a variable for
I18N purposes.

IMHO the above two enhancements would really compliment the existing
page draft capability within PmWiki.

If anyone has any hints on how to do this please let me know as I've
hacked a few PmWiki recipes before.

TIA,
-Steve.


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] List of Designers for Hire who use PmWiki

2007-03-09 Thread Crisp, Steve [UK]
Sandy,
 
May I suggest something to add to your template below for those that are 
earning money directly from PmWiki:
 
* Percentage revenue donated back to PmWiki author (or more realistically a 
yes/no answer that they donate _something_ for every order) - only fair.
 
If I were to contract someones services who relies on OpenSource software as 
the core of there business I would select someone with the highest donation 
after choosing a competent one.
 
:-)



From: [EMAIL PROTECTED] on behalf of Sandy
Sent: Fri 09/03/2007 14:41
To: pmwiki-users@pmichaud.com
Subject: [pmwiki-users] List of Designers for Hire who use PmWiki



Extracts from a hobby newsgroup:

A: You put your illustrated story up in Word format. I can't read it.
B: Oh, is Word format bad? It's the only way I could think of.

B: I'm so excited! I've hired a professional to design my new site! Will
I still have to learn HTML to put up my illustrated story?

(Her current site a paid Yahoo site.)

Anyone else out there biting their tongue?

Of course, I wanted to tell her, too late, "Contact one of the people on
the PmWiki list."

Is it worth (or advisable) to have a page on PmWiki.org of people who
create PmWiki sites for others?

Brainstorm of what to include:

* size and price (range). Do you prefer small hobby sites or
multi-nationals?
** include 1 year domain reg & hosting? Hobbiests don't know to ask.

* link to own site and portfolio

* usual fine print about PmWiki not actually approving any of these
desginers.

Sandy







___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] phpBB authentication to pmwiki auth

2007-03-05 Thread Crisp, Steve [UK]
Tegan,
 
I came up with something a month ago with the help of a few people on here.  
Having just read your message it kicked me in to creating my first recipe!
 
Please find it below:
http://www.pmwiki.org/wiki/Cookbook/AuthPhpBB2
 
It's working quite well on the site I did.  I've added a few design notes and 
enhancement suggestions just in case someone wants to take it further.  It 
could do with a 'community' review to test for security loop holes, etc.
 
Consider this a working first version though as I'm using it.
 
Comments, suggestions most welcome,
-Steve.


> -Original Message-

> From: [EMAIL PROTECTED] [mailto:pmwiki-users-

> [EMAIL PROTECTED] On Behalf Of Tegan Dowling

> Sent: 04 March 2007 11:57

> To: PmWiki Users

> Subject: [pmwiki-users] phpBB authentication to pmwiki auth

> 

> This recipe uses UBBThreads forum authentication to regulate pmwiki

> edit authorization:

> http://www.pmwiki.org/wiki/Cookbook/UBBThreadsIntegration

> 

> Does this by any chance inspire anyone to go and do likewise with phpBB?

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Integrating PmWiki and phpBB2 - site aggregation

2007-02-02 Thread Crisp, Steve [UK]
OMG!  That's way too simple!  Thanks very much.  PmWiki rocks ... again.



From: [EMAIL PROTECTED] on behalf of Patrick R. Michaud
Sent: Fri 02/02/2007 20:09
To: Crisp, Steve [UK]
Cc: pmwiki-users@pmichaud.com
Subject: Re: [pmwiki-users] Integrating PmWiki and phpBB2 - site aggregation



On Fri, Feb 02, 2007 at 07:47:47PM -0000, Crisp, Steve [UK] wrote:
>Before I can create a mini recipe I could do with some advice on how to
>'unplug' my changes from pmwiki.php.  Basically I've added a new function
>called HandleHTML, see below: 
>
>function HandleHTML($pagename, $auth = 'read') {
>...
>}
>
>... and extended the $HandleActions array accordingly, see below:
>
>$HandleActions = array(
>  'html' => 'HandleHTML',
>  
>
>So back to my question ... how can I unplug the above changes from
>pmwiki.php into perhaps a new cookbook/gethtmlpage.php file?

Your question almost answers itself!  :-)  Simply create
cookbook/gethtmlpage.php as follows:

http://www.pmichaud.com/mailman/listinfo/pmwiki-users


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Integrating PmWiki and phpBB2 - site aggregation

2007-02-02 Thread Crisp, Steve [UK]
On Sun, Jan 28, 2007 at 09:11:10AM -, Crisp, Steve [UK] wrote:

> I'm still trying to integrate PmWiki and phpBB2 so users think its the

> same site.  The site has a simple structure, header, sidebar, content

> and footer.  The idea is to use PmWiki as the main site and switch out

> to phpBB2 when users click 'forum' in the sidebar.  Sounds simple, but

> the things I've done so far (see below) are not working well and I'm

> looking for advice.

 

I now a great solution (for me) that integrates PmWiki and phpBB2 as a single 
(looking) site.  Basically I've added an 'action=hmtl' to return the raw html 
of any particular page.  In my case, _all_ I wanted to do was get the Wiki 
sidebar in to the forum.  I went down this route to keep the interface between 
PmWiki and phpBB2 as minimalistic as possible and in a format that the forum 
skin (style) can deal with.  Additionally it's dynamic so updates to the 
sidebar in the Wiki are reflected in the forum.

 

I've ended up with something that works very well. See 
http://www.enginuity.org/ for the Wiki and click the 'Forums' link in the 
sidebar - they look very similar.

 

Before I can create a mini recipe I could do with some advice on how to 
'unplug' my changes from pmwiki.php.  Basically I've added a new function 
called HandleHTML, see below:  

 

function HandleHTML($pagename, $auth = 'read') {
  if (PageExists($pagename)) {
$page = RetrieveAuthPage($pagename, $auth, true, READPAGE_CURRENT);
if (!$page) Abort('?cannot read $pagename');
PCache($pagename,$page);
$text = @$page['text'];
$text = '(:groupheader:)'[EMAIL PROTECTED]'(:groupfooter:)';
print MarkupToHTML($pagename, $text);
  }
  else {
Abort('?$pagename does not exist');
  }
}


... and extended the $HandleActions array accordingly, see below:

 

$HandleActions = array(
  'html' => 'HandleHTML',
  

 

So back to my question ... how can I unplug the above changes from pmwiki.php 
into perhaps a new cookbook/gethtmlpage.php file?

 

Obviously any other recommendations/improvements to my abortion of an attempt 
to code php (copying what I saw around that did similar)!

 

Regards,

-Steve.

 

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Integrating PmWiki and phpBB2 - site aggregation

2007-01-28 Thread Crisp, Steve [UK]
Kathryn,
 
Thanks for your recommendations.  Sounds like keeping them separate is best 
especially combined with your rewrite rule approach.  Thanks for that.
-Steve.



From: [EMAIL PROTECTED] on behalf of Kathryn Andersen
Sent: Sun 28/01/2007 09:50
To: pmwiki-users@pmichaud.com
Subject: Re: [pmwiki-users] Integrating PmWiki and phpBB2 - site aggregation



On Sun, Jan 28, 2007 at 09:11:10AM -, Crisp, Steve [UK] wrote:
> I'm still trying to integrate PmWiki and phpBB2 so users think its the
> same site.  The site has a simple structure, header, sidebar, content
> and footer.  The idea is to use PmWiki as the main site and switch out
> to phpBB2 when users click 'forum' in the sidebar.  Sounds simple, but
> the things I've done so far (see below) are not working well and I'm
> looking for advice.

I must admit, I would think that the simplest method, if possible, would
be to make them completely separate, but design identical skins for
them.  That's what I did for my own site, www.katspace.org; most of the
pages use a CMS based on Embperl, but some sections of the site use
PmWiki with CleanUrls.  I used Apache rewrite to hide the difference
even more, but that was mainly because I didn't want broken links.

For example, the reviews section http://www.katspace.org/reviews/
uses my CMS, but http://www.katspace.org/reviews/Books/ is actually
using PmWiki, with the following Apache rewrite rules to hide its
real location:

# rewrite rules /reviews/Books/ -> /revstuff/Books/
RewriteRule ^/reviews/Books$
/var/www/katspace/reviewswiki/index.php?n=Books.Books [QSA] [L]
RewriteRule ^/reviews/Books/$
/var/www/katspace/reviewswiki/index.php?n=Books.Books [QSA] [L]
RewriteRule ^/reviews/Books/(.*)$
/var/www/katspace/reviewswiki/index.php?n=Books.$1 [QSA] [L]

The actual books "wiki" is at
http://www.katspace.org/revstuff/Books/Books

using Apache Alias commands to say where the wiki directory actually is:

Alias /revstuff/pub /var/www/katspace/reviewswiki/pub
Alias /revstuff/uploads /var/www/katspace/reviewswiki/uploads
Alias /revstuff /var/www/katspace/reviewswiki/index.php

Anyway, my original point is that http://www.katspace.org/reviews/
*looks* the same as http://www.katspace.org/revstuff/Books/Books
because I made a PmWiki skin which matched the template I was using for
the main reviews page.

Of course, the downside of this approach is that you're going to have
some duplication of effort, since you'll need to create one skin +
sidebar for the PmWiki part of your site, and another skin + sidebar for
the phpBB2 part of the site.  Of course, this won't work if it isn't
possible to make a phpBB2 skin that looks like the PmWiki skin, but I
don't get that impression from the looks of your site...

Kathryn Andersen
--
 _--_|\ | Kathryn Andersen  <http://www.katspace.com 
<http://www.katspace.com/> >
/  \|
\_.--.*/| GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
  v |
| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |   -> Earth -> Sol -> Milky Way Galaxy -> Universe

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Integrating PmWiki and phpBB2 - site aggregation

2007-01-28 Thread Crisp, Steve [UK]
Dear all,
 
This is a long thread but does capture highlight a new (to me!) application of 
PmWiki being able to aggregate multiple sites - this in essence is what I'm 
trying to do.  Your advice, recommendations, comments very much welcome - even 
if it's to say DON'T DO IT!
 
I'm still trying to integrate PmWiki and phpBB2 so users think its the same 
site.  The site has a simple structure, header, sidebar, content and footer.  
The idea is to use PmWiki as the main site and switch out to phpBB2 when users 
click 'forum' in the sidebar.  Sounds simple, but the things I've done so far 
(see below) are not working well and I'm looking for advice.
 
The two OpenSource sites I'm trying to integrate are here:
 
http://www.enginuity.org/  - original site uses phpBB2
 
http://scoobypedia.co.uk/enginuity/index.php 
   - replacement 
site using PmWiki.  Note this is only temporarily hosted on my site and will be 
moved back to enginuity when complete.
 
I've tried using (:includeurl:) markup to embed a forum within a Wiki page.  
This looks quite good with a cut down 'style' for those familiar with phpBB2.  
See here:
 
 
http://scoobypedia.co.uk/enginuity/index.php/Forums/Forums
 
(:includeurl:) was the first thing I tried, looks the best so far but has two 
limitations; (1) forum size is variable so you can never get the right size of 
the embedded html - drawback using object/iframe created via includeurl.  (2) I 
can't seem to pass a variable to includeurl as the website to load.  I need 
this as people go straight to specific forum topics so I'd need to catch that 
(redirect), push them through the above Wiki page but pass the correct forum 
URL.  This I just can not do as I'm not a php/PmWiki expert by a long shot.
 
The other thing I've tried is to is o the other way - include the Wiki (sidebar 
only) within the phpBB2 forum.  I thought I'd accept defeat and make the forum 
site 'look' like the Wiki site.  I thought I would embed a cut down Wiki using 
just the sidebar only when viewing the forum as this will give the impression 
the two sites are the same.  I produced a cut down PmWiki skin and 
configuration that only displayed a Wiki sidebar given a specific URL.  I 
embedded it using iframe (yuk!) by adjusting the phpBB2 forum template/style.  
This looked good also but I forgot what an iframe did - as soon as I click on a 
Wiki sidebar item it goes to that page but within that frame - obviously I 
wanted it redisplay the whole web page and switch back out of the forum to the 
Wiki.
 
I've spent a few days looking at the options and have exhausted my knowledge  
:-(  I'm after any other ideas and/or approaches.  I appreciate this is not 
strictly all about PmWiki here however do feel that the requirements (and 
eventual solution) here would be of benefit to many others trying to make 
PmWiki a choice for website(s) integration.
 
This should be simple but can see that this might need to be done in php.  
Other avenues(read: rabbit holes) I'm going down is to see if I can produce a 
cut down PmWiki which offers an API (function) to phpBB2 which simply returns 
the html from PmWiki's sidebar.  That way perhaps the phpBB2 forum software can 
be configured to display the sidebar in an additional table column - this time 
without frames.  The unknown (for me) is if including parts of PmWiki php 
script(s) within phpBB2 will cause any conflict between the two software.  I've 
seen PmWiki's 'MarkupToHTML' function and that is what I'll start looking at 
exploiting next.
 
Your advice, recommendations, comments _very_ much welcome.
-Steve.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Slender: prebundled wikis

2007-01-25 Thread Crisp, Steve [UK]
--- "Neil Herber (nospam)" <[EMAIL PROTECTED]> wrote:
> Finding the common recipes might point the way to
> items that should be included in the core.

--- Martin Fick wrote:
> I think that this would be a very good exercise.
> Perhaps one way to help figure this out would be to
> have recipes indicate that they require or might be
> simplified if they required (made use of) another
> recipe (if such cases exists)?

IMHO I agree that Patrick has the PmWiki about right growing it slowly from 
well established recipes and/or user requirements being addressed by the same.
 
I'm thinking back a year or so ago when I first came across PmWiki and what 
would have helped me back then.  I would have liked to see a single page 
listing all 'current' recipes sorted by the number of votes they had.  If you 
are using a recipe in your solution you could simple add a single vote 
(somehow) to the associated recipe(s).  Independant of any specific bundle 
we'll see the most popular items bubble to the top thus most likely to add 
value to new starters.  One could also consider the top 'few' as core 
candidates for the future?
 
Just my £0.02p worth
 
-Steve.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] pmwiki-2.2.0-beta24 released (wikiwords disabled, creole support)

2007-01-22 Thread Crisp, Steve [UK]
Patrick wrote:
>
> I've just released 2.2.0-beta24
>
 
Congratulations on another fine release!  The creole support looks good too.
 
One thing I hate though ... that their 'WikiWizard' editor isn't in my 
favourite Wiki - PmWiki!  All my community would love a WYSIWYG editor.  The 
exisiting Perl based one on the cookbook didn't work that well.  WikiWizard 
seems Java based and independant of Wiki engine, although requires a servlet 
container.  This kind of restricts it usage on the Internet but perhaps not on 
Intranets.
 
I might even see if I have time to look at integrating the two for our Intranet.
 
Regards,
-Steve.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Better integration of phpBB with PmWiki - combined search results

2007-01-21 Thread Crisp, Steve [UK]
Dear all,
 
I'm currently using (:includeurl:) markup to embed a forum within a Wiki page.  
This works quite well especially with a cutdown 'style' for those farmiliar 
with phpBB2.
 
I'm now looking to merge the 'quick' Wiki search form - top right in example 
below - with something similar for the phpBB forum search.
 
http://scoobypedia.co.uk/enginuity/index.php/Forums/Forums 
 
 
I'm kind of thinking of a drop down list next to the text input box with lists 
Wiki, Forum, Both.
 
The real assistance I'm after is to integrate this with PmWiki's search 
results.  The real problem I've got is to bring the search results, say to 
search the Forum, back 'within' the Wiki engine/site layout.
 
I'm solution engineering here but, what about modifying the Wiki search results 
template (is there one?) to also allow me to include search result from another 
url - perhaps using (:includeurl 
http://example.com?searchterms=$MY_SEARCH_TERMS :).  The $MY_SEARCH_TERMS would 
some kind of PmWiki variable/parameter we got from the search form.
 
Your advice, recommendations, comments very much welcome.
-Steve.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Mediawiki to PmWiki migration - how to preserve old links

2007-01-14 Thread Crisp, Steve [UK]
Thanks Andrew, exactly what I was after.  When I'm finished with this migration 
and iron out any more issues I'll write a Cookbook item on PmWiki covering 
MediaWiki to PmWiki migration and backwards compatibility.

Andrew wrote:

> Assuming I've understood you right, you want
> Reading_and_Writing_to_ECU = ReadingAndWritingToECU
>
> $title = @$_REQUEST['title'];
>$title = str_replace('_', ' ', $title);
>$title = ucwords( $title );
>$title = str_replace(' ', '', $title);
>header("Location:
> http://scoobypedia.co.uk/enginuity/index.php/Enginuity/$title 
> 
>  

-Steve.

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Mediawiki to PmWiki migration - how to preserve old links

2007-01-13 Thread Crisp, Steve [UK]
Patrick, all,
 
Feedback on your idea below ... it works great however could do with a slight 
enhancement I'm sure is easy for you guys.
 
How can I tweek the code extract below to capitalise each word in $title below 
before removing the underscore.  This will allow me to support mixed case 
MediaWiki page names.  Example URLs below:
 
http://wiki.enginuity.org/index.php?title=Frequently_Asked_Questions 
   
(already supported)
http://wiki.enginuity.org/index.php?title=Reading_and_Writing_to_ECU (note the 
case of 'and')
 
Patrick R. Michaud wrote:
> I'd do it with a special-purpose php script.
>$title = @$_REQUEST['title'];
>   $title = str_replace('_', '', $title);
>   header("Location: 
> http://scoobypedia.co.uk/enginuity/index.php/Enginuity/$title 
> 
>  ");

-Steve.

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Mediawiki to PmWiki migration - how to preserve old links

2007-01-13 Thread Crisp, Steve [UK]
Ignore last, sent too soon!
 
Patrick R. Michaud wrote:
> I'd do it with a special-purpose php script.
>$title = @$_REQUEST['title'];
>   $title = str_replace('_', '', $title);
>   header("Location: 
> http://scoobypedia.co.uk/enginuity/index.php/Enginuity/$title 
> 
>  ");

Andrew wrote:

> You should also send the proper HTTP response header, it won't make much
> difference for normal users, but for search engines will now that the
> new location is the same page (keeping it's page rank) rather than
> reindexing it as a new page (starting with a 0 page rank).
> 
> If the location is permanent use:
>header('HTTP/1.1 301 Moved Permanently');
> or if it's only a tempory location use:
>header('HTTP/1.1 307 Temporary Redirect');

Yet again you guys have come up with the goods.  PmWiki [community] rocks!  
I'll have a play with what you have said.

Thanks Patrick and Andrew,

-Steve.

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Mediawiki to PmWiki migration - how to preserve old links

2007-01-13 Thread Crisp, Steve [UK]
Patrick R. Michaud wrote:
> I'd do it with a special-purpose php script.
>$title = @$_REQUEST['title'];
>   $title = str_replace('_', '', $title);
>   header("Location: 
> http://scoobypedia.co.uk/enginuity/index.php/Enginuity/$title 
> 
>  ");

Andrew wrote:You should also send the proper HTTP response header, it won't 
make much
difference for normal users, but for search engines will now that the
new location is the same page (keeping it's page rank) rather than
reindexing it as a new page (starting with a 0 page rank).

If the location is permanent use:
header('HTTP/1.1 301 Moved Permanently');
or if it's only a tempory location use:
header('HTTP/1.1 307 Temporary Redirect');


Andrew


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Mediawiki to PmWiki migration - how to preserve old links

2007-01-12 Thread Crisp, Steve [UK]
All,
 
You (Patrick) came up with the goods with my last problem (ref. redirect to 
URL), here's another
 
I'm migrating this OpenSource site from MediWiki to a proper Wiki - PmWiki of 
course!  I need to preserve links to around 50 articles (read: URLs) and have 
them redirected to the relevant (new) PmWiki articles.  Example below:
 
Existing MediaWiki URL:
http://wiki.enginuity.org/index.php?title=Frequently_Asked_Questions
 
New PmWiki URL (temporary site!):
http://scoobypedia.co.uk/enginuity/index.php/Enginuity/FrequentlyAskedQuestions
 
I want to retire the 'old' wiki so running it parallel is a last resort.
 
Has this problem already been solved before?  Do you recommend it's solved in 
PmWiki or in some kind of web server configuration?
 
As always thoughts, advice much welcome.
-Steve.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Redirect to URL (not existing Wiki Page) - possible?

2007-01-12 Thread Crisp, Steve [UK]
> On 2007-01-12 Patrick R. Michaud is rumoured to have said:

[snip great idea]

[/snip]

 

Patrick,
 
Thanks for your response.  I really like your idea, and agree that the 
protected 'Site.Redirects' page would be preferable.  This sounds similar to 
the InterMap stuff I've used before.
 
I'm not a php expert but from the great detail you provide can have a good play.
 
Thanks,
-Steve.
 
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Redirect to URL (not existing Wiki Page) - possible?

2007-01-12 Thread Crisp, Steve [UK]
Redirect to an external URL sounds too easy for PmWiki, can it already
be done with the core PmWiki or perhaps a plugin?  Ideas solicited...

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Crisp, Steve
[UK]
Sent: 11 January 2007 23:40
To: pmwiki-users@pmichaud.com
Subject: [pmwiki-users] Redirect to URL (not existing Wiki Page) -
possible?

 

Quick one for all you knowledgable ones ... using the latest beta of
Pmwiki how can I redirect a Wiki Page to another (external) URL - not
another Wiki Page?

 

the markup below is conceptually what I'm after:

 

(:redirect http://another.site.co.uk :)

 

Can this be done?

 

Why do I want to do it?  Well I'm running a random banner ad (on an
OpenSource software project site) using 'RandomPage'.  This rotates
through a few banner graphics.  If someone clicks on one it goes to a
Wiki page which I want to redirect to the external ad page.  I want to
go via an intermediate Wiki page because I want to register a hit on my
Wiki page so I can look at my web logs to get a quick click count for
each banner.  I'm sure there are better ways to do this.

 

-Steve.

P.S: Obviously there is a small security concern here however I did
intend to password protect the couple of pages that would redirect to an
external web site.

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Redirect to URL (not existing Wiki Page) - possible?

2007-01-11 Thread Crisp, Steve [UK]
Quick one for all you knowledgable ones ... using the latest beta of Pmwiki how 
can I redirect a Wiki Page to another (external) URL - not another Wiki Page?
 
the markup below is conceptually what I'm after:
 
(:redirect http://another.site.co.uk :)
 
Can this be done?
 
Why do I want to do it?  Well I'm running a random banner ad (on an OpenSource 
software project site) using 'RandomPage'.  This rotates through a few banner 
graphics.  If someone clicks on one it goes to a Wiki page which I want to 
redirect to the external ad page.  I want to go via an intermediate Wiki page 
because I want to register a hit on my Wiki page so I can look at my web logs 
to get a quick click count for each banner.  I'm sure there are better ways to 
do this.
 
-Steve.
P.S: Obviously there is a small security concern here however I did intend to 
password protect the couple of pages that would redirect to an external web 
site.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users