Topic: Change in do_smilies()

Hello Guys!

I have to say, very nice job!

Here is my request:
Maybe it is possible to modify the do_smilies func so, that we can use outside of punbb, e.g. in an guestbook on the same site.
'$1<img src="/'.$path_from_docroot_to_punbb.'/img/smilies/'


Regards, chepra

Re: Change in do_smilies()

Yes, all links should be updated to use PUN_ROOT. But I guess that's one of those things that you'll have to do yourself >=/

Re: Change in do_smilies()

Chepra: Insert $pun_config['o_base_url'] and you should be fine. Don't forget to add $pun_config to the globals list in the do_smilies() function.

elbekko: They won't be updated to use PUN_ROOT. They will be prefixed with o_base_url though. PUN_ROOT won't make sense because PUN_ROOT is the relative path on the actual server and might not match the relative path in the URL. These problems arise primarily when using "fancy URLs".

Edit: http://dev.punbb.org/changeset/540

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Change in do_smilies()

As long as it works smile

Re: Change in do_smilies()

I have just written my absolute URL in front of /img/smilies/ smile
Thanks Rickard!