<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Core hacks</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 14:13:12 -0000</pubDate>

		<item>
			<title>Kingsley</title>
			<description><![CDATA[Thx Harry, works like a charm...<br />
<br />
test]]></description>
			<pubDate>Fr, 27 Mär 2009 06:12:30 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2477&d=0#post10540]]></link>
		</item>
		<item>
			<title>HarryRag</title>
			<description><![CDATA[They work indeed.<br />
<br />
Already had a topic about the gametrailers stuff: <a href="http://www.cotonti.com/forums.php?m=posts&amp;q=2227&amp;n=last#bottom">http://www.cotonti.com/forums.php?m=posts&amp;q=2227&amp;n=last#bottom</a><br />
What you rather want to have is the bbflow plugin, no corehacks and more additions: <a href="http://www.cotonti.com/forums.php?m=posts&amp;id=9267">http://www.cotonti.com/forums.php?m=posts&amp;id=9267</a><br />
<br />
It's also possible to add your stuff to the plug and have a install that way, then you won't need to do your corehacks after every cotonti update.]]></description>
			<pubDate>Do, 26 Mär 2009 22:38:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2477&d=0#post10524]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[Youtube should work out of the box or at least can be inserted really easily into the bbcode plugin.<br />
<br />
registration for download is in core.<br />
<br />
note can be added as bbcode. same for first two.]]></description>
			<pubDate>Do, 26 Mär 2009 19:54:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2477&d=0#post10519]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[In my seditio install I had some core hacks (at least, i think they were)<br />
<br />
Can I apply these in cotonti to?<br />
<br />
Here's a list of hacks I had:<br />
<br />
- Gametrailer: <div style="margin:4px 0px 4px 0px"><input type="button" value="example" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler">system/function.php find youtube code<br />
affer add <br />
<br />
Code:<br />
<br />
'\\[games\\]([^\\([]*)\\[/games\\]' =&gt; '<br />
&lt;object classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot;  codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0&quot; id=&quot;gtembed&quot; width=&quot;480&quot; height=&quot;392&quot;&gt; &lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot; /&gt; &lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt; &lt;param name=&quot;movie&quot; value=&quot;http://www.gametrailers.com/remote_wrap.php?mid=\\1&quot;/&gt; &lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt; &lt;embed src=https://www.cotonti.com/&quot;http://www.gametrailers.com/remote_wrap.php?mid=\\1&quot; swLiveConnect=&quot;true&quot; name=&quot;gtembed&quot; align=&quot;middle&quot; allowScriptAccess=&quot;sameDomain&quot; allowFullScreen=&quot;true&quot; quality=&quot;high&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;480&quot; height=&quot;392&quot;&gt;&lt;/embed&gt; &lt;/object&gt;',<br />
<br />
<br />
plugins/texboxer2/inc/texboxer2.inc.php find<br />
Code:<br />
$res['youtube'] = array('[youtube]', '[/youtube]', 50);<br />
<br />
add<br />
Code:<br />
$res['games'] = array('[games]', '[/games]', 51);<br />
<br />
find<br />
Code:<br />
'youtube',<br />
<br />
add<br />
Code:<br />
'games',<br />
<br />
System/lang/main.lang.php find<br />
Code:<br />
$L['bbcodes_preview'] = &quot;preview&quot;;<br />
<br />
add<br />
Code:<br />
$L['bbcodes_games'] = &quot;Gametrailer&quot;;<br />
</div></div>
<br />
- modbreak <div style="margin:4px 0px 4px 0px"><input type="button" value="example" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler">
<br />
<br />
Go to functions.php and look up this line ;<br />
Code:<br />
'<blockquote>' =&gt; '&lt;blockquote&gt;&lt;img src=https://www.cotonti.com/&quot;/system/img/bbcodes/quote.gif&quot;&gt;&lt;hr /&gt;',<br />
        '</blockquote>' =&gt; '&lt;hr /&gt;&lt;/blockquote&gt;',<br />
<br />
Place infront of that ;<br />
Code:<br />
'[modbreak]' =&gt; '&lt;div class=&quot;modbreak&quot; align=&quot;center&quot;&gt;MODBREAK&lt;/div&gt;&lt;div class=&quot;modbreaker&quot; align=&quot;center&quot;&gt;',<br />
        '[/modbreak]' =&gt; '&lt;/div&gt;',<br />
<br />
<br />
Save functions.php<br />
<br />
Go to your skin.css and add ;<br />
Code:<br />
.modbreak<br />
{<br />
        background: #EFF0C2 url(fullpath to your image needed including <a href="http://)" rel="nofollow">http://)</a> no-repeat right;<br />
        border: 1px solid #ff9900;<br />
        border-bottom: 0px dotted #ff9900;<br />
        color: #000000;<br />
        font-family: Verdana;<br />
        font-size: 10px;<br />
        letter-spacing: 2px;<br />
        font-weight: bold;<br />
        margin: 0 auto 0 auto;<br />
        padding: 4px;<br />
        width: 98%;<br />
}<br />
<br />
.modbreaker<br />
{<br />
        background: transparant;<br />
        border: 1px solid #ff9900;<br />
        color: #000000;<br />
        font-family: Verdana;<br />
        font-size: 10px;<br />
        margin: 0 auto 0 auto;<br />
        padding: 4px;<br />
        width: 98%;<br />
}<br />
<br />
<br />
Save and upload both files to your server !<br />
</div></div>
<br />
<br />
- note hack <div style="margin:4px 0px 4px 0px"><input type="button" value="example" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler">
 <br />
<br />
<br />
Go to your functions.php =&gt; Search for the line ;<br />
Code:<br />
'<blockquote>' =&gt; '&lt;blockquote&gt;&lt;img src=https://www.cotonti.com/&quot;/system/img/bbcodes/quote.gif&quot;&gt;&lt;hr /&gt;',<br />
        '</blockquote>' =&gt; '&lt;hr /&gt;&lt;/blockquote&gt;',<br />
<br />
Add before this line ;<br />
Code:<br />
'[note]' =&gt; '&lt;div class=&quot;note&quot;&gt;'.$L['Notes'].'&lt;/div&gt;&lt;div class=&quot;noteblock&quot;&gt;',<br />
        '[/note]' =&gt; '&lt;/div&gt;',<br />
<br />
<br />
NOTE ; .$L['Notes']. is already in your language file....<br />
<br />
Save file !<br />
<br />
Go to your skin .css =&gt; Add these following lines ;<br />
Code:<br />
.note<br />
{<br />
        background: #EFF0C2 url(full path to your image) no-repeat left;<br />
        border: 1px solid #999999;<br />
        border-bottom: 0px solid #333333;<br />
        color: #000000;<br />
        font-size: 14px;<br />
        font-weight: bold;<br />
        margin: 0 auto 0 auto;<br />
        padding: 3px;<br />
        width: 48%;<br />
}<br />
<br />
.noteblock<br />
{<br />
        background: #DBE5E9;<br />
        border: 1px solid #999999;<br />
        color: #000000;<br />
        font-family: Arial, sans-serif;<br />
        font-size: 12px;<br />
        margin: 0 auto 0 auto;<br />
        padding: 3px;<br />
        width: 48%;<br />
}<br />
<br />
Justify hack<br />
<br />
This code has been asked on neocrome.net;<br />
 <br />
<br />
<br />
Go to functions.php look up this line ;<br />
Code:<br />
'<blockquote>' =&gt; '&lt;blockquote&gt;&lt;img src=https://www.cotonti.com/&quot;/system/img/bbcodes/quote.gif&quot;&gt;&lt;hr /&gt;',<br />
        '</blockquote>' =&gt; '&lt;hr /&gt;&lt;/blockquote&gt;',<br />
<br />
Add the following line above it ;<br />
Code:<br />
'<div style="text-align:justify">' =&gt; '&lt;p style=&quot;text-align: justify; padding: 10px; border: 1px solid #999999;&quot;&gt;',<br />
        '</div>' =&gt; '&lt;/p&gt;',<br />
<br />
Save your functions file and upload to your server ! <br />
<br />
<br />
</div></div>
<br />
Require registration for download <div style="margin:4px 0px 4px 0px"><input type="button" value="example" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler">
<br />
 Description<br />
OPEN: www/system/core/page/page.inc.php<br />
<br />
FIND<br />
CODE:<br />
    if($pag['page_file'])<br />
        {<br />
        if (!empty($pag['page_url']))<br />
            {<br />
            $dotpos = strrpos($pag['page_url'],&quot;.&quot;)+1;<br />
            $pag['page_fileicon'] = &quot;system/img/pfs/&quot;.strtolower(substr($pag['page_url'], $dotpos, 5)).&quot;.gif&quot;;<br />
            if (!file_exists($pag['page_fileicon']))<br />
                { $pag['page_fileicon'] = &quot;system/img/admin/page.gif&quot;; }<br />
            $pag['page_fileicon'] = &quot;&lt;img src=https://www.cotonti.com/\&quot;&quot;.$pag['page_fileicon'].&quot;\&quot; alt=\&quot;\&quot;&gt;&quot;;<br />
            }<br />
        else<br />
            { $pag['page_fileicon'] = ''; }<br />
<br />
        $t-&gt;assign(array(<br />
            &quot;PAGE_FILE_URL&quot; =&gt; &quot;page.php?id=&quot;.$pag['page_id'].&quot;&amp;amp;a=dl&quot;,<br />
            &quot;PAGE_FILE_SIZE&quot; =&gt; $pag['page_size'],<br />
            &quot;PAGE_FILE_COUNT&quot; =&gt; $pag['page_filecount'],<br />
            &quot;PAGE_FILE_ICON&quot; =&gt; $pag['page_fileicon'],<br />
            &quot;PAGE_FILE_NAME&quot; =&gt; basename($pag['page_url'])<br />
                ));<br />
        $t-&gt;parse(&quot;MAIN.PAGE_FILE&quot;);<br />
        }<br />
<br />
<br />
<br />
REPLACE WITH<br />
CODE:<br />
    if($pag['page_file'])<br />
    {<br />
        if($usr['id'] &gt; 0)<br />
        {<br />
            if (!empty($pag['page_url']))<br />
            {<br />
                $dotpos = strrpos($pag['page_url'],&quot;.&quot;)+1;<br />
                $pag['page_fileicon'] = &quot;system/img/pfs/&quot;.strtolower(substr($pag['page_url'], $dotpos, 5)).&quot;.gif&quot;;<br />
                if (!file_exists($pag['page_fileicon']))<br />
                    { $pag['page_fileicon'] = &quot;system/img/admin/page.gif&quot;; }<br />
                $pag['page_fileicon'] = &quot;&lt;img src=https://www.cotonti.com/\&quot;&quot;.$pag['page_fileicon'].&quot;\&quot; alt=\&quot;\&quot;&gt;&quot;;<br />
            }<br />
            else<br />
            {<br />
                $pag['page_fileicon'] = '';<br />
            }<br />
<br />
            $t-&gt;assign(array(<br />
                &quot;PAGE_FILE_URL&quot; =&gt; &quot;page.php?id=&quot;.$pag['page_id'].&quot;&amp;amp;a=dl&quot;,<br />
                &quot;PAGE_FILE_SIZE&quot; =&gt; $pag['page_size'],<br />
                &quot;PAGE_FILE_COUNT&quot; =&gt; $pag['page_filecount'],<br />
                &quot;PAGE_FILE_ICON&quot; =&gt; $pag['page_fileicon'],<br />
                &quot;PAGE_FILE_NAME&quot; =&gt; basename($pag['page_url'])<br />
                    ));<br />
            $t-&gt;parse(&quot;MAIN.PAGE_FILE&quot;);<br />
        }else{<br />
            $t-&gt;parse(&quot;MAIN.PAGE_FILE_ERROR&quot;);<br />
        }<br />
    }<br />
<br />
<br />
<br />
FIND<br />
CODE:<br />
if($pag['page_file'] &amp;&amp; $a=='dl')<br />
    {<br />
    $file_size = @filesize($row['page_url']);<br />
    $pag['page_filecount']++;<br />
    $sql = sed_sql_query(&quot;UPDATE $db_pages SET page_filecount=page_filecount+1 WHERE page_id='&quot;.$pag['page_id'].&quot;'&quot;);<br />
    header(&quot;Location: &quot;.$pag['page_url']);<br />
    echo(&quot;&lt;script type='text/javascript'&gt;location.href='&quot;.$pag['page_url'].&quot;';&lt;/script&gt;Redirecting...&quot;);<br />
    exit;<br />
    }<br />
<br />
<br />
REPLACE WITH<br />
CODE:<br />
if($pag['page_file'] &amp;&amp; $a=='dl')<br />
{<br />
    if($usr['id'] &gt; 0){<br />
        $file_size = @filesize($row['page_url']);<br />
        $pag['page_filecount']++;<br />
        $sql = sed_sql_query(&quot;UPDATE $db_pages SET page_filecount=page_filecount+1 WHERE page_id='&quot;.$pag['page_id'].&quot;'&quot;);<br />
        header(&quot;Location: &quot;.$pag['page_url']);<br />
        echo(&quot;&lt;script type='text/javascript'&gt;location.href='&quot;.$pag['page_url'].&quot;';&lt;/script&gt;Redirecting...&quot;);<br />
        exit;<br />
    }<br />
    else<br />
    {<br />
        header(&quot;Location: message.php?msg=930&quot;);<br />
        exit;<br />
    }<br />
}<br />
<br />
<br />
OPEN: www/skins/YOURSKIN/page.tpl<br />
<br />
FIND<br />
CODE:<br />
&lt;!-- BEGIN: PAGE_FILE --&gt;<br />
<br />
<br />
BEFORE ADD<br />
CODE:<br />
    &lt;!-- BEGIN: PAGE_FILE_ERROR --&gt;<br />
    &lt;div class=&quot;error&quot;&gt;You must be registered to download files. Please &lt;a href=https://www.cotonti.com/&quot;users.php?m=auth&quot; title=&quot;Register&quot;&gt;Login&lt;/a&gt;, or &lt;a href=https://www.cotonti.com/&quot;users.php?m=register&quot; title=&quot;Register&quot;&gt;Register&lt;/a&gt;.&lt;/div&gt;<br />
    &lt;!-- END: PAGE_FILE_ERROR --&gt;<br />
<br />
</div></div>
<br />
<br />
- youtube hack <div style="margin:4px 0px 4px 0px"><input type="button" value="example" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler">1. step: put this in functions.php<br />
Code:<br />
'\\[youtube\\]([^\\([]*)\\[/youtube\\]' =&gt; '&lt;object width=&quot;400&quot; height=&quot;329&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/\\1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=https://www.cotonti.com/&quot;http://www.youtube.com/v/\\1&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;400&quot; height=&quot;329&quot;&gt;&lt;/embed&gt;&lt;/object&gt;',<br />
<br />
<br />
so you can get the video putting [youtube]TaIyUVAW2rA[/youtube] from <a href="http://www.youtube.com/watch?v=TaIyUVAW2rA" rel="nofollow">http://www.youtube.com/watch?v=TaIyUVAW2rA</a><br />
<br />
<br />
2 step: go to /plugins/textboxer2/inc/textboxer2.inc.php<br />
<br />
and add below;<br />
Code:<br />
$tb2Buttons = array( option 6 ;<br />
<br />
'youtube',<br />
<br />
<br />
Stay in this document and lookup;<br />
Code:<br />
/* settings for buttons */<br />
function tb2_getSettings(){<br />
        global $L;<br />
<br />
after this add;<br />
<br />
$res['youtube'] = array('[youtube]', '[/youtube]', 50); ( notice 30 is the iconnumber change it in the way you like. )<br />
<br />
Copy bbcodes.gif to /plugins/textboxer2/themes<br />
<br />
Have fun with this function. thx to rayblo <br />
</div></div>
<br />
I know some of these are probably a standard in cotonti. like the youtube thingy and the download thingy, But i really need the gametrailer thing for my webby..[/][/]]]></description>
			<pubDate>Do, 26 Mär 2009 19:30:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2477&d=0#post10518]]></link>
		</item>
	</channel>
</rss>