php forum
php mysql forum
php mysql smarty
 
Topic Options
#215665 - 04/29/02 01:44 AM Customizable Markups Hack for v6
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
I've just finished a hack that allows admins to edit all markups from the admin page, as well as add new ones. It works quite well at my beta site and I have tried to write a complete installation guide but this is the first big hack I've done so something is probably missing. Feel free to try it out though. Any comments are much appreciated. <br /> <br />It is very easy to break the forums by adding markups with incorrect syntax but I haven't bothered to fix that yet. Admins should check that the new markups work anyway so I don't think it would be that big of a problem.


Attachments
46865-markuphack-1.0alfa.zip (22 downloads)

_________________________
/Gardener | Complete list of my mods

Top
#215666 - 04/29/02 01:25 PM Re: Customizable Markups Hack for v6 [Re: c0bra]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
thank you []/forum/images/icons/smile.gif[/]
_________________________
- Allen wavey
- What Drives You?

Top
#215667 - 04/30/02 07:31 PM Added Graemlin upload feature [Re: c0bra]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
I fixed a few bugs and have also added a script to upload new Graemlins as well as the possibility to view/delete all old ones. <br /> <br />Don't know if anyone is interested in this hack, but I'll post it anyway.


Attachments
46948-markuphack-1.0alfa2.zip (20 downloads)

_________________________
/Gardener | Complete list of my mods

Top
#215668 - 04/30/02 08:38 PM Re: Added Graemlin upload feature [Re: c0bra]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
well I tested the hack out. It will add the markup for smilies so you can do like []/forum/images/icons/tongue.gif[/]uke: I tried three. two out of three took. However it does not add the image to the post template.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#215669 - 04/30/02 09:03 PM Re: Added Graemlin upload feature [Re: sf49rminer]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Yeah, since the :smilie: way of writing the graemlins are clashing with the short hand smilies which have a letter right after the colon it can show up wrong. But as long as you keep that in mind everything should be OK. <br /> <br />No, I haven't added it to the post template since I would have to put extra code in template to make that work and I don't really like that. But I will give it a shot, they really should show up there as well.
_________________________
/Gardener | Complete list of my mods

Top
#215670 - 04/30/02 10:18 PM Re: Added Graemlin upload feature [Re: c0bra]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Nice work on this Gardener []/forum/images/icons/smile.gif[/] Will fill a big request by the .threads owners moving over from ubb []/forum/images/icons/smile.gif[/]
_________________________
- Allen wavey
- What Drives You?

Top
#215671 - 04/30/02 10:43 PM All Graemlins listed on post page [Re: sf49rminer]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
OK, so I have updated the hack once again so that all Graemlins are listed automatically on the post page. I had to add some code to the template for this, so make sure you have made a copy of ubbt_instant_ubbcode.tmpl before unpacking/uploading.<br /><br />I also fixed some bugs in some of the markup tags, so the old table should be dropped if you are updating.


Attachments
46960-markuphack-1.0alfa3.zip (28 downloads)

_________________________
/Gardener | Complete list of my mods

Top
#215672 - 04/30/02 10:50 PM Re: Added Graemlin upload feature [Re: SurfMinister]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
I'm happy to be able to give something back to the threads community since there are so many other good hacks out there.
_________________________
/Gardener | Complete list of my mods

Top
#215673 - 05/01/02 01:53 AM Re: Added Graemlin upload feature [Re: c0bra]
dRiver Offline
Junior Member

Registered: 11/14/01
Posts: 65
A very big thank you for this one Gardener. <br /> <br />The ability to add Graemlins is very welcome and your hack works great. <br /> <br />I installed the alpha3 version <br /> <br /> <br />Two little glitches I found: <br /> <br />The sql commad adds two extra graemlins, holloween and another which are not out of the box for Ubbt6. Nothing major just letting you know. <br /> <br />Also the add graemlins looks to add new ones to /images/greamlins folder. Just need to add "make graemlins dir" to instructions if that is where you intend them to be added. <br /> <br />Nothing major! <br /> <br /> <br /> <br />The markup seems to work fine, have only tried adding underline and had no probs with this simple addition. I think I need some more confidence to play with the more complex markup......lol. <br /> <br /> <br /> <br /> <br />cheers and thanx again for this.


Edited by dRiver (05/01/02 01:57 AM)

Top
#215674 - 05/01/02 10:18 AM Re: Added Graemlin upload feature [Re: lanet]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Thanks for the info, I'll get them fixed right away. I knew I would forget about adding the info on creating the graemlins directory when I added the code for it... <br /><br />Adding complex regular expressions can be a bit tricky since you have to know how they work. But just adding new start and end tags are very easy and I'm thinking of making it even easier. But I would have to change the add form for that so I haven't really decided if I should do it yet.
_________________________
/Gardener | Complete list of my mods

Top
#215675 - 05/04/02 08:05 AM Help with HTML/Mozilla problem [Re: c0bra]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
The [line:color] tag that is included in the markup hack is not showing correctly on Mozilla 1.0RC1, for some reason it has the height of a text row.<br /><br />I am using the following HTML to create a horizontal rule:<br /><pre><font class="small">code:</font><hr><table width="80%" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td bgcolor="green" height="2"><img src="http://threads.theyard.org/images/hr.gif" width="2" height="2" border="0" alt="" /></td></tr></table></pre><hr><br /><br />This has been validated so the HTML is correct according to W3C.<br /><br />The problem goes away when the DOCTYPE is removed, so for some reason it seems that Mozilla thinks a table must have the height of the text when using that DOCTYPE. Really strange.<br /><br />Anyone know how I can fix this?
_________________________
/Gardener | Complete list of my mods

Top
#215676 - 05/04/02 12:47 PM Re: Help with HTML/Mozilla problem [Re: c0bra]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
height for the td probably doesn't validate, at least in xhtml 1.0 <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />There is a fix to get mozilla to work correctly and keep the td looking correct, we discuss it here:<br /><br />http://www.threadsdev.com/threads/php/sh...amp;amp;fpart=1<br /><br />The actual fix can be found here: http://www.alistapart.com/stories/betterliving/ - unles I am misunderstanding the question <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#215677 - 05/04/02 03:41 PM Re: Help with HTML/Mozilla problem [Re: SurfMinister]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Actually it does (at least for the transitional document used in the doctype), it doesn't on TR though. But that one isn't supposed to be there anyways, but I added it to see if it changed anything -- which it didn't.<br /><br />Thanks for the info, I've got it working now. I thought I was going mad...
_________________________
/Gardener | Complete list of my mods

Top
#215678 - 05/04/02 04:39 PM Instant Markup box [Re: c0bra]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
I'm wondering if anyone is interested in getting the markups automatically added to the Instant Markup box on the post page. To do this I would probably have to add 6 new fields, 4 if the URL-prompt is simplified.<br /><br />It is a bit of work to get this to work, so I'm wondering if I should bother to this?
_________________________
/Gardener | Complete list of my mods

Top
#215679 - 05/04/02 11:39 PM Re: Instant Markup box [Re: c0bra]
ScottCargill Offline
Journeyman

Registered: 02/01/01
Posts: 144
Loc: Bakersfield, Ca.
Well I dunno about the rest of those out here, but for me adding icon's and the online calendar are probably the two most important mods for me.<br /><br />
_________________________
Scott Cargill -WebMaster
East Hills Kung Fu San Soo

Top
#215680 - 05/05/02 03:14 AM Re: Instant Markup box [Re: DRYCARPET1]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
The graemlin icons are already put in the instant graemlin box, but since this hack mainly is hack for the Markup/UBBCode I was wondering if those should be added to the Instant box as well.
_________________________
/Gardener | Complete list of my mods

Top
#215681 - 05/05/02 09:34 AM Re: Instant Markup box [Re: c0bra]
dRiver Offline
Junior Member

Registered: 11/14/01
Posts: 65
I think adding the markup code to the Instant box would be a good thing. I belive that anything to make a board easier for users has to be a good thing, so a user clicking on one button to achieve a result would be the preffered option.<br /><br />Maybe the ability to add an image file as is done here with Alan's new templates would also be a nice addition.<br /><br />As a wish list type scenario would it be possible to expand this hack to manage post icons as well and font colors displayed in the Font color instant box?<br /><br /><br />lol...........a complete admin management system for all ubbt images, including header the links, post, reply etc etc..........sorry got carried away...........lol<br /><br />thanks for sharing your work.

Top
#215682 - 05/05/02 10:18 AM Re: Instant Markup box [Re: lanet]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
I've been thinking a bit more about this and it will have to be at leaste five new fields for this. If an image is to be added another field has to be added as well. But I could do it though. <br /><br />But if font colors should be updateable as well I think it would be best if the information for the instant markup boxes are in a separate table. It doesn't have to be, but I don't really like the idea to have rows in the Markup table that are not Markups...<br /><br />I haven't looked at how post icons work since I don't use them myself, but I guess it would be quite easy to add new ones so I'll look into that.<br /><br />Changing images is just a matter of uploading them into the images directory, is a admin script for that really needed? It wouldn't be that hard to do, but it seems a bit overkill to me. =]
_________________________
/Gardener | Complete list of my mods

Top
#215683 - 05/05/02 10:36 AM Updated version [Re: c0bra]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
I've been doing some changes to the script over the last few days. A list of the changes:<br /><br />
  • Updated to work with BR2 and some bug fixes.<br />
  • The script tries to create the Graemlin dir if it doesn't exist, and prints an error if it can't.<br />
  • Updated some Markup regexps to work better.<br />
  • More info in the README, including descriptions of all Markups.<br />
  • Priority setting of Markups so that the admin can decide the order they should be parsed.<br />
  • Markup list can be shown by type and sort order is selectable.<br />
<br /><br />I think that's it. I'll start looking at adding items to the instant boxes later.


Attachments
47292-markuphack-1.0alfa4.zip (240 downloads)

_________________________
/Gardener | Complete list of my mods

Top
#215684 - 05/05/02 11:03 AM Re: Updated version [Re: c0bra]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Excellent - thank you.<br /><br />Ian
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks