Hdream,是一款二次元主题Grace苏醒主题的EMlog版本,由1梦大佬从wordpress上移植到emlog,我能找到最早的发布时间是2018年6月4日,也就是说,发布时间最迟也在2018年6月4日前。
可能是因为发布时间距今已有四年,也可能是因为模板本身有一些bug,直接下载套用模板是不行的,所以接下来将逐一介绍这些bug并给出我的解决办法。
1、背景图加载失败
原因是模板根目录下/ecy/index.php文件中这两行出现了问题,变量指向的链接无法访问
$pc = 'https://cdn.24bp.cn/bk/api/PC.php';
$pe = 'https://cdn.24bp.cn/bk/api/PE.php';
解决方法:
我们可以看到在该路径下除了index.php外还有个api.php文件,我尝试将指向的链接变为"你的博客网址/content/templates/Hdream/ecy/api.php",背景成功显示,接下来的事情就简单了。根据变量名不难猜出两者对应的是不同访问设备的不同背景,于是我们可以自行建个图床或者在网上另外找个图床上传背景获得图片直链并放到api中,即可。$pc = '你的博客网址/content/templates/Hdream/ecy/PCapi.php'; $pe = '你的博客网址/content/templates/Hdream/ecy/PEapi.php';
我对于不同设备的处理方法是复制api.php文件,做成两份,一份返回pc,一份返回pe,即可做到不同设备对应不同分辨率的背景。
2、文章上下页错误
原因是moudle.php第818行开始,$prevLog变成了$nextLog <?php if ($prevLog):?>
<div class="prev-post">
<a href="<?php echo Url::log($nextLog['gid']) ?>" title="<?php echo $nextLog['title']; ?>" class="prev has-background" style="background-image: url(<?php echo img_fj($nextLog['gid']); ?>)" alt="<?php echo $nextLog['title']; ?>">
<span>Previous Post</span>
<h4><?php echo $nextLog['title']; ?></h4> </a>
</div>
<?php endif; ?>
解决方法:
也很简单,代码内的所有$nextLog全部替换为$prevLog即可。 <?php if ($prevLog):?>
<div class="prev-post">
<a href="<?php echo Url::log($prevLog['gid']) ?>" title="<?php echo $prevLog['title']; ?>" class="prev has-background" style="background-image: url(<?php echo img_fj($prevLog['gid']); ?>)" alt="<?php echo $prevLog['title']; ?>">
<span>Previous Post</span>
<h4><?php echo $prevLog['title']; ?></h4> </a>
</div>
<?php endif; ?>
3、文章作者回复不显示头像(不算bug)
有一段时间我也因为这个问题抓狂过,找了很久都不知道为什么,最后想到可能是个人资料里没设置邮箱的缘故。因为本人目前小白一个,不会配置smtp服务器,且主机的25端口无法放行,所以只能另辟蹊径解决。解决方法:
我用的是emlog6.1.1版本,我选择了一个简单粗暴的解决办法——把邮箱验证这个过程删掉,打开emlog/admin/view/blogger.php把以下代码全部删掉即可去掉邮箱验证
###邮箱设置的邮箱验证###
<li>
<div class="layui-input-inline">
<input name="emailcode" class="layui-input" value="" style="width:100px;" maxlength="10" placeholder="邮箱验证码" />
</div>
<div class="layui-input-inline" id="post_options">
<button type="button" id="sendMailCode" class="layui-btn layui-btn-primary">发送</button>
</div>
</li>
###设置邮箱登录的邮箱验证###
<li>
<div class="layui-input-inline">
<input name="usercode" class="layui-input" value="" style="width:100px;" maxlength="10" placeholder="账号验证码" />
</div>
<div class="layui-input-inline" id="post_options">
<button type="button" id="sendUserCode" class="layui-btn layui-btn-primary">发送</button>
</div>
</li>
4、还有一个不是bug的地方,但一定要记得修改
模板根目录下/images/weixin.png,那是个赞助码,一定一定记得先修改成自己的。作者:Dax,如若转载,请注明出处:《emlog的Hdream模板有哪些bug?怎么解决?——Hdream的魔改日常#1》
Greetings!
We present to your attention innovative device for vibration adjustment of rotating equipment - portable balancing device Balanset-1A.
Official product page: https://vibromera.eu/shop/889/
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/2025/05/12.webp" alt="Professional vibration analysis set" style="max-width: 100%; height: auto; margin: 20px 0;"></a>
Application Areas
Balanset-1A is successfully operated for vibration adjustment of diverse kinds rotor units:
Industrial Machinery:
Fans - production, centrifugal, duct. Pumps - gear, oil. Electromotors - synchronous. Turbine Units - gas. Compression Equipment - piston.
Machine Tools:
Machine Spindles - milling. Grinding Discs. Roll Mechanisms of paper machines.
Agricultural Machinery:
Combine Rotors. Vegetation Shredders. Crushing Units for fertilizers.
Specialized Machinery:
Separators - industrial. Blowers. Grinding Equipment. Cardan Shafts.
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/2024/04/1714073479045.jpg" alt="Field balancing on combine harvester" style="max-width: 100%; height: auto; margin: 20px 0;"></a>
Specifications
Main Parameters:
Correction planes: One or two. Rotation frequency range: 200 to 15,000 revolutions per minute. Phase measurement accuracy: ±1°. Vibration error: ±5%. Measurement channels: 2. Measured vibration velocity: 0.1 to 300 mm/s. Power: USB powered. Kit weight: 4 kg.
Functionality:
Automated computation of balancing weights. Database of operations. Tolerance calculation according to ISO 1940. Spectral analysis of vibration. Graphics in real time. Split weight calculation. Index balancing of mandrels.
Supply Composition
Standard Configuration:
USB measurement module (1 pc.) - delivers measurement control between hardware and software.
Accelerometers (2 pcs.) - Output signal: 100 mV/g. Operating frequencies: 0.5-10,000 Hz. Attachment: magnetic base.
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/2025/05/IMG-3-1.jpg" alt="Professional vibration transducer" style="max-width: 50%; height: auto; margin: 10px 0;"></a>
Laser phase sensor (1 pc.) - Working range: up to 1.5 m. Non-contact measurement for maximum safety.
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/2025/05/5-5.webp" alt="Digital RPM sensor" style="max-width: 50%; height: auto; margin: 10px 0;"></a>
Magnetic mount for phase sensor (1 pc.) - Holding force: 60 kgf. Flexible mounting for optimal alignment.
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/2025/05/magnetiline-alus-insize-60-kgf-e0f05_reference-1.jpg" alt="Adjustable sensor mount" style="max-width: 50%; height: auto; margin: 10px 0;"></a>
Digital scales up to 500 g (1 pc.) - Resolution: 0.01 g. Required for accurate mass determination.
Balancing software Balanset-1A - User-friendly interface. Computer software. International versions.
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/wpforo/default_attachments/1747606106-Screenshot-2025-05-16-165601.png" alt="Vibration analysis software" style="max-width: 80%; height: auto; margin: 10px 0;"></a>
Carrying case (1 pc.) - Robust design. Cushioned interior for equipment protection.
Technical documentation - Detailed instructions. Clear methodology.
Connection cables - High-quality interference-free connections.
Benefits of Balanset-1A
Technical Benefits:
? High Accuracy - Modern algorithms of signal processing guarantee reliable results.
? Portability - Light weight allows on-site balancing without disassembly.
? Versatility - Works with all kinds rotors from miniature spindles to massive shafts.
? Ease of Use - Intuitive interface requires no lengthy education.
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/2024/04/1714073479031.jpg" alt="Workshop balancing setup" style="max-width: 100%; height: auto; margin: 20px 0;"></a>
Economic Advantages:
? Expense Cutting on maintenance through timely diagnostics - 50-80% of emergency repairs.
? Equipment Life Extension by 50-200% - balanced equipment operates reliably.
? Power Savings by 5-15% - balanced rotors consume less power.
? Short ROI Period - from 3 to 12 months depending on operational scale.
Additional Services
Available to you:
Specialist Preparation - comprehensive sessions in our facility. Basic course encompasses all aspects.
Technical Support - remote guidance. Email support for quick problem solving.
Metrological Support - regular certification to guarantee reliability.
Device Leasing - suitable for trial operations. Weekly lease terms available.
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/2024/04/1714073478991.jpg" alt="Industrial equipment balancing" style="max-width: 100%; height: auto; margin: 20px 0;"></a>
Price Information
Actual Prices:
Balanset-1A Portable Balancer & Vibration Analyzer: €1,751.00
Balanset-1A OEM Version: €1,561.00
Additional Vibration Sensor: €90.00
Optical Sensor (Laser Tachometer): €124.00
Magnetic Stand 60 kgf: €46.00
Reflective Tape: €10.00
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/2025/05/balkom4-1.jpg" alt="Advanced diagnostic system" style="max-width: 80%; height: auto; margin: 20px 0;"></a>
Logistics:
Lead time: from 3 days. Warranty terms: 24 months complete protection. Settlement: 50/50. Transportation: worldwide via express delivery.
Why We Stand Out
Authorized Dealer - original equipment with comprehensive backup.
Qualified Personnel with deep knowledge in vibration diagnostics.
Complete Service Cycle - from sales to service and skill development.
Warehouse Inventory - minimal lead time for common configurations.
Individual Approach for regular customers including preferred rates.
<a href="https://vibromera.eu/shop/889/"><img src="https://vibromera.eu/wp-content/uploads/2025/05/1-1.webp" alt="Complete Balanset-1A system" style="max-width: 100%; height: auto; margin: 20px 0;"></a>
With best wishes,
Technical support team
P.S. Ask for presentation of the equipment today and get special conditions!