![]() |
How can I do this?
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! |
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. |
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= . |
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:
|
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. |
Again sorry I cannot test this myself but if you put
PHP Code:
eg PHP Code:
|
Hi 8utt! Thanks a lot! That really helps. It works now. :up:
|
Just use my hack, vbAnonymizer. No file edits :).
|
Thanks Dismounted, will definitely try the hack.
|
All times are GMT. The time now is 07:25 AM. |
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:
|