If editing the .tpl files won't achieve what you want, (which I find it hard to believe that it's nigh on impossible, as suggested above), then use CSS to hide what you don't want.

52

(11 replies, posted in Feature requests)

SuperMAG wrote:

mmm i was looking for ip user detection thing, to see if one user have mutiple accounts. i mean some people make 10 accounts.

Unless they are on a static I.P, I.P address detection methods to prevent multiple registrations, (or for most other scenarios, for that matter), will be a complete waste of time. Unless one has strict control of whom connects and how, I.P methods are fairly useless. An I.P can change in the blink of an eye.

Scripted wrote:

My point I'm trying to make here is VI, NOTEPAD are simple and easy to use for quick fix here and there but they are not the best tools for Software Development, because may not designed as Software Development IDE tools. 


Matt ...  if you keep arguing that VI is the best tool for the software development, then there is nothing I can say.

Seeing as you find it perfectly acceptable to ignore what I actually write and transpose it with your opinion and interpretation, saying nothing more would be a boon, IMO, as I have no intention of repeating what I have said several times before, just so that you can again ignore what I wrote.

Scripted wrote:

Can you name a few IDE that you have used and were crap?

I never said any were crap. I merely said that I personally detested all other tools I had tried. I obviously wouldn't still be using Vi and other command line tools if anything else had rocked my boat.


Scripted wrote:

but in a large development environment a professional IDE should be used instead.

Again, that is nothing more than your opinion/preference. The word 'should' is out of place.

That's what media="handheld" is for with stylesheets. Just add another style entry specifically for handhelds to the head section of the page.

You have mentioned nothing there which cannot be done with minimal effort directly from command line tools, other than CSS previewing. That is what browsers are for, however. I have no intention of agreeing with your opinion. However, stating that your preferred tools are better than others is, to restate what I said earlier, complete bollocks.

If you're happy with what you personally use then all well and good. Don't state blatant untruth's, however. Whatever form of editor etc which one uses is completely dependant upon ones personal preferences, 99% of the time. Accept the fact that your opinion is exactly that and not a statement of fact. I, for one, would use Vi whatever the scenario. I've tried a lot of the other tools and, personally, I detest them. However, I wouldn't attempt to try and say that all other options are crap. It's merely preference.

Parpalak wrote:

I think this code is placed into a Wordpress plugin and then is eval'ed. And there is no defined FORUM_ROOT constant in Wordpress.

Ah, I thought he was doing it the opposite way around. My apologies. big_smile

Parpalak wrote:

We wanted to implement the reCAPTCHA support but switched to other tasks. Maybe someone knows a good GPL script that generates CAPTCHA images. We could use it in pun_antispam.

http://www.phpcaptcha.org/

Look over on punres.org. Not sure if anything will match your exact requirements, but there are some advertising mods on there.

Just for future reference, precede requires/includes with FORUM_ROOT, not hard coded paths.

This line:

include '../sitetools/pages/login.php';

should be:

include FORUM_ROOT.'sitetools/pages/login.php';

That constant is defined in every script so will always point to the correct location.

Scripted wrote:

If you are an owner of a company ... I don't think you would consider "vi" for your software development IDE.  Because it wastes time and money.

That's why Visual Studio 2008, Microsoft Express, Dream Weaver are available.

In my opinion, via + notepad are good for quick and dirty stuff ... but for long run ... consider professional IDE editor. (save time and money)


I did try thinking of a subtle response to that but failed miserably.

In all honesty, that is a complete load of bollocks spouted through ineptitude and|or ignorance.

esupergood wrote:

Correct. But so what?
For the next projet you use the same CMS but with different content. Just like starting a new project in Dreamweaver.

So in your opinion, any website you produce has to have a CMS at its core?

fantasma wrote:
MattF wrote:

If that's what he means, everything I've heard so far also points to it working fine, as a rule, with mobile devices in it's default state.

It's no true, My forum not show with Windows mobile 6.0 on mobile device.

Useful to know for future reference. Just on a slight tangent, is it specifically your forum that looks a bit iffy on that device, or Pun in virgin form, (i.e: no CSS or other tweaks/alterations), also?

That line wants putting back to how it was originally.

Was the mod working fine before you updated your install?

Scripted wrote:

I sometimes use Dreamweaver for CSS.

Personally, Vi. For everything.

View the HTML source code on your registration page:

http://www.speakmoroccan.com/forum/register.php

You now have two PHPSESSID's there. big_smile

I may be missing something here, but can you post that line you've just altered in your register.php file up here again, as it is at this moment in time?

That differs from what is being displayed in your page output:

<p><input type="image" src="register.php?genImage=true&PHPSESSID=2bdc1edc470e96ac59111f024ea5d7b1" alt="Captcha Box" title="Click the box for next step" width="200" height="150" border="0"></p>

This line from your script generates that:

<p><input type="image" src="register.php?genImage=true" alt="Captcha Box" title="<?php echo $lang_common['captchabox img title'] ?>" width="<?php echo $picture->imageX; ?>" height="<?php echo $picture->imageY; ?>" border="0"></p>

There is nothing which could be generating, (that I can see offhand), the PHPSESSID in that register.php you have posted.

colak wrote:

I guess you have to use them to understand. Textpattern stores all content, templates, css in a database accessible and editable via a browser which renders any other editors obsolete.

Cheers for that explanation. smile That would only be of any use for directly editing files related to that particular CMS/Blog though, would it not? Not usable on anything external to itself.

Require or include.

http://uk.php.net/manual/en/function.require.php
http://uk.php.net/manual/en/function.include.php

70

(32 replies, posted in PunBB 1.3 discussion)

SuperMAG wrote:

well my guess is privicy, you can find the location, ISP and other information from an ip address address.

One wouldn't store the I.P address at all if absolute privacy was the paramount concern.

At the end of the day, if people don't want their online presence known, they shouldn't be online.

71

(32 replies, posted in PunBB 1.3 discussion)

SuperMAG wrote:

but i am still curious why Head_lice does want this.

I'd personally guess at either paranoia or merely misguided attempts at security. If someone can access your DB directly, whether the I.P and P.M's are encoded or not is rather low on the list of things one should be addressing.

umnstuff wrote:

I know the basics

That's a broad stick. big_smile Look in register.php where the $_POST information is, (when the completed form is submitted), and integrate that into your own script. All the relevant parsing and sanitising routines and the user check/creation queries are there.

jacofan wrote:

I think he thought on an extension what makes punbb viewable also on cell phones... But I think nowadays the most of the cell phones support simple html/xhtml pages, so punbb is viewable already... now I am posting from a SE W890i f.e. ...

If that's what he means, everything I've heard so far also points to it working fine, as a rule, with mobile devices in it's default state.

colak wrote:

I do all coding within textpattern and if i need to change any php or other web based documents transmit does the job just fine smile

I'm still no wiser. smile What/how exactly do they allow for the editing of files?

75

(5 replies, posted in Programming)

Scripted wrote:

This piece of code is a complete reference, i'm not sure what else do you want to know.

Personally, nothing. smile Any half capable coder will know exactly what to do with that code you posted. I meant that it may be better to provide a fuller solution for those who are not as familiar with PHP as yourself. For example, checking to see whether certain variables are already cached or not and caching them if not, including files and caching their contents etc.