• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Registered Links

vbgamer45

Active member
Registered Links
By: vbgamer45

Install information:
1.Upload the library folder to the root directory of your Xenforo forum
2. In the Admin CP go to Home then Install Add On area and select and install the registeredlinks.xml from your computer

This addon checks all messages posted for links. If the user is a guest it will hide

the links. There are no settings for this addon.
 

Attachments

Thank you. I have a friend like to post link, thank for this medicine to hure my headache.
I have modified one line of code to make the register link work:

In file libraryViewPublic/registeredlinks.php

Code:
$signupLink = XenForo_Link::buildPublicLink('login/login');

change to:
Code:
$signupLink = XenForo_Link::buildPublicLink('register');
 
Trying to think what would cause that not to load. It should only change the content of the post.

Changed the register link from login/login to register for next update
I think there is link in second posts. I will get some time to test it.
 
Code:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18446744073208111105 bytes) in /home4/hkmyhome/public_html/citytalk/community/library/registeredlinks/ViewPublic/registeredlinks.php on line 25
Testing is going on. I am try to get which link has trouble.
 
Very strange, I refresh, no error, but the post is empty.

Below is post content. There are three links.
Code:
淚兒你好~~~ 以後寫作上請多多指點啊~~~

找到你提及的兩部著作, 考試後研究研究。中國哲學書電子化計劃不錯, 著作幾齊全
《史記·貨殖列傳》 http://www.acrotec.com/b5/sizhi69.html
中國哲學書電子化計劃 《鹽鐵論》西漢公元前81年-9年桓寬著 http://ctext.org/yan-tie-lun/zh
桓寬 -鹽鐵論 http://www.yasue.cc/yim_tit_lun.html
 
Remove the links, stll not work.
Next, looking at the page source.

Code:
[SIZE=4][FONT=Times New Roman][COLOR=rgb(0, 0, 0)][SIZE=13px][FONT=Trebuchet MS][COLOR=rgb(3, 42, 70)][INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][FONT=Georgia]淚兒你好~~~ 以後寫作上請多多指點啊~~~[/FONT][/FONT][/SIZE][/COLOR][/FONT][/SIZE][/COLOR][/FONT][/SIZE][/COLOR][/FONT][/SIZE][/COLOR][/INDENT]
[/COLOR][/FONT][/SIZE][/COLOR][/FONT][/SIZE]
[COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Georgia]找到你提及的兩部著作, 考試後研究研究。中國哲學書電子化計劃不錯, 著作幾齊全[/FONT][/SIZE][/COLOR][/FONT][/SIZE][/COLOR][/FONT][/SIZE][/COLOR][/FONT][/SIZE][/COLOR][/INDENT]
[/FONT][/SIZE][/COLOR]
[INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS]《史記·貨殖列傳》[FONT=Calibri][URL='http://www.acrotec.com/b5/sizhi69.html'][/URL] [/FONT][/FONT][/SIZE][/COLOR][/INDENT]
[INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][FONT=Calibri][FONT=Georgia]中國哲學書電子化計劃[/FONT][FONT=Calibri] [/FONT]《鹽鐵論》[/FONT]西漢公元前[FONT=Calibri]81[/FONT]年[FONT=Calibri]-9[/FONT]年桓寬著 [URL='http://ctext.org/yan-tie-lun/zh'][/URL][/FONT][/SIZE][/COLOR][/INDENT]
[INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][FONT=Calibri][FONT=Georgia]桓寬[/FONT][FONT=Calibri] -[/FONT]鹽鐵論[/FONT][URL='http://www.yasue.cc/yim_tit_lun.html'][/URL][/FONT][/SIZE][/COLOR][/INDENT]
[COLOR=rgb(3, 42, 70)][INDENT=1][/INDENT]
[SIZE=11px][LEFT][/LEFT]
[/SIZE][/COLOR][/FONT]
 
Try this file copy it to
library\registeredlinks\ViewPublic

And see if helps. Changed register link and changed order of somethings in that file
 

Attachments

Delete the hidden links still not work. Remove formatting, works.
Now, post the original post again:
Code:
[SIZE=4][FONT=Times New Roman][COLOR=rgb(0, 0, 0)][SIZE=13px][FONT=Trebuchet MS][COLOR=rgb(3, 42, 70)][INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][FONT=Georgia]淚兒你好~~~ 以後寫作上請多多指點啊~~~[/FONT][/FONT][/SIZE][/COLOR][/INDENT]

[INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Georgia]找到你提及的兩部著作, 考試後研究研究。中國哲學書電子化計劃不錯, 著作幾齊全[/FONT][/SIZE][/COLOR][/INDENT][/COLOR][/FONT][/SIZE][/COLOR][/FONT][/SIZE]
[INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS]《史記·貨殖列傳》[FONT=Calibri] [URL='http://www.acrotec.com/b5/sizhi69.html'][COLOR=rgb(3, 42, 70)]http://www.acrotec.com/b5/sizhi69.html[/COLOR][/URL] [/FONT][/FONT][/SIZE][/COLOR][/INDENT]
[INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][FONT=Calibri][FONT=Georgia]中國哲學書電子化計劃[/FONT][FONT=Calibri] [/FONT]《鹽鐵論》[/FONT]西漢公元前[FONT=Calibri]81[/FONT]年[FONT=Calibri]-9[/FONT]年桓寬著 [URL='http://ctext.org/yan-tie-lun/zh'][COLOR=rgb(3, 42, 70)]http://ctext.org/yan-tie-lun/zh[/COLOR][/URL][/FONT][/SIZE][/COLOR][/INDENT]
[INDENT=1][COLOR=rgb(3, 42, 70)][SIZE=13px][FONT=Trebuchet MS][FONT=Calibri][FONT=Georgia]桓寬[/FONT][FONT=Calibri] -[/FONT]鹽鐵論[/FONT] [URL='http://www.yasue.cc/yim_tit_lun.html'][COLOR=rgb(3, 42, 70)]http://www.yasue.cc/yim_tit_lun.html[/COLOR][/URL][/FONT][/SIZE][/COLOR][/INDENT]
[COLOR=rgb(3, 42, 70)][INDENT=1][/INDENT]
[SIZE=11px][LEFT][/LEFT]
[/SIZE][/COLOR][/FONT]

Hangs again.
 
Remove the formatting, the three links remain visible.
It works.
Code:
淚兒你好~~~ 以後寫作上請多多指點啊~~~
找到你提及的兩部著作, 考試後研究研究。中國哲學書電子化計劃不錯, 著作幾齊全
《史記·貨殖列傳》 [URL]http://www.acrotec.com/b5/sizhi69.html[/URL]
中國哲學書電子化計劃 《鹽鐵論》西漢公元前81年-9年桓寬著 [URL]http://ctext.org/yan-tie-lun/zh[/URL]
桓寬 -鹽鐵論 [URL]http://www.yasue.cc/yim_tit_lun.html[/URL]

[COLOR=rgb(3, 42, 70)][SIZE=11px][LEFT][/LEFT]
[/SIZE][/COLOR][/FONT]
RegosteredLinks has trouble wiht some bbcode. I tried to modified $source = , still not fixed the problem.
I guess it not detect url correctly.
 
I try in my local using xamp, dosn't have problem.
Should you sggest a check list investigate this problem?
 
Top Bottom