General Community > Scripting Help
Show HTML after user login
merlyn333:
Sure :) It's:
--- Code: ---<label><a class="various" data-fancybox-type="iframe" href="Sources/chat/index.php">Chat</a></label>
--- End code ---
Arantor:
No... the *rest* of the code.
It's added into the middle of an existing branch of code (that's already in what's called a tertiary statement) and unless you know what you're doing, you can very easily screw up the PHP code.
merlyn333:
It's here:
https://www.stypi.com/merlyn333/index.tempate.php
Line 210.
Arantor:
* Arantor wonders why you didn't just... post it here.
Anyway.
--- Code: (find) --- echo !empty($settings['forum_width']) ? '
<label><a class="various" data-fancybox-type="iframe" href="Sources/chat/index.php">Chat</a></label>
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<div id="logoForo1"> </div>
<div id="logoForo2"> </div>
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';
--- End code ---
--- Code: (replace) --- echo !empty($settings['forum_width']) ? ($context['user']['is_guest'] ? '' : '<label><a class="various" data-fancybox-type="iframe" href="Sources/chat/index.php">Chat</a></label>') . '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<div id="logoForo1"> </div>
<div id="logoForo2"> </div>
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';
--- End code ---
merlyn333:
Yes! It is!
And sorry, I still can not get used to paste the code here. I'll remember for upcoming occasions.
Thanks a lot! Very useful! :D
Navigation
[0] Message Index
[*] Previous page
Go to full version