php forum
php mysql forum
php mysql smarty
 
Page 3 of 5 < 1 2 3 4 5 >
Topic Options
#231924 - 01/13/03 11:22 AM Re: [6.2] User Selectable Side Bars [Re: sjsaunders]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi all<br /><br />Brilllllllllllllllll.<br /><br />Another good hack.... I love it.<br /><br />What's next <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Q1. I have added the extra Josh attachment to not allow users to switch OFF.<br /><br />Login as User - this shows the MyHome-edit page as only having the left/right switch (no OFF) which is great but the boxes have gone alltogether, login as admin and the boxes are there, have I missed something or do I need to switch on somewhere. <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />Q. I have 3 boxes - can I add another one/two....<br /><br /><br />THX
_________________________
Thanks

Liahona

Top
#231925 - 01/13/03 11:26 AM Re: [6.2] User Selectable Side Bars [Re: jfrosch]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
My mod allows specific user groups to turn it off. It allows admins and mods to turn it of.... then you need to edit the number of the group that is allowed to turn it off.<br /><br />I think my sample was usergroup -5- but you can set this number to whatever group number you want. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br /><br />You can add as many boxes as you want. Just put the HTML in the sidebar.tmpl file. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231926 - 01/13/03 11:50 AM Re: [6.2] User Selectable Side Bars [Re: Daine]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Chuck <br /> <br />It's not the turning OFF that's the problem It's when logged in as a normal User the side bar does NOT display <br /> <br />Edit: I deleted || ($Status == "Moderator") as I only wan't the Admin to have the OFF swich, but now ONLY the admin sees the sidebar? <br /> <br />I don't understand " usergroup -5- but " what does 5 mean? <br /> <br />THX


Edited by Liahona (01/13/03 12:07 PM)
_________________________
Thanks

Liahona

Top
#231927 - 01/13/03 12:58 PM Re: [6.2] User Selectable Side Bars [Re: jfrosch]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
5 id group number 5. A custom group you may have added.<br /><br />Not sure why it wouldn't display when logged out. Did you turn the sidebar on in your theme file?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231928 - 01/13/03 01:05 PM Re: [6.2] User Selectable Side Bars [Re: Daine]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi<br /><br />Do you mean this, if so yes....<br /><br />SideBar Type: (left, right or leave blank to disable)<br /> Left<br /><br />SideBar Width: (percentage or actual number)<br /> 220<br />
_________________________
Thanks

Liahona

Top
#231929 - 01/13/03 01:07 PM Re: [6.2] User Selectable Side Bars [Re: jfrosch]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi again<br /><br />And in the Users MyHome -edit page it has<br /><br />Sidebar Display:<br /> Left <br />
_________________________
Thanks

Liahona

Top
#231930 - 01/13/03 01:28 PM Re: [6.2] User Selectable Side Bars [Re: jfrosch]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi <br /> <br />I may have found the answer. <br /> <br />If a user has already selected to have it off before I put the hack in will this make it stay off with no way to put it back on. <br /> <br />Edit: Just remembered it's the same when logged out. <br /> <br />Just a thought. <br /> <br />THX


Edited by Liahona (01/13/03 01:40 PM)
_________________________
Thanks

Liahona

Top
#231931 - 01/14/03 10:09 PM Re: [6.2] User Selectable Side Bars [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Instructions will work fine in 6.2.1
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231932 - 01/16/03 02:58 PM Re: [6.2] User Selectable Side Bars [Re: Daine]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi <br /> <br />How/where do I change the font size in the sidebars.? <br /> <br />Edit: I changed the font size in the "Edit a stylesheet" for one style but is there a global cahnge or do I need to do them all individually. <br /> <br />THX <br /> <br />


Edited by Liahona (01/16/03 03:34 PM)
_________________________
Thanks

Liahona

Top
#231933 - 01/17/03 08:34 PM Re: [6.2] User Selectable Side Bars [Re: jfrosch]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Your style sheets will determine what the font sizes are on the entire page including the sidebars which is part of the page. If your putting plain text into the sidebar table cell then the "lighttable" class is what controls that. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#231934 - 01/17/03 09:06 PM Re: [6.2] User Selectable Side Bars [Re: sjsaunders]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Dave<br /><br />Thanks, I was looking to globaly change all the stylesheets at once but I suppose I will have to do one at a time.<br /><br />Thanks
_________________________
Thanks

Liahona

Top
#231935 - 01/25/03 05:21 AM Re: [6.2] User Selectable Side Bars [Re: sjsaunders]
Sat4all Offline
Member

Registered: 04/30/02
Posts: 151
Loc: The Netherlands
@JustDave I have included your sidebar hack and it works great! <br />After that I tried to display Pal boxes in the sidebar but I was partly unsuccessful. <br /> <br />I can get it working (when the sidebar is set to display left) by adding this to sidebar.tmpl: <br /> <br />
Code:
&lt;? //UBBTREMARK <br /> <br />$palspath = "D:/www.sat4all.tv/www/ubbthreads"; <br />  include "{$palspath}/pals/languagepal.php"; <br />  include "{$palspath}/pals/configpal.php"; <br />  include "{$palspath}/pals/tablewrappers.tmpl"; <br />  include "{$palspath}/pals/onlinepal.php"; <br />  include "{$palspath}/pals/hottopicpal.php"; <br />  include "{$palspath}/pals/shoutboxpal.php"; <br /> <br />echo &lt;&lt;&lt;UBBTPRINT <br /> <br />&lt;!-- START OF SIDEBAR CONTENT --&gt; <br /> <br />$tbopen <br />&lt;tr&gt; <br />&lt;td class="tdheader"&gt; <br /> <br />Testblok 1 <br /> <br />&lt;/td&gt; <br />&lt;/tr&gt; <br />&lt;tr&gt; <br />&lt;td class="lighttable"&gt; <br /> <br />Binnenkort valt&lt;br&gt; <br />Hier meer te zien!&lt;br&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br /> <br />&lt;/td&gt; <br />&lt;/tr&gt; <br />$tbclose <br />&lt;br /&gt; <br /> <br />$tbopen <br />&lt;tr&gt; <br />&lt;td class="tdheader"&gt; <br /> <br />Testblok 2 <br /> <br />&lt;/td&gt; <br />&lt;/tr&gt; <br />&lt;tr&gt; <br />&lt;td class="lighttable"&gt; <br /> <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br /> <br />&lt;/td&gt; <br />&lt;/tr&gt; <br />$tbclose <br />&lt;br /&gt; <br /> <br />$tbopen <br />&lt;tr&gt; <br />&lt;td class="tdheader"&gt; <br /> <br />Testblok 3 <br /> <br />&lt;/td&gt; <br />&lt;/tr&gt; <br />&lt;tr&gt; <br />&lt;td class="lighttable"&gt; <br /> <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br />&lt;br /&gt; <br /> <br />&lt;/td&gt; <br />&lt;/tr&gt; <br />$tbclose <br />&lt;br /&gt; <br /> <br /> <br />&lt;!-- END OF SIDEBAR CONTENT --&gt; <br /> <br /> <br />UBBTPRINT; <br />/* UBBTREMARK */ ?&gt;  
<br /> <br />But if I set the sidebar to display on the right (in my home) the page starts reloading like crazy and IE crashes! <br /> <br />Ron.
_________________________
Those who fail to read ask many questions:-)

Top
#231936 - 01/25/03 10:12 AM Re: [6.2] User Selectable Side Bars [Re: Pomegranate]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This is what I had to play with before I posted instructions.<br /><br />See if this helps....<br /><br />In ubbt.inc.php look for the send_footer function<br /><br />Add $dbh into the global call line....<br />see if that works. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231937 - 01/25/03 11:40 AM Re: [6.2] User Selectable Side Bars [Re: Pomegranate]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Using the pals this way will bypass keeping private information from being seen by those that do not have access to it. Also, I believe that the "online" section may not know to keep invisible users from being seen by all. There is also a possibility of cross contanimating the .threads variables. A long time back I used to have a script called leftcolumnpal.php which created a left hand column using the pals. I ran into problems with it because it would contanimate the .threads variables that were in use but I worked on it and got it all running smoothly. From that point I believe I have kept the variables seperated but I have never checked since because that script is no longer in the package so it could be a problem.<br /><br /><br />Please keep these things in mind and let me know how it goes. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#231938 - 01/25/03 01:12 PM Re: [6.2] User Selectable Side Bars [Re: Daine]
Sat4all Offline
Member

Registered: 04/30/02
Posts: 151
Loc: The Netherlands
@JoshPet and JustDave<br /><br />Thanks for your help, but I'm afraid I need a little more feedback in the form of an example.<br />I am really just a beginner when it comes to PHP and I don't understand most of it. <br /><br />Regards,<br /><br />Ron
_________________________
Those who fail to read ask many questions:-)

Top
#231939 - 01/25/03 01:13 PM Re: [6.2] User Selectable Side Bars [Re: Pomegranate]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This was on my list to write up for JustDave (if I can)... LOL But haven't been able to get to it yet. Stay tuned. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231940 - 01/25/03 01:37 PM Re: [6.2] User Selectable Side Bars [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Josh I'll create that column include script again to make this easier. I can't do it tonight but perhaps Sunday/Monday night. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I've got a full plate right now and can't hardly get it cleared off as it is... lol <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#231941 - 01/25/03 07:19 PM Re: [6.2] User Selectable Side Bars [Re: sjsaunders]
ChAoS_dup1 Offline
Code Monkey

Registered: 11/15/02
Posts: 576
Loc: Great Northwest
Don't laugh at me (see the title under my name?) but how do I make one of those sidebar boxes into the shout box? I have them working as blanks so far


Edited by ChAoS (01/25/03 07:27 PM)
_________________________
ChAoS
Emerald Forest Gaming Servers
Official STFU Thread


Top
#231942 - 01/25/03 08:18 PM Re: [6.2] User Selectable Side Bars [Re: barbiro]
ChAoS_dup1 Offline
Code Monkey

Registered: 11/15/02
Posts: 576
Loc: Great Northwest
LOL you need to check out your shoutbox for my last post
_________________________
ChAoS
Emerald Forest Gaming Servers
Official STFU Thread


Top
#231943 - 01/25/03 09:43 PM Re: [6.2] User Selectable Side Bars [Re: barbiro]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
[]Don't laugh at me (see the title under my name?) but how do I make one of those sidebar boxes into the shout box? I have them working as blanks so far [/]<br /><br />Dave and or I will come up with something soon.... stay tuned. We both got ourselves pretty busy.... but will get there soon.<br /><br /><img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
Page 3 of 5 < 1 2 3 4 5 >


Who's Online
1 registered (arentzen), 26 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks