Liam Posted May 30, 2014 Share Posted May 30, 2014 (edited) Hello MakeWebGames, I've been around these forums for many years. (Since it was CE) Finally made a decision to join. I now have a request/offer for any who are interested. ($PAID) It is very simple, I would like a Profile Signature module created, McCodes Version 2. Why don't you make it? I cannot be bothered to make it. Gives newer/lesser known programmers a chance to build some good rep & earn some easy money. Why should anyone make it for you? It's a very simple module. It's easy money. Features The ability to use BBCode. Feature to edit their signature at any time, Via preferences. If they have no signature, It will say "This user does not have a profile signature. Structure Snippet of code to be placed into viewuser. Function for editing signature in preferences. SQL for profile signature. I'm more than happy to pay $10 for this, However state your prices below and we can work something out. That is all, If you are interested feel free to PM me or contact me via skype/email. Edited May 30, 2014 by Liam Quote Link to comment Share on other sites More sharing options...
sniko Posted May 30, 2014 Share Posted May 30, 2014 Great request, and a great job for a newer programmer to complete. May I suggest using Markdown, rather than BBCode? Quote Link to comment Share on other sites More sharing options...
Liam Posted May 30, 2014 Author Share Posted May 30, 2014 Great request, and a great job for a newer programmer to complete. May I suggest using Markdown, rather than BBCode? Thank you, Yes hopefully it will give some of the newer programmers a chance. Markdown could be used, However I figured it would be easier for the programmer to make use of the bbcode_engine that comes shipped with v2. Quote Link to comment Share on other sites More sharing options...
sniko Posted May 30, 2014 Share Posted May 30, 2014 Thank you, Yes hopefully it will give some of the newer programmers a chance. Markdown could be used, However I figured it would be easier for the programmer to make use of the bbcode_engine that comes shipped with v2. PS. That one is vulnerable to attacks - better stay away from it ;) Quote Link to comment Share on other sites More sharing options...
Liam Posted May 30, 2014 Author Share Posted May 30, 2014 PS. That one is vulnerable to attacks - better stay away from it ;) Thank you, For pointing that out. I haven't even looked at the bbcode engine attached to the engine, I'll be sure to release a secured bbcode engine/parser in the coming weeks then. Quote Link to comment Share on other sites More sharing options...
wrux Posted May 30, 2014 Share Posted May 30, 2014 Have a look at a markdown package for PHP: http://pecl.php.net/package/markdown Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted May 30, 2014 Share Posted May 30, 2014 I can do it. I also have my own coded bb coded engine. Shoot me a PM. Quote Link to comment Share on other sites More sharing options...
JamesRage Posted May 30, 2014 Share Posted May 30, 2014 I can attempt this.. but it will take about a day for me (fairly new to php). :) Quote Link to comment Share on other sites More sharing options...
DidNotCompute Posted May 30, 2014 Share Posted May 30, 2014 Here you go, I did this quickly but it works. SQL ALTER TABLE `users` ADD `signature` LONGTEXT NOT NULL ; In viewuser.php before include "globals.php"; add class bbcode { var $engine=""; function bbcode() { require "bbcode_engine.php"; $this->engine= new bbcode_engine; $this->engine->cust_tag("/</","<"); $this->engine->cust_tag("/>/",">"); //Since \n and <br> screw up preg, convert them out. $this->engine->cust_tag("/\n/","&nbrlb;"); $this->engine->simple_bbcode_tag("b"); $this->engine->simple_bbcode_tag("i"); $this->engine->simple_bbcode_tag("u"); $this->engine->simple_bbcode_tag("s"); $this->engine->simple_bbcode_tag("sub"); $this->engine->simple_bbcode_tag("sup"); $this->engine->simple_bbcode_tag("big"); $this->engine->simple_bbcode_tag("small"); $this->engine->adv_bbcode_tag("list","ul"); $this->engine->adv_bbcode_tag("olist","ol"); $this->engine->adv_bbcode_tag("item","li"); $this->engine->adv_option_tag("font","font","family"); $this->engine->adv_option_tag("size","font","size"); $this->engine->adv_option_tag("url","a","href"); $this->engine->adv_option_tag("color","font","color"); $this->engine->adv_option_tag("style","span","style"); $this->engine->simp_option_notext("img","src"); $this->engine->simp_bbcode_att("img","src"); $this->engine->cust_tag("/\(c\)/","©"); $this->engine->cust_tag("/\(tm\)/",""); $this->engine->cust_tag("/\(r\)/","®"); $this->engine->adv_option_tag_em("email","a","href"); $this->engine->adv_bbcode_att_em("email","a","href"); $this->engine->cust_tag("/\[left\](.+?)\[\/left\]/","<div align='left'>\\1</div>"); $this->engine->cust_tag("/\[center\](.+?)\[\/center\]/","<div align='center'>\\1</div>"); $this->engine->cust_tag("/\[right\](.+?)\[\/right\]/","<div align='right'>\\1</div>"); $this->engine->cust_tag("/\[quote name='(.+?)\'](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE(\\1)</div><div class='quotemain'>\\2</div>"); $this->engine->cust_tag("/\[quote\](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE</div><div class='quotemain'>\\1</div>"); $this->engine->cust_tag("/\[code\](.+?)\[\/code\]/","<div class='codetop'>CODE</div><div class='codemain'><code>\\1</code></div>"); $this->engine->cust_tag("/\[codebox\](.+?)\[\/codebox\]/","<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>\\1</div>"); $this->engine->cust_tag("/&nbrlb;/","<br />\n"); } function bbcode_parse($html) { return $this->engine->parse_bbcode($html); } } In viewuser.php add this to where you want to display signatures $bbc = new bbcode; if(!$r['signature']) { $signature = "This user does not have a profile signature."; } else { $signature = $bbc->bbcode_parse($r['signature']); } echo "$signature"; In preferences.php add this to the menu <a href='preferences.php?action=signaturechange'>Signature Change</a><br /> In preferences.php add this to the switch statement case 'signaturechange': signature_change(); break; case 'signaturechange2': signature_change2(); break; In preferences.php add function signature_change() { global $ir,$c,$userid,$h; print "<h3>Signature Change</h3> Update your profile signature.<br /> <form action='preferences.php?action=signaturechange2' method='post'> Signature: <textarea rows=10 cols=50 name='signature'>{$ir['signature']}</textarea><br /> <input type='submit' value='Change Signature' /></form>"; } function signature_change2() { global $db,$ir,$c,$userid,$h; $signature = htmlspecialchars($_POST['signature']); $db->query("UPDATE users SET signature='$signature' WHERE userid=$userid"); print "Signature changed!"; } Quote Link to comment Share on other sites More sharing options...
Liam Posted May 30, 2014 Author Share Posted May 30, 2014 (edited) I can do it. I also have my own coded bb coded engine. Shoot me a PM. Hello, Samurai Legend. Thank you for the kind offer, I would have taken you up as I would have been happy to hire anyone who was willing to accept the job. I will be posting more requests for simple modifications and add-ons like this one, They will be $paid requests, So then you can earn some money whilst getting a greater rep. :) I can attempt this.. but it will take about a day for me (fairly new to php). :) Hello, JamesRage. Again, Thank you for the very kind offer. Like I said to Samurai Legend above, I'll be sure to add many many more requests ($paid) for the newer guys/girls to PHP to work on and earn some money. :) Here you go, I did this quickly but it works. SQL ALTER TABLE `users` ADD `signature` LONGTEXT NOT NULL ; In viewuser.php before include "globals.php"; add class bbcode { var $engine=""; function bbcode() { require "bbcode_engine.php"; $this->engine= new bbcode_engine; $this->engine->cust_tag("/</","<"); $this->engine->cust_tag("/>/",">"); //Since \n and <br> screw up preg, convert them out. $this->engine->cust_tag("/\n/","&nbrlb;"); $this->engine->simple_bbcode_tag("b"); $this->engine->simple_bbcode_tag("i"); $this->engine->simple_bbcode_tag("u"); $this->engine->simple_bbcode_tag("s"); $this->engine->simple_bbcode_tag("sub"); $this->engine->simple_bbcode_tag("sup"); $this->engine->simple_bbcode_tag("big"); $this->engine->simple_bbcode_tag("small"); $this->engine->adv_bbcode_tag("list","ul"); $this->engine->adv_bbcode_tag("olist","ol"); $this->engine->adv_bbcode_tag("item","li"); $this->engine->adv_option_tag("font","font","family"); $this->engine->adv_option_tag("size","font","size"); $this->engine->adv_option_tag("url","a","href"); $this->engine->adv_option_tag("color","font","color"); $this->engine->adv_option_tag("style","span","style"); $this->engine->simp_option_notext("img","src"); $this->engine->simp_bbcode_att("img","src"); $this->engine->cust_tag("/\(c\)/","©"); $this->engine->cust_tag("/\(tm\)/","™"); $this->engine->cust_tag("/\(r\)/","®"); $this->engine->adv_option_tag_em("email","a","href"); $this->engine->adv_bbcode_att_em("email","a","href"); $this->engine->cust_tag("/\[left\](.+?)\[\/left\]/","<div align='left'>\\1</div>"); $this->engine->cust_tag("/\[center\](.+?)\[\/center\]/","<div align='center'>\\1</div>"); $this->engine->cust_tag("/\[right\](.+?)\[\/right\]/","<div align='right'>\\1</div>"); $this->engine->cust_tag("/\[quote name='(.+?)\'](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE(\\1)</div><div class='quotemain'>\\2</div>"); $this->engine->cust_tag("/\[quote\](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE</div><div class='quotemain'>\\1</div>"); $this->engine->cust_tag("/\[code\](.+?)\[\/code\]/","<div class='codetop'>CODE</div><div class='codemain'><code>\\1</code></div>"); $this->engine->cust_tag("/\[codebox\](.+?)\[\/codebox\]/","<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>\\1</div>"); $this->engine->cust_tag("/&nbrlb;/","<br />\n"); } function bbcode_parse($html) { return $this->engine->parse_bbcode($html); } } In viewuser.php add this to where you want to display signatures $bbc = new bbcode; if(!$r['signature']) { $signature = "This user does not have a profile signature."; } else { $signature = $bbc->bbcode_parse($r['signature']); } echo "$signature"; In preferences.php add this to the menu <a href='preferences.php?action=signaturechange'>Signature Change</a><br /> In preferences.php add this to the switch statement case 'signaturechange': signature_change(); break; case 'signaturechange2': signature_change2(); break; In preferences.php add function signature_change() { global $ir,$c,$userid,$h; print "<h3>Signature Change</h3> Update your profile signature.<br /> <form action='preferences.php?action=signaturechange2' method='post'> Signature: <textarea rows=10 cols=50 name='signature'>{$ir['signature']}</textarea><br /> <input type='submit' value='Change Signature' /></form>"; } function signature_change2() { global $db,$ir,$c,$userid,$h; $signature = htmlspecialchars($_POST['signature']); $db->query("UPDATE users SET signature='$signature' WHERE userid=$userid"); print "Signature changed!"; } Hello, DidNotCompute! Thank you for completing this request, I wasn't expecting anyone to post on the thread with the add-on, But that's great! Could you PM me your PayPal address? I would like to send you a reward for completing this for myself and the community. Thanks, Liam Walker. Edited May 30, 2014 by Liam Quote Link to comment Share on other sites More sharing options...
DidNotCompute Posted May 30, 2014 Share Posted May 30, 2014 ... No problem and I don't need payment for this - it was quick. ;) 1 Quote Link to comment Share on other sites More sharing options...
Liam Posted May 30, 2014 Author Share Posted May 30, 2014 No problem and I don't need payment for this - it was quick. ;) That's extremely generous of you, On behalf of myself and the community, Thank you! I'll be adding more paid requests soon, So If you are interested, There's always some easy money waiting. :) Thanks for adding reputation to this user. May you be lucky enough to receive the same Reputation back in turn. Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted May 31, 2014 Share Posted May 31, 2014 Very nice of you Liam and DidNotCompute! 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.