Previous Thread
Next Thread
Print Thread
Rate Thread
#310968 07/31/2006 11:30 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Name: ubb.dev Post_Island

Author: Ian Spence, Allen Ayres

Version: 7.0a

Info: If you want a little more info in your post_island.tpl, then you might like how we do them here. Ian wrote most of the code, I just changed it a bit to link to the last post. Download the file, rename it to post_island.tpl, upload and there you go smile
Attachments
2246-post_island.tpl.txt (860 Bytes, 224 downloads)


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Code
<?php if(!defined('UBB_MAIN_PROGRAM')) exit; ?>
{$tbopen}
<tr>
<td class="{$style_side}tdheader">
{$name}
</td>
</tr>

{section name=item loop=$items}
<tr>
{if $smarty.section.item.iteration % 2 == 1}
<td class="{$style_side}alt-1" align="left">
{else}
<td class="{$style_side}alt-2" align="left">
{/if}
<a href="{ubb url="ubb=showflat&Number=`$items[item].TOPIC_LAST_POST_ID`&Main=`$items[item].TOPIC_ID`#Post`$items[item].TOPIC_LAST_POST_ID`"}">
{if $items[item].POST_ID != $items[item].TOPIC_LAST_POST_ID}Re: {/if}{$items[item].TOPIC_SUBJECT}</a><br />
by <a href="{ubb url="ubb=showprofile&User=`$items[item].TOPIC_LAST_POSTER_ID`"}">{$items[item].TOPIC_LAST_POSTER_NAME}</a>
<br />{$items[item].TOPIC_LAST_REPLY_TIME}
</td>
</tr>
{/section}

{$tbclose}

That's what I settled on.

Can be seen HERE.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Just some color differences?


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Some html, removes the divs since the look out of place, moves time to next line

Joined: Jan 2007
Posts: 3
Lurker
Lurker
Offline
Joined: Jan 2007
Posts: 3
will this work with7.1b5?

Larry

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I don't see any reason why it wouldn't

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I run it on my 7.1b4 test site without issue.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #313648 03/20/2007 10:09 AM
Joined: Jul 2006
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jul 2006
Posts: 21
Does this limit to only show categories available to the user or is there a way to limit forums/categories from being listed?

I don't see it currently in the code, but I might be blind.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
The post item is non-permission capable, which means it'll show everything; this is how the stock code works and all this mod does is change how the output lists data.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jul 2006
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jul 2006
Posts: 21
Yeah, that is what I figured. On my site I have some private areas, like a forum for the Board of Directors, and having these posts pop up wouldn't really be that great. I like the idea of the island, but I would need a way to lock out or pick from specific categories/forums.

Fred

Sponsored Links
Joined: Jul 2006
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jul 2006
Posts: 21
Okay, nevermind... I understand now, this is only for the template, you select WHERE is pulls the info from when you create the post island... Great mod, I'm using it now.

Fred

Joined: Jul 2006
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jul 2006
Posts: 21
One thing noticed by my users, the date/time is the local server time instead of their local time, any idea how to make it their time?

Fred

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Lol yes, it's great to note that you have to choose which forums to pull data from when creating the post island; so if you don't want a private forums data pulled? then don't select it lol...



UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)