TAV1702 Posted March 10, 2011 Report Share Posted March 10, 2011 1 major hurdle that I need to overcome is the need to attach images to forum posts without a user having to use code. I have some users on my test site that do not know a stitch of code and to try to teach them to use code in the forum is kind of like trying to teach a baby not to crap in it's diaper. Quote Link to comment Share on other sites More sharing options...
Tom Posted March 10, 2011 Author Report Share Posted March 10, 2011 Can they not get to grips with BBCode? Thankfully I've found a great text editor so an image button will be present Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 11, 2011 Report Share Posted March 11, 2011 It would be great to have a regular editor with full function, but the last one we found to use in the forum gave a nice opening for hackers. Someone recently posted another text editor, but I am not sure of it's status. And it is not the fact that they can not get their heads around code so much as having to have them upload to photobucket then place the bbcode on site etc etc. It would be much easier to load an image as an attachment and it shows up in the post kind of like the screenshot gallery does, but it would not need admin approval. Quote Link to comment Share on other sites More sharing options...
Angel Air Posted March 11, 2011 Report Share Posted March 11, 2011 It would be great to have a regular editor with full function, but the last one we found to use in the forum gave a nice opening for hackers. Someone recently posted another text editor, but I am not sure of it's status. And it is not the fact that they can not get their heads around code so much as having to have them upload to photobucket then place the bbcode on site etc etc. It would be much easier to load an image as an attachment and it shows up in the post kind of like the screenshot gallery does, but it would not need admin approval. Hi, That would be exactly the type of setup that would be needed i.e screenshot gallery also I think I am not sure but the editor you are talking about is the VMSeditor which can be found here http://forum.phpvms.net/topic/4606-vmseditor-11/ Which I have installed on my site but could not get it to work. If there is some way to adapt this to work with the forum that would be great. With the creators permission of course Scott Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 12, 2011 Report Share Posted March 12, 2011 Hi, That would be exactly the type of setup that would be needed i.e screenshot gallery also I think I am not sure but the editor you are talking about is the VMSeditor which can be found here http://forum.phpvms.net/topic/4606-vmseditor-11/ Which I have installed on my site but could not get it to work. If there is some way to adapt this to work with the forum that would be great. With the creators permission of course Scott Hi Scott. Thanks for that link. I will have a look. And you have the right to use any addon as you choose really as far as modifications go. BUT I do not think that you can offer the download on your site or alter it and then offer it as a dload either. I know not a single module I have now is default. I modify the hell right out of everything I have. Now various authors use various different licenses. It is up to the end user to read and understand said license before using. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 12, 2011 Report Share Posted March 12, 2011 Hey Tom, I was curious about something so I went ahead today and tried out the bbcode and all and it works good. However, a big image busts up the template pretty bad. Where might we find the place to limit the height and width of an image linked in a post? If there is not a place to edit, could there be one easily added? Say someone has an image that is 1024x768. I can tell you with certainty, that will bust my template. If said image was resized to say 800x600 or so I would be good to go. Thanks, Ray Quote Link to comment Share on other sites More sharing options...
Tom Posted March 16, 2011 Author Report Share Posted March 16, 2011 Hey Tom, I was curious about something so I went ahead today and tried out the bbcode and all and it works good. However, a big image busts up the template pretty bad. Where might we find the place to limit the height and width of an image linked in a post? If there is not a place to edit, could there be one easily added? Say someone has an image that is 1024x768. I can tell you with certainty, that will bust my template. If said image was resized to say 800x600 or so I would be good to go. Thanks, Ray Oops late reply, sorry Have you included forum_styles.tpl? It includes the following: .forum_img{max-width:90%;} which should remove any template busting (doesn't decrease the actual download size of the image, however) - that may be a non-IE thing, if you're using IE... Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 16, 2011 Report Share Posted March 16, 2011 Hi Tom. Yeah I do have that in the header of my layout.tpl. I wonder if my style is over riding that one. When I inserted some new classes in my css file, it completely changed the way the forum looked as far as the colors go. Maybe my css file and the forum css file are clashing? And I am using Firefox. Truth be known, I have never even looked at my site with IE. I guess I need to start looking at it in different browsers when coding. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 17, 2011 Report Share Posted March 17, 2011 Found another issue. When attempting to move a post, it only gives an option to move the post to the thread that it is currently in. It does not give an option to move the post to any other categories. Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted March 18, 2011 Moderators Report Share Posted March 18, 2011 Found another issue. When attempting to move a post, it only gives an option to move the post to the thread that it is currently in. It does not give an option to move the post to any other categories. Now you noticed it too. I noticed it long time ago, lol. 1 Quote Link to comment Share on other sites More sharing options...
Tom Posted March 18, 2011 Author Report Share Posted March 18, 2011 Yeah I think that was one of the things I was thinking of when I said there were problems people hadn't noticed yet Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 18, 2011 Report Share Posted March 18, 2011 Now you noticed it too. I noticed it long time ago, lol. Well, in all honesty, I never attempted to move a post. I tried to yesterday and I was like ohh wait a minute. That's not gonna work. lol I have noticed a few others and not mentioned them but this one is one I had not noticed. There is another one too when deleting posts. It throws out errors pretty bad. Quote Link to comment Share on other sites More sharing options...
Tom Posted March 18, 2011 Author Report Share Posted March 18, 2011 Yeah. I'm not sure what I want to do at the moment. I've coded a new forum and it's great, but upgrading to it is going to be difficult to say the least. I think I might just fix the current one up as a "basic" addon, and release the new forum as a "pro" version. How do people feel about this? Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 18, 2011 Report Share Posted March 18, 2011 Yeah. I'm not sure what I want to do at the moment. I've coded a new forum and it's great, but upgrading to it is going to be difficult to say the least. I think I might just fix the current one up as a "basic" addon, and release the new forum as a "pro" version. How do people feel about this? Might be worth a look. On another note, I found where in the files the bbcode and html tags are. I followed the code exactly and added a few more tags and bbcodes and they won't work. Not sure why. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 31, 2011 Report Share Posted March 31, 2011 Kind Bump Quote Link to comment Share on other sites More sharing options...
Tom Posted March 31, 2011 Author Report Share Posted March 31, 2011 Could you paste your new BBCode arrays? Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 31, 2011 Report Share Posted March 31, 2011 I removed them because I could not get them to work, but I will gladly paste a couple here how I tried to do it before. "<stream>" => "[stream]" "</stream>" => "[/stream]", "[stream]" => "<stream>" "[/stream]" => "</stream>", I do not recall what all ones I tried now. That is just one example there of how I tried to do it. I also took note in Forum.php of these couple lines $message = DB::escape(nl2br(ForumData::bb(strip_tags($this->post->message, '<p><a><b><i><em><strong><br><ul><ol><li>')))); I even added the html equiv to a couple of them in here too and I could not get them to work. I wish I could remember what the others were that I tried. If I recall for sure, I will gladly come back and post. Thanks for having a look Tom. I appreciate it. Ray Quote Link to comment Share on other sites More sharing options...
Tom Posted March 31, 2011 Author Report Share Posted March 31, 2011 Okay, make sure when you're adding new ones that you have commas in the right places, after the original last array item and not after the new last item. You won't need to change anything other than the two arrays. 1 Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 31, 2011 Report Share Posted March 31, 2011 Hmm That's exactly how I did it too and they did not work out. I will go and try to add a couple again and see what happens. I guess the one I was really after was to be able to align images to the left of a forum post, and there was one or two more that I wanted. I will report back if I get it working or not. Thanks Tom! Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 31, 2011 Report Share Posted March 31, 2011 Nope. No dice Tom. All I am attempting to do is to be able to align an image to the left and text will line up beside it instead of below it. There are several others that would be nice too like to be able to change font colors and such. Maybe a youtube bbCode. Bumping in to many restrictions as I go. I may convert to another forum and use this one on my test site to keep tweaking it. It is real close to where it needs to be. The only nag I have about using another forum is having to skin it and hook the registration. YUCK! This forum here is clean and easy to skin to match the site it is put in to. Quote Link to comment Share on other sites More sharing options...
Tom Posted March 31, 2011 Author Report Share Posted March 31, 2011 Could you paste your arrays please? In their entirety. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 31, 2011 Report Share Posted March 31, 2011 Already got rid of them. I added them exactly how I showed the stream bbCOde. I am pretty sure I know why that one did not work. I never coded the embed for the media player. Now as for aligning images with the code and that type of such, I am not sure how to build those arrays to be honest. Quote Link to comment Share on other sites More sharing options...
Tom Posted March 31, 2011 Author Report Share Posted March 31, 2011 Oh... well... As for alignment, you can do something like: ' [left]' => '<div style="float:left;">', '[/left] ' => '</div>' perhaps. 1 Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 31, 2011 Report Share Posted March 31, 2011 Ahh see Tom, lol I would have never guessed I could add a style to them arrays. Boy do I have some learning to do. Glad I am in php class this term in school. On a side not, I integrated photobucket in to the forum and it works great! However there was one error. It used capitol IMG tag and the forum did not like that at all. I went in and added the arrays for capitol IMG tag and guess what? It worked! If interested in the photobucket thing let me know. Quote Link to comment Share on other sites More sharing options...
dimitris Posted June 21, 2011 Report Share Posted June 21, 2011 Hi all! Long time since last post at this topic Yesterday I installed the v2 version of the forum and something was missing from there... The PMs ! I made some quick changes to the forum module and to the airmail module and guess? It worked! Change lines: mail_new.tpl <td colspan="2"> <b>To:</b> <select name="who_to"> <option value="">Select a pilot</option> <?php if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { ?> <option value="all">NOTAM (All Pilots)</option> <?php } foreach($allpilots as $pilots) { echo '<option value="'.$pilots->pilotid.'">'.$pilots->firstname.' '.$pilots->lastname.' - '.PilotData::GetPilotCode($pilots->code, $pilots->pilotid).'</option>'; } ?> </select> </td> To: mail_new.tpl <?php $pm = $_GET['who_to']; ?> <?php if($pm=='') { ?> <td colspan="2"> <b>To:</b> <select name="who_to"> <option value="">Select a pilot</option> <?php if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { ?> <option value="all">NOTAM (All Pilots)</option> <?php } foreach($allpilots as $pilots) { echo '<option value="'.$pilots->pilotid.'">'.$pilots->firstname.' '.$pilots->lastname.' - '.PilotData::GetPilotCode($pilots->code, $pilots->pilotid).'</option>'; } ?> </select> </td> <?php } else { ?> <td colspan="2"> <b>Forum Pm</b> <input type="text" name="who_to" value="<?php echo $_GET[who_to]; ?>" disabled="disabled"> </td> <?php } ?> And, forum_post_list.tpl echo ' - <img src="'.SITE_URL.'/lib/images/countries/'.strtolower($starter->location).'.png" alt="Flag" /> To: forum_post_list.tpl echo ' - <img src="'.SITE_URL.'/lib/images/countries/'.strtolower($starter->location).'.png" alt="Flag" />'; echo "<br /><a href=".url('/Mail/newmail?who_to='.$starter->pilotid).">Contact Me</a>";' If you have any errors, reply here and I will upload the 2 changed files 1 Quote Link to comment Share on other sites More sharing options...
dimitris Posted June 21, 2011 Report Share Posted June 21, 2011 (edited) Hi again! Some more coding and I have a bbc type reply form Take a look: To make it like this add the following: On top of forum_new_post.tpl: <script type="text/javascript"> function insertAtCursor(myField, myValue) { //IE support if (document.selection) { myField.focus(); sel = document.selection.createRange(); sel.text = myValue; } //GECKO/NETSCAPE support else if (myField.selectionStart || myField.selectionStart == '0') { var startPos = myField.selectionStart; var endPos = myField.selectionEnd; myField.value = myField.value.substring(0, startPos) + myValue + myField.value.substring(endPos, myField.value.length); } else { myField.value += myValue; } } </script> And where you like the BBC bar to displayed: (in forum_new_post.tpl of course ) <tr> <td>BBC Codes:</td> <td align="left"><input name="Bold" type="button" value="B" onclick="insertAtCursor(document.form.message, '');" style="font-weight: bold;" /> <input name="Italic" type="button" value="I" onclick="insertAtCursor(document.form.message, '');" style="font-style:italic;font-weight: bold;" /> <input name="Underline" type="button" value="U" onclick="insertAtCursor(document.form.message, '');" style="font-weight: bold;text-decoration: underline;" /> <input name="Image" type="button" value="IMG" onclick="insertAtCursor(document.form.message, '');" style="font-weight: bold;" /> <input name="Link" type="button" value="LINK" onclick="insertAtCursor(document.form.message, '');" style="font-weight: bold;" /> <input name="List" type="button" value="LIST" onclick="insertAtCursor(document.form.message, '[*][/*]');" style="font-weight: bold;" /></td> </tr> EDIT: This forum(phpVMS) auto remove the BBC codes if there is nothing inside them. So you have to add them yourself, take a look at the last with th [*] Edited June 21, 2011 by dimitris 1 Quote Link to comment Share on other sites More sharing options...
Tom Posted June 21, 2011 Author Report Share Posted June 21, 2011 Nice In the next version, it looks like this: And on the site I currently have it on I created my own PM module which is obviously linked to posts as your earlier contribution. Whether people would want that I'm not sure. If people are interested I can provide screenshots... 1 Quote Link to comment Share on other sites More sharing options...
dimitris Posted June 21, 2011 Report Share Posted June 21, 2011 Hi Tom! We are all (I think) waiting for your next release! If and when you have time a release will be grateful. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted June 21, 2011 Report Share Posted June 21, 2011 I think one valuable asset is going to be the last post on index. Right now all we can see is the date the last post was made. Would make it more forum like honestly speaking. Thanks for all the work you all are doing on this. I have modded mine a bunch, but mostly it is all skin and simple changes VA specific. Nothing worthy of sharing really. Keep up the good work guys! Quote Link to comment Share on other sites More sharing options...
Tom Posted June 21, 2011 Author Report Share Posted June 21, 2011 I think one valuable asset is going to be the last post on index. Right now all we can see is the date the last post was made. Would make it more forum like honestly speaking. Thanks for all the work you all are doing on this. I have modded mine a bunch, but mostly it is all skin and simple changes VA specific. Nothing worthy of sharing really. Keep up the good work guys! Like this: ? I think that's what you mean... Maybe I'll get round to releasing it next week. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.