php forum
php mysql forum
php mysql smarty
 
Topic Options
#314479 - 06/18/07 11:27 PM Classic Style WoL
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5122
Loc: Portland, OR, USA

   Classic Style WoL to Del.icio.us Add to del.icio.us
  Digg Classic Style WoL Digg it
(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.


Attachments
2416-wolmove.jpg (91 downloads)

_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#314488 - 06/19/07 04:36 AM Re: Classic Style WoL [Re: Gizmo]
drkknght Offline
Kahuna

Registered: 11/09/00
Posts: 1249
Loc: rob's pad -- where it takes sk...
works like a charm!
_________________________
professional discussion killer
due to intelligence limitations, i do not offer support.
my site ~ my boards

Top
#314504 - 06/20/07 09:14 PM Re: Classic Style WoL [Re: drkknght]
drkknght Offline
Kahuna

Registered: 11/09/00
Posts: 1249
Loc: rob's pad -- where it takes sk...
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?
_________________________
professional discussion killer
due to intelligence limitations, i do not offer support.
my site ~ my boards

Top
#314516 - 06/21/07 05:23 AM Re: Classic Style WoL [Re: drkknght]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5122
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#314610 - 06/26/07 03:17 PM Re: Classic Style WoL [Re: Gizmo]
drkknght Offline
Kahuna

Registered: 11/09/00
Posts: 1249
Loc: rob's pad -- where it takes sk...
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

_________________________
professional discussion killer
due to intelligence limitations, i do not offer support.
my site ~ my boards

Top
#314611 - 06/26/07 03:41 PM Re: Classic Style WoL [Re: drkknght]
drkknght Offline
Kahuna

Registered: 11/09/00
Posts: 1249
Loc: rob's pad -- where it takes sk...
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.
_________________________
professional discussion killer
due to intelligence limitations, i do not offer support.
my site ~ my boards

Top
#314617 - 06/26/07 08:23 PM Re: Classic Style WoL [Re: drkknght]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5122
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top


Who's Online
1 Registered (tackaberry), 30 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 13
blaaskaak 9
FREAK1 7
tackaberry 7
Chris Bale 4
Ian_W 4
Mike L_dup1 4

 

 

 
fusionbb message board php hacks