Page Index Toggle Pages: 1 2 3 [4] 5  Send TopicPrint
Very Hot Topic (More than 25 Replies) [BETA] Quick reply. (by Christer) (Read 15848 times)
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #45 - Jun 8th, 2002 at 12:43am
Print Post  
Now, where was I before I was so rudely interupted...


Quote:
visit my site for a working example!

I see you are using the new layout that I posted above on your website, and I must say it is looking good. Now we just need a check to hide the box if the thread is locked, sort out the guest problem and maybe add an admin option to turn the box on or off.
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Prisoner
Full Member
***
Offline


I love YaBB 1 Gold!

Posts: 104
Joined: Nov 30th, 2001
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #46 - Jun 8th, 2002 at 1:26am
Print Post  
You guys are the absolute Gods of Mods! This not only works great, but it looks good.
Here is a thread introducing of your excellent work on my board!

Thank you very much.
  
Back to top
WWW  
IP Logged
 
x-framez
Full Member
***
Offline


:emotional pulsations:

Posts: 104
Location: København
Joined: May 31st, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #47 - Jun 8th, 2002 at 3:56am
Print Post  
It works great! But why doesn't it show "Re: blahblah" in the subject box like it does on your board? And why does mine look plain, when yours looks alot cooler? And why isn't there a reset button like on yours?Smiley
  
Back to top
WWW  
IP Logged
 
Prisoner
Full Member
***
Offline


I love YaBB 1 Gold!

Posts: 104
Joined: Nov 30th, 2001
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #48 - Jun 8th, 2002 at 4:03am
Print Post  
You have to add the code that is on page 3 of this thread to the display.pl in order for it to pick up the colors and format of your template.
  
Back to top
WWW  
IP Logged
 
x-framez
Full Member
***
Offline


:emotional pulsations:

Posts: 104
Location: København
Joined: May 31st, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #49 - Jun 8th, 2002 at 4:05am
Print Post  
Prisoner wrote on Jun 8th, 2002 at 4:03am:
You have to add the code that is on page 3 of this thread to the display.pl in order for it to pick up the colors and format of your template.


Oh ok! Do I have to place it anywhere in particular? Or do I just place it whereever?
  
Back to top
WWW  
IP Logged
 
Prisoner
Full Member
***
Offline


I love YaBB 1 Gold!

Posts: 104
Joined: Nov 30th, 2001
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #50 - Jun 8th, 2002 at 4:37am
Print Post  
It is listed as "search for" and "add before". The same as a mod is written.

I just did a cut and paste from the code box and it worked fine.
  
Back to top
WWW  
IP Logged
 
x-framez
Full Member
***
Offline


:emotional pulsations:

Posts: 104
Location: København
Joined: May 31st, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #51 - Jun 8th, 2002 at 5:18am
Print Post  
I'm a bit lost here! Lips Sealed Undecided

Where do I put the "add before" part? Before what? Same with the search for part! Where do I put it? What exactly do I search for?
  
Back to top
WWW  
IP Logged
 
itswheelie
Senior Member
****
Offline


I love YaBB 1 Gold!

Posts: 445
Joined: May 30th, 2001
Re: [BETA] Quick reply. (by Christer)
Reply #52 - Jun 8th, 2002 at 5:41am
Print Post  
The Post by BHRA on Page 3 is the whole mod.

Just open notepad, copy and paste it in and just add at the top
<edit file>
sources/Display.pl
</edit file>

Because YaBB [code] doesn't display spaces correctly, you may have to adjust the <search for> portion to match the same text in display.pl (it's right at the very bottom of that file).

Wow it does loo great.

I have a heavily modded test board and so far it is working perfetly but it is early days.  If the guest posting problem can be fixed and (if needed) admin option added it would be a great addon.
  
Back to top
 
IP Logged
 
x-framez
Full Member
***
Offline


:emotional pulsations:

Posts: 104
Location: København
Joined: May 31st, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #53 - Jun 8th, 2002 at 6:30am
Print Post  
itswheelie wrote on Jun 8th, 2002 at 5:41am:
The Post by BHRA on Page 3 is the whole mod.

Just open notepad, copy and paste it in and just add at the top
<edit file>
sources/Display.pl
</edit file>

Because YaBB [code] doesn't display spaces correctly, you may have to adjust the <search for> portion to match the same text in display.pl (it's right at the very bottom of that file).



Ahh ok!

But I cant seem to install the mod. I've checked that everything in the mod matches the "search for" part. I've even copied and pasted that exact part from the display.pl file to the "search for" part in the mod! It still cant find it! Undecided
  
Back to top
WWW  
IP Logged
 
itswheelie
Senior Member
****
Offline


I love YaBB 1 Gold!

Posts: 445
Joined: May 30th, 2001
Re: [BETA] Quick reply. (by Christer)
Reply #54 - Jun 8th, 2002 at 7:21am
Print Post  
That's odd.  BTW I'm using SP1 and the code layout for Dislay.pl is different to SP1.1

In you are using SP1 then change the existing code in Dislay.pl from

Code
Select All
<table border="0" width="100%" cellpadding="0" cellspacing="0">~;
        $yymain .= qq~
  <tr>
    <td align="left" valign="top" colspan="2">~;
      if(exists $moderators{$username} || $settings[7] eq 'Administrator' || $settings[7] eq 'Global Moderator') {
            $yymain .= qq~<font size="1">
      <b>$img{'admin_func'}</b> &nbsp;<a href="$cgi;action=movethread;thread=$viewnum">$img{'admin_move'}</a> 



To this

Code
Select All
<table border="0" width="100%" cellpadding="0" cellspacing="0">~;
        $yymain .= qq~
  <tr>
    <td align="left" valign="top" colspan="2">~;
      if(exists $moderators{$username} || $settings[7] eq 'Administrator' || $settings[7] eq 'Global Moderator') {
            $yymain .= qq~<font size="1"><b>$img{'admin_func'}</b>
      &nbsp;<a href="$cgi;action=movethread;thread=$viewnum">$img{'admin_move'}</a> 



There should be no code on the line after {'admin_func'}</b>
move
&nbsp:<a...
to the next line.

No readjust your mod file and try boardmod again
  
Back to top
 
IP Logged
 
x-framez
Full Member
***
Offline


:emotional pulsations:

Posts: 104
Location: København
Joined: May 31st, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #55 - Jun 8th, 2002 at 7:34am
Print Post  
I'm using SP 1.1.

I moved the &nbsp... line one line down...but nothing new happened. It just gave me that error again.
  
Back to top
WWW  
IP Logged
 
itswheelie
Senior Member
****
Offline


I love YaBB 1 Gold!

Posts: 445
Joined: May 30th, 2001
Re: [BETA] Quick reply. (by Christer)
Reply #56 - Jun 8th, 2002 at 8:13am
Print Post  
I just noticed the code I posted had been altered a little with the Global Moderator mod.

For some reason there are trailing spaces at the end of every line.  Use ultraedit or editplus to remove them.

You might also try manually finding the <search for> code in Display.pl and doing a copy and paste directly into the mod file to replace what is there.  It should work then.

But get rid of the trailing spaces anyway

@BHRA I was playing around and found adding

Code
Select All
      if( $mstate == 0 ) { 



at the start where your Display check comment is,
and this:

Code
Select All
} 



at the bottom where your end comment is,  works for me to stop the Quick Reply Box displaying when the topic is locked.

I'm not sure if that is the easiest way or not.
  
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #57 - Jun 8th, 2002 at 10:30am
Print Post  
To solve the SP1/1.1 conflict and the global moderator problem, try changing the <search for> code to:

Code
Select All
<search for>
<table border="0" width="100%" cellpadding="0" cellspacing="0">~;
        $yymain .= qq~
  <tr>
    <td align="left" valign="top" colspan="2">~;
</search for> 




The if statement should work for locked threads, although I always prefer if ($mstate != "1"). It can also be expanded to hide the quickreply box if you are a guest: if ($mstate != "1" && $username ne 'Guest')
This is the easiest way to avoid the guest posting problem, but not necessarily the best.
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #58 - Jun 8th, 2002 at 10:41am
Print Post  
thanks for taking my work guys......but I don't think this still counts as being "(Made by Christer)", does it?
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #59 - Jun 8th, 2002 at 11:25am
Print Post  
Christer, it's still your mod even though all the code has changed! Grin

For the rest of you, try the new beta attached, and let us know if there are any problems or if you want anything changed.



Improvements in this version:

I've added the admin option, so to use the quick reply box, you will have to enable them in the forum preferences and settings!

I've also added the checks to stop the reply box from being displayed if the thread is locked or if you are a guest (That's right, guests don't get to use it!)

I've also moved the text to the english.lng file where it belongs.
  

quickreply_beta2.mod (Attachment deleted)


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 5 
Send TopicPrint