2019-05-03, 06:30 AM
Pages: 1 2
2019-05-03, 06:30 AM
2019-05-03, 07:59 AM
assuming that required custom script is based on javascript
such scripts can be manually added by editing template for the portal
see MyBB Templates system
such scripts can be manually added by editing template for the portal
see MyBB Templates system
2019-05-03, 08:49 AM
I actually setup a global template, but am not sure how to use it or display it.
2019-05-03, 10:12 AM
what exactly you have added in a new global template ?
I prefer using template conditionals plugin to load content
of a global template at required location of other template
I prefer using template conditionals plugin to load content
of a global template at required location of other template
2019-05-03, 10:15 AM
I just added the script that I want to display and was trying to figure out how to display it if I did it right.
<!--Begin SermonAudio Link Button-->
<SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="http://www.sermonaudio.com/code_spurgeon.asp?titlecolor=123154"></SCRIPT>
<!--End SermonAudio Link Button-->
2019-05-03, 10:29 AM
^ that code can be added into any template between existing
if you wanted it on the portal page then
you can edit portal template & add that required code just above
<head>
and </head>
codes if you wanted it on the portal page then
you can edit portal template & add that required code just above
</head>
2019-05-03, 10:34 AM
I actually tried that an it didn't work.
I went to Templates > Default Templates > Portal Templates
and edited Portal and put that code right before the </head> tag and it didn't show anything.
also tried it in the Index as well with no luck.
also tried to enable html in a forum post and I couldn't get the code to work, it would just show the code.
I went to Templates > Default Templates > Portal Templates
and edited Portal and put that code right before the </head> tag and it didn't show anything.
also tried it in the Index as well with no luck.
also tried to enable html in a forum post and I couldn't get the code to work, it would just show the code.
2019-05-03, 10:56 AM
(2019-05-03, 10:34 AM)SamoanOnion Wrote: [ -> ]I actually tried that an it didn't work.
I went to Templates > Default Templates > Portal Templates
and edited Portal and put that code right before the </head> tag and it didn't show anything.
also tried it in the Index as well with no luck.
also tried to enable html in a forum post and I couldn't get the code to work, it would just show the code.
I'm not an expert on this, but if you are attempting to modify the portal.php, then you must use PHP coding.
Go to this WEBPAGE and look at their first example. (this is using PHP 7.2.xx. Don't bother learning PHP 5.xx.xx because it's slowly being deprecated)
Hopefully, that will solve your issue.
2019-05-03, 11:13 AM
I have tested the given code & it has worked for me on the portal page.
[ temporary test link is sent through PM ]
[ temporary test link is sent through PM ]
2019-05-03, 11:13 AM
I understand what you mean, but the code that I'm editing is HTML (I believe)
here is the code with my script inserted:
I also tried it with the PHP tags and it still didn't work.
Thanks, I got the link
not sure what I'm doing wrong then, is the code correct in the above post?
quick side note, I'm trying to use HTML in a post, are the tags:
[html] [/html]
here is the code with my script inserted:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_announcements} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php?portal=1" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_announcements} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?portal=1&type=atom1.0" />
{$headerinclude}
<!--Begin SermonAudio Link Button-->
<SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="http://www.sermonaudio.com/code_spurgeon.asp?titlecolor=123154"></SCRIPT>
<!--End SermonAudio Link Button-->
</head>
<body>
{$header}
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
<tr><td valign="top" width="200">
{$welcome}
{$pms}
{$search}
{$stats}
{$whosonline}
{$latestthreads}
</td>
<td> </td>
<td valign="top">
{$announcements}
{$multipage}
</td>
</tr>
</table>
{$footer}
</body>
</html>
I also tried it with the PHP tags and it still didn't work.
Thanks, I got the link
not sure what I'm doing wrong then, is the code correct in the above post?
quick side note, I'm trying to use HTML in a post, are the tags:
[html] [/html]
Pages: 1 2