Jump to content

VAForum 2


Tom

Recommended Posts

  • 2 weeks later...

Hello, everyone!

I'm having problem with the charset using this add-on. My language is portuguese. It has accents into some words. This, for example, should be...

não tão bom, mas no momento não há diferença

... and it is being shown as...

n?o ? t?o bom, mas no momento n?o h? diferen?a

It has to be something inside the add-on, because on other parts of my site and add-ons it does not happen. Does anybody know how to solve it? It would be very appreciated.

Link to comment
Share on other sites

  • 3 weeks later...
  • 5 weeks later...

Quick and helpful update to this:

   <script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript">
   //<![CDATA[
   bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
   //]]>
   </script>
   <textarea style="width:100%; height:150px;">
   </textarea>

Replace your normal message textbox with that and you'll get a nice rich-text editor.

This will:

  • Prevent displaying a slash where the user enters an apostrophe
  • Allows formatting such as bold, underline, italics etc
  • Allows the importing of images and links

Simples ;)

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Great add-on Tom, I was looking for ages on how to link the phpBB forum with the phpVMS DB's, before realizing that phpBB is actually utter rubbish compared to all forum software out there.

I was wondering, as a suggestion but also as a cheeky request, is there any possibility of adding Sticky Posts feature? I'll try to have a crack at scripting it if I'll get some time this week, but with my limited PHP knowledge, I probably won't get far. I'll see how I go :D

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Ok the million dollar question. Has anyone ever figured out how to show an image or something in the forum index if there is a new post made? I have recent posts on my front page of my site but I don't like it being there. I have tried until I was blue in the face and I can not get it to let me know if there is a new post or not to show and imjage.

Link to comment
Share on other sites

After I've finished my last exam I'll have a look further into the permissions.

As for the line breaks, when adding a message you should use

nl2br($message);

and then when displaying the message you can use

ForumData::br2nl($message)

I hate to kick this up again, I did this once before and it worked. I have since replaced my files and now don't recall where I used this at. Can you give me a quick refresher Tom? Thanks!

Link to comment
Share on other sites

  • 1 month later...

Hey Guys,

Currently testing this on our site - Everything is working fine until you click edit on a post and try to delete it, it is showing the following error

Warning: Invalid argument supplied for foreach() in /home/xx/public_html/xx/core/templates/forum_post_list.tpl on line 9

Link to comment
Share on other sites

Hey Guys,

Currently testing this on our site - Everything is working fine until you click edit on a post and try to delete it, it is showing the following error

Warning: Invalid argument supplied for foreach() in /home/xx/public_html/xx/core/templates/forum_post_list.tpl on line 9

Is it the first post in a topic? You need to delete the topic else it's trying to take you into a topic with no posts.

Link to comment
Share on other sites

Hi Tom. Long time nochit chat. Hope all is well your way.

I just bumped in to something after using the forum the last few years.

I have had this happen twice now. I will use you and I as the example.

Here is the order of the problem:

1. Tom posts a new post

2. Ray replys to the post and submits.

3. Upon returning to the the forum I just replied to Tom in, there is no reply. Only the original post.

4. Ray checks the database to find that the data for the reply was entered in to the database correctly.

5. Ray checks latest forum posts on front page and it shows that I was the last to post but yet when clicking that link and going to the forum, there is no reply at all.

6. No matter if I go to the forum directly, or through the link from the latest posts, the reply will not be there.

7. Having others try to reply, same thing happens. Only the OP's post shows up. No replies.

Odd to say the least. This has only ever happened twice and it was to 2 different people about a month or two apart frome ach others occurence. No matter what I do, I can not recreate this problem.

Ideas? Thoughts? Concerns? Lets chat! :)

On a side note, Any way to get http://forum.phpvms.net/topic/5342-to-get-the-pagination-for-the-schedules-to-work/page__hl__datatables that to work in the forum? My topics listing is getting quite long. I have tried to get that to work only to fail miserably.

Link to comment
Share on other sites

  • 2 weeks later...

Hello, everyone!

I'm having problem with the charset using this add-on. My language is portuguese. It has accents into some words. This, for example, should be...

não tão bom, mas no momento não há diferença

... and it is being shown as...

n?o ? t?o bom, mas no momento n?o h? diferen?a

How can I move file to configure the language of the forum?

Link to comment
Share on other sites

No you don't need to edit files you need to edit the database settings. Go into phpMyAdmin and change the charset on all the forum_ tables.

And TAV1702 sorry I missed your post, best place to get me is on skype :)

That's not a problem I've heard of before, and it's hard to work out why it would ever happen without seeing it. Add me on skype and we can talk it through :)

Link to comment
Share on other sites

  • 1 month later...

Quick and helpful update to this:

<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript">
//<![CDATA[
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
//]]>
</script>
<textarea style="width:100%; height:150px;">
</textarea>

Replace your normal message textbox with that and you'll get a nice rich-text editor.

This will:

  • Prevent displaying a slash where the user enters an apostrophe
  • Allows formatting such as bold, underline, italics etc
  • Allows the importing of images and links

Simples ;)

Sorry but when i use your text editor i have blank post's

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...