Previous Thread
Next Thread
Print Thread
Rate Thread
Classic Style WoL #314479 06/18/2007 11:27 PM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
(AKA, Content Islands 101)

To move the contents of your WOL to "just above" or "just under" your category listing you can just use the "external use" option from the content islands setting in your control panel.

I myself built this as a proof of concept of how to do just this (with the WoL).

First, you'll want to go to your portal layout, and select "external use" and copy the paths, you'll need them to make this work.

Now, open your cfrm.tpl file in your templates/default folder; now you have a choice...

To add this to the TOP of your category list, insert this as the line after the "{if $introtitle}"; To add this to the BOTTOM of your category list, insert this at the end of the file.
Code

{php}
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";
$tbopen="<table width=\"100%\" class=\"t_outer\" cellpadding=\"0\" cellspacing=\"0\">\n<tr>\n<td>\n<table width=\"100%\" class=\"t_inner\" cellpadding=\"0\" cellspacing=\"1\">\n<thead>";
$tbclose="</thead>\n</table>\n</td>\n</tr>\n</table>";
include("/home/ewg/public_html/forum/languages/english/portal_islands.php");
include("/home/ewg/public_html/forum/languages/english/generic.php");
include("/home/ewg/public_html/forum/cache/online_now.php");
{/php}


Now, those paths you copied earlier, you'll want to replace from the above coding (as I'm sure your paths aren't exactly like mine).

You can see this in action on:
http://www.elitewebgamers.com/forum/ubbthreads.php

If you want to do this for say, newest members, you'd do the steps to grab the paths, and insert those paths for the newest members section; such as:
Code
{php}
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";
$tbopen="<table width=\"100%\" class=\"t_outer\" cellpadding=\"0\" cellspacing=\"0\">\n<tr>\n<td>\n<table width=\"100%\" class=\"t_inner\" cellpadding=\"0\" cellspacing=\"1\">\n<thead>";
$tbclose="</thead>\n</table>\n</td>\n</tr>\n</table>";
include("/home/ewg/public_html/forum/languages/english/portal_islands.php");
include("/home/ewg/public_html/forum/languages/english/generic.php");
include("/home/ewg/public_html/forum/cache/new_users.php");
{/php}


Please note that you would want to turn the "always build" option in the portal settings on for any islands you're going to be utilizing outside of your forum.

Attached Files
2416-wolmove.jpg (52.43 KB, 386 downloads)

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, UBB.Sitemaps
Sponsored Links
Re: Classic Style WoL [Re: Gizmo] #314488 06/19/2007 4:36 AM
Joined: Nov 2000
Posts: 1,271
drkknght Offline
Kahuna
Offline
Kahuna
Joined: Nov 2000
Posts: 1,271
works like a charm!

Re: Classic Style WoL [Re: drkknght] #314504 06/20/2007 9:14 PM
Joined: Nov 2000
Posts: 1,271
drkknght Offline
Kahuna
Offline
Kahuna
Joined: Nov 2000
Posts: 1,271
question:

...er... maybe "issue:"

the lil who's online blurb does not show everyone who is online. and i dont mean the invisible people or guests. like, it'll say "25 registered" but will only show 5 or 6 or 7 of them, before saying how many invisible or anonymous users there are.

when you hit details, you can see there actually are 25 visible users (in addition to the however many invisible and anonymous)

any way to show everyone?

Re: Classic Style WoL [Re: drkknght] #314516 06/21/2007 5:23 AM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
This works using the sidebar, if it's not showing all users it's either a cache issue, or a bug with the ubb itself


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, UBB.Sitemaps
Re: Classic Style WoL [Re: Gizmo] #314610 06/26/2007 3:17 PM
Joined: Nov 2000
Posts: 1,271
drkknght Offline
Kahuna
Offline
Kahuna
Joined: Nov 2000
Posts: 1,271
hurm. i guess its a bug from within the ubb, as the sidebar shows the same info. that, and i have no other idea how to fix it smile


Sponsored Links
Re: Classic Style WoL [Re: drkknght] #314611 06/26/2007 3:41 PM
Joined: Nov 2000
Posts: 1,271
drkknght Offline
Kahuna
Offline
Kahuna
Joined: Nov 2000
Posts: 1,271
actually, i found it:

in /cache_builders/online_now.php, there is a section with the comment-title "Now grab the 5 most recent visitors"

just before the "; it limits the amount of online users displayed in the pal to 5 (or 5 plus you). changing that number will allow you to display as many as you want.

Re: Classic Style WoL [Re: drkknght] #314617 06/26/2007 8:23 PM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
Ya know, now that i think of it, you're right; I remember now that there are restrictions to a max number in the cache_builder files 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, UBB.Sitemaps

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
jgeoff
jgeoff
NJ
Posts: 96
Joined: April 2001
Forum Statistics
Forums63
Topics37,490
Posts293,665
Members13,828
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,786
Greg Hard 4,625
Top Posters(30 Days)
isaac 12
Gizmo 1
Today's Statistics
Currently Online 960
Topics Created 0
Posts Made 1
Users Online 1
Birthdays 15
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191013.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.035s Queries: 16 (0.012s) Memory: 3.2471 MB (Peak: 3.4379 MB) Data Comp: Zlib Server Time: 2019-10-17 20:29:15 UTC
Valid HTML 5 and Valid CSS