Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#51 Re: User Discussion & Help » NEW! Plugins for xinha » 2005-03-23 07:59:56

I'm getting file not found for that link.

If you email me the package (adam at iwdev.net) including pre-made example pages I'll get them set up somewhere as a demo.

#52 Re: User Discussion & Help » NEW! Plugins for xinha » 2005-03-23 07:46:48

The best way will probably be to send te code to gogo and also put up a demo of the plugins somewhere so people can check out how they look.

#53 Re: User Discussion & Help » Design A Logo for Xinha! » 2005-03-23 07:01:40

I'd actually leave the the English text in that Arial Black or whatever font it is in the first logo.

The Chinese text already provides complexity and 'style' to the logo (at least for non-Chinese speakers) while the English text is simple and gets the name across clearly.

It's possible to take a theme too far (imo) wink

#56 Re: User Discussion & Help » ImageManager? » 2005-03-22 04:39:21

All that's needed is to have the permissions by default filter down as read/write accessible from the 'root' given to the script by default. That way people who don't want permissions don't have to do anything other than set a path, while those who do can set/write a script to set the array of permissions.

#57 Re: User Discussion & Help » Possible to integrate helene into xinha? » 2005-03-21 12:10:26

This is seriously tempting me to try and figure out code shielding just to get it done and usable hehe.

Aside from that, does anyone know how easy it is to change/add tags for Helene to work with? One thing I'd like to do for my personal use is swap <?php and ?> for [php] and [/php] to go with my template system.

#58 Re: User Discussion & Help » Possible to integrate helene into xinha? » 2005-03-21 11:49:44

Looks very nice.

Now we just need code shielding so PHP, etc. isn't lost when switching back to wysiwyg and it's sorted!

#59 Re: User Discussion & Help » ImageManager? » 2005-03-21 09:38:08

That or just create a sub-forum here for development discussion?

#60 Re: User Discussion & Help » Possible to integrate helene into xinha? » 2005-03-21 07:56:15

Sounds good, don't suppose you've got a working example up somewhere? smile

#61 Re: User Discussion & Help » Developers Developers Developers » 2005-03-21 06:08:15

I'd be willing to provide space on my server (and did email you a while back), but I'm not currently running Apache2 so I guess that's out.

#62 Re: User Discussion & Help » Spacing Problem » 2005-03-21 06:06:41

I have to say imho going back to the original plan (and your last suggested implementation goog) still looks the cleanest solution to the problem. Sometimes the simplest solution is the best smile

#63 Re: User Discussion & Help » ImageManager? » 2005-03-21 05:56:25

Yep, could do something along the lines of:

$path = str_replace("/config.inc.php", "", $_SERVER['PHP_SELF']); // set to specific path if required

#64 Re: User Discussion & Help » Spacing Problem » 2005-03-20 16:27:38

If you were to do something like that it'd probably need to be divs rather than spans as spans are not block-level elements and would appear on the same 'line' as each other unless set to display:block

I'll think about the rest of what's been said later as my brain's not up to it at the moment tongue

#65 Re: User Discussion & Help » Spacing Problem » 2005-03-20 10:03:53

I think rather than empty paragraphs, this is where Yermo's original idea is worthwhile. Rather than a blank paragraph, you just have a different class applied to normal paragraphs and paragraphs to immitate line breaks (on shift+enter).

If people then want normal enter presses to be like line-breaks, you just swap the styles round and shift-enter becomes a traditional paragraph. It involves addin a bit of code to Xinha, but I think would be better in the long run than having empty paragraphs

#66 Re: User Discussion & Help » Preferred way of setting content into Xinha? » 2005-03-19 18:38:08

That's what htmlspecialchars() is for. Can't say I've had any trouble with it.

#68 Re: User Discussion & Help » Preferred way of setting content into Xinha? » 2005-03-19 18:14:21

I just put the content in the textarea as one normally would (run through htmlspecialchars() in PHP to avoid problems), e.g.

<textarea name="ta" id="ta"><?php echo htmlspecialschars($content); ?></textarea>

EDIT: added the PHP in to possibly explain better

#69 Re: User Discussion & Help » Can anyone share an image manager (uploader)? » 2005-03-19 18:09:28

I just uploaded the EFM beta niko sent me to http://www.iwdev.net/htmlArea_EFM_10b.zip

I haven't had time to try it myself, but it should get you started until Yermo posts his version or EFM is released as a final, fully-working version.

#70 Re: User Discussion & Help » Spacing Problem » 2005-03-19 18:05:22

The only problem then is that within the editor it'll appear with margins and that's where people will complain, so you'd have to edit the iframe code that Xinha uses to add the styled div and it's back to editing Xinha again.

#72 Re: User Discussion & Help » ImageManager? » 2005-03-18 06:07:30

On the permissions front, it should be possible to pass in an array of permissions follwoing the structure of the filesystem, along the lines of:

Array ( [0] => Array ( [/] => 7 [0] => Array ( [somedir] => 7 [0] => Array ( [somefile] => 7 ) [1] => Array ( [somefile2] => 7 ) [2] => Array ( [somefile3] => 7 ) ) [1] => Array ( [somefile] => 4 ) ) )

Hopefully people get the idea from the above, but basically you have a multi-dimensional array representing the filesystem where each file has a value attached to it that's the same as a linux permission (read/write/execute). Execute is obsolete for the purposes of ImageManager, but it doesn't hurt to have it in case someone finds a use for it.

When ImageManager then wants to display/move/whatever a file it can refer to the permissions array. For example, it only displays a file if the file's permission bit-matches with 4.

With a simple defined input like an array of names and numbers, people should fairly easily be able to input their own permissions to the ImageManager.

#73 Re: User Discussion & Help » Adapting Xinha to default to textmode » 2005-03-18 05:50:55

I haven't got round to doing anything for Xinha yet, but for the HTMLArea beta I wrote a function to run in onLoad that cycled through textarea objects and turned them into HTMLAreas unless they apepared in a 'nowysiwyg' array.
After that, I just had to add one line of javascript for each textarea I didn't want to be a wysiwyg:

<script language="JavaScript1.2">
dontwysi[dontwysi.length] = 'f1code';
</script>
<textarea name="f1code" class="standardta"></textarea>

The reverse could easily be done (only make textareas wysiwyg if they DO appear in the aray). I'll post the code if anyone wants it, though I warn that my lack of javascript knowledge means there's probably a cleaner way of doing it.

#74 Re: User Discussion & Help » ImageManager? » 2005-03-17 11:23:47

Thanks niko, I'll probably check it out sometime tonight and then put it up for download somewhere.

#75 Re: User Discussion & Help » ImageManager? » 2005-03-17 08:24:46

I'd love a copy of EFM if you could send it to me (adam at iwdev . net).
Has Afru asked people not to host it for download anywhere as it seems a lot of hassle to keep emailing it out to people that want it?

Board footer

Powered by FluxBB