Home page >> Related Tutorials >>Body

ZBLOGPHP shares the original declaration and reprints the source information display code

Author: A little Jack    Time: 2022-09-17 19:17:37    Browse: 1122   

 ZBLOGPHP shares the original declaration and reprints the source information display code

Step 1: Add the article output port field

Hello, you need to log in to our account to view the hidden content, please first Sign in To view!

Step 2: Add display code to the article page

 <div class="laiyuan">     <p>         <!-- Article information and reprint -->         {if $article->Metas->biaoti} Source: {$article ->Metas ->biaoti} {$article ->Metas ->lianjie}         {else} Tips: This article is an original article by the author<a href="{$article ->Author. Url}" target="_blank">{$article ->Author. StaticName}</a>. Please indicate the source and attach a link to this article for reprinting!         {/if}     </p> </div> <style>     .laiyuan {         padding: 8px;         border-radius: 4px;         background: #f5f5f5;     } </style>

Tip 1: For the subject of the above code, you must fill in the currently used subject ID;

Tip 2: {$article ->Author. StaticName} is the alias of the user. If no user in your site has set an alias, please change it to {$article ->Author. Name}.

The above is the tips for reprinting original articles on this site's article page and the settings for displaying source information in reprinted source articles. If there is an error in the settings or you don't know how to set them, you can contact the Jack blogger for payment processing!


Text label: ZBLOG   Article reprint   Article Source   Original Statement  
 A little Jack

A little Jack https://lkba.cn

The blogger focuses on Z-Blog website construction, website optimization, computer troubleshooting, reinstallation, optimization, maintenance system, etc., QQ/WX: 2126245521 (please specify the purpose)

Related articles

Previous:

Next:

No comment for this article - Welcome

 Please fill in the verification code

Processed : 0.074 SQL : 25