[trean] Categories show up as numeric and a fatal error when I
forget to select a category.
Chris Albertson
alb@chrisalbertson.com
Tue, 17 Sep 2002 16:04:25 -0500
This message is in MIME format.
---------------------- multipart/mixed attachment
Hey there Ed,
That category number problem was bothering me as well. There were two spots I
felt needed to be fixed, so I just kinda took it upon myself to fix em.
They were:
1) The main browse screen
2) The add screens drop-down selector for the category.
When I fixed those, I caused a few other errors that I went through and fixed
as well. I believe my changes are fairly stable. You can put them in an try
them if you like. They files are attached to this email.
Note: I'm not a developer on this project. If one of the developers wants to
take a look at my changes and incorporate them or whatever, please feel free.
I'm just doing my part to help out this cool add-on for Horde.
If I get the desire, I'll try to fix the edit link... unless someone else has
started on that...
Attached:
bookmarks.inc - Made it display the name, instead of the address of the cat.
add.php - Fixed the param sent to browse.php
Trean.php - Fixed the catSelect function to get the cat name.
edit.php - Fixed the param sent to browse.php
changes.txt - detailed changes I made.
Cheers!
--
Chris Albertson
alb@chrisalbertson.com
Never be afraid to try something new.
Remember that amateurs built the ark. Professionals built the Titanic.
4783147098
Quoting Edwin Culp <eculp@encontacto.net>:
> I am just trying trean for the first time in several weeks and have a
> couple of observations/questions?
>
> When selecting a category for my bookmarks I see a numeric value rather
> than the name that I gave the category. What must I do to enable the
> name?
>
> If I mistakenly try to add a bookmark to "My Bookmarks" I get the following
> error:
>
> Fatal error: Call to undefined function: getname() in
> /usr/local/www/data/horde/trean/add.php on line 27
>
> Have I configured something wrong?
>
> Thanks,
>
> ed
> --
> --
> Trean mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: trean-unsubscribe@lists.horde.org
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
---------------------- multipart/mixed attachment
ICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgPHRkIGNsYXNzPSJoZWFkZXIiIGNvbHNw
YW49Ijw/cGhwIGVjaG8gZmxvb3IoJGNvbHMvMikgPz4iPgogICAgICAgICAgICAgICAgICAgIDw/
cGhwCgkJICAgICAgICAgICRj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IFRSRUFOX1RF
TVBMQVRFUyAuICcvYm9va21hcmsvJyAuICRwcmVmcy0+Z2V0VmFsdWUoJ2Jvb2ttYXJrX3RlbXBs
YXRlJykgLiAnLmluYyc7CiAgICBmb3JlYWNoICgkYm9va21hcmtzIGFzICRpZCA9PiAkYm9va21h
cmspIHsKICAgICAgICBpZiAoJGkgPT0gMCkgewogICAgICAgICAgICBlY2hvICc8dHI+PHRkIHN0
eWxlPSJwYWRkaW5nOiA1cHgiIHdpZHRoPSInIC4gZmxvb3IoMTAwLyRjb2xzKSAuICclIj4nOwog
ICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGVjaG8gJzx0ZCBzdHlsZT0icGFkZGluZzogNXB4
IiB3aWR0aD0iJyAuIGZsb29yKDEwMC8kY29scykgLiAnJSI+JzsKICAgICAgICB9ICAgICAgICAK
ICAgICAgICAKICAgICAgICAkYm9va21hcmstPmRpc3BsYXlIVE1MKCR0ZW1wbGF0ZSwgSG9yZGU6
OmdldEZvcm1EYXRhKCdjYXRlZ29yeScsICctMScpLCAkaWQpOwogICAgICAgICRpKys7CiAgICAg
ICAgaWYgKCRpID09ICRjb2xzKSB7CiAgICAgICAgICAgIGVjaG8gIjwvdGQ+PC90cj5cbiI7CiAg
ICAgICAgICAgICRpID0gMDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBlY2hvICI8L3Rk
PlxuIjsKICAgICAgICB9CiAgICB9CgogICAgaWYgKCRpICE9IDApIHsKICAgICAgICBlY2hvICI8
L3RyPlxuIjsKICAgIH0KPz4KICAgICAgICA8L3RhYmxlPgogICAgPC90ZD4KPC90cj4KPC90YWJs
ZT4K
---------------------- multipart/mixed attachment
PD9waHANCg0KcmVxdWlyZV9vbmNlIFRSRUFOX0JBU0UgLiAnL2xpYi9jb25zdGFudHMucGhwJzsN
Cg0KLyoqDQogKiBUcmVhbiBCYXNlIENsYXNzLg0KICoNCiAqICRIb3JkZTogdHJlYW4vbGliL1Ry
ZWFuLnBocCx2IDE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