 |
 |
 |
 |
#217917 - 06/05/02 11:10 PM
Markup Hack 1.0beta2
|
Addict
Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
|
Mod Name / Version - MarkupHack 1.0beta2<br /> Description - This is a hack that allows the admin to add/change/delete markup tags from the administration menu, as well as easily add or remove entries from the Instant Markup boxes. All Markups from UBB.threads v6.1.0 are included in this package, as well as quite a few new markups. <br /> Working under - UBB.threads 6.1.0<br /> Any pre-requisites - PHP4 <br /> Author(s) - Gardener <br /> Credits - Dalar, WrĊith and others for help. <br /> Demo - Download zip file of screenshots<br /> Files Altered - ubbt.inc.php, admin/menu.php, ubbt_instant_ubbcode.tmpl, languages/generic.php<br /> Database Altered - Yes, new tables: w3t_Markup w3t_InstantList<br /> New Files - admin/editmarkup.php, admin/doeditmarkups.php, admin/addmarkup.php, admin/doaddmarkup.php, admin/addinstant.php, admin/doaddinstant.php, admin/editinstant.php, admin/doeditinstant.php, showpost.php<br /> Any other info - Download the attached file and unzip it. Follow the install instructions in the README file within.
Attachments
48839-markuphack-1_0beta2.zip (77 downloads)
Edited by Gardener (11/15/02 12:51 AM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#217923 - 06/10/02 10:05 AM
Re: Screenshots provided
[Re: D_Wolfwood]
|
Addict
Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#217944 - 06/21/02 10:04 PM
Re: MarkupHack 1.0alfa8 (Updated for 6.0.1)
[Re: c0bra]
|
Addict
Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
|
Thanks! <br /><br />While we're pointing things out.. your hack is working wonderfully, but it has since caused a conflict with the auto quote hack by WrĊith. Its obviously because of the new string function changes. So, there are only two things I need to do to get it working, but not sure how exactally. This is the part:<br /><br /><pre><font class="small">code:</font><hr>1. Open ubbt.inc.php<br /><br />2a. Locate the following line:<br /><br /> // -------------<br /> // Quote markup<br /> $Body = str_replace("[{$ubbt_lang['TEXT_QUOTE']}]","</font><blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><hr /><br />",$Body);<br /> $Body = str_replace("[/{$ubbt_lang['TEXT_QUOTE']}]","<br /><br /><hr /></blockquote>",$Body);<br /><br />2b. Replace that with:<br /><br /> // -------------<br /> // Quote markup<br /> $Body = str_replace("[{$ubbt_lang['TEXT_QUOTE']}]","</font><blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><hr /><br />",$Body);<br /> $Body = preg_replace("/\[{$ubbt_lang['TEXT_QUOTE']}(\s*)=(\s*)(.*?)\]/i", "<blockquote><font class=\"small\">{$ubbt_lang['USER_QUOTE']} \\3:</font><hr>", $Body);<br /> $Body = str_replace("[/{$ubbt_lang['TEXT_QUOTE']}]","<hr /></blockquote>",$Body);<br /><br />3a. Locate the following line:<br /><br /> // -------------<br /> // Quote markup<br /> $Body = str_replace("</font><blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><hr /><br />","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);<br /> $Body = str_replace("<br /><br /><hr /></blockquote>","[/{$ubbt_lang['TEXT_QUOTE']}]",$Body);<br /><br />3b. Replace that with:<br /><br /> // -------------<br /> // Quote markup<br /> $Body = str_replace("</font><blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><hr /><br />","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);<br /> $Body = preg_replace("/<blockquote><font class=\"small\">{$ubbt_lang['USER_QUOTE']}(\s*)(.*?):<\/font><hr>/i", "[{$ubbt_lang['TEXT_QUOTE']}=\\2]", $Body);<br /> $Body = str_replace("<hr /></blockquote>","[/{$ubbt_lang['TEXT_QUOTE']}]",$Body);<br /></pre><hr><br /><br />Now, can this be added into the ubbt.inc file like normal, or will the string have to be added with your system? I was about to go adding it myself but was confused by some of the options and formatting, and I'm no code monkey so I didn't do it <img src="/forum/images/icons/frown.gif" alt="" /><br /><br />Maybe this has been brought up already? I dunno, but if you can help that would be great! <img src="/forum/images/icons/smile.gif" alt="" />
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#217948 - 06/22/02 12:48 PM
Re: MarkupHack 1.0alfa8 (Updated for 6.0.1)
[Re: palmen]
|
Addict
Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
| |