|
Joined: Dec 2002
Posts: 173
Member
|
Member
Joined: Dec 2002
Posts: 173 |
Hi all Brilllllllllllllllll. Another good hack.... I love it. What's next  Q1. I have added the extra Josh attachment to not allow users to switch OFF. 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.  Q. I have 3 boxes - can I add another one/two.... THX
Thanks
Liahona
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
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. I think my sample was usergroup -5- but you can set this number to whatever group number you want.  You can add as many boxes as you want. Just put the HTML in the sidebar.tmpl file. 
|
|
|
|
Joined: Dec 2002
Posts: 173
Member
|
Member
Joined: Dec 2002
Posts: 173 |
Hi Chuck 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 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? I don't understand " usergroup -5- but " what does 5 mean? THX
Last edited by Liahona; 01/13/2003 1:07 PM.
Thanks
Liahona
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
5 id group number 5. A custom group you may have added.
Not sure why it wouldn't display when logged out. Did you turn the sidebar on in your theme file?
|
|
|
|
Joined: Dec 2002
Posts: 173
Member
|
Member
Joined: Dec 2002
Posts: 173 |
Hi
Do you mean this, if so yes....
SideBar Type: (left, right or leave blank to disable) Left
SideBar Width: (percentage or actual number) 220
Thanks
Liahona
|
|
|
|
Joined: Dec 2002
Posts: 173
Member
|
Member
Joined: Dec 2002
Posts: 173 |
Hi again
And in the Users MyHome -edit page it has
Sidebar Display: Left
Thanks
Liahona
|
|
|
|
Joined: Dec 2002
Posts: 173
Member
|
Member
Joined: Dec 2002
Posts: 173 |
Hi I may have found the answer. 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. Edit: Just remembered it's the same when logged out. Just a thought. THX
Last edited by Liahona; 01/13/2003 2:40 PM.
Thanks
Liahona
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Instructions will work fine in 6.2.1
|
|
|
|
Joined: Dec 2002
Posts: 173
Member
|
Member
Joined: Dec 2002
Posts: 173 |
Hi How/where do I change the font size in the sidebars.? 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. THX
Last edited by Liahona; 01/16/2003 4:34 PM.
Thanks
Liahona
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
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. 
|
|
|
|
Joined: Dec 2002
Posts: 173
Member
|
Member
Joined: Dec 2002
Posts: 173 |
Hi Dave
Thanks, I was looking to globaly change all the stylesheets at once but I suppose I will have to do one at a time.
Thanks
Thanks
Liahona
|
|
|
|
Joined: Apr 2002
Posts: 141
Member
|
Member
Joined: Apr 2002
Posts: 141 |
@JustDave I have included your sidebar hack and it works great! After that I tried to display Pal boxes in the sidebar but I was partly unsuccessful. I can get it working (when the sidebar is set to display left) by adding this to sidebar.tmpl: <? //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 <<<UBBTPRINT <br /> <br /><!-- START OF SIDEBAR CONTENT --> <br /> <br />$tbopen <br /><tr> <br /><td class="tdheader"> <br /> <br />Testblok 1 <br /> <br /></td> <br /></tr> <br /><tr> <br /><td class="lighttable"> <br /> <br />Binnenkort valt<br> <br />Hier meer te zien!<br> <br /><br /> <br /><br /> <br /> <br /></td> <br /></tr> <br />$tbclose <br /><br /> <br /> <br />$tbopen <br /><tr> <br /><td class="tdheader"> <br /> <br />Testblok 2 <br /> <br /></td> <br /></tr> <br /><tr> <br /><td class="lighttable"> <br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /> <br /></td> <br /></tr> <br />$tbclose <br /><br /> <br /> <br />$tbopen <br /><tr> <br /><td class="tdheader"> <br /> <br />Testblok 3 <br /> <br /></td> <br /></tr> <br /><tr> <br /><td class="lighttable"> <br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /> <br /> <br /></td> <br /></tr> <br />$tbclose <br /><br /> <br /> <br /> <br /><!-- END OF SIDEBAR CONTENT --> <br /> <br /> <br />UBBTPRINT; <br />/* UBBTREMARK */ ?> But if I set the sidebar to display on the right (in my home) the page starts reloading like crazy and IE crashes! Ron.
Those who fail to read ask many questions:-)
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
This is what I had to play with before I posted instructions. See if this helps.... In ubbt.inc.php look for the send_footer function Add $dbh into the global call line.... see if that works. 
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
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. Please keep these things in mind and let me know how it goes. 
|
|
|
|
Joined: Apr 2002
Posts: 141
Member
|
Member
Joined: Apr 2002
Posts: 141 |
@JoshPet and JustDave
Thanks for your help, but I'm afraid I need a little more feedback in the form of an example. I am really just a beginner when it comes to PHP and I don't understand most of it.
Regards,
Ron
Those who fail to read ask many questions:-)
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
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. 
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Josh I'll create that column include script again to make this easier. I can't do it tonight but perhaps Sunday/Monday night.  I've got a full plate right now and can't hardly get it cleared off as it is... lol 
|
|
|
|
Joined: Nov 2002
Posts: 554
Code Monkey
|
Code Monkey
Joined: Nov 2002
Posts: 554 |
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
Last edited by ChAoS; 01/25/2003 8:27 PM.
|
|
|
|
Joined: Nov 2002
Posts: 554
Code Monkey
|
Code Monkey
Joined: Nov 2002
Posts: 554 |
LOL you need to check out your shoutbox for my last post
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
[]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 [/] Dave and or I will come up with something soon.... stay tuned. We both got ourselves pretty busy.... but will get there soon. 
|
|
|
|
Joined: Nov 2002
Posts: 554
Code Monkey
|
Code Monkey
Joined: Nov 2002
Posts: 554 |
Dave just a suggestion, I would like to be able to disable the sidebars by default so that unregistered users browsing the forum do not see the sidebars but still be able to have registered users the ability to turn them on. I have been doing some testing with them and have not informed my users about that option but had a user that was not logged in ask about them and then realized they were visible to all when enabled in the "edit theme" panel. For novice web site surfers I think IIP and the sidebars make the page look too busy and it tends too scare them off but for "Journeymen" (LOL) such as myself I like to take full advantage of my options.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I just got this working a few minutes ago. There will be a configurable "sidebarpal.php" script in the next IIP release in a week or two. 
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I'll look into updating this to allow for only users to see the sidebar. I'll be including the sidebar instructions in the next IIP release since they seem to be getting tied together anyhow... lol I have the sidebarpal.php script running here. I want to see if anything goes wrong as far as variable cross contanimation goes. So far it seems to be working. 
|
|
|
|
Joined: Jan 2003
Posts: 125
Journeyman
|
Journeyman
Joined: Jan 2003
Posts: 125 |
[]I'll look into updating this to allow for only users to see the sidebar. I'll be including the sidebar instructions in the next IIP release since they seem to be getting tied together anyhow... lol I have the sidebarpal.php script running here. I want to see if anything goes wrong as far as variable cross contanimation goes. So far it seems to be working.  [/] Ohhh such a tease!
|
|
|
|
Joined: Aug 2002
Posts: 218
Member
|
Member
Joined: Aug 2002
Posts: 218 |
[]Attached to this post are instructions on how to restrict the ability to turn the side bar off to a specific user group. - First install the mod per Dave's instructions. - The follow my instructions to further modify the code. My instructions are written after JustDave's modifications. What this does. If the member is of the certain user groups (specify the user group number in the code), or an Admin or a Mod they will have the option to display the sidebar left, right or OFF. If they are not an Admin, Mod or a part of the special usergroup, then they will only have the option to choose Left or Right. They won't have an "off" option. If for some reason, they already have the sidebar "off" (before the mod was installed) then it will default to "left" when they edit their display preferences. Hope this works for ya!  [/] Hi Josh, can you change this mod and send it to me that it makes the following? The left/rightbar should only be there for special groups and only an admin can turn it off. I want to add a menu for my members which only the admingroup or guys from the member group should see and only the admin is allowed to turn it off. for all other guest another menu should appear, maybe with advertisement in or whatever!
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
If Josh doesn't have the free time (which wouldn't surprise me) to take this up you may want to see if one of the developers in the "developers for hire" forum would be interested in taking this up. I believe the reason Josh supplied the above modification was because he himself needed it also. 
|
|
|
|
Joined: Aug 2002
Posts: 218
Member
|
Member
Joined: Aug 2002
Posts: 218 |
Its just a nice to have modification from the existing hack and nothing I really want to hire or even pay someone for ;-)
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
That sounds like what I already posted. If you want only admins to be able to turn it off.... find this line: if ((preg_match("/-5-/",$UserGroups)) || ($Status == "Administrator") || ($Status == "Moderator")) { // adjust this group number if needed Change to this: if ($Status == "Administrator") { That should do it. 
|
|
|
|
Joined: Apr 2001
Posts: 18
User
|
User
Joined: Apr 2001
Posts: 18 |
I tried to edit editdisplay.php to change this but couldn't find it. Should it be Checkuser instead of Display? if (!$Display){ $html -> not_right("{$ubbt_lang['NO_PROF']} '$Username'",$Cat); } to if (!$Display){ $html -> not_right("{$ubbt_lang['NO_PROF']} '$Username'",$Cat); } if ($showsidebar == "1") { $sidebarselect[0] = ""; $sidebarselect[1] = "selected="selected""; $sidebarselect[2] = ""; } elseif ($showsidebar == "2") { $sidebarselect[0] = ""; $sidebarselect[1] = ""; $sidebarselect[2] = "selected="selected""; } else { $sidebarselect[0] = "selected="selected""; $sidebarselect[1] = ""; $sidebarselect[2] = ""; } Works fine exept when a user tries to switch the sidebar on/off. /Stefan
Last edited by so01; 01/31/2003 5:23 PM.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Hi Stefan, This: if (!$Display){ $html -> not_right("{$ubbt_lang['NO_PROF']} '$Username'",$Cat); } has become this: if (!$CheckUser){ $html -> not_right("{$ubbt_lang['NO_PROF']} '$Username'",$Cat); } which needs to be changed to this: if (!$CheckUser){ $html -> not_right("{$ubbt_lang['NO_PROF']} '$Username'",$Cat); } if ($showsidebar == "1") { $sidebarselect[0] = ""; $sidebarselect[1] = "selected="selected""; $sidebarselect[2] = ""; } elseif ($showsidebar == "2") { $sidebarselect[0] = ""; $sidebarselect[1] = ""; $sidebarselect[2] = "selected="selected""; } else { $sidebarselect[0] = "selected="selected""; $sidebarselect[1] = ""; $sidebarselect[2] = ""; } Hope that helps. 
|
|
|
|
Joined: Aug 2002
Posts: 218
Member
|
Member
Joined: Aug 2002
Posts: 218 |
Is it possible to include other .php scripts within the sidebar?
I want to add a page counter and some other stuff using <?php include..... but this is not working.
Can someone please assist?
|
|
|
|
Joined: Apr 2001
Posts: 18
User
|
User
Joined: Apr 2001
Posts: 18 |
I can't get the right sidebar to show up on 6.2.2. The left one is no problem. Can it depend on the new way the footer is displayed?
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I don't think so but I'll have to look to make sure. Check that the send_footer function has been modified accordingly. Missing variables in the "global" call in this function may be the problem. These variables will be the deciding factor if the right sidebar is being displayed. The left sidebar is displayed during the "send_header" function and closed in the "send_footer". The right sidebar is opened during the "send_header" function but displayed in the "send_footer" function and closed. Hope that helps. I'll try and take a look as soon as I can. Maybe someone else has already got this modification rolling with 6.2.2 and can chime in with any changes they made. 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
When choosing the left sidebar, I get this: We are currently updating this page... Version missmatch! IIP 5.3 will not work with UBB.threadsâ„¢ .  Also, if I add this, what mysql command will set everyone to using them on the right, I'll tell them of the option to turn it off or use the left 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
dunno about the error.  But to force everyone right... UPDATE w3t_Users SET U_SideBar = '2' That should do it. 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thank you 
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Ack... I'll fix that. I fixed only the right side after upgrade because that's the only thing I was seeing... lol 
|
|
|
|
Joined: Aug 2002
Posts: 218
Member
|
Member
Joined: Aug 2002
Posts: 218 |
Another fix for you JustDave: SideBar_leftopen.tmpl Change: <!-- echo <<<UBBTPRINT --> To: <!-- echo <<<UBBTPRINT --><center> SideBar_leftclose.tmpl Change this at the end: <!-- UBBTPRINT; --> To: <!-- UBBTPRINT; --></center> Same for Sidebar_rightopen.tmpl and Sidebar_rightclose.tmpl Why doing this? If the forum has not a width of 100% its looking strange without that.  Please make the changes within the template files Dave....
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Actually I'll just recommend setting your forum's width to 100% in the instructions. 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
any experience with this and the photopost integration? 
|
|
|
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.
|
|
Posts: 5,833
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|