Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 5 1 2 3 4 5
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I'll check it and update if necessary.

Let me check.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Main Post has been updated to version 2.1 which includes JustDave's bug fixes.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
[]Main Post has been updated to version 2.1 which includes JustDave's bug fixes. [/]

I tried using the quick reply in this thread and I got an error saying that the post I am replying to had been deleted

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Testing quick reply.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hmm.. worked for me.
Was there a reply that someone started which is now gone??

What post were you replying to?

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
It seems to happen when you click on the quick reply in the middle of the thread. The javascript probably needs to set the hidden field's values to the related post number or something like that.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It's working for me at my site, but not here.

Maybe a step was missed here at threads dev?

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
hmmmmm I took out java code that is used in the body. That's all I did so I'll put that back and see. I'll also go over what I did. I don't think I missed anything other than excluding that unused form tag.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
[]Hmm.. worked for me.
Was there a reply that someone started which is now gone??

What post were you replying to? [/]

The last post that you made at the time.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
[]It seems to happen when you click on the quick reply in the middle of the thread. The javascript probably needs to set the hidden field's values to the related post number or something like that. [/]

Yup, still broken here

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think it's just broken here at threadsdev. Either a missing step, or might be a conflict with something else.


Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Hmm, I can't get this installed due to the first step:

I can't find this
[]#######################
## Open showflat.php ##
#######################

##
## Find this:
##

if ($ParentPost) {
$postrow[$i]['Subject'] = "<a href="{$config['phpurl']}/showthreaded.php?Cat=$Cat&Board=$Board&Number=$ParentPost&page=$page&view=$view&sb=$sb&o=$o&vc=1" target="_new" title="{$ubbt_lang['RESPONSE_TO']}$ParentPost" alt="{$ubbt_lang['RESPONSE_TO']}$ParentPost">$Subject</a>";
}

[/]

The only other hacks I have installed right now are the Reply to Who, and the birthday hack. Hmm..

Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Did anyone ever fix the blank post bug?? Maybe I missed it?


Some people read their stars..... I choose to write my own
#230096 01/04/2003 11:38 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
You can blank post with the standard .threads reply/post by adding more than one blank space to a post. I'll demonstrate in the test board.

To prevent the single blank space from being accepted change this line located in addpost.php:

if ( (preg_match("/^\s*$/",$Subject)) || ($Body == "") || ($postername == "") ) {

to this:

if ( (preg_match("/^\s*$/",$Subject)) || ($Body == "") || ($postername == "") || ($Body == " ") ) {


Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Wow! That was fast...... hehe Thanks as always Dave!


Some people read their stars..... I choose to write my own
#230098 01/04/2003 11:46 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Here's a better way. This one will keep those from entering a ton of blank spaces from submitting the post.

$TempString = str_replace(" ","",$Body);
if ( (preg_match("/^\s*$/",$Subject)) || ($Body == "") || ($postername == "") || ($TempString == "") ) {

Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Awesome!!!!!!


Some people read their stars..... I choose to write my own
#230100 01/04/2003 1:39 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
To add the spell checker to the quick reply box...

in showflat.tmpl

after

<input type="submit" name="textcont" value="{$ubbt_lang['TEXT_CONT']}" class="buttons" />

add

    <input type="button" name="spellcheck" value="{$ubbt_lang['SPELL_CHECK']}" onclick="window.open('http://www.spellcheck.net/cgi-bin/spell.exe?action=checkpg&string='+escape(document.replier.Body.value + '\\r\\n\\r\\n'), 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=500,height=500');" class="buttons" />

(I've changed the width to 500 so that the user does not have to scroll from left to right, to see all the text in the box.)


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Cool. Thanks Dave for the Fix.

Thanks Canvy for the Spell Checker Add.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Anyone tried adding smilies to this?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
No, but you probably could easily include clickable smileys at the bottom of the post list. That might be a good idea.
I would think to limit it to the first 10 graemlins or so..... off to the left (to keep it simple and load fast).

Joined: Jun 2002
Posts: 61
Power User
Power User
Offline
Joined: Jun 2002
Posts: 61
Works great!! Now people on my board wont have to worry about which "reply" to click ;-))

-Jason

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
One problem for me that I dont get:

insertAtCaret(obj.Body, ' ');

All I get inserted is a spcae - not the text of the message. The "old" line was:

insertAtCaret(obj.Body, '[{$ubbt_lang['TEXT_QUOTE']}]' + document.getElementById('post' + id).innerHTML + '[/{$ubbt_lang['TEXT_QUOTE']}]\\n\\n');


Which worked - except it included the HTML tags which dont get converted...?

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Even here if I click, I get a space.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The new one doesn't quote the text anymore. I didn't write the original, just tweaked it. But it's just "quick reply", no longer "quick quote" as we have a built in quote feature now.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Doh! Makes sense. By the way, I still get that deleted error here for some reason.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
***UPDATE - I'm updating the file in the main post to version 2.2****

If you have this installed all ready, do this:

Find this line:

if (($user['U_Username']) && ($Open != "C")) {


and change it to this:

if (($user['U_Username']) && (($Open != "C") && ($Open != "M"))) {



There are 2 of them in showflat.tmpl and 1 of them in showthreaded.tmpl file.


Without this, it allows a quick reply to a pointer (when a post is moved) and let me tell you.... that did some WACKY stuff.

So make that tweak and you'll be all set. If you haven't installed yet, I'm updating the file attached to the first post in this thread.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thanks josh... I'll be using this one today


- Allen wavey
- What Drives You?
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Has anyone got this running with the the "Reply to Who" hack?? Maybe I should have put in quick reply first??


Some people read their stars..... I choose to write my own
#230112 02/01/2003 7:10 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, you are basically going to find this in showflat.php:
Code
<br /><br />         if ($ParentPost) {<br />             $postrow[$i]['Subject'] = "<a href=\"{$config['phpurl']}/showthreaded.php?Cat=$Cat&amp;Board=$Board&amp;Number=$ParentPost&amp;page=$page&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;vc=1\" target=\"_new\" title=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\" alt=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\">$Subject</a>";<br />         }<br /><br />


and change to this:
Code
<br />		 $postrow[$i]['Subject'] = "<span id=\"subject$i\">$Subject</span>";<br />         $postrow[$i]['replyto_link'] = "<a href=\"{$config['phpurl']}/showthreaded.php?Cat=$Cat&amp;Board=$Board&amp;Number=$ParentPost&amp;page=$page&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;vc=1\" target=\"_new\" title=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\" alt=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\">";<br />



Hope that helps.... that's the only area where the 2 hacks cross paths.

Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Josh, if I haven't said it before... And hell, I have....hehe THANKS man!! Hope the weekend is going well....


Some people read their stars..... I choose to write my own
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Updated the main post to Version 3.0!

Version 3.0 adds a Pulldown Menu for Post Icons, a Preview Post Button, a Spellcheck button and a popup Graemlin Panel (thanks JustDave)

DEMO: at www.measurection.com
You have to login username: testing
password: testing

Once you do, all you'll see is a testing forum...in there, you can try it out.


Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Is the pull down post icons available as a seperate hack? They are rarely used on my site, so taking all those icons and putting them into a pull down menu would be excellent!

Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Hey Josh... I have already got the graemlinpanel.php file installed with the popup hack... I didn't bother u/l the one you supply, so I notice that it is popping up, however graemlins aren't inserted into the message. So, I need yours uploaded but will it cause a conflict with the popup graemlin hack?


Some people read their stars..... I choose to write my own
#230117 02/02/2003 12:28 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Ok, just tested and they both work great! Thanks again Josh! Man, this one is awesome!!!!!!!! Already getting raves and I just added it....


Some people read their stars..... I choose to write my own
#230118 02/02/2003 12:31 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Dlantech... There is a seperate hack for that but both the spelling and the drop down is included in the instructions for the quick reply 3.0


Some people read their stars..... I choose to write my own
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Dalantech -

In the templates/alternate directory... a ubbt_icon_select.tmpl template is provided. But this only gives you a pull down for the standard icons. It doesn't factor in custom icons.

I have posted instructions here.

#230120 02/02/2003 12:43 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah,
Good question. I'll edit my instructions above.

If you are already using JustDave's WONDERFUL popup Graemlin hack.... then this uses the SAME file. So you don't need to re-upload it.

I included it in this zip, rather than saying that the other hack was required, incase somebody didn't want it for their posting pages.... you can add it with this hack without having to fool with editing any other files.

Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Actually, ya have to use the file you have there Josh, there's no code for the quick reply box in Dave's WONDERFULLY AWESOME hack....


Some people read their stars..... I choose to write my own
#230122 02/02/2003 1:01 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Right.... but the graemlinpanel.php script is the same... is taken (er.. borrowed with permission) from the graemlin panel hack.

Page 2 of 5 1 2 3 4 5

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)