News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Enhanced Quick Reply 2.0

Started by Kirby, August 06, 2007, 10:35:59 PM

Previous topic - Next topic

Kirby

You can see them in the modification.xml file in the package.

janitro

#41
Quote from: Kirby on August 09, 2007, 01:03:46 AM
The first one should work. Clicking it doesn't add [spoiler][/spoiler] to the post box?

Nop...

When I add that line ('spoiler' => array('code' =>...) I´ve got messed up fonts and a strange line on top:



I´m using this spoiler tag unofficial version 0.3.3

Kirby

Sorry to be a bother, but would you mind posting the surrounding lines?

janitro

#43
no prob

$context['bbc_tags'][] = array(
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
'img' => array('code' => 'img', 'before' => '[img]', 'after' => '[/img]', 'description' => $txt[435]),
'url' => array('code' => 'url', 'before' => '[url]', 'after' => '[/url]', 'description' => $txt[257]),
'email' => array('code' => 'email', 'before' => '[email]', 'after' => '[/email]', 'description' => $txt[258]),
'ftp' => array('code' => 'ftp', 'before' => '[ftp]', 'after' => '[/ftp]', 'description' => $txt[434]),
array(),
'table' => array('code' => 'table', 'before' => '[table]', 'after' => '[/table]', 'description' => $txt[436]),
'tr' => array('code' => 'td', 'before' => '[tr]', 'after' => '[/tr]', 'description' => $txt[449]),
'td' => array('code' => 'td', 'before' => '[td]', 'after' => '[/td]', 'description' => $txt[437]),
array(),
'sup' => array('code' => 'sup', 'before' => '[sup]', 'after' => '[/sup]', 'description' => $txt[447]),
'sub' => array('code' => 'sub', 'before' => '[sub]', 'after' => '[/sub]', 'description' => $txt[448]),
'tele' => array('code' => 'tt', 'before' => '[tt]', 'after' => '[/tt]', 'description' => $txt[440]),
array(),
'code' => array('code' => 'code', 'before' => '[code.]', 'after' => '[code.]', 'description' => $txt[259]),
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),
array(),
'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),
array(),
'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => 'YouTube'),
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => 'Spoiler Tag'),
);

$found_button = false;
// Here loop through the array, printing the images/rows/separators!
foreach ($context['bbc_tags'][0] as $image => $tag)


link for the whole file

Kirby

Ok, I tested this on my own install and it worked. Try the file I have attached.. Back yours up just in case :)

Tinny

Hi, I'm using the TPstyle theme so I had to edit Display.template.php

Kirby can you look at my display.template.php as where the mod says replace

if ($context['can_reply'] && !empty($options['display_quick_reply']))

and a whole lot more.

I have extra lines like this one

<a href="javascript:void(0);" onclick="replaceText(\' ;)\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/wink.gif" align="bottom" alt="Wink" title="Wink" border="0" /></a>

if I ignore these lines and replace the coding as your mod says then all I get is all the script written above my forums in the header area.

please help as I'm being nagged to install this mod.

janitro

Quote from: Kirby on August 13, 2007, 01:26:32 PM
Ok, I tested this on my own install and it worked. Try the file I have attached.. Back yours up just in case :)

it worked like a charm

you´re my hero :)

hvyhitter

Quote from: ulgaming.net on August 07, 2007, 06:41:32 AM
You people should use this package parser : http://modparser.dev.dansoftaustralia.net/
It's really useful!

Works like charm on my forum!

Ill second that.. if I figure it out I am going to add that parser to my forums.. just so i never lose it.. that thing ROCKS..

hvyhitter

ok I read the whole thread.. I know I am a PITA.. but I want to make the box WIDER.. in my forum there is alot of unused space at the bottom.. I would like it to be less lines long but wider to match the forum..

awesome mod tho.. now the users posting pics all over will be happy they dont have to hit reply... :D

Thanks..

I found the one line where it says 75 as a width.. I changed that but.. it didnt seem to make ANY difference.. and the columns were 7.. I didnt mess with that..

Kirby

Quote from: janitro on August 13, 2007, 03:26:27 PM
Quote from: Kirby on August 13, 2007, 01:26:32 PM
Ok, I tested this on my own install and it worked. Try the file I have attached.. Back yours up just in case :)

it worked like a charm

you´re my hero :)

Any time :)

Quote from: hvyhitter on August 13, 2007, 04:17:27 PM
ok I read the whole thread.. I know I am a PITA.. but I want to make the box WIDER.. in my forum there is alot of unused space at the bottom.. I would like it to be less lines long but wider to match the forum..

awesome mod tho.. now the users posting pics all over will be happy they dont have to hit reply... :D

Thanks..

I found the one line where it says 75 as a width.. I changed that but.. it didnt seem to make ANY difference.. and the columns were 7.. I didnt mess with that..
I think you have the wrong stuff copied. The Display.template.php you posted earlier doesn't have anything from my mod. Double check the "how to add to my theme" text ;)

<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">

Is what you need to change (the 50%)

hvyhitter

Thanks.. that worked awesome..

yeah.. I set it at 95%.. now its EXACTLY how I want it..

thanks.. yeah i dont know what code i was looking at .. i installed 18 new mods today.. lol..

thanks for the reply.. awesome mod.. I love it.. this mod has been a LONG time coming for me..

Farmacija

great! but i need to spread in wide reply box


and there isn't place for text explanation as before



www.farmaceuti.com
www.farmaceuti.com/tekstovi

hvyhitter

umm.. thats the question he answered for me.. look for that line with 50% change it for 95%

works like a charm.

Farmacija

omg, i must be blind when i didn't see your post just above mine! :)
it's ok for width but problem with text stay...
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Kirby

No problem :)

Quote from: Farmacija on August 13, 2007, 11:44:13 PM
omg, i must be blind when i didn't see your post just above mine! :)
it's ok for width but problem with text stay...
ok, look for

// Finally the most important bit - the actual text box to write in!
echo '
<textarea class="editor" cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea>';



Edit that line to adjust the width and height :)

Natz

Hi, I need to add this mod manually because i got an error in package installer in display. template Ive got that code sorted.  I just wanted to know where to add the coding in display.php?  It doesnt say what to find to add it, so should it just be added at the bottom?

Thanks
Nat

Kirby

It should be the same as the instructions in the readme except the data to add is in modification.xml. I will help you out with this further if needed, I am about to run right now :)

TimL

A little help please.

It appears that IE is adding "Â" at the end of sentences when a message is quoted.

Kirby

Hi TimL,

What is the charset on your theme?

TimL

Quote from: Kirby on August 16, 2007, 09:51:55 AM
Hi TimL,

What is the charset on your theme?

I'm assuming this is what you are asking me?  Thanks!

Default theme: index.english
$txt['lang_character_set'] = 'ISO-8859-1';


Advertisement: