I just released the new version.
I tested it to work on 1.2.7 and it contains some new features, like

- default amount of invitations given to each new user, adjustable by user group
- custom invitation text to be set by the admin. This will be appended to the user definable invitation text.

Download through punres.org

or here for the Win** folks
Mod_Invitation_1_1_1.zip

or here for the **nix folks
Mod_Invitation_1_1_1.tgz

I'll add some instruction here how to mod the 1.1 version so you won't have to install it all over again wink

As for the email link: I removed the A tag in the 1.1 version that's right.

As for the admin text:

That is a very good idea, I could store that in the config table. I'll see for that when I find the the time.

So I changed all the colors now. Much brighter without being too boring I hope.
Maybe you can see if that suits you better - and thanks for the input anyway!

downliner wrote:

I am working on a html version of the Dolls site but Google hates us anyway sad

I do not know if a multi like Google spends its time hating Dolls websites smile
I think it's more the missing HTML....

254

(9 replies, posted in General discussion)

If you don't want that you'll have to register punBB as a brand which is AFAIK  money- and time consuming.
Let alone that it wouldn't give you total security.
Or you ask punBB users around the world to register domains in their respective tld as a donation and make you the owner. That would give you some security. I believe php did that at least partly.

You do that in include/mod_invitation.php
in line 29:

     $mtext = $form['invitation_text'] . "\n".$lang_invitation['Forum Link'].$act_link;

You can add, tweak, remove text here.
Have fun!

Write something like

DENY FROM ALL
ALLOW FROM 192.168.1.1, 192.168.1.2

in this order

257

(101 replies, posted in PunBB 1.2 discussion)

So that means you can open and read the file but teh .htaccess functions do not work.
This sounds like some trouble with the web server configuration.
Since I can't know about that maybe you ask your host if there's anything he can do.
Sorry for not having better news....

Connorhd wrote:

from my experience a light background is easier to pull off than a dark one, and its best to stick to greys and an accent colour not all colours.

Yes, I believe you are right.
But then it would probably look so serious again.... I will not spam this board with an endless list of all the serious sites I've done but I felt so happy that I could do what I want once in my life here smile
But admitted I apparently overdid it.....

259

(17 replies, posted in PunBB 1.2 bug reports)

Connorhd wrote:

what do you want to change? give an example of something you want to do which you can't with the current tpls and/or CSS?

Well, the code is really full of HTML.
And if you want to make a major change in appearance (not only colors / DIV behaviour) you might get into trouble because you have to do it all in the scripts.

Plus, it's more difficult to handle.
To write, install and test a mod that involves for example profile.php which has something around 1600 lines you spend lots of time uploading...

But then again, for most purposes you won't have to touch the code anyway.
Also it's major work to rewrite punBB that way. It's not done by just stuffing the HTML somewhere else (I know because I tried with my own template parser http://www.script.gr/go/scripts/STP/ and I gave up on it)

Thanks, I will try that.
The longer I look at it the more it hurts my eyes.. smile

First I just thought about all the content so I spent weeks putting all that together.
In the end I was so exhausted that I just felt like going wild. But I guess you have to be an artist to go wild and people still like it ....

BTW; I didn't know the New York Dolls still exist although they really look a bit like Mick Jagger clones today smile
However, I guess I would never have found out because Google doesn't really love pure Flash websites....
I mean it looks really nice and all (except for the Mick Jagger clones) but do you think it's clever to have no HTML version at least?
None of my business, I know. Sorry for bugging you... wink

Ohhhhh... sorry. Sorry. Sorry.
I overlooked something.
Easiest thing is you go to include/invitation_db.php and replace the complete function checkInvitation with:

function checkInvitation($email,$code)  {
  global $db;
  //Check if the given Emailis the same as the one used in the invitation
  $result = $db->query("SELECT userid from ".$db->prefix."invitations 
        WHERE code='" . $code . "' and used='00000000000000'") or error('Unable to fetch Invitation code', __FILE__, __LINE__, $db->error());
    if (!$db->num_rows($result) or $db->num_rows($result) == 0)  {
       return "No data";
       }
    else  {
      list($userid) = $db->fetch_row($result);
      $result = $db->query("update  ".$db->prefix."invitations set used=NOW()
        where code='" . $code . "'") or error('Unable to update Invitation table', __FILE__, __LINE__, $db->error());
      return $userid;
      }
  
  }

I tested this and it does work.

To take the email check out do the following:
In your include directory, open invitation_db.php and go to line 64

  $result = $db->query("SELECT userid from ".$db->prefix."invitations 
        WHERE recipient='" . $email . "' and code='" . $code . "' and used='00000000000000'") or error('Unable to fetch Invitation code', __FILE__, __LINE__, $db->error());

and replace it with

  $result = $db->query("SELECT userid from ".$db->prefix."invitations 
        WHERE code='" . $code . "' and used='00000000000000'") or error('Unable to fetch Invitation code', __FILE__, __LINE__, $db->error());

That's all.
As for the automatic filling, that's a lot more work.
try this first & see if it fixes your problem wink

OK I saw it.

This happens when the user who registers gives an email address that is different from the one the email was sent to.
Say, you send an invitation to masti@land.com .
Now the recipient clicks the link, goes to the registration page and in his email address field he enters
somebody@else.org

Then you get this failure.

Stupid of me to have this undocumented, but I think for security reasons it makes sense

If you hate this feature I'll tell you how to stop the email double check smile

mastiland wrote:

i get this error

aftr going to invitation link to register form and typing the all the fileds and aftr submitting this error come

An error was encountered
Error: Unable to verify invitationNo data.

what to do now?

So you clicked on the link in the invitation email you got and this error came up?
How did the link look?
The message means more or less that it was an invalid invitation id.

pogenwurst wrote:

Is there some command I can run in the DB Management plugin? Sorry, but I have almost no knowledge of MySQL.

AFAIK you cannot do that with the management plugin.

But for people who have no knowledge of MySQL (AND for people wh hate typing everything on the command line) there is phpMyAdmin. If you haven't got it yet you should get it today.
It lets you easily manage your database in the browser.
http://www.phpmyadmin.net/

266

(8 replies, posted in PunBB 1.2 discussion)

Ah.

smile

267

(18 replies, posted in Feature requests)

Rickard wrote:

HTML e-mail is pure evil

So I spent hours thinking how to say it in a polite manner - just to read this. smile

268

(8 replies, posted in PunBB 1.2 discussion)

Yeah, sure.
My point was just:
Since punBB doesn't use the GET array anyway it doesn't matter what clever stuff a hacker wants to try there, it will be ignored anyway. smile

I might be wrong there though...

269

(19 replies, posted in Programming)

What you do is that you put the Timestamp field that you want to update automatically first
MySQL automatically updates the first timestamp field it finds, but only that one.
So my tables normally look like

id int(11) not null auto-increment,
mytext varchar(48),
update_date timestamp,
create_date timestamp

This way the field "update_date" gets updated automatically.
When I first insert a row there I would go like this:

insert into MYTABLE(mytext, create_date) values('.$mytext.', NOW())

that's all, the rest is filled automatically.
On update I would do

update MYTABLE set mytext='.$mytext.' where id=$id

and the update_date field will be updated automatically.

270

(18 replies, posted in Feature requests)

Dexus wrote:

IMHO Rickard, you should support html subscription format natively, because it's really relevant feature.

Like most people who don't want to read hundreds of huge mails about penis enlargements and get molested by viruses I totally block html mails. The stupid tags just get stripped.
I have never ever seen a real use for them.
If I have something to say that requires layout and/or images I send a link to a web page.

So if you want to be sure your mails do not look crappy you shouldn't rely on html in emails. And if you have to send the html as an attachment so people can choose which one to view.

I added the following feature to the mod invitation:

- U can define now for each group how many invitation each user will get by default.
This amount is given out to every new user, and, on group change, will be added to his current amount.

As for the invitation text:
Since I want people to write their own text I didn't want to mess around with that. Maybe I'll make a default text sometime but that involves all those language files again.. sad

Have a look here, if it's OK I'll upload it to punres as well.

Mod Invitation 1.1

It's not a mod update, it's a new version. Hope you can figure out where the changes are.
The only tricky part is that it requires a new field in PREFIXgroups. That's defined in mod_install.php so maybe you can do it in phpMyAdmin.

pogenwurst wrote:

There are a few issues:

pogenwurst wrote:

- IMHO, the card is hard to edit. When I tried editing it myself, I went through a billion errors before I could get it right.

Yes, you have to do that in the source.
I'll see if I can change that.

pogenwurst wrote:

- The link tag is messed up - I see the HTML when I receive the invitation. Do you have to configure the MIME type as text/html or something? (I really don't know)

No, you don't have to change the mime type. I thought some mail clients wouldn't interprete the link as a clickable one without the html tag but that was maybe wrong...
I'll fix that.

pogenwurst wrote:

- The card should include some info on the board - title, admins, moderators, etc

Hm. I think I'll add some description of the board so people know *what* they are invited to. You have a point there.
But I think the admin names are not so important

pogenwurst wrote:

- The admin plugin should have a field for a default header, footer, etc to send with each invite
- If you can get HTML working right, BBCode might be nice, though it wouldn't be that important

Sorry, I am very conservative in this and IMO emails have nothing, absolutely noting to do with HTML and they shouldn't. They are messages, information, whatever, and seeing the amount of mail traffic nowadays any tag that you do not send helps smile
So - no HTML mails for me, thanks.

pogenwurst wrote:

I guess that's kind of a hefty list, but it's just my opinion. Overall, the mod is great. I'd just hate to see it spoiled by a few minor issues. I made a few minor chages to your code; if you want, I can email them to you, though I don't think they'd be much use, they're just aesthetic (did I spell that right?) changes.

Yes, go ahead, I am absolutely sure it is not perfect. This thing is terribly bad to test (no esxcuse, just an explanation wink )

pogenwurst wrote:

Also, when someone doesn't have any invitations left, a message should be displayed in the profile view, rather than just a blank pane. I'm not sure - do new members automatically receive invites based on the amount given to each group in the plugin? If not, they should.

You are right there, however, this is difficult to implement.
I'll see for that when I find the time.

Not unlesss you want the server to change it.... smile
you will probably get annoying error messages when updating the admin options as well.

Hm.
I find it terribly easy to modify this mod.
n the header it explains which tag does what, so all you have to do is remove the ones you hate from the code that's to go into parser.php.
Should be done in minutes...

Hi,
what kind of improvement do you have in mind?

As for the limitation:
In the administration you can give X invitations to any user.
X can well be a number above 1000000 smile