|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
I'd like to move Who's Online to be just under
.tdheader - Header contents
ie. horizontal at the top of the Forums rather than in a right hand side column.
Can that be done and if so can anyone share with me how to do it (in simple talk!)
Thank you
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
The code I am using for including in the footer is
<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
$wrapper_id = $style_array['wrappers'];
$tbopen = $wrappers[$wrapper_id]['open'];
$tbclose = $wrappers[$wrapper_id]['close'];
echo <<<EOF
<table width="100%" border="0" align="center">
<tr>
<td valign="top">
EOF;
include("{$config['FULL_PATH']}/languages/english/generic.php");
include("{$config['FULL_PATH']}/cache/online_now.php");
echo <<<EOF
</td>
</tr>
</table>
EOF;
?>
You just need to add it where you wish for it to be displayed.
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Fantastic.. what file would I be editing Ian?
(if say I wanted it above the forums (below the top horizontal menu, like in old classic)?
Cheers
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Another question... in your list I see some members are shown as green and some are orange. How is that working then?
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
Green is mods, Orange (Gold) are paying gold members. I have simply given them a colour manually within their profiles. Admins, Mods etc. are automatically coloured in 7.3
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
I think you missed this one Ian "what file would I be editing Ian? (if say I wanted it above the forums (below the top horizontal menu, like in old classic)?"
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
If you want it on the main category index, cfrm.tpl
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
OK good - so where exactly do I put it. Currently my file looks like this
{if $introtitle} {$tbopen} <tr> <td class="tdheader">{$introtitle}</td> </tr> <tr> <td class="alt-1">{$introbody}</td> </tr> {$tbclose} {/if}
{include file="forum.tpl" type="cfrm" catrow=$catrow forum=$forum}
|
|
|
|
Joined: Dec 2006
Posts: 1,235
veteran
|
veteran
Joined: Dec 2006
Posts: 1,235 |
Can't you just put it straight in to the footer area of the HTML includes?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Just for note... This is all already covered at ubbdev here
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Can't you just put it straight in to the footer area of the HTML includes? Technically, yes; but dependent on WHERE you want it to actually show is another story ...
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Alas the ubb thread solution does not seem to work. I have modifed the code to be
{* Script Version 7.3b5 *}
{if $introtitle}
{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/sites/www.domain.com/web/forums/languages/english/portal_islands.php"); include("/home/sites/www.domain.com/web/forums/languages/english/generic.php"); include("/home/sites/www.domain.com/web/forums/cache/online_now.php");
{/php}
{$tbopen} <tr> <td class="tdheader">{$introtitle}</td> </tr> <tr> <td class="alt-1">{$introbody}</td> </tr> {$tbclose} {/if}
{include file="forum.tpl" type="cfrm" catrow=$catrow forum=$forum}
but nothing is happening online. Have I made a mistake? Thanks
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
i wouldn't mess with cfrm... either header.tpl or footer.tpl would be my choice..
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
If I wanted to put it in cfrm, can someone tell me what the code would need to look like and what is wrong with above. Thanks
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
OK, Ian, I have successfully put the Who's Online above the forums in the header. Thank you.
Now what I want to do, if possible, is to reduce the size of the font (currently it is 10pt, I want it 8pt) and perhaps get rid of the background cell color where "Who's Online" is written.
Any (as clear as possible) pointers on where I can do that?
Thank you
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
OK I have changed the Whos Online to be 8pt by changing alt-1.
BUT, that seems to affect other areas that I don't want affected.
Question - is there any way I can make it so that the list of Who's Online is 8pt, but keep the main alt-1 to be 10pt.
Thanks
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
You will either need to manually insert a font size into the code or add an extra css entry.
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Can you guess the next one? How do I do that?
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
http://www.w3schools.com/ is a good place to start to learn css and html
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Right but I don't have time to take courses. I just want to make simple changes. Anyone prepared to make it simple for me by just posting code to put where for such a small thing?
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Everyone here besides Rick are unpaid volunteers... start there, and take it where you want... We try. We mostly deliver. But sometimes things take time, and need to be figured out in our spare (unpaid) time. That's why it's free. And as Ian suggested, learning it on your own and problem-solving is a bit better, being an "Admin" and all... But if you don't have time to learn, and if you have money to spare, I'm sure a few here could help further... The above post was posted by myself, personally, as a user of the software - and has not been approved by UBB.
Last edited by jgeoff; 05/16/2008 3:20 AM.
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Sorry, I apologise.
But if the product had a bit more documentation that actually told us how to use it (am I missing it?) then people like me would have so many less questions. I also don't think that people should be paying for advice on basic things that should really be covered by documentation. Again, am I missing the documentation?
Even if I knew CSS, I still don't know where to add that to UBB threads or with any confidence anyway.
Again I apologise I do appreciate any feedback.
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
I have nothing to do with any docs, that's beyond me lol -- never needed any, though, either... I plug away, hunt & peck, trial & error, and work at figuring things out... been doing that for like a decade! lol ... but it works most of the time I help all I can in my spare time, though... maybe soon I'll figure your issue out...
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Thank you.
I wish I did have the time to plug away, but unfortunately don't. I have spent the best part of the last two days getting to grips with things - as you have probably noticed.
Just a few things left....
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
The problem is willing, the docs would never provide information on hacking your forums. Most part it works out of the tin, and subject to correctly configuring the various options in the CP it will display what you want. This topic is hacking and will never be supported by groupee. In fact any requests for support with hacking should be made at ubbdev, which is the developers site for ubbthreads - https://www.ubbdev.com and not these forums, which are there for supporting stock code. I would strongly suggest learning simple php, html and css if you wish to hack your forums.
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
I don't mean the hacking, Ian, I mean basic things. Countless questions on here show that people just don't know how to use them properly and are not getting the most out of them simply because there is no real explanation of the features. Surely you would admit to that? The documentation is extremely thin on the ground.
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
Moving the online box is hacking.
Anything that involves changing the code is hacking and is not supported by groupee.
Part of the agreement that you agreed to when you purchased threads said something along the lines of we cannot support modifications to the code, and you may need to upload the original unaltered scripts before we are able to assist.
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Yes I know this case is - I was talking of more general things (see 100 other posts!)
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
I think it is more like 200 posts
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Well the good thing is that all of my questions and the answers are probably helping lots of other people.
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
hmmm..........
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
0 members (),
598
guests, and
134
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|