From: barry <sla...@i1...> - 2002-01-23 21:14:47
|
how do I remove plugins form bender? thanks! Barry |
From: alex <al...@ya...> - 2002-01-25 10:41:05
|
At 21:13 23/01/02, barry wrote: >how do I remove plugins form bender? Delete them? Plugins are usually a ".pl" file plus some html fragments stored in a database. To remove them you can just delete (or move) the relevant ".pl" file leaving the html fragments in place. These wont cause any problems other than making it harder to find the other ones you do want. Alex |
From: barry <sla...@i1...> - 2002-01-25 17:45:57
|
At 10:44 AM 1/25/2002 +0000, alex wrote: >At 21:13 23/01/02, barry wrote: >>how do I remove plugins form bender? > > >Delete them? > >Plugins are usually a ".pl" file plus some html fragments stored in a >database. >To remove them you can just delete (or move) the relevant ".pl" file >leaving the html fragments >in place. These wont cause any problems other than making it harder to >find the other ones you do want. > >Alex Well, OK, removing a link is easy enough. But what I can't figure out is how to get them out of the menu - for instance - journal on the customize homepage screen. The chain of perl code used to create that menu in the first place is pretty obfuscated. Thanks, Barry |
From: alex <al...@ya...> - 2002-01-25 18:46:07
|
Ok, Lets assume you are talking about the code which ends up generating the html something like <!-- start template: ID 87, users;menu;default --> [ deleted for brevity..... <A HREF="//news.diversebooks.com/journal.pl">Journal</A> | <A HREF="//news.diversebooks.com/users.pl?op=userclose">Logout</A> ] <!-- end template: ID 87, users;menu;default --> This template says [ [% FOR i = items %] <A HREF="[% i.value %]">[% i.label %]</A> [% " | " UNLESS loop.last %] [% END %] ] And that items is items = arrayref of hashref of menu items (value (link), label) OK - so you are saying you can't see where the items are defined (and deleting the link doesn't help....) Slash.pm contains createMenu, which itself calls getCurrentMenu, which itself calls.... You're right - it is a bit convoluted :-) This suggests to me that it is stored in a database table somewhere.... Well look at that - there is a table called menus, and columns called menu ("users"), label ("Journal"), and value ("something/journal.pl") Perhaps you could ammend this table and see what happens. Alex At 17:45 25/01/02, barry wrote: >At 10:44 AM 1/25/2002 +0000, alex wrote: >>At 21:13 23/01/02, barry wrote: >>>how do I remove plugins form bender? >> >> >>Delete them? >> >>Plugins are usually a ".pl" file plus some html fragments stored in a >>database. >>To remove them you can just delete (or move) the relevant ".pl" file >>leaving the html fragments >>in place. These wont cause any problems other than making it harder to >>find the other ones you do want. >> >>Alex > >Well, OK, removing a link is easy enough. > >But what I can't figure out is how to get them out of the menu - for >instance - journal on the customize homepage screen. The chain of perl >code used to create that menu in the first place is pretty obfuscated. > >Thanks, > >Barry |
From: alex <al...@ya...> - 2002-01-26 13:19:24
|
Hi folks, I've installed a few UseMod Wiki's so I thought I would try the Wiki Slash plugin on my Bender installation of Slash. (I want visitors to my book reviews site to add information on their favourite authors) I am having database problems - wiki.pl cannot update it. My slash database (MySQL) now has the two tables wikitext and wikipage I am getting web server log errors when trying to save to wikitext [Sat Jan 26 12:59:53 2002] [error] Which was called by:Apache::ROOTnews_2edivers ebooks_2ecom::wiki_2epl:/usr/local/slash/site/news.diversebooks.com/htdocs/wiki. pl:175:INSERT INTO wikitext (description,raw,cooked,version,wid,date,uid) VALUES ( NULL, 'Welcome to the DiverseBooks Wiki. Please spend some time entering info on you r favourite authors', '<p>Welcome to the <a href="//news.diversebooks.com/wiki.pl?page=DiverseBooks" >DiverseBooks</a> Wiki. Please spend some time entering info on your favourite a uthors</p>\n', '2', '1', now(), '2') Anyway - if you leave the description blank then the change does not get saved but no sensible user error message is produced.... Any ideas? Is this due to poor installation or an honest to goodness bug... PS I want to link to this wiki from externally eg http://news.DiverseBooks.com/wiki.pl?WilliamGibson Anyone know how I can do this? (It works with UseMod Wiki) Or to ask a slightly different question... Can I change this Wiki so that it has the same user inteface as UseMod Wiki? I like being able to create links like [[Alex McLintock|Your Author]] and I can't see how to get Recent Changes with the plugin. Of course this one uses MySQL which is better than usemod wiki so I can't just replace one with the other.... Alex |
From: alex <al...@ya...> - 2002-01-26 13:53:29
|
> > PS I want to link to this wiki from externally eg > > > > http://news.DiverseBooks.com/wiki.pl?WilliamGibson Doh! Its http://news.DiverseBooks.com/wiki.pl?page=WilliamGibson > > I can't see how to get Recent Changes with the plugin. Doh! I've found the Wiki box on the left which gives me the link.... http://news.diversebooks.com/wiki.pl?op=list The search for function doesn't seem to work for me. Does it work for anyone? Cheers |
From: barry <sla...@i1...> - 2002-01-26 19:21:43
|
At 06:49 PM 1/25/2002 +0000, alex wrote: >Ok, > >Lets assume you are talking about the code which ends up generating the >html something like > > ><!-- start template: ID 87, users;menu;default --> > ><snip> yes, that was the part I was referring to... >Well look at that - there is a table called menus, and columns called menu >("users"), label ("Journal"), and value ("something/journal.pl") > >Perhaps you could ammend this table and see what happens. Hmmm, if I do "select * from menus;" it loks like each menu item is assigned a seclevel that I presume is compared against the sec level of the current user. Interesting. So maybe all I need to do is - raise the seclevel on the users/journal item so only the admin will see it - adjust the file name/link so the jounral.pl file is not visible at all This seems like a perfect candidate for an admin screen - I don't know if it is in Fry or not, but I would like to suggest it for the future. Barry |