- Unreal Solutions
- > Viewing Profile: cricket
Community Stats
- Group Root Admin[Root Admin]
- Active Posts 291 (0.11 per day)
- Most Active In Legacy Posts (104 posts)
- Profile Views 46,178
- Member Title Administrator
- Age 24 years old
- Birthday June 23, 1987
-
Gender
Not Telling
Contact Information
0
Neutral
User Tools
Latest Visitors
Issues I've Posted
Calendar block broken on fresh IPB 3.2 install
Posted 10 Aug 2011
There is no calendars.php in /admin/applications_addon/ips/calendar/modules_public/calendar/ with the 3.2.0 release of calendar from the client area. That file does exist in the 3.1.4 release of IPB. The portal worked fine for an upgraded forum, went from 3.1.4 -> 3.2, but a fresh install of 3.2 fails.
Latest news permission logic
Posted 28 Jul 2009
Currently logic works by grabbing max posts + 10 and then filtering out based on forum read permissions. This isn't a good way to do it.
The way it should be done is to first check if the user has read permission on that forum id, and if so, then grab posts from it, and if not, then don't grab posts from it.
For ex, if latest news is grabbing from forum id 2 and 3, check if user has permission for 2, check if user has permission for 3, and if there are any forums the user has permission in, grab posts. Otherwise, don't do anything and exit out of the function.
The way it should be done is to first check if the user has read permission on that forum id, and if so, then grab posts from it, and if not, then don't grab posts from it.
For ex, if latest news is grabbing from forum id 2 and 3, check if user has permission for 2, check if user has permission for 3, and if there are any forums the user has permission in, grab posts. Otherwise, don't do anything and exit out of the function.
Javascript errors
Posted 28 Jul 2009
Love the portal software, but I get a bunch of JS errors in IE (6,7,8) - works fine in FireFox. The errors are as follows:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Tue, 28 Jul 2009 23:39:54 UTC
Message: Expected identifier, string or number
Line: 643
Char: 117
Code: 0
URI: http://wwwforum/forums/public/min/index.ph...e/1/ipb.lang.js
Message: 'ipb' is undefined
Line: 66
Char: 3
Code: 0
URI: http://wwwforum/forums/
Message: 'Loader' is undefined
Line: 116
Char: 4
Code: 0
URI: http://wwwforum/forums/
Any thoughts on how to fix this?
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Tue, 28 Jul 2009 23:39:54 UTC
Message: Expected identifier, string or number
Line: 643
Char: 117
Code: 0
URI: http://wwwforum/forums/public/min/index.ph...e/1/ipb.lang.js
Message: 'ipb' is undefined
Line: 66
Char: 3
Code: 0
URI: http://wwwforum/forums/
Message: 'Loader' is undefined
Line: 116
Char: 4
Code: 0
URI: http://wwwforum/forums/
Any thoughts on how to fix this?
Custom Blocks & Custom Content - Limited on HTML
Posted 24 Jul 2009
When using custom blocks or custom content, there's already a table, tr, td etc tags so the user's limited on the HTML they can have.
Fix:
Instead of using general_block for custom blocks, created a new skin template called custom_block that only contains {$data} and in the 3.0-3.0.1 update script, write code that automatically surrounds old custom blocks with the HTML code needed.
When adding a new block in v3.0.1, have something like:
Fix:
Instead of using general_block for custom blocks, created a new skin template called custom_block that only contains {$data} and in the 3.0-3.0.1 update script, write code that automatically surrounds old custom blocks with the HTML code needed.
When adding a new block in v3.0.1, have something like:
<table class='ipb_table' cellspacing="1">
<tbody>
<tr>
<td class='row2'><!-- This is the default custom block/custom content template. You can either remove this comment tag with your own content to create a simple custom block or you can remove the entire content and have your own formatting--></td>
</tr>
</tbody>
</table>
- Unreal Solutions
- > Viewing Profile: cricket



Find content
Display name history