![]() |
I have it set for 20,000 characters. How long was the post?
|
Quote:
Frugal |
I'll up it to 50 k and then you can try it again. Give me 5 minutes. ;)
|
Thanks for this great little hack. Below is what I used to get it working on 3.0 Gold (replaces the original post). This code works with PMs as well, and uses the same formatting as the "highlight" tag so it can be used on a per-style basis.
The major difference is the editing of private.php in two spots. I know using $post in private.php probably isn't the best way to go about it, but it is quick and only takes two lines. code is updated, bug in WYSIWYG mode when editing posts is fixed. code is updated, bug in pm previews is fixed see the funcitons_newpost changes. includes/functions_newpost.php Find: PHP Code:
PHP Code:
includes/functions_bbcodeparse.php Find: PHP Code:
PHP Code:
newreply.php Find: PHP Code:
PHP Code:
private.php Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
What about the editpost.php? ;)
|
Quote:
|
I don't know. I use the hack_me.php file, but I thought when editing posts there might be a problem so I just thought I would mention it. ;)
Is there a way to make the whole line parse if there is bbcode BEFORE the /me code? They had that with an addon for the vB2 /me code. |
i prefer hack_me.php works perfectly in vb3 gold
|
Quote:
Quote:
|
Is there a way to have it parse the whole line in the hightlight color when there is the /me code in it no matter where the /me code is in the line? Does that make any sense?
|
thanks, work well with Vb 3.0 Gold :)
|
Ok, just to clearfy, if I put "/me" it will say username of a person who is looking at my post?
|
No it will say:
/me like this hack |
Quote:
'#^/me(.*)$#im' to: '#^(.*)/me(.*)$#im' change: $post[username] \\1 to: \\1 $post[username] \\2 change: $originalposter \\1 to: \\1 $originalposter \\2 in all the preg_replace() calls and it should do what you want. this text that /me typed would come out as: * this text that masahiko typed make sense? of course, i haven't used the hack_me.php version so all my example chages are based of the original/my own. |
Ok, we had a major issue now with the file-version of this hack (where the file is included). Some threads where no longer readable, especially some with an URL in it. We took the hack out and everything went fine again.
My guess is that some of the preg_replace's are not defined clear enough. |
strange, i just got 5 identical mails of the latest post in this thread?
Am i the only one? |
Quote:
Frugal |
I can't say i have these probs at my board tho
the hack works fine, the url's are fine sure you guyz didn't messed up some code somewhere? |
Quote:
http://www.bearfacts2.com/forums/showthread.php?t=437 Any idea how to fix the pm stuff and the different font stuff? |
Quote:
As far as I can tell the problem is related to url's with /me in them (could just be coincidence though, also all the problem posts on my site had urls using vB code rather than just being parsed ie HERE as opposed to http://www.redfoxdk.com/falcon/falcon_downloads/Rattys_missileFix%20_BMSdatav1.61.zip), although I suspect it could also be caused by a conflict between 2 hacks. Chances are Bernd Glasstett and myself both have the conflicting hack. Mind you it is also possible that the problem is just hard to notice because it only affects a small number of posts. I have 1500 posts per day on my forum and only found 4 recent posts that wouldn't open. I notice that both Bernd and myself have very busy forums whilst those who have stated they are not experiencing the problem have fairly quiet forums. This could simply be a timebomb waiting to happen on your forum. Frugal |
Quote:
i'm assuming that you're using font tags around the /me text. if you're using my code then it'll never work because the /me part isn't the first thing on the line. you'll have to use one of the preg changes i gave you erlier. i'm using my own hack verbatum so i'm not going to test that. if you do change it you'll have to watch for conflicts in the code thats being replaced. if you have one tag that changes the font inside another font tag, the inside one will take over. |
Using that preg_replace you posted didn't fix it. It still doesn't work with other fonts for me. And it STILL doesn't work in the show_pm. When viewing a pm with the /me code, you see the /me code. It works great in preview mode and quoting a private message, but not viewing a private message from someone who has the /me code in it. Does that make any sense?
|
maybe i'm an idiot, but i'm trying to install this on vb3 gold and I when i use find on either dreamweaver or wordpad, i can't find
Code:
$pagetext = trim(strip_quotes($pagetext)); |
what about newthread?
|
Quote:
|
Hehehe Boofo, he should find it with notepad :D
But hey, the line has to be pasted without spaces at the end, etc... Otherwise he says "can't find" indeed. |
I'm using the hack_me.php version and I was wondering how I'd go about making the text bold and putting another asterisk at the end of the phrase.
|
<a href="http://www.game-realms.net/vb/showthread.php?p=11874#post11874" target="_blank">http://www.game-realms.net/vb/showth...1874#post11874</a>
how can i change the colour? The red doesnt really suit it at all. |
Quote:
[high]* Synicide throws kisses to everybody.[/high] |
If anyone is having trouble with my original hack_me.php version posted a few pages back, then I'm at a loss. It must be a conflict with another poorly written hack because all that my code does is insert code tags before and after the /me line, as if they were typed by the user himself. There is no way that vB tags can cause a post or a thread to just 'disappear' unless some custom change has been made to the bbcode parser.
For the record, the original hack_me version that I posted in this thread works fine for my vB 3.0 Gold sites. |
Quote:
|
Oops, right after I say that, I discover a problem :) New version fixes a very obscure bug with one-line quotes. Just a minor display bug, could accidentally change the color of text that came right before a /me. Check the original post:
https://vborg.vbsupport.ru/showthrea...334#post484334 |
Quote:
And I wanted to ask. How come if I use highlight instead of color=, all the /me lines are in bold? |
All the occurrances of \s were replaced with [ \t] (that's [(space)\t]). \s also matches newlines, so that could get into trouble and match too much in very particular situations. Also, the parenthesis groups were shifted around a bit, but I can't remember why ;)
I have no idea why highlight would do that. As you can see, it just inserts a tag before any bbcode processing is done ... does your highlight normally make things bold? |
[high]* Wolf42 clicks install
[/high] Its still a nice hack. Thank you very much. :D |
Quote:
|
The highlight code appears in functions_bbcode.php at line 203..i think this is what you were looking for..
PHP Code:
|
Why would it be in bold when I use it with this hack? Any idea? ;)
|
ok i've enhanced this code for the benefit of sites with multiple stylesets (conflicting colours)
1. Open includes/functions_bbcodeparse.php: Find: PHP Code:
PHP Code:
2. Open newreply.php: Find: PHP Code:
PHP Code:
|
thanks very much, nifty little addition this one
/me clicks install |
All times are GMT. The time now is 11:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|