<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[UtopiaSoftware Forums - All Forums]]></title>
		<link>http://www.utopiasoftware.net/forum/</link>
		<description><![CDATA[UtopiaSoftware Forums - http://www.utopiasoftware.net/forum]]></description>
		<pubDate>Thu, 17 May 2012 12:17:08 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[[help]color >> image]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=9455</link>
			<pubDate>Thu, 05 Jan 2012 08:51:32 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=9455</guid>
			<description><![CDATA[Hello,<br />
I wonder if it is possible to change the blue background with an image in css, I tried but there is rin!<br />
<br />
Sorry for my English I use google talk to you.]]></description>
			<content:encoded><![CDATA[Hello,<br />
I wonder if it is possible to change the blue background with an image in css, I tried but there is rin!<br />
<br />
Sorry for my English I use google talk to you.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[DEMO or Website, that are using Utopia News]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=134</link>
			<pubDate>Thu, 24 Feb 2011 17:06:26 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=134</guid>
			<description><![CDATA[Hi everyone. Post here your website, where you use Utopia News Script!]]></description>
			<content:encoded><![CDATA[Hi everyone. Post here your website, where you use Utopia News Script!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Branded PC or do you self build?]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=121</link>
			<pubDate>Sat, 20 Feb 2010 04:54:59 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=121</guid>
			<description><![CDATA[Hi All,<br />
<br />
Recently I bought a new PC from Dell. I am curious to know what you are looking for a new PC. I mean what do you normally do??<br />
<br />
- look for a brand, ie Dell, HP etc?<br />
- Build one yourself?<br />
- get custom one built (Alienware etc) ??]]></description>
			<content:encoded><![CDATA[Hi All,<br />
<br />
Recently I bought a new PC from Dell. I am curious to know what you are looking for a new PC. I mean what do you normally do??<br />
<br />
- look for a brand, ie Dell, HP etc?<br />
- Build one yourself?<br />
- get custom one built (Alienware etc) ??]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Utopia News Pro Query]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=118</link>
			<pubDate>Tue, 16 Feb 2010 07:37:05 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=118</guid>
			<description><![CDATA[Hi All,<br />
<br />
The script I'm using for news posting is designed so the comments for each news item are displayed with links like "/news/comments.php?action=list&amp;newsid=1" but I'd like to have the comments displayed below each post, rather than on a separate page. There doesn't seem to be a variable to do this with the templates, so how can I accomplish it?<br />
<br />
Thanks,<br />
Trevor.]]></description>
			<content:encoded><![CDATA[Hi All,<br />
<br />
The script I'm using for news posting is designed so the comments for each news item are displayed with links like "/news/comments.php?action=list&amp;newsid=1" but I'd like to have the comments displayed below each post, rather than on a separate page. There doesn't seem to be a variable to do this with the templates, so how can I accomplish it?<br />
<br />
Thanks,<br />
Trevor.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[1.4.0] jQuery Colour Picker]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=114</link>
			<pubDate>Sat, 30 Jan 2010 17:06:44 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=114</guid>
			<description><![CDATA[I was getting bored of having to find an external tool to pick the colours i want the style options to be so i found a jQuery colour picker and i have implemented it to UNP here are the instructions...<br />
<br />
Download the File From <a href="http://www.joffcom.net/cpicker.zip" target="_blank">here</a> or at the bottom of the post<br />
<br />
Then edit the one file<br />
<br />
Styles.php<br />
----------<br />
<br />
Replace Line 81 With:<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">'&lt;script&nbsp;type="text/javascript"&nbsp;src="misc/styles.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;link&nbsp;rel="stylesheet"&nbsp;href="cpicker/css/colorpicker.css"&nbsp;type="text/css"&nbsp;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/jquery.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/colorpicker.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/eye.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/utils.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/layout.js?ver=1.0.2"&gt;&lt;/script&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
<br />
Replace Lines 112-114 With:<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;</span><span style="color: #DD0000">'.&#36;title.'</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">input&nbsp;id</span><span style="color: #007700">=</span><span style="color: #DD0000">"colorpickerField1"&nbsp;</span><span style="color: #0000BB">onChange</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript:&nbsp;updateColor(&#092;''.&#36;id.'&#092;')"&nbsp;</span><span style="color: #0000BB">type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"'.htmlspecialchars(&#36;value).'"&nbsp;</span><span style="color: #0000BB">size</span><span style="color: #007700">=</span><span style="color: #DD0000">"20"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"'.&#36;id.'"&nbsp;</span><span style="color: #007700">/&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">input&nbsp;id</span><span style="color: #007700">=</span><span style="color: #DD0000">"colorbox'.&#36;id.'"&nbsp;</span><span style="color: #0000BB">type</span><span style="color: #007700">=</span><span style="color: #DD0000">"button"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&nbsp;</span><span style="color: #0000BB">disabled</span><span style="color: #007700">=</span><span style="color: #DD0000">"disabled"&nbsp;</span><span style="color: #0000BB">style</span><span style="color: #007700">=</span><span style="color: #DD0000">"background-color:&nbsp;#'.htmlspecialchars(&#36;value).'"&nbsp;</span><span style="color: #007700">/&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&nbsp;<br /></span></code></div></div></div>
<br />
<br />
<br />
<br />
And your all set enjoy...2 in one day not bad<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/zip.gif" border="0" alt=".zip" />&nbsp;&nbsp;<a href="attachment.php?aid=9" target="_blank">cpicker.zip</a> (Size: 88.77 KB / Downloads: 4)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[I was getting bored of having to find an external tool to pick the colours i want the style options to be so i found a jQuery colour picker and i have implemented it to UNP here are the instructions...<br />
<br />
Download the File From <a href="http://www.joffcom.net/cpicker.zip" target="_blank">here</a> or at the bottom of the post<br />
<br />
Then edit the one file<br />
<br />
Styles.php<br />
----------<br />
<br />
Replace Line 81 With:<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">'&lt;script&nbsp;type="text/javascript"&nbsp;src="misc/styles.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;link&nbsp;rel="stylesheet"&nbsp;href="cpicker/css/colorpicker.css"&nbsp;type="text/css"&nbsp;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/jquery.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/colorpicker.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/eye.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/utils.js"&gt;&lt;/script&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&nbsp;src="cpicker/js/layout.js?ver=1.0.2"&gt;&lt;/script&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
<br />
Replace Lines 112-114 With:<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;</span><span style="color: #DD0000">'.&#36;title.'</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">input&nbsp;id</span><span style="color: #007700">=</span><span style="color: #DD0000">"colorpickerField1"&nbsp;</span><span style="color: #0000BB">onChange</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript:&nbsp;updateColor(&#092;''.&#36;id.'&#092;')"&nbsp;</span><span style="color: #0000BB">type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"'.htmlspecialchars(&#36;value).'"&nbsp;</span><span style="color: #0000BB">size</span><span style="color: #007700">=</span><span style="color: #DD0000">"20"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"'.&#36;id.'"&nbsp;</span><span style="color: #007700">/&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">input&nbsp;id</span><span style="color: #007700">=</span><span style="color: #DD0000">"colorbox'.&#36;id.'"&nbsp;</span><span style="color: #0000BB">type</span><span style="color: #007700">=</span><span style="color: #DD0000">"button"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&nbsp;</span><span style="color: #0000BB">disabled</span><span style="color: #007700">=</span><span style="color: #DD0000">"disabled"&nbsp;</span><span style="color: #0000BB">style</span><span style="color: #007700">=</span><span style="color: #DD0000">"background-color:&nbsp;#'.htmlspecialchars(&#36;value).'"&nbsp;</span><span style="color: #007700">/&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&nbsp;<br /></span></code></div></div></div>
<br />
<br />
<br />
<br />
And your all set enjoy...2 in one day not bad<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/zip.gif" border="0" alt=".zip" />&nbsp;&nbsp;<a href="attachment.php?aid=9" target="_blank">cpicker.zip</a> (Size: 88.77 KB / Downloads: 4)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[1.4.0] iPhone View]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=113</link>
			<pubDate>Sat, 30 Jan 2010 11:34:44 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=113</guid>
			<description><![CDATA[Before you think you can update your news with this you cant, It is only for viewing the news posts only...<br />
<br />
Features:<br />
Custom Icons For Homescreen<br />
Loads like an app if added to homescreen<br />
Full UNP Code support<br />
Fancy iPhone style effects (slide &amp; flip)<br />
Theme can be changed by editing the images<br />
Easy To Install<br />
Uses the UNP Settings<br />
<br />
ToDo:<br />
Add Pages so you can look further back than the news limit<br />
Option to switch to standard site<br />
Ability to post news using an iPhone interface<br />
Post / View Comments<br />
Add theme editor to the existing editor on UNP ACP<br />
...More to follow<br />
<br />
<br />
demo available at: joffcom.net/unp_test/iphone<br />
<br />
or just point your device to joffcom.net and it will auto direct you to it.<br />
<br />
<br />
<span style="font-weight: bold;">So here is the install guide..</span><br />
<br />
Download the Add On from either <a href="http://www.joffcom.net/iphone.zip" target="_blank">here</a> or the bottom of the post<br />
<br />
Put it in your UNP News DIR so yoursite.com/news/iphone<br />
<br />
open your main index file for your website and add the following anywhere between &lt;head&gt; and &lt;/head&gt;<br />
<br />
<span style="font-weight: bold;"><span style="color: #FF0000;">**THIS BIT HAS BEEN UPDATED TO SUPPORT ANDROID AND WEBOS**</span></span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #0000BB">javascript</span><span style="color: #007700">&gt;<br />&lt;!--<br />if((</span><span style="color: #0000BB">navigator</span><span style="color: #007700">.</span><span style="color: #0000BB">userAgent</span><span style="color: #007700">.</span><span style="color: #0000BB">match</span><span style="color: #007700">(/</span><span style="color: #0000BB">iPhone</span><span style="color: #007700">/</span><span style="color: #0000BB">i</span><span style="color: #007700">))&nbsp;||&nbsp;(</span><span style="color: #0000BB">navigator</span><span style="color: #007700">.</span><span style="color: #0000BB">userAgent</span><span style="color: #007700">.</span><span style="color: #0000BB">match</span><span style="color: #007700">(/</span><span style="color: #0000BB">iPod</span><span style="color: #007700">/</span><span style="color: #0000BB">i</span><span style="color: #007700">))&nbsp;||&nbsp;(</span><span style="color: #0000BB">navigator</span><span style="color: #007700">.</span><span style="color: #0000BB">userAgent</span><span style="color: #007700">.</span><span style="color: #0000BB">match</span><span style="color: #007700">(/</span><span style="color: #0000BB">Android</span><span style="color: #007700">/</span><span style="color: #0000BB">i</span><span style="color: #007700">))&nbsp;||&nbsp;(</span><span style="color: #0000BB">navigator</span><span style="color: #007700">.</span><span style="color: #0000BB">userAgent</span><span style="color: #007700">.</span><span style="color: #0000BB">match</span><span style="color: #007700">(/</span><span style="color: #0000BB">webOS</span><span style="color: #007700">/</span><span style="color: #0000BB">i</span><span style="color: #007700">)))<br />{<br /></span><span style="color: #0000BB">location</span><span style="color: #007700">.</span><span style="color: #0000BB">replace</span><span style="color: #007700">(</span><span style="color: #DD0000">"news/iphone/index.php"</span><span style="color: #007700">);<br />}<br />--&gt;<br /></span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<br />
make sure you change "news/iphone/index.php" to where you have put it all you need to do is change the news to what you have called yours.<br />
<br />
if you dont have a &lt;head&gt;&lt;/head&gt; on your site anywhere at the top will do<br />
<br />
Thats it all set your ready to go<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/zip.gif" border="0" alt=".zip" />&nbsp;&nbsp;<a href="attachment.php?aid=8" target="_blank">iphone.zip</a> (Size: 76.62 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Before you think you can update your news with this you cant, It is only for viewing the news posts only...<br />
<br />
Features:<br />
Custom Icons For Homescreen<br />
Loads like an app if added to homescreen<br />
Full UNP Code support<br />
Fancy iPhone style effects (slide &amp; flip)<br />
Theme can be changed by editing the images<br />
Easy To Install<br />
Uses the UNP Settings<br />
<br />
ToDo:<br />
Add Pages so you can look further back than the news limit<br />
Option to switch to standard site<br />
Ability to post news using an iPhone interface<br />
Post / View Comments<br />
Add theme editor to the existing editor on UNP ACP<br />
...More to follow<br />
<br />
<br />
demo available at: joffcom.net/unp_test/iphone<br />
<br />
or just point your device to joffcom.net and it will auto direct you to it.<br />
<br />
<br />
<span style="font-weight: bold;">So here is the install guide..</span><br />
<br />
Download the Add On from either <a href="http://www.joffcom.net/iphone.zip" target="_blank">here</a> or the bottom of the post<br />
<br />
Put it in your UNP News DIR so yoursite.com/news/iphone<br />
<br />
open your main index file for your website and add the following anywhere between &lt;head&gt; and &lt;/head&gt;<br />
<br />
<span style="font-weight: bold;"><span style="color: #FF0000;">**THIS BIT HAS BEEN UPDATED TO SUPPORT ANDROID AND WEBOS**</span></span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #0000BB">javascript</span><span style="color: #007700">&gt;<br />&lt;!--<br />if((</span><span style="color: #0000BB">navigator</span><span style="color: #007700">.</span><span style="color: #0000BB">userAgent</span><span style="color: #007700">.</span><span style="color: #0000BB">match</span><span style="color: #007700">(/</span><span style="color: #0000BB">iPhone</span><span style="color: #007700">/</span><span style="color: #0000BB">i</span><span style="color: #007700">))&nbsp;||&nbsp;(</span><span style="color: #0000BB">navigator</span><span style="color: #007700">.</span><span style="color: #0000BB">userAgent</span><span style="color: #007700">.</span><span style="color: #0000BB">match</span><span style="color: #007700">(/</span><span style="color: #0000BB">iPod</span><span style="color: #007700">/</span><span style="color: #0000BB">i</span><span style="color: #007700">))&nbsp;||&nbsp;(</span><span style="color: #0000BB">navigator</span><span style="color: #007700">.</span><span style="color: #0000BB">userAgent</span><span style="color: #007700">.</span><span style="color: #0000BB">match</span><span style="color: #007700">(/</span><span style="color: #0000BB">Android</span><span style="color: #007700">/</span><span style="color: #0000BB">i</span><span style="color: #007700">))&nbsp;||&nbsp;(</span><span style="color: #0000BB">navigator</span><span style="color: #007700">.</span><span style="color: #0000BB">userAgent</span><span style="color: #007700">.</span><span style="color: #0000BB">match</span><span style="color: #007700">(/</span><span style="color: #0000BB">webOS</span><span style="color: #007700">/</span><span style="color: #0000BB">i</span><span style="color: #007700">)))<br />{<br /></span><span style="color: #0000BB">location</span><span style="color: #007700">.</span><span style="color: #0000BB">replace</span><span style="color: #007700">(</span><span style="color: #DD0000">"news/iphone/index.php"</span><span style="color: #007700">);<br />}<br />--&gt;<br /></span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<br />
make sure you change "news/iphone/index.php" to where you have put it all you need to do is change the news to what you have called yours.<br />
<br />
if you dont have a &lt;head&gt;&lt;/head&gt; on your site anywhere at the top will do<br />
<br />
Thats it all set your ready to go<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/zip.gif" border="0" alt=".zip" />&nbsp;&nbsp;<a href="attachment.php?aid=8" target="_blank">iphone.zip</a> (Size: 76.62 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Login says success then kicks me back]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=107</link>
			<pubDate>Fri, 22 Jan 2010 06:04:31 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=107</guid>
			<description><![CDATA[Installed the software without a glitch. When I log in though it says I am succesfull the boots me back to the login page again. It's a never ending loop. My host (appliedi.net) says the sessions are configured correctly so i don't know what is going on. I need to do a demo for a client tomorrow night so I hope there is a cure. Thanks. Dave]]></description>
			<content:encoded><![CDATA[Installed the software without a glitch. When I log in though it says I am succesfull the boots me back to the login page again. It's a never ending loop. My host (appliedi.net) says the sessions are configured correctly so i don't know what is going on. I need to do a demo for a client tomorrow night so I hope there is a cure. Thanks. Dave]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Windows 7 or vista..?]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=104</link>
			<pubDate>Mon, 18 Jan 2010 05:06:30 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=104</guid>
			<description><![CDATA[Hi to all<br />
I am planning to buy new laptop.But confused little which system to buy.So please share your experience so i can get some ideas.which one is better..?]]></description>
			<content:encoded><![CDATA[Hi to all<br />
I am planning to buy new laptop.But confused little which system to buy.So please share your experience so i can get some ideas.which one is better..?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Amazing Art of pencil]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=103</link>
			<pubDate>Tue, 05 Jan 2010 10:00:34 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=103</guid>
			<description><![CDATA[Hi to all,<br />
I want to share my collection of Pencil Art <br />
Here are from my collection.<br />
<br />
<img src="http://img223.imageshack.us/img223/3394/image004g.jpg" border="0" alt="[Image: image004g.jpg]" />]]></description>
			<content:encoded><![CDATA[Hi to all,<br />
I want to share my collection of Pencil Art <br />
Here are from my collection.<br />
<br />
<img src="http://img223.imageshack.us/img223/3394/image004g.jpg" border="0" alt="[Image: image004g.jpg]" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Help in PHP function]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=99</link>
			<pubDate>Mon, 28 Dec 2009 06:21:47 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=99</guid>
			<description><![CDATA[Hi!!<br />
 I have just started the programing web development. I face the problem with the header function. The function doesn't redirect. Found this error.<br />
<br />
Warning: Cannot modify header information - headers already sent by (output started at /home/kabeet/public_html/flash/page_add.php:4) in /home/public_html/page_add.php on line 72<br />
<br />
Please help.]]></description>
			<content:encoded><![CDATA[Hi!!<br />
 I have just started the programing web development. I face the problem with the header function. The function doesn't redirect. Found this error.<br />
<br />
Warning: Cannot modify header information - headers already sent by (output started at /home/kabeet/public_html/flash/page_add.php:4) in /home/public_html/page_add.php on line 72<br />
<br />
Please help.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How long have you been using UNP]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=96</link>
			<pubDate>Tue, 15 Dec 2009 16:38:05 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=96</guid>
			<description><![CDATA[I have personally been using unp for a good few years now and have seen many changes to it but have only recently been on here and posting mods for it (4 now for 1.4) but I have to admit I always took the powered by off the main page, although I did have a credits page and it was in there aswell as on the feeds, printables and archives.<br />
<br />
At the moment I am using a different system while I write my own which has unp in the middle of it, which means alot of the things I post up will be things I will actually use myself when the system is finished]]></description>
			<content:encoded><![CDATA[I have personally been using unp for a good few years now and have seen many changes to it but have only recently been on here and posting mods for it (4 now for 1.4) but I have to admit I always took the powered by off the main page, although I did have a credits page and it was in there aswell as on the feeds, printables and archives.<br />
<br />
At the moment I am using a different system while I write my own which has unp in the middle of it, which means alot of the things I post up will be things I will actually use myself when the system is finished]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[1.4.0] Pagination]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=95</link>
			<pubDate>Fri, 11 Dec 2009 21:11:20 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=95</guid>
			<description><![CDATA[After a few months thinking about what to do next I have decided to sort out the Pagination for people, For those that dont know Pagination is that little bit that adds the page numbers to the bottom, Like google has for the search.<br />
<br />
<br />
There is currently one problem and that is that the links dont look very good being just plan text but it is only a quick hack after all.<br />
<br />
I have linked it in so that the amount of posts on one page controls the amount on each page, At a later date I will update this and add in some AJAX to make it feel nicer but until then this will do the job for you.<br />
<br />
You have 2 ways to install this hack...<br />
<br />
The easy way is to download the new News.php and upload it to your server to replace the default one<br />
<br />
<a href="http://www.joffcom.net/unp_pagination.zip" target="_blank">[File - unp_pagination.zip]</a> - Right Click Save As - File also attached to post just incase my link goes down<br />
<br />
Or you can add in the code to the news.php file yourself but make sure you back up the original before both ways, I would recommend the replacement file unless you already have mods/hacks installed that edit the main news.php file[/php]<br />
<br />
find the following code which starts at around line 49 in news.php<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #FF8000">/*&nbsp;####################&nbsp;CATEGORIES&nbsp;####################&nbsp;*/<br />//&nbsp;+------------------------------------------------------------------+<br />//&nbsp;|&nbsp;Process&nbsp;News&nbsp;-&nbsp;Standard&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br />//&nbsp;+------------------------------------------------------------------+<br /><br /><br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;action&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">)<br />{&nbsp;<br /></span></code></div></div></div>
<br />
after that { add the following<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #FF8000">//&nbsp;find&nbsp;out&nbsp;how&nbsp;many&nbsp;rows&nbsp;are&nbsp;in&nbsp;the&nbsp;table&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;pagecon&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;DB</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;count(*)&nbsp;FROM&nbsp;unp_news"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(</span><span style="color: #0000BB">&#36;r&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;DB</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;pagecon</span><span style="color: #007700">))<br /></span><span style="color: #0000BB">&#36;numrows&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;r</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];<br /><br /></span><span style="color: #FF8000">//&nbsp;number&nbsp;of&nbsp;rows&nbsp;to&nbsp;show&nbsp;per&nbsp;page<br /></span><span style="color: #0000BB">&#36;rowsperpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;newslimit</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">//&nbsp;find&nbsp;out&nbsp;total&nbsp;pages<br /></span><span style="color: #0000BB">&#36;totalpages&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ceil</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;numrows&nbsp;</span><span style="color: #007700">/&nbsp;</span><span style="color: #0000BB">&#36;rowsperpage</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;get&nbsp;the&nbsp;current&nbsp;page&nbsp;or&nbsp;set&nbsp;a&nbsp;default<br /></span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'currentpage'</span><span style="color: #007700">])&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">is_numeric</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'currentpage'</span><span style="color: #007700">]))&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;cast&nbsp;var&nbsp;as&nbsp;int<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">=&nbsp;(int)&nbsp;</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'currentpage'</span><span style="color: #007700">];<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;default&nbsp;page&nbsp;num<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if<br /><br />//&nbsp;if&nbsp;current&nbsp;page&nbsp;is&nbsp;greater&nbsp;than&nbsp;total&nbsp;pages...<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">&#36;totalpages</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;set&nbsp;current&nbsp;page&nbsp;to&nbsp;last&nbsp;page<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;totalpages</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if<br />//&nbsp;if&nbsp;current&nbsp;page&nbsp;is&nbsp;less&nbsp;than&nbsp;first&nbsp;page...<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;set&nbsp;current&nbsp;page&nbsp;to&nbsp;first&nbsp;page<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if<br /><br />//&nbsp;the&nbsp;offset&nbsp;of&nbsp;the&nbsp;list,&nbsp;based&nbsp;on&nbsp;current&nbsp;page&nbsp;<br /></span><span style="color: #0000BB">&#36;offset&nbsp;</span><span style="color: #007700">=&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;*&nbsp;</span><span style="color: #0000BB">&#36;rowsperpage</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">//&nbsp;get&nbsp;the&nbsp;info&nbsp;from&nbsp;the&nbsp;db&nbsp;<br /></span></code></div></div></div>
<br />
<br />
now find <br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">eval(</span><span style="color: #DD0000">'&#36;news_newsbit&nbsp;=&nbsp;"'</span><span style="color: #007700">.</span><span style="color: #0000BB">unp_printTemplate</span><span style="color: #007700">(</span><span style="color: #DD0000">'news_newsbit'</span><span style="color: #007700">).</span><span style="color: #DD0000">'";'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">unp_echoTemplate</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;news_newsbit</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;NewsBit<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&#092;n&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;unset(</span><span style="color: #0000BB">&#36;news</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
and after it add<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #FF8000">/******&nbsp;&nbsp;build&nbsp;the&nbsp;pagination&nbsp;links&nbsp;******/<br />//&nbsp;range&nbsp;of&nbsp;num&nbsp;links&nbsp;to&nbsp;show<br /></span><span style="color: #0000BB">&#36;range&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">//&nbsp;if&nbsp;not&nbsp;on&nbsp;page&nbsp;1,&nbsp;don't&nbsp;show&nbsp;back&nbsp;links<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;show&nbsp;&lt;&lt;&nbsp;link&nbsp;to&nbsp;go&nbsp;back&nbsp;to&nbsp;page&nbsp;1<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=1'&gt;&lt;&lt;&lt;/a&gt;&nbsp;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;get&nbsp;previous&nbsp;page&nbsp;num<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;prevpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;show&nbsp;&lt;&nbsp;link&nbsp;to&nbsp;go&nbsp;back&nbsp;to&nbsp;1&nbsp;page<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=&#36;prevpage'&gt;&lt;&lt;/a&gt;&nbsp;"</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if&nbsp;<br /><br />//&nbsp;loop&nbsp;to&nbsp;show&nbsp;links&nbsp;to&nbsp;range&nbsp;of&nbsp;pages&nbsp;around&nbsp;current&nbsp;page<br /></span><span style="color: #007700">for&nbsp;(</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">=&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">&#36;range</span><span style="color: #007700">);&nbsp;</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">&lt;&nbsp;((</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">&#36;range</span><span style="color: #007700">)&nbsp;+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">);&nbsp;</span><span style="color: #0000BB">&#36;x</span><span style="color: #007700">++)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;if&nbsp;it's&nbsp;a&nbsp;valid&nbsp;page&nbsp;number...<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;((</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;(</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">&#36;totalpages</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;if&nbsp;we're&nbsp;on&nbsp;current&nbsp;page...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">&#36;currentpage</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;'highlight'&nbsp;it&nbsp;but&nbsp;don't&nbsp;make&nbsp;a&nbsp;link<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;[&lt;b&gt;&#36;x&lt;/b&gt;]&nbsp;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;if&nbsp;not&nbsp;current&nbsp;page...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;make&nbsp;it&nbsp;a&nbsp;link<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=&#36;x'&gt;&#36;x&lt;/a&gt;&nbsp;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;else<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if&nbsp;<br /></span><span style="color: #007700">}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;for<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />//&nbsp;if&nbsp;not&nbsp;on&nbsp;last&nbsp;page,&nbsp;show&nbsp;forward&nbsp;and&nbsp;last&nbsp;page&nbsp;links&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #0000BB">&#36;totalpages</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;get&nbsp;next&nbsp;page<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;nextpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;echo&nbsp;forward&nbsp;link&nbsp;for&nbsp;next&nbsp;page&nbsp;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=&#36;nextpage'&gt;&gt;&lt;/a&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;echo&nbsp;forward&nbsp;link&nbsp;for&nbsp;lastpage<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=&#36;totalpages'&gt;&gt;&gt;&lt;/a&gt;&nbsp;"</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if<br />/******&nbsp;end&nbsp;build&nbsp;pagination&nbsp;links&nbsp;******/&nbsp;<br /></span></code></div></div></div>
<br />
<br />
save the file and all should be good, if you get any problems ask away and i will do my best to solve the problem...<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/zip.gif" border="0" alt=".zip" />&nbsp;&nbsp;<a href="attachment.php?aid=6" target="_blank">unp_pagination.zip</a> (Size: 2.84 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[After a few months thinking about what to do next I have decided to sort out the Pagination for people, For those that dont know Pagination is that little bit that adds the page numbers to the bottom, Like google has for the search.<br />
<br />
<br />
There is currently one problem and that is that the links dont look very good being just plan text but it is only a quick hack after all.<br />
<br />
I have linked it in so that the amount of posts on one page controls the amount on each page, At a later date I will update this and add in some AJAX to make it feel nicer but until then this will do the job for you.<br />
<br />
You have 2 ways to install this hack...<br />
<br />
The easy way is to download the new News.php and upload it to your server to replace the default one<br />
<br />
<a href="http://www.joffcom.net/unp_pagination.zip" target="_blank">[File - unp_pagination.zip]</a> - Right Click Save As - File also attached to post just incase my link goes down<br />
<br />
Or you can add in the code to the news.php file yourself but make sure you back up the original before both ways, I would recommend the replacement file unless you already have mods/hacks installed that edit the main news.php file[/php]<br />
<br />
find the following code which starts at around line 49 in news.php<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #FF8000">/*&nbsp;####################&nbsp;CATEGORIES&nbsp;####################&nbsp;*/<br />//&nbsp;+------------------------------------------------------------------+<br />//&nbsp;|&nbsp;Process&nbsp;News&nbsp;-&nbsp;Standard&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br />//&nbsp;+------------------------------------------------------------------+<br /><br /><br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;action&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">)<br />{&nbsp;<br /></span></code></div></div></div>
<br />
after that { add the following<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #FF8000">//&nbsp;find&nbsp;out&nbsp;how&nbsp;many&nbsp;rows&nbsp;are&nbsp;in&nbsp;the&nbsp;table&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;pagecon&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;DB</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;count(*)&nbsp;FROM&nbsp;unp_news"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(</span><span style="color: #0000BB">&#36;r&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;DB</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;pagecon</span><span style="color: #007700">))<br /></span><span style="color: #0000BB">&#36;numrows&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;r</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];<br /><br /></span><span style="color: #FF8000">//&nbsp;number&nbsp;of&nbsp;rows&nbsp;to&nbsp;show&nbsp;per&nbsp;page<br /></span><span style="color: #0000BB">&#36;rowsperpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;newslimit</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">//&nbsp;find&nbsp;out&nbsp;total&nbsp;pages<br /></span><span style="color: #0000BB">&#36;totalpages&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ceil</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;numrows&nbsp;</span><span style="color: #007700">/&nbsp;</span><span style="color: #0000BB">&#36;rowsperpage</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;get&nbsp;the&nbsp;current&nbsp;page&nbsp;or&nbsp;set&nbsp;a&nbsp;default<br /></span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'currentpage'</span><span style="color: #007700">])&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">is_numeric</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'currentpage'</span><span style="color: #007700">]))&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;cast&nbsp;var&nbsp;as&nbsp;int<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">=&nbsp;(int)&nbsp;</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'currentpage'</span><span style="color: #007700">];<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;default&nbsp;page&nbsp;num<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if<br /><br />//&nbsp;if&nbsp;current&nbsp;page&nbsp;is&nbsp;greater&nbsp;than&nbsp;total&nbsp;pages...<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">&#36;totalpages</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;set&nbsp;current&nbsp;page&nbsp;to&nbsp;last&nbsp;page<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;totalpages</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if<br />//&nbsp;if&nbsp;current&nbsp;page&nbsp;is&nbsp;less&nbsp;than&nbsp;first&nbsp;page...<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;set&nbsp;current&nbsp;page&nbsp;to&nbsp;first&nbsp;page<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if<br /><br />//&nbsp;the&nbsp;offset&nbsp;of&nbsp;the&nbsp;list,&nbsp;based&nbsp;on&nbsp;current&nbsp;page&nbsp;<br /></span><span style="color: #0000BB">&#36;offset&nbsp;</span><span style="color: #007700">=&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;*&nbsp;</span><span style="color: #0000BB">&#36;rowsperpage</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">//&nbsp;get&nbsp;the&nbsp;info&nbsp;from&nbsp;the&nbsp;db&nbsp;<br /></span></code></div></div></div>
<br />
<br />
now find <br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">eval(</span><span style="color: #DD0000">'&#36;news_newsbit&nbsp;=&nbsp;"'</span><span style="color: #007700">.</span><span style="color: #0000BB">unp_printTemplate</span><span style="color: #007700">(</span><span style="color: #DD0000">'news_newsbit'</span><span style="color: #007700">).</span><span style="color: #DD0000">'";'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">unp_echoTemplate</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;news_newsbit</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;NewsBit<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&#092;n&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;unset(</span><span style="color: #0000BB">&#36;news</span><span style="color: #007700">);&nbsp;<br /></span></code></div></div></div>
<br />
and after it add<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #FF8000">/******&nbsp;&nbsp;build&nbsp;the&nbsp;pagination&nbsp;links&nbsp;******/<br />//&nbsp;range&nbsp;of&nbsp;num&nbsp;links&nbsp;to&nbsp;show<br /></span><span style="color: #0000BB">&#36;range&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">//&nbsp;if&nbsp;not&nbsp;on&nbsp;page&nbsp;1,&nbsp;don't&nbsp;show&nbsp;back&nbsp;links<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;show&nbsp;&lt;&lt;&nbsp;link&nbsp;to&nbsp;go&nbsp;back&nbsp;to&nbsp;page&nbsp;1<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=1'&gt;&lt;&lt;&lt;/a&gt;&nbsp;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;get&nbsp;previous&nbsp;page&nbsp;num<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;prevpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;show&nbsp;&lt;&nbsp;link&nbsp;to&nbsp;go&nbsp;back&nbsp;to&nbsp;1&nbsp;page<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=&#36;prevpage'&gt;&lt;&lt;/a&gt;&nbsp;"</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if&nbsp;<br /><br />//&nbsp;loop&nbsp;to&nbsp;show&nbsp;links&nbsp;to&nbsp;range&nbsp;of&nbsp;pages&nbsp;around&nbsp;current&nbsp;page<br /></span><span style="color: #007700">for&nbsp;(</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">=&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">&#36;range</span><span style="color: #007700">);&nbsp;</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">&lt;&nbsp;((</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">&#36;range</span><span style="color: #007700">)&nbsp;+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">);&nbsp;</span><span style="color: #0000BB">&#36;x</span><span style="color: #007700">++)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;if&nbsp;it's&nbsp;a&nbsp;valid&nbsp;page&nbsp;number...<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;((</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;(</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">&#36;totalpages</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;if&nbsp;we're&nbsp;on&nbsp;current&nbsp;page...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;x&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">&#36;currentpage</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;'highlight'&nbsp;it&nbsp;but&nbsp;don't&nbsp;make&nbsp;a&nbsp;link<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;[&lt;b&gt;&#36;x&lt;/b&gt;]&nbsp;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;if&nbsp;not&nbsp;current&nbsp;page...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;make&nbsp;it&nbsp;a&nbsp;link<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=&#36;x'&gt;&#36;x&lt;/a&gt;&nbsp;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;else<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if&nbsp;<br /></span><span style="color: #007700">}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;for<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />//&nbsp;if&nbsp;not&nbsp;on&nbsp;last&nbsp;page,&nbsp;show&nbsp;forward&nbsp;and&nbsp;last&nbsp;page&nbsp;links&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #0000BB">&#36;totalpages</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;get&nbsp;next&nbsp;page<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;nextpage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;currentpage&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;echo&nbsp;forward&nbsp;link&nbsp;for&nbsp;next&nbsp;page&nbsp;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=&#36;nextpage'&gt;&gt;&lt;/a&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;echo&nbsp;forward&nbsp;link&nbsp;for&nbsp;lastpage<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&lt;a&nbsp;href='{&#36;_SERVER['PHP_SELF']}?currentpage=&#36;totalpages'&gt;&gt;&gt;&lt;/a&gt;&nbsp;"</span><span style="color: #007700">;<br />}&nbsp;</span><span style="color: #FF8000">//&nbsp;end&nbsp;if<br />/******&nbsp;end&nbsp;build&nbsp;pagination&nbsp;links&nbsp;******/&nbsp;<br /></span></code></div></div></div>
<br />
<br />
save the file and all should be good, if you get any problems ask away and i will do my best to solve the problem...<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/zip.gif" border="0" alt=".zip" />&nbsp;&nbsp;<a href="attachment.php?aid=6" target="_blank">unp_pagination.zip</a> (Size: 2.84 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[HELP! Change "Read Me" link from pop-up to same page?]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=93</link>
			<pubDate>Thu, 19 Nov 2009 21:51:34 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=93</guid>
			<description><![CDATA[Hello there,<br />
<br />
In the option where you can enable a "Read More" link on your articles, how can you change the setting so that instead of it loading a pop-up page, you can simply just load it into the same page?<br />
<br />
For that matter, is there an SSI where I can include the full article into a customized web page?<br />
<br />
Thanks,<br />
<br />
SA]]></description>
			<content:encoded><![CDATA[Hello there,<br />
<br />
In the option where you can enable a "Read More" link on your articles, how can you change the setting so that instead of it loading a pop-up page, you can simply just load it into the same page?<br />
<br />
For that matter, is there an SSI where I can include the full article into a customized web page?<br />
<br />
Thanks,<br />
<br />
SA]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Let's share detail of our External Hard Disk]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=92</link>
			<pubDate>Thu, 19 Nov 2009 10:47:26 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=92</guid>
			<description><![CDATA[Well i use 'Transcend Portable Hard Disk 160 GB'<br />
That works nicely..<br />
<br />
<img src="http://bitcast-b.bitgravity.com/indiaplaza/electronics/images/LTranscend-hdd_28Jan09.jpg" border="0" alt="[Image: LTranscend-hdd_28Jan09.jpg]" /><br />
<br />
<br />
Technical Specification<br />
# 160GB Transcend Portable Harddisk 160 GB HDD WITH BILL AND WARRANTY<br />
# Transcend's StoreJet 2.5 mobile is compact and portable, with measurements of only 134 mm by 80.8 mm by 18.8 mm. Weighing in at just 206g, the StoreJet 2.5 mobile is easy for users to conveniently carry around.<br />
# Transcend's StoreJet 2.5 mobile features advanced dual stage anti-shock technology and meets strict U.S.military drop-test standards to help protect your data against accidental bumps or falls.<br />
# In order to ensure maximum compatibility with most desktop and notebook computers, the StoreJet 2.5 mobile uses a high-speed USB 2.0 interface, which provides data transfer rates up to 480Mb per second while offering the convenience of plug and play.<br />
<br />
Features :<br />
<br />
# To protect against data loss or damage from accidental slips or falls, the StoreJet 2.5 mobile meets the U.S.military drop-test standards MIL-STD-810F with advanced two-stage anti-shock technology, literally making it one of the safest places to keep your data.<br />
# Hi-Speed USB 2.0 compliant and USB 1.1 backwards compatible<br />
# Easy Plug and Play installation<br />
# Ultra-Portability<br />
# Additional Features :<br />
# StoreJet elite (helps you manage your data)<br />
# OneTouch Auto-Backup function<br />
# Powered via the USB port.<br />
# No external power or battery needed<br />
# LED indicates power on and data access<br />
<br />
Specifications :<br />
<br />
# Dimensions : 134mm x 80.8mm x 18.8mm<br />
# Weight : 206g<br />
# Hard Drive Type : SATA<br />
# Operating Voltage : DC 5V from USB port<br />
# Interface : USB2.0<br />
<br />
Package Contents :<br />
# 160GB Transcend StoreJet mobile<br />
# HDD Driver<br />
# CD<br />
# QIG<br />
# Y Cable<br />
<br />
Accessory<br />
# StoreJet 25P<br />
# Software CD<br />
# Quick Start Guide<br />
# Warranty Card<br />
# Travel Pouch<br />
USB Cable<br />
<br />
System requirement<br />
<br />
# - Desktop or notebook computer with a working USB port<br />
# - One of following operating systems:<br />
# - Windows 2000<br />
# - Windows XP<br />
# - Windows Vista<br />
# - Mac OS 9.0 or later<br />
# - Linux Kernel 2.4 or later]]></description>
			<content:encoded><![CDATA[Well i use 'Transcend Portable Hard Disk 160 GB'<br />
That works nicely..<br />
<br />
<img src="http://bitcast-b.bitgravity.com/indiaplaza/electronics/images/LTranscend-hdd_28Jan09.jpg" border="0" alt="[Image: LTranscend-hdd_28Jan09.jpg]" /><br />
<br />
<br />
Technical Specification<br />
# 160GB Transcend Portable Harddisk 160 GB HDD WITH BILL AND WARRANTY<br />
# Transcend's StoreJet 2.5 mobile is compact and portable, with measurements of only 134 mm by 80.8 mm by 18.8 mm. Weighing in at just 206g, the StoreJet 2.5 mobile is easy for users to conveniently carry around.<br />
# Transcend's StoreJet 2.5 mobile features advanced dual stage anti-shock technology and meets strict U.S.military drop-test standards to help protect your data against accidental bumps or falls.<br />
# In order to ensure maximum compatibility with most desktop and notebook computers, the StoreJet 2.5 mobile uses a high-speed USB 2.0 interface, which provides data transfer rates up to 480Mb per second while offering the convenience of plug and play.<br />
<br />
Features :<br />
<br />
# To protect against data loss or damage from accidental slips or falls, the StoreJet 2.5 mobile meets the U.S.military drop-test standards MIL-STD-810F with advanced two-stage anti-shock technology, literally making it one of the safest places to keep your data.<br />
# Hi-Speed USB 2.0 compliant and USB 1.1 backwards compatible<br />
# Easy Plug and Play installation<br />
# Ultra-Portability<br />
# Additional Features :<br />
# StoreJet elite (helps you manage your data)<br />
# OneTouch Auto-Backup function<br />
# Powered via the USB port.<br />
# No external power or battery needed<br />
# LED indicates power on and data access<br />
<br />
Specifications :<br />
<br />
# Dimensions : 134mm x 80.8mm x 18.8mm<br />
# Weight : 206g<br />
# Hard Drive Type : SATA<br />
# Operating Voltage : DC 5V from USB port<br />
# Interface : USB2.0<br />
<br />
Package Contents :<br />
# 160GB Transcend StoreJet mobile<br />
# HDD Driver<br />
# CD<br />
# QIG<br />
# Y Cable<br />
<br />
Accessory<br />
# StoreJet 25P<br />
# Software CD<br />
# Quick Start Guide<br />
# Warranty Card<br />
# Travel Pouch<br />
USB Cable<br />
<br />
System requirement<br />
<br />
# - Desktop or notebook computer with a working USB port<br />
# - One of following operating systems:<br />
# - Windows 2000<br />
# - Windows XP<br />
# - Windows Vista<br />
# - Mac OS 9.0 or later<br />
# - Linux Kernel 2.4 or later]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Scheduling the display of notice]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=91</link>
			<pubDate>Fri, 23 Oct 2009 10:01:25 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=91</guid>
			<description><![CDATA[Hi,<br />
<br />
I have downloaded the application and seems good application. I want to know if I can specify the date and time for a notice to be displayed and also to be removed. <br />
<br />
Currently the notice is put immediately.<br />
<br />
-Charudatta]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I have downloaded the application and seems good application. I want to know if I can specify the date and time for a notice to be displayed and also to be removed. <br />
<br />
Currently the notice is put immediately.<br />
<br />
-Charudatta]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[receiving this error on home page]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=89</link>
			<pubDate>Wed, 19 Aug 2009 19:11:03 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=89</guid>
			<description><![CDATA[Installation seemed to go good.  I used the admin to change my settings like I wanted them.  <br />
<br />
I added the php includes on the page where I wanted the news to go, but when I go to this page I get the following message:<br />
<br />
Warning: include(/update/news.txt) [function.include]: failed to open stream: No such file or directory in D:\Hosting\4805026\html\index.php on line 36<br />
<br />
Warning: include() [function.include]: Failed opening '/update/news.txt' for inclusion (include_path='.;C:\php5\pear') in D:\Hosting\4805026\html\index.php on line 36<br />
<br />
I have checked to make sure all the files are located as they should be and it seems fine.<br />
<br />
Please advise!<br />
Thanks]]></description>
			<content:encoded><![CDATA[Installation seemed to go good.  I used the admin to change my settings like I wanted them.  <br />
<br />
I added the php includes on the page where I wanted the news to go, but when I go to this page I get the following message:<br />
<br />
Warning: include(/update/news.txt) [function.include]: failed to open stream: No such file or directory in D:\Hosting\4805026\html\index.php on line 36<br />
<br />
Warning: include() [function.include]: Failed opening '/update/news.txt' for inclusion (include_path='.;C:\php5\pear') in D:\Hosting\4805026\html\index.php on line 36<br />
<br />
I have checked to make sure all the files are located as they should be and it seems fine.<br />
<br />
Please advise!<br />
Thanks]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[1.4.0]WYSIWYG Editor]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=88</link>
			<pubDate>Wed, 10 Jun 2009 10:11:37 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=88</guid>
			<description><![CDATA[Well after reading through the old posts i found that someone wanted a WYSIWYG editor so once again i present you with update 3 from me today....<br />
<br />
<span style="font-weight: bold;">UNP WYSIWYG</span><br />
<br />
For this i will be using tinyMCE but it is a custom version that i have worked on quickly to get a rough beta version. <br />
**Edit**<br />
<span style="color: #FF0000;">No longer in rough beta, Has enough features to get started now although i need to now add my other 2 mods to the code</span><br />
<br />
<a href="http://tinymce.moxiecode.com/" target="_blank">tinyMCE</a><br />
<a href="http://joffcom.net/tiny_mce.zip/" target="_blank">Custom Download</a>(File Attached To Post)<br />
<br />
The reason why its Beta is if you have HTML turned off in posts tinyMCE needs some edits, Hence the custom version,  I will be updating the features often and posting updates here.<br />
<br />
If you have HTML on then you are all good and use anything you want, I will post both Versions to make things fair...<br />
<br />
So download the custom tinyMCE from above and place it in the UNP directory this is the same for both HTML and no HTML.<br />
<br />
So with that done there is only 1 file to edit which is handy, Locate and open<br />
<span style="font-weight: bold;">Header.php</span><br />
<br />
just before the &lt;/head&gt; on line 18 add:<br />
<br />
For <span style="font-weight: bold;">HTML OFF</span> <span style="color: #FF0000;">Updated</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;!--&nbsp;</span><span style="color: #0000BB">TinyMCE&nbsp;</span><span style="color: #007700">--&gt;<br /><br />&lt;</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"tiny_mce/tiny_mce.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /></span><br />&lt;script&nbsp;type="text/javascript"&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;tinyMCE.init({<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;theme&nbsp;:&nbsp;"advanced",<br />&nbsp;&nbsp;&nbsp;&nbsp;mode&nbsp;:&nbsp;"textareas",<br />&nbsp;&nbsp;&nbsp;&nbsp;plugins&nbsp;:&nbsp;"bbcode",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_buttons1&nbsp;:&nbsp;"bold,italic,underline,undo,redo,link,image,forecolor,removeformat,cleanup,code",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_buttons2&nbsp;:&nbsp;"",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_buttons3&nbsp;:&nbsp;"",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_toolbar_location&nbsp;:&nbsp;"bottom",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_toolbar_align&nbsp;:&nbsp;"center",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_styles&nbsp;:&nbsp;"Code=codeStyle;Quote=quoteStyle",<br />&nbsp;&nbsp;&nbsp;&nbsp;content_css&nbsp;:&nbsp;"css/bbcode.css",<br />&nbsp;&nbsp;&nbsp;&nbsp;entity_encoding&nbsp;:&nbsp;"raw",<br />&nbsp;&nbsp;&nbsp;&nbsp;add_unload_trigger&nbsp;:&nbsp;false,<br />&nbsp;&nbsp;&nbsp;&nbsp;remove_linebreaks&nbsp;:&nbsp;false,<br />&nbsp;&nbsp;&nbsp;&nbsp;inline_styles&nbsp;:&nbsp;false,<br />&nbsp;&nbsp;&nbsp;&nbsp;convert_fonts_to_spans&nbsp;:&nbsp;false<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;});<br /><br />&lt;/script&gt;<br /><br />&lt;!--&nbsp;/TinyMCE&nbsp;--&gt;&nbsp;<br /></code></div></div></div>
<br />
For <span style="font-weight: bold;">HTML ON</span><br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;!--&nbsp;</span><span style="color: #0000BB">TinyMCE&nbsp;</span><span style="color: #007700">--&gt;<br /><br />&lt;</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"tiny_mce/tiny_mce.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /></span><br />&lt;script&nbsp;type="text/javascript"&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;tinyMCE.init({<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mode&nbsp;:&nbsp;"textareas",<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theme&nbsp;:&nbsp;"advanced",<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;});<br /><br />&lt;/script&gt;<br /><br />&lt;!--&nbsp;/TinyMCE&nbsp;--&gt;&nbsp;<br /></code></div></div></div>
<br />
Thats all there is too it, Enjoy the update<br />
<br />
<span style="color: #FF0000;">***updates***<br />
<br />
Made an update to both tinyMCE and header.php, The update is already above and includes more features for HTML off.<br />
<br />
I have also removed Beta from the name</span><br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/zip.gif" border="0" alt=".zip" />&nbsp;&nbsp;<a href="attachment.php?aid=5" target="_blank">tiny_mce.zip</a> (Size: 517.34 KB / Downloads: 11)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Well after reading through the old posts i found that someone wanted a WYSIWYG editor so once again i present you with update 3 from me today....<br />
<br />
<span style="font-weight: bold;">UNP WYSIWYG</span><br />
<br />
For this i will be using tinyMCE but it is a custom version that i have worked on quickly to get a rough beta version. <br />
**Edit**<br />
<span style="color: #FF0000;">No longer in rough beta, Has enough features to get started now although i need to now add my other 2 mods to the code</span><br />
<br />
<a href="http://tinymce.moxiecode.com/" target="_blank">tinyMCE</a><br />
<a href="http://joffcom.net/tiny_mce.zip/" target="_blank">Custom Download</a>(File Attached To Post)<br />
<br />
The reason why its Beta is if you have HTML turned off in posts tinyMCE needs some edits, Hence the custom version,  I will be updating the features often and posting updates here.<br />
<br />
If you have HTML on then you are all good and use anything you want, I will post both Versions to make things fair...<br />
<br />
So download the custom tinyMCE from above and place it in the UNP directory this is the same for both HTML and no HTML.<br />
<br />
So with that done there is only 1 file to edit which is handy, Locate and open<br />
<span style="font-weight: bold;">Header.php</span><br />
<br />
just before the &lt;/head&gt; on line 18 add:<br />
<br />
For <span style="font-weight: bold;">HTML OFF</span> <span style="color: #FF0000;">Updated</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;!--&nbsp;</span><span style="color: #0000BB">TinyMCE&nbsp;</span><span style="color: #007700">--&gt;<br /><br />&lt;</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"tiny_mce/tiny_mce.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /></span><br />&lt;script&nbsp;type="text/javascript"&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;tinyMCE.init({<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;theme&nbsp;:&nbsp;"advanced",<br />&nbsp;&nbsp;&nbsp;&nbsp;mode&nbsp;:&nbsp;"textareas",<br />&nbsp;&nbsp;&nbsp;&nbsp;plugins&nbsp;:&nbsp;"bbcode",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_buttons1&nbsp;:&nbsp;"bold,italic,underline,undo,redo,link,image,forecolor,removeformat,cleanup,code",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_buttons2&nbsp;:&nbsp;"",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_buttons3&nbsp;:&nbsp;"",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_toolbar_location&nbsp;:&nbsp;"bottom",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_toolbar_align&nbsp;:&nbsp;"center",<br />&nbsp;&nbsp;&nbsp;&nbsp;theme_advanced_styles&nbsp;:&nbsp;"Code=codeStyle;Quote=quoteStyle",<br />&nbsp;&nbsp;&nbsp;&nbsp;content_css&nbsp;:&nbsp;"css/bbcode.css",<br />&nbsp;&nbsp;&nbsp;&nbsp;entity_encoding&nbsp;:&nbsp;"raw",<br />&nbsp;&nbsp;&nbsp;&nbsp;add_unload_trigger&nbsp;:&nbsp;false,<br />&nbsp;&nbsp;&nbsp;&nbsp;remove_linebreaks&nbsp;:&nbsp;false,<br />&nbsp;&nbsp;&nbsp;&nbsp;inline_styles&nbsp;:&nbsp;false,<br />&nbsp;&nbsp;&nbsp;&nbsp;convert_fonts_to_spans&nbsp;:&nbsp;false<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;});<br /><br />&lt;/script&gt;<br /><br />&lt;!--&nbsp;/TinyMCE&nbsp;--&gt;&nbsp;<br /></code></div></div></div>
<br />
For <span style="font-weight: bold;">HTML ON</span><br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;!--&nbsp;</span><span style="color: #0000BB">TinyMCE&nbsp;</span><span style="color: #007700">--&gt;<br /><br />&lt;</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"tiny_mce/tiny_mce.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /></span><br />&lt;script&nbsp;type="text/javascript"&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;tinyMCE.init({<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mode&nbsp;:&nbsp;"textareas",<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theme&nbsp;:&nbsp;"advanced",<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;});<br /><br />&lt;/script&gt;<br /><br />&lt;!--&nbsp;/TinyMCE&nbsp;--&gt;&nbsp;<br /></code></div></div></div>
<br />
Thats all there is too it, Enjoy the update<br />
<br />
<span style="color: #FF0000;">***updates***<br />
<br />
Made an update to both tinyMCE and header.php, The update is already above and includes more features for HTML off.<br />
<br />
I have also removed Beta from the name</span><br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/zip.gif" border="0" alt=".zip" />&nbsp;&nbsp;<a href="attachment.php?aid=5" target="_blank">tiny_mce.zip</a> (Size: 517.34 KB / Downloads: 11)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[1.4.0]Syntax Highlighter]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=87</link>
			<pubDate>Wed, 10 Jun 2009 08:50:10 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=87</guid>
			<description><![CDATA[If like me you want to be able to post code and it looking nice this will help you out, I will be using Syntax Highlighter from alexgorbatchev.com and linking to the hosted files to save on your own webspace...<br />
<br />
1 file to edit and 1 template<br />
<br />
<span style="font-weight: bold;">News_Header Template</span><br />
Find this in UNP Admin Panel Under Settings -&gt; Templates<br />
Add the following to the bottom<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">link&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/css"&nbsp;</span><span style="color: #0000BB">rel</span><span style="color: #007700">=</span><span style="color: #DD0000">"stylesheet"&nbsp;</span><span style="color: #0000BB">href</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css"</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">link</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">link&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/css"&nbsp;</span><span style="color: #0000BB">rel</span><span style="color: #007700">=</span><span style="color: #DD0000">"stylesheet"&nbsp;</span><span style="color: #0000BB">href</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/styles/shCore.css"</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">link</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /></span>&lt;script&nbsp;language="javascript"&nbsp;src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js"&gt;&lt;/script&gt;<br />&lt;script&nbsp;language="javascript"&nbsp;src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js"&gt;&lt;/script&gt;<br />&lt;script&nbsp;type="text/javascript"&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;SyntaxHighlighter.config.clipboardSwf&nbsp;=&nbsp;'http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf';<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;SyntaxHighlighter.all();<br /><br />&lt;/script&gt;&nbsp;<br /></code></div></div></div>
<br />
Now for the file edit, Open <span style="text-decoration: underline;"><span style="font-style: italic;">news.inc.php</span></span><br />
go to line 73<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[B]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'bold'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[b&#092;](.+?)&#092;[&#092;/b&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'bold'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;strong&gt;&#092;&#092;1&lt;/strong&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
and before it add<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[code]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'code'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[code&#092;](.+?)&#092;[&#092;/code&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'code'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;plain;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codephp]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codephp'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codephp&#092;](.+?)&#092;[&#092;/codephp&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codephp'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;php;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
Save the file and your done you can now use 2 tags in UNP  for plain code or [codephp][/codephp] for php.<br />
<br />
Its really easy to add new languages in aswell.<br />
<br />
In the news_header template just add:<br />
<br />
<span style="font-weight: bold;">C++</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<span style="font-weight: bold;">CSS</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<span style="font-weight: bold;">Action Script</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shBrushAS3.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<span style="font-weight: bold;">Java</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<br />
<br />
and in the news.inc.php you would add:<br />
<br />
This can be modified to allow other lanuages like:<br />
<span style="font-weight: bold;">C++</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codecpp]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codecpp'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codecpp&#092;](.+?)&#092;[&#092;/codecpp&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codecpp'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;cpp;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<span style="font-weight: bold;">CSS</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codecss]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codecss'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codecss&#092;](.+?)&#092;[&#092;/codecss&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codecss'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;css;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<span style="font-weight: bold;">Action Script</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codeas3]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codeas3'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codeas3&#092;](.+?)&#092;[&#092;/codeas3&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codeas3'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;as3;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<span style="font-weight: bold;">Java</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codejava]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codejava'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codejava&#092;](.+?)&#092;[&#092;/codejava&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codejava'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;java;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
<br />
This can be improved upon but for the basics this is it<br />
<br />
Once again Enjoy]]></description>
			<content:encoded><![CDATA[If like me you want to be able to post code and it looking nice this will help you out, I will be using Syntax Highlighter from alexgorbatchev.com and linking to the hosted files to save on your own webspace...<br />
<br />
1 file to edit and 1 template<br />
<br />
<span style="font-weight: bold;">News_Header Template</span><br />
Find this in UNP Admin Panel Under Settings -&gt; Templates<br />
Add the following to the bottom<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">link&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/css"&nbsp;</span><span style="color: #0000BB">rel</span><span style="color: #007700">=</span><span style="color: #DD0000">"stylesheet"&nbsp;</span><span style="color: #0000BB">href</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css"</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">link</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">link&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/css"&nbsp;</span><span style="color: #0000BB">rel</span><span style="color: #007700">=</span><span style="color: #DD0000">"stylesheet"&nbsp;</span><span style="color: #0000BB">href</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/styles/shCore.css"</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">link</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /></span>&lt;script&nbsp;language="javascript"&nbsp;src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js"&gt;&lt;/script&gt;<br />&lt;script&nbsp;language="javascript"&nbsp;src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js"&gt;&lt;/script&gt;<br />&lt;script&nbsp;type="text/javascript"&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;SyntaxHighlighter.config.clipboardSwf&nbsp;=&nbsp;'http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf';<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;SyntaxHighlighter.all();<br /><br />&lt;/script&gt;&nbsp;<br /></code></div></div></div>
<br />
Now for the file edit, Open <span style="text-decoration: underline;"><span style="font-style: italic;">news.inc.php</span></span><br />
go to line 73<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[B]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'bold'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[b&#092;](.+?)&#092;[&#092;/b&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'bold'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;strong&gt;&#092;&#092;1&lt;/strong&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
and before it add<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[code]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'code'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[code&#092;](.+?)&#092;[&#092;/code&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'code'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;plain;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codephp]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codephp'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codephp&#092;](.+?)&#092;[&#092;/codephp&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codephp'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;php;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
Save the file and your done you can now use 2 tags in UNP  for plain code or [codephp][/codephp] for php.<br />
<br />
Its really easy to add new languages in aswell.<br />
<br />
In the news_header template just add:<br />
<br />
<span style="font-weight: bold;">C++</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<span style="font-weight: bold;">CSS</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<span style="font-weight: bold;">Action Script</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shBrushAS3.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<span style="font-weight: bold;">Java</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;</span>&nbsp;<br /></code></div></div></div>
<br />
<br />
and in the news.inc.php you would add:<br />
<br />
This can be modified to allow other lanuages like:<br />
<span style="font-weight: bold;">C++</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codecpp]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codecpp'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codecpp&#092;](.+?)&#092;[&#092;/codecpp&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codecpp'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;cpp;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<span style="font-weight: bold;">CSS</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codecss]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codecss'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codecss&#092;](.+?)&#092;[&#092;/codecss&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codecss'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;css;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<span style="font-weight: bold;">Action Script</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codeas3]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codeas3'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codeas3&#092;](.+?)&#092;[&#092;/codeas3&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codeas3'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;as3;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<span style="font-weight: bold;">Java</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[codejava]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codejava'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[codejava&#092;](.+?)&#092;[&#092;/codejava&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'codejava'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;pre&nbsp;class="brush:&nbsp;java;"&gt;&#092;&#092;1&lt;/pre&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
<br />
This can be improved upon but for the basics this is it<br />
<br />
Once again Enjoy]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[1.4.0] LyteBox]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=86</link>
			<pubDate>Wed, 10 Jun 2009 07:13:44 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=86</guid>
			<description><![CDATA[<span style="font-weight: bold;">How To Add Lytebox To Your UNP Install</span><br />
<br />
For those that don't know Lytebox is a nice way to display images an example can be found <a href="http://www.dolem.com/lytebox/" target="_blank">here</a>.<br />
<br />
This is a simple mod and you will only need to edit 1 file and 1 template in the admin panel although you can do it through SQL aswell which i will also post.<br />
<br />
<span style="font-weight: bold;">Download</span><br />
<a href="http://www.dolem.com/lytebox/lytebox_v3.22.zip" target="_blank">Lytebox V3.22</a><br />
<br />
<span style="font-weight: bold;">File To Edit</span><br />
news.inc.php<br />
<br />
<br />
Lets Begin...<br />
<br />
<br />
If you havn't already download the Lytebox source from the above link and place this in a folder called <span style="text-decoration: underline;"><span style="font-style: italic;">lbmod</span></span> place the folder in the UNP directory. My UNP directory is called <span style="font-style: italic;">news</span> so mine would be <span style="font-style: italic;">domain.tld/news/lbmod</span> you must put this in the correct place or it will not work.<br />
<br />
Now that its done its time to edit the code, Open <span style="font-weight: bold;">news.inc.php</span> and go to around <span style="text-decoration: underline;"><span style="font-style: italic;">line 120</span></span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<br /></span></code></div></div></div>
Before that add the following<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//lightbox&nbsp;image&nbsp;links<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;[imgURL]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl1'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[imgurl&#092;]((http|https|news|ftp):&#092;/&#092;/&#092;w+[^&#092;s&#092;[&#092;]]+)&#092;[&#092;/imgurl&#092;]/i'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl1'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="&#092;&#092;1"&nbsp;target="_blank"&nbsp;rel="lytebox"&gt;&lt;font&nbsp;face="verdana,arial,helvetica"&nbsp;size="2"&nbsp;color="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;linkcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#092;&#092;1&lt;/font&gt;&lt;/a&gt;'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[imgURL]&nbsp;-&nbsp;no&nbsp;protocol&nbsp;(assumes&nbsp;http://)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'url1-noprefix'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[imgurl&#092;](&#092;w+[^&#092;s&#092;[&#092;]]+)&#092;[&#092;/imgurl&#092;]/i'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'url1-noprefix'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="http://&#092;&#092;1"&nbsp;target="_blank"&nbsp;rel="lytebox"&gt;&lt;font&nbsp;face="verdana,arial,helvetica"&nbsp;size="2"&nbsp;color="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;linkcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#092;&#092;1&lt;/font&gt;&lt;/a&gt;'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[imgURL=XXX]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl2'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[imgurl=((http|https|news|ftp|aim):&#092;/&#092;/&#092;w+[^&#092;s&#092;[&#092;]]+)&#092;](.+?)&#092;[&#092;/imgurl&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl2'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="&#092;&#092;1"&nbsp;target="_blank"&nbsp;rel="lytebox"&nbsp;title="&#092;&#092;1"&gt;&lt;font&nbsp;face="verdana,arial,helvetica"&nbsp;size="2"&nbsp;color="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;linkcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#092;&#092;3&lt;/font&gt;&lt;/a&gt;'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[imgURL=XXX]&nbsp;-&nbsp;no&nbsp;protocol&nbsp;(assumes&nbsp;http://)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl2-noprefix'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[imgurl=(&#092;w+[^&#092;s&#092;[&#092;]]+)&#092;](.+?)&#092;[&#092;/imgurl&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl2-noprefix'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="http://&#092;&#092;1"&nbsp;target="_blank"&nbsp;rel="lytebox"&nbsp;title="&#092;&#092;1"&gt;&lt;font&nbsp;face="verdana,arial,helvetica"&nbsp;size="2"&nbsp;color="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;linkcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#092;&#092;2&lt;/font&gt;&lt;/a&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
Save the file and thats the hard part over, The above code just adds a new type of format to your news posting which is <span style="font-style: italic;">[imgurl][/imgurl]</span> it is just a clone of the standard URL tag with an added part which is the <span style="font-style: italic;">rel="lytebox"</span>.<br />
<br />
Now to edit the template, Log into your UNP Admin Panel and go to <span style="font-style: italic;">Templates</span> in <span style="font-style: italic;">Settings</span>.<br />
<br />
Find News_Header an replace the contents with the following:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;!--&nbsp;</span><span style="color: #0000BB">news_header&nbsp;</span><span style="color: #007700">--&gt;<br />&lt;</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"&nbsp;</span><span style="color: #0000BB">language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"lbmod/lytebox.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /></span>&lt;link&nbsp;rel="stylesheet"&nbsp;href="lbmod/lytebox.css"&nbsp;type="text/css"&nbsp;media="screen"&nbsp;/&gt;&nbsp;<br /></code></div></div></div>
<br />
Thats it you can now post a link to an image and should have the amazing lytebox working.<br />
<br />
To use it just use [imgurl]imagelinkhere.jpg[/imgurl] or [imgurl=linktoimage.jpg]link text[/imgurl]<br />
<br />
For those who want to use the sql route to update the tempate the code is...<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>UPDATE `unp_template` SET `template` = '&lt;!-- news_header --&gt; &lt;script type="text/javascript" language="javascript" src="lbmod/lytebox.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="lbmod/lytebox.css" type="text/css" media="screen" /&gt;' WHERE `unp_template`.`id` =18 LIMIT 1 ;</code></div></div>
<br />
Well thats it for this version of Lytebox mod...<br />
<br />
Next Mod from me will be a syntax highlighter for those who like to post code]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;">How To Add Lytebox To Your UNP Install</span><br />
<br />
For those that don't know Lytebox is a nice way to display images an example can be found <a href="http://www.dolem.com/lytebox/" target="_blank">here</a>.<br />
<br />
This is a simple mod and you will only need to edit 1 file and 1 template in the admin panel although you can do it through SQL aswell which i will also post.<br />
<br />
<span style="font-weight: bold;">Download</span><br />
<a href="http://www.dolem.com/lytebox/lytebox_v3.22.zip" target="_blank">Lytebox V3.22</a><br />
<br />
<span style="font-weight: bold;">File To Edit</span><br />
news.inc.php<br />
<br />
<br />
Lets Begin...<br />
<br />
<br />
If you havn't already download the Lytebox source from the above link and place this in a folder called <span style="text-decoration: underline;"><span style="font-style: italic;">lbmod</span></span> place the folder in the UNP directory. My UNP directory is called <span style="font-style: italic;">news</span> so mine would be <span style="font-style: italic;">domain.tld/news/lbmod</span> you must put this in the correct place or it will not work.<br />
<br />
Now that its done its time to edit the code, Open <span style="font-weight: bold;">news.inc.php</span> and go to around <span style="text-decoration: underline;"><span style="font-style: italic;">line 120</span></span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<br /></span></code></div></div></div>
Before that add the following<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//lightbox&nbsp;image&nbsp;links<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;[imgURL]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl1'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[imgurl&#092;]((http|https|news|ftp):&#092;/&#092;/&#092;w+[^&#092;s&#092;[&#092;]]+)&#092;[&#092;/imgurl&#092;]/i'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl1'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="&#092;&#092;1"&nbsp;target="_blank"&nbsp;rel="lytebox"&gt;&lt;font&nbsp;face="verdana,arial,helvetica"&nbsp;size="2"&nbsp;color="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;linkcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#092;&#092;1&lt;/font&gt;&lt;/a&gt;'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[imgURL]&nbsp;-&nbsp;no&nbsp;protocol&nbsp;(assumes&nbsp;http://)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'url1-noprefix'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[imgurl&#092;](&#092;w+[^&#092;s&#092;[&#092;]]+)&#092;[&#092;/imgurl&#092;]/i'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'url1-noprefix'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="http://&#092;&#092;1"&nbsp;target="_blank"&nbsp;rel="lytebox"&gt;&lt;font&nbsp;face="verdana,arial,helvetica"&nbsp;size="2"&nbsp;color="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;linkcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#092;&#092;1&lt;/font&gt;&lt;/a&gt;'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[imgURL=XXX]<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl2'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[imgurl=((http|https|news|ftp|aim):&#092;/&#092;/&#092;w+[^&#092;s&#092;[&#092;]]+)&#092;](.+?)&#092;[&#092;/imgurl&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl2'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="&#092;&#092;1"&nbsp;target="_blank"&nbsp;rel="lytebox"&nbsp;title="&#092;&#092;1"&gt;&lt;font&nbsp;face="verdana,arial,helvetica"&nbsp;size="2"&nbsp;color="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;linkcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#092;&#092;3&lt;/font&gt;&lt;/a&gt;'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;[imgURL=XXX]&nbsp;-&nbsp;no&nbsp;protocol&nbsp;(assumes&nbsp;http://)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;findarray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl2-noprefix'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'/&#092;[imgurl=(&#092;w+[^&#092;s&#092;[&#092;]]+)&#092;](.+?)&#092;[&#092;/imgurl&#092;]/is'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;replacearray</span><span style="color: #007700">[</span><span style="color: #DD0000">'imgurl2-noprefix'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="http://&#092;&#092;1"&nbsp;target="_blank"&nbsp;rel="lytebox"&nbsp;title="&#092;&#092;1"&gt;&lt;font&nbsp;face="verdana,arial,helvetica"&nbsp;size="2"&nbsp;color="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;linkcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#092;&#092;2&lt;/font&gt;&lt;/a&gt;'</span><span style="color: #007700">;&nbsp;<br /></span></code></div></div></div>
<br />
Save the file and thats the hard part over, The above code just adds a new type of format to your news posting which is <span style="font-style: italic;">[imgurl][/imgurl]</span> it is just a clone of the standard URL tag with an added part which is the <span style="font-style: italic;">rel="lytebox"</span>.<br />
<br />
Now to edit the template, Log into your UNP Admin Panel and go to <span style="font-style: italic;">Templates</span> in <span style="font-style: italic;">Settings</span>.<br />
<br />
Find News_Header an replace the contents with the following:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;!--&nbsp;</span><span style="color: #0000BB">news_header&nbsp;</span><span style="color: #007700">--&gt;<br />&lt;</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"&nbsp;</span><span style="color: #0000BB">language</span><span style="color: #007700">=</span><span style="color: #DD0000">"javascript"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"lbmod/lytebox.js"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;/script&gt;<br /></span>&lt;link&nbsp;rel="stylesheet"&nbsp;href="lbmod/lytebox.css"&nbsp;type="text/css"&nbsp;media="screen"&nbsp;/&gt;&nbsp;<br /></code></div></div></div>
<br />
Thats it you can now post a link to an image and should have the amazing lytebox working.<br />
<br />
To use it just use [imgurl]imagelinkhere.jpg[/imgurl] or [imgurl=linktoimage.jpg]link text[/imgurl]<br />
<br />
For those who want to use the sql route to update the tempate the code is...<br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>UPDATE `unp_template` SET `template` = '&lt;!-- news_header --&gt; &lt;script type="text/javascript" language="javascript" src="lbmod/lytebox.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="lbmod/lytebox.css" type="text/css" media="screen" /&gt;' WHERE `unp_template`.`id` =18 LIMIT 1 ;</code></div></div>
<br />
Well thats it for this version of Lytebox mod...<br />
<br />
Next Mod from me will be a syntax highlighter for those who like to post code]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[background]]></title>
			<link>http://www.utopiasoftware.net/forum/showthread.php?tid=85</link>
			<pubDate>Mon, 18 May 2009 10:54:24 +0000</pubDate>
			<guid isPermaLink="false">http://www.utopiasoftware.net/forum/showthread.php?tid=85</guid>
			<description><![CDATA[excellent script but having trouble with 2 points, ive looked trough the forum and not found my anwser, i am getting a white actual background with around 4-5 px border and sticks out like sore thumb, ive made the table 100% and set borders to 0, this is also equal between post and shows a white gap, my site is #111111 so almost black, also there seems to be no css to alter links etc and showing in basic blue/purple, help would be greatly appreciated.... Gary<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/image.gif" border="0" alt=".jpg" />&nbsp;&nbsp;<a href="attachment.php?aid=3" target="_blank">news.jpg</a> (Size: 50.86 KB / Downloads: 11)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[excellent script but having trouble with 2 points, ive looked trough the forum and not found my anwser, i am getting a white actual background with around 4-5 px border and sticks out like sore thumb, ive made the table 100% and set borders to 0, this is also equal between post and shows a white gap, my site is #111111 so almost black, also there seems to be no css to alter links etc and showing in basic blue/purple, help would be greatly appreciated.... Gary<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/image.gif" border="0" alt=".jpg" />&nbsp;&nbsp;<a href="attachment.php?aid=3" target="_blank">news.jpg</a> (Size: 50.86 KB / Downloads: 11)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
	</channel>
</rss>
