News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Enhanced Quick Reply 2.0

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

Previous topic - Next topic

shanniberry

SMF 1.1.5

kai920

Did you try reading readme.txt in the package as suggested?  You'll find this...

QuoteHOW DO I MAKE THIS MOD COMPATIBLE WITH MY THEME?
If you want to use the "enhanced" quick reply box on your own theme, you have to first remove the old one. The old one starts off with this clause in Display.template.php:
   if ($context['can_reply'] && !empty($options['display_quick_reply']))
It has some code in between this clause and another curly bracket. Remove the old quick reply box code entirely. Replace it with the one in the modded default Display.template.php (it starts with the same clause).
You also have to add the entire template_quickreply_box() function from the modded default Display.template.php into your theme's Dsiplay.template.php.

HTH

KameL

How to change the width of the quick reply to 100%?




chep

Quote from: KameL on June 17, 2008, 05:33:47 PM
How to change the width of the quick reply to 100%?

The trick is to change 50% to Auto. This was covered on page 1 of this topic. I am not sure if the source has changed but here are the examples once again.

From this:
<a name="quickreply"></a><div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">

To this:
<a name="quickreply"></a><div style="width: 100%;" align="center"><div class="tborder" style="width: auto;" align="left">

KameL





slackerpunk

Quote from: protonxl on June 13, 2008, 11:32:56 AM
I have many mods on my forum.

I have uploaded  this one, and it worked.



this installs fine for 1.1.5

Koopler

HELLLLLLLLP HELP HELP!!!!!!!!!!

Guys, I tried modifying my theme so enhanced quick reply would work...

JUST ONE SMALL PROBLEM

I don't have the post.index or whatever document it is I'm supposed to modify. I look on admin panel, the ftp thing, even the zip file. It's simply NOT THERE.

If anyone knows how to add this thing to the BLUESKIES theme, I'd greatly appreciate it.

Koopler

display.template - that's what it's called. Blueskies doesn't have one :angryface:

Koopler

So I took a display.template from a completely different theme and copied it to the one I'm using.

Everything works now, which is amazing I think. I thought doing something like that would cause a serious bug.

Koopler

I think this thing is causing some glitches on my forum

The money system has dissapeared and some posts have too

Koopler

http://ifca.tv/forums/index.php

also, there's now a mystery bar on the bottom of the index page.

see the 4 bars? the mystery bar is the 3rd on. and nothing is there. it's just blank with weird ascii characters

what's going on? how do i get rid of it?

AlenNS

Will someone make this mod compatible with SMF 2.0 Beta 3.1 public?

Is it possible that nobody need  these?

msears

Need some help getting this error

Fatal error: Cannot redeclare theme_quickreply_box() (previously declared in /home/hocguild/public_html/Sources/Display.php:1245) in /home/hocguild/public_html/Sources/Display.php on line 1477

can some one plz help me .....

ghostfreak

Is there an update for 1.1.5?

http://www.xfilesforum.net - Dare To Believe?
http://www.idealforum.co.uk - The Green Blitz!

msears

did not work in 1.1.5 for me I was forced to remove it

KameL





AlenNS

It works fine with 1.1.5. Still waiting someone to make it compatible with 2.0.

Rocks-HD

thanks, its work very well.

with you package I did enhanced in my smf 2.0

see a example here http://www.gsmfans.com.br

AlenNS

Can you tell us how did you make that please?

Rocks-HD

#319
well, My english isn't good then... kkk

enter here http://custom.simplemachines.org/mods/index.php?action=parse;mod=883;attach=40806;smf_version=1.1.4

1- change ./Sources/Display.php with the explanation
2- in final of the file add the information. same of the link.
3- The secret is here:

find:
Quoteif ($context['can_reply'] && !empty($options['display_quick_reply']))"

it's is the code of the your QuickReply. Select until
Quote</table>';
   }

remove this part and implement the information of link above.

find:
Quote' . $txt[105] . '

Replace with:
Quotepost



find:
Quote' . $txt[507] . '

replace with:
Quotepreview


and finally, in your "Themes/default/language/modification.yourlanguage.php (I don't know what is your language)
find:
Quote?>

replace with:
Quote
//-- Nome das cores do quickreply
$txt[262] = 'Black';
$txt[263] = 'Red';
$txt[264] = 'yellow';
$txt[265] = 'Pink';
$txt[266] = 'Green';
$txt[267] = 'Orange';
$txt[268] = 'Purple;
$txt[269] = 'Blue';
$txt[270] = 'Beige';
$txt[271] = 'Brown';
$txt[272] = 'Teal';
$txt[273] = 'Navy;
$txt[274] = 'Maroon';
$txt[275] = 'Lime Green';

?>


Sorry for my english!

Advertisement: