26

(9 replies, posted in Programming)

RTaulbee wrote:

Secondly, I modified the cache_hooks.php file to do the "if statement" and perform the swap.

        if(pun_pm_unread_messages_integer() > 0)
            {
                $visit_elements['<!-- forum_visit -->'] = preg_replace('#(<p id="visit-links" class="options">.*?)(</p>)#', '$1 <span><a href="'.forum_link($forum_url['pun_pm_inbox']).'"><img src="myimage.gif"></a></span>$2', $visit_elements['<!-- forum_visit -->']);            
            }
        else
            {
                $visit_elements['<!-- forum_visit -->'] = preg_replace('#(<p id="visit-links" class="options">.*?)(</p>)#', '$1 <span><a href="'.forum_link($forum_url['pun_pm_inbox']).'">'.pun_pm_unread_messages().'</a></span>$2', $visit_elements['<!-- forum_visit -->']);    
            }

I realize there are always many ways to solve a problem and this is just one.  I also realize that it's another database query that needs to happen, but performance isn't an issue.  This is for a small forum with maybe 15-20 active posters and only 3-4 online at a time.  It may not be the best or what you think is the best, but I understand it and like it.  Mission accomplished!

Thanks for the input again Garcia/Sirena.

If you do this then when you then install a new extension or regenerate new cache files the cache_hooks.php gets overwritten with a new one and you will lose the code I think.

Best is to do is some other way.
What way I do not know.
Just a hint so you know.

Not Found

Sorry, you are looking for something that isn't here.

28

(9 replies, posted in PunBB 1.3 troubleshooting)

If you use the folder based fancy you got almost the same but without the .html

29

(60 replies, posted in PunBB 1.3 extensions)

Wuu wrote:

Not working!

that helps hmm

30

(9 replies, posted in PunBB 1.3 troubleshooting)

Did you use the fancy scheme re-write?

31

(3 replies, posted in PunBB 1.3 troubleshooting)

And clearing you cache files?

32

(33 replies, posted in PunBB 1.3 extensions)

thanks, but it is still not ready to use in a production forum.

33

(33 replies, posted in PunBB 1.3 extensions)

http://www.mediafire.com/?sharekey=48ab … f6e8ebb871

I think that you should use hook "ft_about_pre_copyright" or hook "ft_about_pre_quickjump".
to get the line higher.

35

(6 replies, posted in PunBB 1.3 bug reports)

Thanks, now it works ok smile

36

(4 replies, posted in PunBB 1.3 discussion)

Nope, but you can alter main.tpl so that it looks like your website.

37

(11 replies, posted in PunBB 1.2 troubleshooting)

When people have to login or register to help you, you will proberbly will not get any help.
People do not like to register to help people.

Make your board public availible so we can have a look or have a demo acount so people can have a look.

yep, mine is also correct.

Netherlands.

39

(33 replies, posted in PunBB 1.3 extensions)

He downloaded it from my site http://kierownik.nl

goto administration --> Settings --> Feature's and then down on the page you have Topic and post content

There you find what you need I think.

I have changed some things that you changed to much smile

you had changed $forum_url to $forum_img but $forum_url holds the re-write urls of the whole forum so if someone would use fancy re-writing that is would not work wink and some more stuff.

I will put the download online later today.

http://kierownik.nl/download/bekijk-doc … -v0.1.html

This extension hides urls posted in posts and shows a sentence that asks them to either login or register to see the link.

Report any problems here.

43

(33 replies, posted in PunBB 1.3 extensions)

Just found the original mod.

With that mod you can only thank once for a topic and then it wraps everyone in a topic at the end of the thread.
http://users.informatik.haw-hamburg.de/~falken_e/ipb/thx_13.jpg
Here is the link to the description http://mods.invisionize.com/db/index.php/f/1335
And another thread of the mod http://forums.invisionize.com/Thx-Machi … 53968.html

You have to enable it per forum to use it.

The only thing I did not find yet what time is between thanks

Another option should be that the admin could remove thank you's from a thread. And if a user is removed the thank you's should also be removed but not sure about this one.

44

(33 replies, posted in PunBB 1.3 extensions)

have to look at those options and how to include them.

They are all nice ideas.

What about only thanking a person once a day?
I already put the time() in the thanks table so that would not be hard to implement?

$forum_user['is_guest'] you can see if the user is a guest
$forum_user['id'] is the id of the user.

There are more variables in $forum_user, just echo the array and you know them

46

(33 replies, posted in PunBB 1.3 extensions)

1) But ofcourse the extension is not finished yet, that link will go to a page in the users profile that shows us the thank you's

2) I do not think that the thank you's should be a link to thank the user because there is the users info and not the posts info.

3) I first make it like how it is now and later I will try to make it so that it uses ajax.

47

(33 replies, posted in PunBB 1.3 extensions)

Members can only thank a user one time for making a particular post.

See http://testpunbb.kierownik.nl/post4.html#p4

48

(33 replies, posted in PunBB 1.3 extensions)

Should a thank you be removed it the post is removed?

I checked my own rewrite base and that one is set to just /

did you set the base url for punbb to /forum?