|
Scripts and Tools Share your free scripts , tools , icons, fontz, screen savers , etc here. |
![]() |
|
Thread Tools | Display Modes |
#1
|
|||||
|
|||||
![]()
This modification allows to offer deeplinks in your directory. It is a safe modification but you are better off backing up the database and the following files:
include/tables.php /detail.php submit.tpl detail.tpl You might as well test it in your test directory first. I tested it on version 3.2 and it works great. First: we have to add additional fields in the PLD_LINK table: 1. Open include/tables.php Code:
'RECPR_EXPIRED' => 'L NOTNULL DEFAULT 0' REPLACE BY: Code:
'RECPR_EXPIRED' => 'L NOTNULL DEFAULT 0' ,'TITLE1' => 'C(255) NULL' ,'URL1' => 'C(255) NULL' ,'TITLE2' => 'C(255) NULL' ,'URL2' => 'C(255) NULL' ,'TITLE3' => 'C(255) NULL' ,'URL3' => 'C(255) NULL' ,'TITLE4' => 'C(255) NULL' ,'URL4' => 'C(255) NULL' ,'TITLE5' => 'C(255) NULL' ,'URL5' => 'C(255) NULL' Second: Modify the submit form: in submit.tpl FIND: Code:
<tr> <td class="label">Description:</td> Quote:
To do so, we have to modify detail.php and detail.tpl 1. in detail.tpl FIND: Quote:
Quote:
FIND Quote:
Quote:
To modify the number of additional links the code above should be modified accordingly (straightforward). To allow a lower number of additional links for regular listings a simple javascript code can be added to the radio buttons of payment to hide some of the fields when “regular” is selected. Otherwise you can juste allow the same number of links for all plans. Another additional feature could be to check if the deeplinks come from the same domain. Use your imagination. I think this modification can be used for all versions of phpld but I only tested it on 3.2. These steps can be done everytime you upgrade the script, so you might bookmark this page or copy its content. Feel free to improve this mod. |
#2
|
|||
|
|||
![]()
这是新加的空白文章19,可以在ubb可视化编辑器中,添加和修改文章内容。
__________________
[Only Registered users can see links . Click Here To Register...] |
![]() |
Bookmarks |
Tags |
deep links, links, mod, phpld |
|
|