The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am new to vBulletin, and would like to seek help here.
Suppose I have a url in a message. Quote:
Quote:
Quote:
Quote:
Please give me some clue on how to do this? At least let me know which file (funciton) I need to look at and do the modification. Thanks a lot! |
#2
|
|||
|
|||
![]()
I haven't done anything like this for a while but look at the bbcode manager
If you create a custom [url] code it uses this instead of the default one. So you can put your http://www.site2.com/redirect.php?tid=xx&url= in the code. |
#3
|
|||
|
|||
![]()
Thanks! Can you tell me how can I custom the [url] code? From Admin CP, I think I can only add new BB Code, and there is no option I can edit existing BB code.
Also, I would prefer urls stored in DB are [url="http://www.site1.com"] format, only when people view the thread it adds the http://www.site2.com/redirect.php?tid=xx&url= . |
#4
|
|||
|
|||
![]()
Nope sorry was talking a load of rubbish there you cannot crate a bbcode that already exists.
Sorry. Right how cofident are you with altering php files, I'm not at a pc I can test this on, but if you look at the file class_bbcode.php in the includes directory. Around line 1777 fine PHP Code:
before PHP Code:
PHP Code:
|
#5
|
|||
|
|||
![]()
Great help 8utt! I am almost there.
But one more trouble is still there, how can I assign the thread id, which is the xx in (tid=xx), to the url? Have any clue? I really appreciate it. |
#6
|
|||
|
|||
![]()
Again sorry I cannot test this myself but if you put
PHP Code:
eg PHP Code:
|
#7
|
|||
|
|||
![]()
Hi 8utt! Thanks a lot! That really helps. It works now. :up:
|
#8
|
||||
|
||||
![]()
Just use my hack, vbAnonymizer. No file edits
![]() |
#9
|
|||
|
|||
![]()
Thanks Dismounted, will definitely try the hack.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|