You are not logged in. Please login or register.
Active topics Unanswered topics
Search options (Page 2 of 13)
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.
If you use the folder based fancy you got almost the same but without the .html
that helps
Did you use the fancy scheme re-write?
And clearing you cache files?
thanks, but it is still not ready to use in a production forum.
I think that you should use hook "ft_about_pre_copyright" or hook "ft_about_pre_quickjump".
to get the line higher.
Thanks, now it works ok
Nope, but you can alter main.tpl so that it looks like your website.
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.
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
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 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.
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.
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.
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
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.
Members can only thank a user one time for making a particular post.
See http://testpunbb.kierownik.nl/post4.html#p4
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?
Posts found: 26 to 50 of 316