UBB.Dev
Mod Name / Version: Integrated Index Page (IIP) 6.5.1

Description:

Working Under: UBB.Threads 6.5

Mod Status: Beta

Any pre-requisites: UBB.Threads version 6.5

Author(s): JustDave

Date: 07/10/04

Credits: JoshPet & scroungr for updates and enhancements

Files Altered: /ubbthreads/template/default/ubbt_registerednav.tmpl and /ubbthreads/template/default/ubbt_unregisterednav.tmpl to add an "Entrance Page" link to your menu bar. /ubbthreads/ubbt.inc.php, /ubbthreads/template/default/admin/admin_adminmenu.tmpl,
/ubbthreads/languages/english/admin/generic.php,

New Files: index.php and entire /pals directory of scripts

Database Altered: New Database table, w3t_IIPcache to store cached data, also alters the Users table if adding Sidebar module

Info/Instructions:

[:"red"] IF YOU ARE USING AN OLDER VERSION OF IIP 6.5 YOU WILL NEED TO UPLOAD ALL FILES EXCEPT THE PALL BOXES AND YES EVEN OVERWRITE THE configpal.inc.php I renamed some variables. Easiest thing to do is beyond compare old configpal.inc.php and the new one.. [/]


Q: What is it?
A: It's an addon for UBB.threads 6.5 that will pull various
information out of the forum for display as your main home page.

Q: What version of UBB.Threads does it work with?
A: This only works with UBB.Threads version 6.5. For a version of IIP to work with 6.4 or lower, use IIP 5.4.x (located in a separate thread in this forum).

Q: What are the features?
A: The following information is displayed:

1. News Display - A configurable number of news/article posts and from different boards can be displayed down the center in the same fassion as the popular *nuke portals. Past news/articles can also be displayed along the right hand column (only).

2. Upcoming Events - This will display upcoming events from UBB.Threads's Calendar. (Pal Box by JoshPet)

3. Birthdays - This will display today's birthdays, and optionally the birthday's for the month. (Pal Box by JoshPet)

4. Top Rated Posts - This will display a list of X number of top rated posts in the past 24 hours.

5. Current Threads - This will display a list of new threads posted in the past 24 hours.

6. Top Posters - This will display a list of the top X number of posters by x ammount of days.

7. Last Seen - This will display a list of members who have visited the forum most recently. This is not completely accurate because depending on what they are doing at the site their 'laston' information isn't always recorded. You can optionally add a code snippet that is included to your ubbt.inc.php file to make tracking updates instantaneous.

8. Short Stats - This will display various statistical information such as Total Users, Total Posts and New Users in the last 24hrs, 7days, 31 days.
Short Stats will also display "max online" information including how many and when.

9. Profile Spotlight - This will display a random profile listing username, location, hobbies and bio with a link to the full profile. You can specify required fields to be filled in before the user's profile is displayed.
Username has replaced Name (real name) in previous versions.

10. Quick Search - This will display a seach box that will allow for a quick search of the forums using the standard search default values. (Updated by JoshPet to work with UBB.Threads 6.5)

11. Login/Status - This will display a login box or your current status including the number of private messages stored and links to edit your profile and display properties and email subscripitons. Unregistered or users not logged in will see the login box. Logged in users will see their status box.

12. Online - This box displays the number of registered and unregistered users online in the last XX minutes (as defined in your UBB.Threads config file). It will also list the usernames of the registered users. Usernames in bold italic text are invisible. (only admins see them)
You can set a maximum number of names to display and once that limit is reached a link to the "Who's Online" page will be included so users can view the full list.

13. Hot Topic - When a post reaches X number of replies it is displayed in this box with a flaming .gif

14. Menu - This box has various links to other features of IIP.

15. View Polls - This generates a list of X number of poll posts per page with links to the post and board.

16. File Attachments - This generates a list of X number of file attachments per page. There are also sorting options to display only the files specified such as .txt or .zip files.
An attachment specific search feature has been added allowing the search for specific words or from specific boards.

17. New Member - This will display a message welcoming the most recent member. This will only be displayed for X number of days.

18. Recommend Us - This will display a short form for visitors to fill out and recommend the site to their friends.
Mail sent includes an updated header to ensure acceptance by your host. This header includes using the sender's name and email in the "from" section. When the email is recieved by the recipient the sender's name appears in the "from" area and not their email address. (hope that made sense)

19. Call Us Home - IE specific, will not (or should not) display for browsers other than IE. This will allow visitors to set the site as their home page.

20. Add to Favorites - IE specific, will not (and again should not) display for browsers other than IE. This will allow visitors to add the site to their favorites folder. Netscape users will see the "Press CNTRL-D to Bookmark" notice.

21. Shout Box - This displays "shouts" (quick, small postings) from guests or members in the order they were made. Admins can easily delete shouts that are offensive. The shout box does use the .threads nickname/language filters also to suppress such postings. You can optionally set this to refresh for members only or for everyone. Also includes the banning module now.

22. Profile Index - This displays members profiles in a sorted list. The profiles are searchable. Boolean (AND, OR, NOT) and wildcard * searches are allowed. This makes finding specific members easier than ever.

23. Cache Table - Information can be automaticly stored and updated in intervals to increase page generation times. Depending on setup, this can cut the number of queries used to generate a page by as much as 50% and large sites will see a considerable speed increase with generation times.

24. Configure Panel - IIP settings can be controlled via browser and allow for easy setup and managment of the features listed above.

25. Standards Compliant - IIP is XHTML 1.0 Transitional compliant and should render well in standards compliant browsers. This basicly means that the display should look the same from one standards compliant browser to the next.

26. Custom pal boxes have been added. You can edit the boxes and include what ever content and code you want to display and then manage their placement and display from IIP's configure panel.


Notes:

Information displayed is based on group access. If the viewer doesn't have access to your "staff" board IIP will not pull information from that board to generate the display. Larger sites can use the option "force public" to make IIP display only public viewable information which allows for more of IIP's features to use cache to speed page generation times up.

The more features you use the longer it takes to generate the page. If you don't need or want a specific feature, turn it off.

Instructions:

Download the attached file and unzip to a location of your choice. Follow the instructions (instructions.txt) that was contained in the zip file. Please see the IIP FAQ (second post in this thread) if you have any questions BEFORE posting/asking for help.

UPGRADE Instructions:
Upload the index.php file. Adjust the path at the top of the script as needed. Upload the contents of the /pals directory. Note you don't need to overwrite any custom pal boxes you use, or your configpal.php settings file.
Edit the configuration file using the configuration link at the bottom, and complete any new options.

Note: IIP 5.6 now uses the table wrappers that came standard with .threads 6.2 and later.



[:"red"]What has been changed/updated?
JustDave is a bit tied up right now, and I know many of you, like myself, will need an updated IIP to work with UBB.Threads version 6.5.

IIP and Integrated Index Page remains the brain child and copyright Dave Lozier (JustDave) www.chattersonline.com. Myself and scroungr have simply done a bit of tweaking to make it compatible and created a few new pal boxes which I have included.

In no way can I take credit for this. Also, I updated this out of a need to do so for myself and/or my paying clients. I am posting it here as a courtesy to you. I can take no responsibility for it's use and can only provide support for it as I have time and for the parts that I understand (as I didn't write it all). I have fixed a few bugs. [/]

fixed a minor bug with the eventspal not displaying - 5/24/2005
Here's what changed in version 6.5.1:
  • Updated the doeditconfigpal.php which should now work 100% of the time.
  • Updated all scripts to be w3 XHTML 1.0 Compliant.
  • Added Spider Unfriendly pal boxes use them if your server can't handle the spider friendly ones.
  • Added Gardners Swedish Language Files
  • Added a note in the IIP sidebar instructions indicating you needed to upload the sidebar templates into the ubbthreads/templates/default directory.

Here's what changed in version 6.5:
  • Brought the configuration menu into the Admin Control Panel
  • Updated all scripts to work with UBB.Threads version 6.5
  • Also added Sidebar to the IIP Install you can enable it or not


[:"red"]Again, I can only offer limited supoort for all of this, and most likely can't take feature requests. I'm posting what I've done on this as a courtesy for those who needs it. [/]



Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
116683-[6.5]IIP6_5_1.zip  (622 downloads)
IIP FAQ -

Having trouble getting IIP instaled or configured?
Read these FAQ's first. If you question isn't answered, then post it to this thread.


OK - I got it running but it says "Index Closed - we are currently updating this page...". What have I done wrong?
It shows like that until you configure it. Scroll to the very bottom and click on the copyright IIP link (IIP 5.4 by David Lozier ©2003). That'll take you to the configure panel.




I click on the Copyright link and I go to ChattersOnline.
The current IIP 6.5 index.php configuration panel is now in the Admin Control Panel



There is no configpal.php in my zip!
It's now called configpal.inc.php and now resides in your 6.5 UBBT includes directory.




When I edit my config for IIP, my changes don't get saved! OR I get "Warning: fopen blah blah blah Permission Denied"
Try looking at the permissions of the /pals/configpal.php. The file should be 666. If that doesn't work, try 777. You might also need to adjust the permissions of the 'pals' directory to 777 as well.




My Entrance link looks like this: ]http://www.mydomain.com//index.php?Cat=?[/b]
Check both the config panel in IIP and your config file in threads for a trailing slash. Remove it, and you should be all set.




[b]When configuring IIP, can you turn off specific components like the Shot Box and have that part not display?

Yes, you can configure and arrange all the pal boxes just as you wish from the IIP config panel. You can choose to not display any boxes you wish.




The index page doesn't seem to change or show the most current information.
If you are running with the "force public" option, you are caching (storing) some of the information used. This makes it faster and uses less queries. When you are caching information, the information only updates every so often, as configured in your IIP setup.
As an admin, you can click on the little green circular arrow in the menu pal, that will refresh the cache and update all the pal boxes.



My private forums are showing up on my front page!!!
Fear not...your private info is still secret. If you are not using the caching abilities (force public) then all access will be based on the user groups. You are seeing that info because you can see those forums normally. A regular user will see only the forums they are supposed to.



I don't want unregistered users to be able to post in the shoutbox.
You can set the option to members only under the shoutbox section of the configure panel.



How do I edit the custom boxes?
Inside your pals directory, edit the files custombox1pal.php, custombox2pal.php, etc.. As needed.



I edited my custom pal boxes and now I am getting a parse error!
If you are including HTML links inside the PHP files, you must be sure to comment out the quote marks (by placing a \ before them), or else they will break the string.

For example.... To insert a graphic in your pal box.... You would need to change this:
<img src="http://www.mydomain.com/image/picture.jpg" alt="Picture" border="0" />

To this:

<img src="http://www.mydomain.com/image/picture.jpg" alt="Picture" border="0" />

You need to insert the \ before each quote in the HTML you will insert. Don't add the \ to any quotes that are already in there.



Sometimes my News gets "cut off" or stops short.
Try turning off the "strip HTML" options for the newspal settings.



My Random Profile doesn't seem to be that random. It kind of just ends up displaying a few users.
When you setup the Random profile, you have the option to require certain fields. Don't check too many of those boxes. It's best to pick a field or two. If you are too strict and require too many fields to be complete, then there won't be that many profiles to choose from in the random rotation.




I have my Hot Topic cache set to 10 minutes and 5 replies. I have refreshed my cache, but it still will not show up as a hot topic.
If the main thread was posted more than 24 hours it will not show up no matter how many replies it gets. Hot Topic only looks at threads posted in the last 24 hours.




Why do certain user's names show up bold and italic under last seen?
Because they are invisible users. You are seeing them because you are an Admin.



My Shout box has trouble conforming to the width of the column. Sometimes I have to scroll left and right.
Usually this is because a user has entered a very long shout without any spaces and it doesn't wrap, thus stretches things out. Just simply delete the shout by clicking the little "X" next to it, and it should go back to normal.




The news pal doesn't seem to list the posts in the order that they are in my forum.
The display is based on the main post of the thread, not replies. If you have dateslip on in your forums, then they will be ordered by the date of the most recent post. This setting does not affect IIP.




How can I add links to the menu on IIP?
To add stuff to the Menu box, you need to edit /pals/menupal.php.

Look for the last line:
echo "$tableEnd</td></tr>$tbclose<br />";

Just ABOVE it.... you can add stuff like this:
echo "$rowStart<a href="http:www.whatever.com/mypage.html">My Page</a>$rowEnd2";

You can add as many lines like this as you wish, to add them to the menu box.

It is important to ensure that for each " (quote mark) which occurs inside of 'echo " "; has a \ in front of it, so it doesn't break the string.
Hey scroungr,

Everything works great, very smooth!, except three things.

I turned off the polls pal because the "vote" button just shows up as a little grey coloured slice with no text indicating it's a button.

The "Recommend Us!" feature sends a blank e-mail to the recipient.

Also, the shout box looks like it's working fine but when you try to post a shout, you get the following error message (but, if you click "back" and then "refresh" it will display your shout).


Script:
Line#:
SQL Error: Table 'flighta_thread.w3t_ShopSettings' doesn't exist
SQL Error #: 1146
Query: SELECT ReferalPoints,WhatBoardsToUse,ReplyPoints,PostPoints,CreatePollPoints,DoPollPoints,PostPerWordPoints, PostPerLetterPoints, SubtractReplyPoints, SubtractPostPoints,MaxPointsPerThread FROM w3t_ShopSettings


Any ideas? Thanks....

Jason
Thanx Sky YYZ

fizxed the following


[]Sky YYZ said:
Hey scroungr,

Everything works great, very smooth!, except three things.

I turned off the polls pal because the "vote" button just shows up as a little grey coloured slice with no text indicating it's a button.[/]

found missing language strings and replaced same.

[]
The "Recommend Us!" feature sends a blank e-mail to the recipient.
[/]

still looking into it


[]Also, the shout box looks like it's working fine but when you try to post a shout, you get the following error message (but, if you click "back" and then "refresh" it will display your shout).


Script:
Line#:
SQL Error: Table 'flighta_thread.w3t_ShopSettings' doesn't exist
SQL Error #: 1146
Query: SELECT ReferalPoints,WhatBoardsToUse,ReplyPoints,PostPoints,CreatePollPoints,DoPollPoints,PostPerWordPoints, PostPerLetterPoints, SubtractReplyPoints, SubtractPostPoints,MaxPointsPerThread FROM w3t_ShopSettings


Any ideas? Thanks....

Jason [/]

Found the problem still had some code from my shop mod in the shoutaddpal.php and removed same.

upload this new version overwriting all the old EXCEPT for the configpal.inc.php which you may leave as is.
[]
The "Recommend Us!" feature sends a blank e-mail to the recipient. [/]

found error and repaired.
Posted By: Sky YYZ Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 07/11/2004 11:02 PM
Um, thanks... that's great news on all counts!
Posted By: Sky YYZ Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 07/12/2004 12:49 AM
D'oh! I always do that... spoke too soon. Okay, everything works save for recommend us. Actually it works, but you get this message right about the input box: something I did?

Warning: main(../includes/main.inc.php): failed to open stream: No such file or directory in /home/flighta/public_html/ubbthreads/pals/recommenduspal.php on line 25

Warning: main(): Failed opening '../includes/main.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/flighta/public_html/ubbthreads/pals/recommenduspal.php on line 25

Warning: main(./languages/english/genericpal.php): failed to open stream: No such file or directory in /home/flighta/public_html/ubbthreads/pals/recommenduspal.php on line 26

Warning: main(): Failed opening './languages/english/genericpal.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/flighta/public_html/ubbthreads/pals/recommenduspal.php on line 26

Warning: main(../includes/configpal.inc.php): failed to open stream: No such file or directory in /home/flighta/public_html/ubbthreads/pals/recommenduspal.php on line 27

Warning: main(): Failed opening '../includes/configpal.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/flighta/public_html/ubbthreads/pals/recommenduspal.php on line 27
in recommenduspal.php you will see three calls one to main.inc.php, one to configpal.inc.php, and one for the language file instead of using the ./ or ../ try setting them to the full path. some servers balk at the ../ and ./ so in other words make it /home/flighta/public_html/ubbthreads/includes/main.inc.php and /home/flighta/public_html/ubbthreads/includes/configpal.inc.php and /home/flighta/public_html/ubbthreads/pals/languages/ see if that fixes it. i will make it all go to a preordained path when I get back next sunday. I am in NYC on business and working from a laptop at the moment
thanks for the updates on this tho, looks like some great upgrades
Hey scroungr,

Hmmm, that created a whole whack of new errors. I had a look at the code, and with my limited knowledge, managed to try different things by comparing the original to the new recommenduspal.php. Got it to work like a charm and attached it, in case anyone else runs into the same issue after installing IIP6.5 beta.

Thanks a million, keep up the great work!

Jason

Attached File
116711-recommenduspal.txt  (919 downloads)
thanx I will take a look at it sunday I hope to be sober by then. Training in new york is hard work.. ya have to finsih all the b33r.
Posted By: AKD96 Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 07/15/2004 4:27 AM
In your instructions to edit ubbt.inc.php you have the modder appending ubbthreads/ to their front page settings files. This may screw up peoples' boards that don't use the folder name of ubbthreads, so it's best to be left off as it is in the stock.
Oh one last thing, scroungr:

I noticed in the Top 10 Posters box, that with the new IIP it shows *DONOTEDELETE* as a valid poster. The previous IIP didn't, which I preferred. Is there something to this or is it just my site?

Example: http://www.flightattendants.org/index.php

Thanks,

Jason
okay updated it to reflect some changes including the Top 10 Posters box fix and also the recommend us fix and also noted in the instructions to alter the ubbthreads/ directory call to whatever directory they are using so the instructions should be easier to follow.
Thanks! Only thing is that recommend us is not working again. I used the code I attached above and it seems to be working fine again.

actually I did a beyond compare and couldn't find a difference... whats the difference?
Thanks for updating this.
Hey scroungr,

I dunno, I didn't look. Maybe it's something I did wrong, but I used your latest release - unmodified. Maybe it was a caching issue or something on my computer. Who knows... glad it works though!

Jason
Posted By: Ian_W Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 07/29/2004 8:10 PM
Daft question time

What is the difference between this version and https://www.ubbdev.com/forum/showflat.php/Cat/0/Number/113878/an/0/page/0#113878

Apart from one is version 5.5 and this is version 6.5 - both are IIP for UBBT 6.5.

Both are sticky posts, so I am wondering what the difference is.
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 07/30/2004 12:24 AM
this one moves the control panel off the front page and into the admin section of threads.. also rewrote alot of the pals and changed variables and made the configpal.inc.php follow the same way the new threads config.php gets written too.. hence why this is beta..
Posted By: Ian_W Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 07/30/2004 11:38 AM
Okay thanks
Hi,

We installed the 6.5 IIP Beta on our forum and it all seems to be working wonderfully (thanks!!!) except the Sidebar PAL It is saving our settings in the database, and we have doublechecked that we made all the changes to the code, but absolutely no sidebar is appearing. Has anyone else managed to get it to work or can you give us some hints as to where to look for the problem?
The forum is here if you want to take a look: http://www.graphicschatter.com/

Thanks!
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/03/2004 10:17 PM
okay just a few handy things and yes it is working on my site... www.couch-tomatoe.cc anyways please setup an account

name: threadsdev
password: threadsdev

so we may take a look..

secondly it needs to be turned on. you have looked and made sure the settings were set correctly? again with the account I can take a look for you please send me a PM
Posted By: slayer60 Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/03/2004 10:28 PM
What items do you have set to display in the sidebar? It almost looks like you skipped the include in the header(is that still how it is done?) But, I think that you need to double check the instructions, because it seems like you are missing an include somewhere.
Its set to display Random Profile, Shout Box & Online at the moment. I'll go through the instructions again just in case
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/03/2004 10:54 PM
okay think Ifound it.. on the last page of the IIP control panel is the instructions for the IIP sidebar.. I don't see the option in the MyHome for changing the location of it so it appears the changes were never made.. in your IIP directory should be a file called instructions.txt it contains seperate instructions for IIP sidebar.
Thanks for looking at it

Do you mean the option here on where to display the Sidebar "Sidebar Display:":
http://www.graphicschatter.com/editdisplay.php?Cat=0

I see it in my MyHome. Or is there supposed to be something else there too?
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/04/2004 12:57 AM
actually you have the option for the front entrance twice and yeah now I see it let me look into it further.
Big thanks to scroungr for fixing my first problem for me!

I hate to be a pain but I have hit another little snag
When I set the
"Table width - all screens:
Percentage or integer."
to 800 then all the columns in the IIP (including the sidebar) also set themselves to 800 which make the page a little wide as you can see: http://www.graphicschatter.com/

Do I have to use a percentage since I am using the IIP or is this something I can easily fix?

Thanks!
yes use percentages.
I set it to 95% you can change that. I will update the notes to reflect this.
I updated the instructions for the changes needed.
Ok, thanks!
The forum is almost ready to go but I think I have a bit of a bug going on with the Current Threads displayed on the main page. Clicking on them just brings you back to the main IIP page and looking at the urls there seem to be '/' characters instead of the '?', '&' and '=' signs required:

e.g.
Current thread url:
http://www.graphicschatter.com/showflat.php/Cat/0/Number/12
Actual url for topic:
http://www.graphicschatter.com/showflat.php?Cat=0&Number=12&an=0&page=0#12

Sorry for being a pain!
It looks like IIP is setup for spider friendly URL's, and it looks like you don't have that option turned on for your boards.
Thanks for the suggestion
I enabled the 'Enable Spider-friendly URLs?' option in the control panel but the urls still do not work and neither does the 'Main Index' link now.
What exactly is the 'PATH_INFO environmental variable' do you know, and where can I check it is set correctly?
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/05/2004 10:44 PM
yeah youir site is not accepting spider friendly urls if I replace

http://www.graphicschatter.com/showflat.php/Cat/0/Number/7

with

http://www.graphicschatter.com/showflat.php?Cat=0&Number=7

it works fine.

Let me look at the code for it I may have to change it back to now spider friendly.
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/05/2004 10:58 PM
try using this make sure to set the main.inc.php include path correctly and see if this works.. rename the extension to .php not .php.txt..
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/05/2004 10:59 PM
lastly try substituing FILEPATH_INFO for PATH_INFO
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/05/2004 11:00 PM
The Problem

Apache 1.1.1 and earlier implemented the PATH_INFO and SCRIPT_NAME environment variables by looking at the filename, not the URL. While this resulted in the correct values in many cases, when the filesystem path was overloaded to contain path information, it could result in errant behavior. For example, if the following appeared in a config file:

Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph

In this case, user.cgi is the CGI script, the "/ralph" is information to be passed onto the CGI. If this configuration was in place, and a request came for "/cgi-ralph/script/", the code would set PATH_INFO to "/ralph/script", and SCRIPT_NAME to "/cgi-". Obviously, the latter is incorrect. In certain cases, this could even cause the server to crash.
The Solution

Apache 1.2 and later now determine SCRIPT_NAME and PATH_INFO by looking directly at the URL, and determining how much of the URL is client-modifiable, and setting PATH_INFO to it. To use the above example, PATH_INFO would be set to "/script", and SCRIPT_NAME to "/cgi-ralph". This makes sense and results in no server behavior problems. It also permits the script to be guaranteed that "http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO" will always be an accessible URL that points to the current script, something which was not necessarily true with previous versions of Apache.

However, the "/ralph" information from the Alias directive is lost. This is unfortunate, but we feel that using the filesystem to pass along this sort of information is not a recommended method, and a script making use of it "deserves" not to work. Apache 1.2b3 and later, however, do provide a workaround.
Compatibility with Previous Servers

It may be necessary for a script that was designed for earlier versions of Apache or other servers to need the information that the old PATH_INFO variable provided. For this purpose, Apache 1.2 (1.2b3 and later) sets an additional variable, FILEPATH_INFO. This environment variable contains the value that PATH_INFO would have had with Apache 1.1.1.

A script that wishes to work with both Apache 1.2 and earlier versions can simply test for the existence of FILEPATH_INFO, and use it if available. Otherwise, it can use PATH_INFO. For example, in Perl, one might use:

$path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'};

By doing this, a script can work with all servers supporting the CGI/1.1 specification, including all versions of Apache.
Well I tried it here: http://www.graphicschatter.com/test.php

It didn't work as is so I set the following line from $PATH_INFO = $_SERVER['PATH_INFO'];
to
$PATH_INFO = $_SERVER['FILEPATH_INFO'];

(I assume I only had to change this one variable?)

Sadly it still doesn't work
ok so then your server is not allowing the spider friendly URL's. Your server O/S windows? or? I will edit the pals to non spider friendly and upload them.
okay updated the main zip but heres the files you need to change...

Attached File
117975-Unspiderfriendly.zip  (312 downloads)
Thanks scroungr

The Current Threads are perfect now but the news post on the Entrance is still using the SE Friendly link: http://www.graphicschatter.com/showflat.php/Cat/0/Number/7

p.s. We are on a Linux server.
okay try that one.. i updated the links
Worked like a charm - thanks!
Posted By: Ian_W Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/06/2004 9:47 PM
Pootlecat - try setting AcceptPathInfo to 'On' in Apache (hhtpd.conf).

I know that on my server they did not work, until I made this alteration, then all was fine.

Worth a try.
Installed and working great EXCEPT for this problem. I can go into the IIP Config menu and change items and they save to the configpal.inc.php just fine... however, anytime I set anything, it resets all of the page layout options to OFF. The only way I can get anything to display on the front page is to manually edit the configpal.inc.php after I make any changes and re-add them in the order that I like.

As stated, it saves all other options fine, so I know it can write and should not be classified as a permissions issue.

Any ideas?
Hmm will have to take a look at the code again.
Yes I ahve this too, except it writes out the whole file with all fuctions OFF from the start.
It looks to me like the same issue as this:

http://www.ubbcentral.com/boards/showfla...p;fpart=1#38321
Posted By: monkeyra Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/20/2004 11:46 PM
i had this problem when i upgraded my forums to 6.5b6
what i did was to upload the IIP again, some of the files got corrupt somehow, works fine now.
[]monkeyra said:
i had this problem when i upgraded my forums to 6.5b6
what i did was to upload the IIP again, some of the files got corrupt somehow, works fine now. [/]

Your using IIP5.5 were talking about IIP6.5
Posted By: monkeyra Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/21/2004 12:16 AM
IIP5.5 is the version for threads 6.5
Posted By: monkeyra Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/21/2004 12:18 AM
what i meant was IIp 5.5 works under 6.5
my bad
[]monkeyra said:
IIP5.5 is the version for threads 6.5 [/]

But this thread is about IIP6.5 This is the new version with integrated admin panel. But dont upgrade yet as its not working LOL

Nice site BTW car nuts we luv em
Posted By: monkeyra Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/21/2004 12:20 AM
yeah, i've visited yours a few times m8!
you've got a good one as well!
Just rebuilt my test server with Mandrake 10.0 and added threads 6.5b6 and IIP 6.5 and had no issues other than Mandrake spitting out a theme variable ..
Posted By: Pappy Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/26/2004 5:06 PM
the admin panel does not work IE it writes default varianbles for the layout... I am wondering if you are using a setup with register globals turned on or if there are some other settings that have to be applied someplace in the PHP.ini or theserver settings?
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/26/2004 11:24 PM
hmmm yeah I have register globals on.. i will try turning register globals off on my test box and see what happens...
ok your right Pappy it's a register globals thing I will need to rewrite the config utility a little
Posted By: Pappy Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/27/2004 5:55 AM
Thanks for the verification on that scroungr
okay Pappy I am about to update the file. I created one that is Global friendly. Only had to change the index_include section and I tested it. Download the new zip the only change was to doeditconfigpal.php
That did the trick scroungr!!! Thanks for the update!
Posted By: Pappy Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/27/2004 8:25 PM
That one worked for me to... I do have a couple issues it appears for the layout page in that it does not appear to let me change the layout directly but rather I have to turn off an option then turn it back on to repostion content
When I add a shout with a greamlin it adds it as /pals/images/smiley.gif rather than /images/smiley.gif

any ideas where this variable is set as it enter the DB ?
Hmmm now thats totally wierd cause mine adds as ubbthreads/images/smiley.gif and thats because thats how the UBBT is set up.. do me a favor go to your admin control panel find the shout box forum make it so you can get into it and read post there and see what it says that make a reply in that forum and see what happens.. that will bypass IIP completely and rule it out.
Just finally installing this version - just a couple of notes.

The instructions ask that you look for this:

<div class="cpanel-menu-block">
<span class="cpanel-menu-block-one">
<img src="{$config['phpurl']}/images/cp/cp_left_nav_head_top.png" width="125" height="3" alt="" /><span class="cpanel-menu-block-two">{$ubbt_lang['SENDPMS']}</span><img src="{$config['phpurl']}/images/cp/cp_left_nav_head_bottom.png" width="125" height="2" alt="" /></span>
<ul>
<li><a {$current_menu[$ubbt_lang['SENDPMS_SET']]}" href="{$config['phpurl']}/admin/sendgrouppm.php">{$ubbt_lang['SENDPMS_SET']}</a></li>
</ul>
</div>


Which is a mod.
Hmm must update that
yeah should be find

<div class="cpanel-menu-block">
<span class="cpanel-menu-block-one">
<img src="{$config['phpurl']}/images/cp/cp_left_nav_head_top.png" width="125" height="3" alt="" /><span class="cpanel-menu-block-two">{$ubbt_lang['TOOLS']}</span><img src="{$config['phpurl']}/images/cp/cp_left_nav_head_bottom.png" width="125" height="2" alt="" /></span>
<ul>
<li><a {$current_menu[$ubbt_lang['DATABASE']]} href="{$config['phpurl']}/admin/dbinfo.php">{$ubbt_lang['DATABASE']}</a></li>
<li><a {$current_menu[$ubbt_lang['CACHE']]} href="{$config['phpurl']}/admin/cache.php">{$ubbt_lang['CACHE']}</a></li>
</ul>
</div>
Okay fixed and updated ... would figure though just as I wrote this infopop announced this will be the last version of threads..
good practice for the next version, since it will be built on top of threads
Posted By: JoshPet Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/30/2004 10:11 AM
[]scroungr said:
Okay fixed and updated ... would figure though just as I wrote this infopop announced this will be the last version of threads.. [/]

Yeah, it's a sweet admin panel. The good thing (I'm guessing here) is that since they modeled the new Control Panel on Classic's control panel - it would be a big wast if they threw all that out. So maybe some of it will apply. (At least the config editor - I'm sure we'll need new pal boxes for a new database structure - I assume there will be some changes to field names etc..).
[]scroungr said:
Hmmm now thats totally wierd cause mine adds as ubbthreads/images/smiley.gif and thats because thats how the UBBT is set up.. do me a favor go to your admin control panel find the shout box forum make it so you can get into it and read post there and see what it says that make a reply in that forum and see what happens.. that will bypass IIP completely and rule it out. [/]

Tried that and it dosnt markup at all - UBB code is disabled in that forum.
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 08/30/2004 11:10 PM
well then thats the issue.. you can't make smilies or other graemlins if ubbcode is turned off so it will be sent as straight html
Its allways been like that, the original instructions say that no ubb ot html too.

However I have just found the issue, it would seem that the images path variable has changed somehow in the way it was read, it was set to just 'images' and now its set to c:/path/images and everything works

I checked my old settings and they were the same, had a few wiered things happen since I turned globals on.
hey guys I am having trouble with two pal boxes Last Seen isnt showing any info and Past Threads isn't displaying at all and its well after the News Pal. Sorry if I missed the answer to this somewhere in this thread as I have been up about 18 hours and I am a little bleary eyed
*edit+ actually I cant get the number for the past threads box to remain when I update the config.

and what do you mean by this?
[] would figure though just as I wrote this infopop announced this will be the last version of threads.[/]
Hmm will have to check the config again you can manually edit the configpal.inc.php in liu until then.. and I guess you missed the announcement.. Infopop is scrapping classic and threads and coming out with a in between..
you forgot this line in the configpal.inc.php

$index_include[3]['pastthreads'] = "0";

I had to manually add in the number 7 to get it to display and changing it via the control panel ..well doesn't.
I only added in that one line though,do I need to add in more?
ie:
$index_include[1]['pastthreads'] ="0";
$index_include[2]['pastthreads'] = "0";
etc..?

and I just read the post about the scrapping of Threads and I will save those comments for another thread
Hmm will have to check that shouldn't have to.
Posted By: ChAoS_dup1 Birthdays showing for next year - 09/02/2004 3:38 AM
Is there a setting to limit upcoming birthdays showing for the current calender month only? I have a users birthday in March of 2005 allready on the list and I can foresee this becoming huge problem.
Posted By: ChAoS_dup1 Pals not showing - 09/02/2004 5:27 AM
When I try to set them in the control panel it wont remember the settings for displaying the Calender and also the Past Threads PAL boxes.

Thanks for all your help by the way
Posted By: scroungr Re: Pals not showing - 09/02/2004 6:54 PM
[:"red"] UPDATED AND NEW ZIP [/]
Okay repaired issues with calendar and past threads not saving checked all and updated new zip. Also checked into last seen and as long as instructions are followed it works fine. Also past threads verified as working.
Posted By: ChAoS_dup1 Re: Pals not showing - 09/03/2004 1:42 AM
[]scroungr said:
[:"red"] UPDATED AND NEW ZIP [/]
O Also checked into last seen and as long as instructions are followed it works fine. Also past threads verified as working. [/]
ouch

I may have bitten off a bit too much in the last few days-Upgrading totally from 6.3 to the Beta and then upgrading IIP all on Vicodin and Soma since I am off work due to a back injury. Its amazing I actually was successful

Thanks for the update-as for the Last Seen Pal it was working in 5.3 IIP so when I ran the Modify MY Database in 6.5 it said it there were no modifications needed. Any idea what I could have missed?
Posted By: scroungr Re: Pals not showing - 09/03/2004 2:17 AM
on the user mgt tab there is a place called

Use enhanced who's online tracking?
Before using this option you must follow THESE setup instructions or this WILL NOT WORK CORRECTLY!

is that on or off? and there is also a clickable link there did you do what the instructions said? I have changed most pals so you may need to do some stuff...
Posted By: ChAoS_dup1 Re: Pals not showing - 09/03/2004 3:19 AM
Upon further investigation if I turn Enhanced Tracking Mode off then the box displays the info.

Clicking the link to "these" instructions
givee me only this
Code
   You need to run the "Modify My Database" link in initial setup before using this step.
and nothing further

Clicking on modify my database brings up this
Code
  IIP 6.5 modifications already exists. Nothing more to be done here...


and for some odd reason the calender still wont display on the Entrance page but is showing fine in the Sidebar
Thankyou Scroungr
Posted By: TrAvELAr Re: Pals not showing - 09/10/2004 7:57 PM
I'm seeing the issue of the calendar on the main page as well. ANother issue that I am seeing is that if I have the calendar turned on in the sidebar and I click the calendar link I get the following:

Fatal error: Cannot redeclare make_month() (previously declared in /home/eburgess/public_html/ethalon/calendar.php:154) in /home/eburgess/public_html/ethalon/pals/calendarpal.php on line 113
Posted By: scroungr Re: Pals not showing - 09/11/2004 12:23 AM
well then add a @ in front of the require statement for makemonth since yea its a function that is called by both threads and IIP
OHhh i love updates.. but ive got a problem.

I've installed it and configured it up, but when you goto the front page you get

Sorry But Front Entrance is currently down for maintenance.

Even tho its configured.. what have I done wrong ?

ta!
Posted By: MattUK Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/23/2004 10:35 PM
Phew. no one replied.. coz i feel silly.. i just noticed lots of other menus... ignore me please
Posted By: Ian_W Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/24/2004 11:58 AM
A couple of problems (rechecked my coding - can't spot any errors)

Running this with 6.5 gold

1) I can't get into 'My Home' after a few seconds trying the page reverts back to the entrance page - I can manually go into the individual - can't see why IIP has affected this - but it certainly worked earlier

2) The shoutbox does not seem to have a template associated with it

3) In the events pal - the date needs to be set to the users default - at the moment it is hard-coded to m/d/y - which is wrong for us

This is a clean install of 6.5 - no other mods installed.
Have you tried tossing your cookies? Those sound like cookie issues. Well, on anyway, and probally 2.
Posted By: Ian_W Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/26/2004 10:52 AM
Yep tried that - will probably re-upload 6.5 again, in case a file has become corrupted.
Posted By: Ian_W Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/26/2004 10:32 PM
Okay - installed fresh copy of 6.5.

Installed the mod, up until logging in and running the initial set-up, and making the index page live.

Nothing touched as far as the sidebar is concerned.

The shoutbox still does not recognise the stylesheet - have tried setting user to default, and a specific stylesheet, and even removing and recreating the shoutbox - but still no joy.

Any thoughts from anyone?

(BTW - guests also get the shoutbox without a stylesheet - http://www.fansfocus.com )
Posted By: BryanDS Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/26/2004 11:17 PM
Anyone know why I may be getting this?

Line: 29
Char: 1
Error: Object Expected
Code: 0

It pops up on the bottom of the entrance page when I try to use the shoutbox
Ian - put a full URL in your threads config to the sytlesheet - a relative URL (/stylesheets/whatever.css) won't work, because the shout box is inside the /pals directory already. You need a full URL in your config file http://yoursite.com etc....
I will take a look at it now and will check with the new version.
running fine on my site www.couch-tomatoe.cc

the shoutbox never had a template associated with it. it is developed through code in shoutdisplaypal.php and as long as you have a full url to the stylesheet it should work.

the eventspal.php is hardcoded to m/d/y but you can change it if ya look at the code.

I have no idea why it reverts back to the entrance. it shouldn't and doesn't on my site.
Posted By: Ian_W Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/27/2004 9:14 AM
Thanks Josh - forgot about that - by default I think threads is setup to be just /stylesheets - updated the config & all is well.

scroungr - Thanks - I had already altered the coding to reflect the change in date - but it would be nice for this to reflect the users own choice - so if anyone from the US views the site, they will have the events in their date format.

Not sure about the reverting back to the entrance - that may have been a typo on my part in the next section of coding (frontpage options or sidebar), which I am about to redo
Posted By: Ian_W Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/27/2004 12:02 PM
Okay - re did the bit for setting the entrance. What I have found is that if I select 'Entrance' as my choice under changedisplay then hitting 'my home' will take me to the entrance rather than my home. If I change my choice back to say 'mi' or 'cp' rather than 'en' then 'My Home' works fine again. The only way to actually change it back is by database diving - as if you go direct to changedisplay.php I get 'It does not appear that this was submitted from the proper form. Please use your back button to return to the previous page.'

Double checked to see if I have made a typo, and I don't think I have.

Having a fiddle with the code, to see if I can detect why, it is doing this - but no luck so far.
Posted By: Zarzal Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/27/2004 12:29 PM
Problem:

the top 5 posters box doesn't count correct. I have 5615 postings in the board and the box show only 32.

I do an upgrade from ubbt6.4.4 with the old IPP to 6.5 with this new IPP.
okay I will change that code cause it sounds like a god way to do it IAN in the eventspal.php. About the changing back to the entrance I will have to look again. About the top posters I will look at the query but I didn't do anything to top posters except change the languagen strings
Posted By: Zarzal Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/27/2004 3:37 PM
ah, I found something. The Topposter was a misunderstanding, but something is wrong also.

I set the value for topposters to 5 days, so only postings in the last 5 days where counted. Now I set it to 0 and get much more, but not the right value. I set the day value to 0 and get for my acount 2747 posts on the IPP, but in the messageboard I got a count of 5616

/edit: Damm... I should read all settings before posting I have excluded boards from counts. I will do a test with all board in IPP enabled. Enabling some of them increase the counter... my fault.
[]Ian_W said:
Okay - re did the bit for setting the entrance. What I have found is that if I select 'Entrance' as my choice under changedisplay then hitting 'my home' will take me to the entrance rather than my home. If I change my choice back to say 'mi' or 'cp' rather than 'en' then 'My Home' works fine again. The only way to actually change it back is by database diving - as if you go direct to changedisplay.php I get 'It does not appear that this was submitted from the proper form. Please use your back button to return to the previous page.'

Double checked to see if I have made a typo, and I don't think I have.

Having a fiddle with the code, to see if I can detect why, it is doing this - but no luck so far. [/]

Hmm can't get it to do this.. what it does if I select Entrance under changebasic and click submit sends me to the entrance.. if I select main index and click submit it sends me to the main index.. if I select My Home it sends me to My Home like its suppose to.. I can change it to whatever of the choices I want..
Posted By: Ian_W Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 09/27/2004 7:16 PM
Sure - but if you change your selection to Entrance under changebasic - what do you get if you then click on My Home? When I do that I go to the Entrance Page rather than My Home - I can still get to the Control Panel though.
I go to My Home you mean the link at the top right? What does the link say when ya mouse over it?

should say http://yourdomain.com/ubbthreads/myhome.php?Cat=0
made a few changes upload new file.. eventspal now pulls from users default
Hmm I think I see the difference.. in your ubbt_registerednav.tmpl and ubbt_unregisterednav.tmpl

what does your my home point to?

mine points to


<a href = "$phpurl/myhome.php?Cat=$Cat" $target>{$ubbt_lang['CONTROL_PANEL']}</a>

I think thats where the difference is..

yours probably points to

<a href= "$phpurl/login.php?Cat=$Cat&myhome=1">{$ubbt_lang['MY_HOME']}</a>


which of course would make a difference..
so you will need to play with this logic here in ubbt.inc.php

Code
 <br />		if ($startpage != "mi" || $myhome) { <br />			$main = "ubbthreads/myhome.php"; <br />		} <br /> <br />		if ($from == "cp") { <br />			$main = "ubbthreads/admin/login.php"; <br />		} <br /> <br />		if ($startpage == "en") { <br />			$main = "index.php"; <br />		} <br />


to get it right.. or do what I did and hardcade the MyHome
[]scroungr said:
Hmm I think I see the difference.. in your ubbt_registerednav.tmpl and ubbt_unregisterednav.tmpl

what does your my home point to?

mine points to


<a href = "$phpurl/myhome.php?Cat=$Cat" $target>{$ubbt_lang['CONTROL_PANEL']}</a>

I think thats where the difference is..

yours probably points to

<a href= "$phpurl/login.php?Cat=$Cat&myhome=1">{$ubbt_lang['MY_HOME']}</a>


which of course would make a difference.. [/]

The second, which is the default - I will have a fiddle, to see if I can come up with a solution
There seems to be a missing { in lastseenpal.php:

##find:
$myString .= "<tr><td align="right">...<a href="javascript: document.LastSeenBox.submit()"><em><strong>{$pal_language['NEXT']} $configpal[lastonDisplayNum]}</strong></em></a></td></tr>";
$myString2 .= "<tr><td align="right">...<a href="javascript: document.LastSeenBox.submit()"><em><strong>{$pal_language['NEXT']} $configpal[lastonDisplayNum]}</strong></em></a></td></tr>";

##replace with:
$myString .= "<tr><td align="right">...<a href="javascript: document.LastSeenBox.submit()"><em><strong>{$pal_language['NEXT']} {$configpal[lastonDisplayNum]}</strong></em></a></td></tr>";
$myString2 .= "<tr><td align="right">...<a href="javascript: document.LastSeenBox.submit()"><em><strong>{$pal_language['NEXT']} {$configpal[lastonDisplayNum]}</strong></em></a></td></tr>";
I am sure this has been asked before, but for example I have my forums installed in /forums/

Can I install IIP in the root directory instead of in the forums directory?

Just curious!
Yes you can. There should be instructions for that. It's not really much of a change.
Yea, that was no big deal at all. Just changed the path and am up and running on the test site.

Do have a question. Anyone know why I am getting a default NULL event on my IIP eventspal ?

[]
Upcoming Events
12/31/69
·
10/31/04
·Halloween

View Calendar [/]
probably cause you have no events? Hmm not sure how did you enter in Halloween?
Clicked on Calender, clicked Add Event - there it was.

I am going to create an event off of a post, see if that clears the null value.
Didn't clear it. I tried different events settings, cannot clear the issue.

Going to add a few more events and see if it atrophies off as more events are added.
OK, more on this.

This is a fresh install of UBB.Threads 6.5 and this version of IIP. Brand spanking new setup, so little to no data to show either.

I have Events Mgmt showing 5 events, and I have added five public events (Halloween, Thanksgiving, Christmas, New Years Eve, and New Years Day).

Out of the five, the first four show up...the fifth has yet to show up even though I have 5 events to display.

The 12/31/69 is still present as a NULL event, and I have checked my events table, nothing exists.

Not sure what this is.
Minor Bug:

IIP control panel, index file options, at the bottom:

Should we cache the Short Status information to decrease page generation times?
If so, how many minutes should lapse before updating? (0 disables)

if you enter a numeric value in the box and save it the value is disapered next time enter this page.
okay will check when I get some time
Scroungr I think I figured out the eventspal issue.

I "just" moved one of my sites over from a simplistic phpbb site to UBB.Threads, and in the process it set all my users (all 30 or so of em) to a U_Birthday of "0" (the default).

If I select "Show birthdays" in IIP control panel to NOT AT ALL - the 12/31/69 goes away (ie it is not reading the zero as the unix start date).

If I show them "MIXED IN", it gives me the 12/31/69 at all times on the eventspal output.

If I show them "SEPARATELY", it errors out with the following:
[]Warning: Invalid argument supplied for foreach() in /home/bpark/public_html/forum/pals/eventspal.php on line 49

Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /home/bpark/public_html/forum/pals/eventspal.php(58) : eval()'d code on line 1

Warning: array_slice(): The first argument should be an array in /home/bpark/public_html/forum/pals/eventspal.php on line 786[/]

So that settles that!
cool.. yeah never counted on a 0 birthday
Sorry one other problem being reportd by some of my users.

Current Threads

I have spider friendly urls ticked.

People are getting an error, when they click on a current thread instead of http://www.fansfocus.com/forum/showflat.php/Cat/0/Number/354201 they get http://www.fansfocus.com/forum/showflat.php/Cat//Number/354201 - i.e. the 0 is missing.

I have had the problem once or twice but now can't replicate - but others are still getting it.

Will try and do further digging to see why it ocurs some times and not others
thanx Ian
Posted By: Cro Re: Finished-[6.5] Integrated Index Page (IIP) 6.5 - 10/08/2004 12:08 AM
I have a question. In the IIP sidebar options, i select right or left, and nothing changes, i dont see any sidebar on my index page.....? Also since ive upgraded to 6.5, my top poster count messed up.....Like one user had 95 posts, and now it shows up as if he has 80, the same for other users, their post count dropped a little. Any suggestions? thanks!!
yes look over the instructions again There are special IIP sidebar instructions make sure ya follow them to the letter. Also mkake sure you select right or left
hey, i went over all the instructions, and replaced the lines, and now im getting this error:

Script: /homepages/4/d95285407/htdocs/ubbthreads/ubbt.inc.php
Line#: 1616
SQL Error: Unknown column 'U_SideBar' in 'field list'
SQL Error #: 1054
Query: SELECT U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn,U_OC_Userid, U_SideBar FROM w3t_Users WHERE U_Number = '11'

what i did is, i created a table in my w3t_Users called 'U_SideBar' and i set 11 as the attributes/values, and now there is no error, but again, its not working, there is no right or left sidebar when i select it in my config.......
Ummm w3t_Users is a table and U_Sidebar is a field and the Field should be

`U_SideBar` INT( 1 ) DEFAULT '0' NOT NULL

and should have the values of 0, 1, or 2
Posted By: Cro Re: Finished-[6.5] Integrated Index Page (IIP) 6.5 - 10/08/2004 11:13 AM
hmm yes, sry i got the field now.....and yes now im getting the side bar, but only in the forums listings not on the index page, and only if ur a guest....hmmmmm
the sidebar will only appear on the forum index not on the IIP entrance. Also run this sql query

UPDATE w3t_Users SET U_Sidebar = '1';

this will update all users.. then they will manually have to go into their own myhome display preferences and change Sidebar Display: to right, left, or disabled....
[]Ian_W said:
Sorry one other problem being reportd by some of my users.

Current Threads

I have spider friendly urls ticked.

People are getting an error, when they click on a current thread instead of http://www.fansfocus.com/forum/showflat.php/Cat/0/Number/354201 they get http://www.fansfocus.com/forum/showflat.php/Cat//Number/354201 - i.e. the 0 is missing.

I have had the problem once or twice but now can't replicate - but others are still getting it.

Will try and do further digging to see why it ocurs some times and not others [/]

Okay - the problem is generated with the spider friendly script if there is no Cat number in the URL of the page containing the recent threads pal.

In the unfriendly version of showflat.php?Cat=$Cat&Number=$palNumber it works fine if Cat does not exist.

This happens more often on non-threads pages where the URL is just .php, but still uses the threads layout and sidebar.

http://www.fansfocus.com/forum/member/conferencetables.php?Cat=0 works
http://www.fansfocus.com/forum/member/conferencetables.php fails

(having said all that forum/index.php works without the Cat number )
Hmmmm well I guess we can try and put in a IF(!$_GET[Cat]){$Cat = '0';} type function?
thanks scroungr! the i ran the SQL thing u said, and now it works! thanks.....
hello again. simple question i guess. How can i make all the pal boxes come closer together and not be so far appart? Where can i set that? thanks alot guys....
thats your padding options...under control panel->display options-> primary-> cell padding
Posted By: Cro Re: Finished-[6.5] Integrated Index Page (IIP) 6.5 - 10/09/2004 11:15 AM
hmm thanks, but it doesnt seem to come close enough how i want it. the closest i can get it is like for example: | |
so like those two lines. but id like to get them as close as like : || i cant seem to get them that close, no matter what number i put for padding.... any suggestions? thanks scroungr
put "0" in for padding
hmmm yes, i put that....and i do get them closer with the sidebar and the boards, but the index page (portal) and all the pals in it, are not as close.... is this even possible, to get them right next to eachother, it must be......thanks
I don't think its possible to get any closer than they are now.. I would suggest using JC's template if you are concerned about real estate...

https://www.ubbdev.com/forum/showflat.php/Cat/0/Number/120524/an/0/page/0#120524

the closest you will get is by changing these lines

Code
<br />	$spacer = "<strong>&middot;</strong>";<br />	$fullwidthStart = "<table border=\"0\" width=\"{$theme['tablewidth']}\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr><td align=\"left\" valign=\"top\"><script language=\"javascript\" type=\"text/javascript\" src=\"{$config['phpurl']}/pals/java/javapal.php\"></script>";<br />	$leftcolstart = "<table border=\"0\" width=\"{$theme['tablewidth']}\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr><td width=\"{$configpal['leftcolumn']}\" align=\"left\" valign=\"top\"><script language=\"javascript\" type=\"text/javascript\" src=\"{$config['phpurl']}/pals/java/javapal.php\"></script>";<br />	$midcolstart = "</td><td><table width=\"15\"><tr><td></td></tr></table></td><td width=\"{$configpal['centercolumn']}\" align=\"left\" valign=\"top\">";<br />	$rightcolstart = "</td><td><table width=\"15\"><tr><td></td></tr></table></td><td width=\"{$configpal['rightcolumn']}\" align=\"left\" valign=\"top\">";<br />	$widerightcolstart = "</td><td><table width=\"15\"><tr><td></td></tr></table></td><td width=\"{$configpal['widerightcolumn']}\" align=\"left\" valign=\"top\">";<br />	$endcolumns = "</td></tr></table>";<br />


to these


Code
<br />	$spacer = "<strong>&middot;</strong>";<br />	$fullwidthStart = "<table border=\"0\" width=\"{$theme['tablewidth']}\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr><td align=\"left\" valign=\"top\"><script language=\"javascript\" type=\"text/javascript\" src=\"{$config['phpurl']}/pals/java/javapal.php\"></script>";<br />	$leftcolstart = "<table border=\"0\" width=\"{$theme['tablewidth']}\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr><td width=\"{$configpal['leftcolumn']}\" align=\"left\" valign=\"top\"><script language=\"javascript\" type=\"text/javascript\" src=\"{$config['phpurl']}/pals/java/javapal.php\"></script>";<br />	$midcolstart = "</td><td width=\"{$configpal['centercolumn']}\" align=\"left\" valign=\"top\">";<br />	$rightcolstart = "</td><td width=\"{$configpal['rightcolumn']}\" align=\"left\" valign=\"top\">";<br />	$widerightcolstart = "</td><td><table width=\"0\"><tr><td></td></tr></table></td><td width=\"{$configpal['widerightcolumn']}\" align=\"left\" valign=\"top\">";<br />	$endcolumns = "</td></tr></table>";<br />
Posted By: Cro Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 10/10/2004 5:34 AM
im sorry, where would i change that code? in what file? thanks
index.php
Posted By: Cro Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 10/10/2004 8:39 AM
its ok i got it, thanks, that made it as close as i wanted. thanks
Just looking through error logs and see several of these:

Script: /home/socaps/public_html/ubbthreads/pals/topthreadspal.php - Line: 62
SELECT B_Number,B_Posted,B_Last_Post,B_Subject,B_Main,B_Replies,B_Counter,B_Board
FROM w3t_Posts
WHERE B_Number = B_Main
AND B_Last_Post > '1096511742'
AND B_Approved = 'yes'

AND (B_Board = 'UER' OR B_Board = 'PER' OR B_Board = 'psd' OR B_Board = 'oldpsd' OR B_Board = 'fd' OR B_Board = '69fd' OR B_Board = 'order' OR B_Board = 'racing' OR B_Board = 'anything' OR B_Board = '4sale' OR B_Board = 'chat' OR B_Board = 'ua' OR B_Board = '990373psd' OR B_Board = 'TH' OR B_Board = 'polls' OR B_Board = 'jokes' OR B_Board = 'special')
ORDER BY B_Replies DESC
LIMIT 5
Just a stupid question here with the instructions as I don't know that much about the coding here.

In this section of the instructions it says this

## in /ubbthreads/ubbt.inc.php include the configpal.php:
##

## FIND

require_once("$configdir/config.inc.php");
require_once("$thispath/mysql.inc.php");
require_once("$thispath/includes/theme.inc.php");

## ADD BELOW IT

@require_once("$thispath/includes/configpal.inc.php");

My question is the @ suppose to be in front of the require as it isn't on any of the other ones. If it is suppose to be there can you tell me why as I am trying to learn this stuff.

Thank you
the @ is there in case there are any problems with the configpal.inc.php it won't display an error..
[]BWilliams said:
Just looking through error logs and see several of these:

Script: /home/socaps/public_html/ubbthreads/pals/topthreadspal.php - Line: 62
SELECT B_Number,B_Posted,B_Last_Post,B_Subject,B_Main,B_Replies,B_Counter,B_Board
FROM w3t_Posts
WHERE B_Number = B_Main
AND B_Last_Post > '1096511742'
AND B_Approved = 'yes'

AND (B_Board = 'UER' OR B_Board = 'PER' OR B_Board = 'psd' OR B_Board = 'oldpsd' OR B_Board = 'fd' OR B_Board = '69fd' OR B_Board = 'order' OR B_Board = 'racing' OR B_Board = 'anything' OR B_Board = '4sale' OR B_Board = 'chat' OR B_Board = 'ua' OR B_Board = '990373psd' OR B_Board = 'TH' OR B_Board = 'polls' OR B_Board = 'jokes' OR B_Board = 'special')
ORDER BY B_Replies DESC
LIMIT 5 [/]

Hmm thats kinda weird I will have to look into that
Someone else will want to test this, but the newspal seems to be stripping everything between HTML tags, whether you originally post using Markup or HTML.

I have a post similar to the following:
[]Latest Happenings going on.

Topic here

Topic stuff, blah blah. Topic stuff, blah blah. Topic stuff, blah blah. Topic stuff, blah blah. Topic stuff, blah blah. Topic stuff, blah blah. Topic stuff, blah blah. Topic stuff, blah blah.

More interesting stuff here

More interesting stuff occurring over here, come and read it. More interesting stuff occurring over here, come and read it. More interesting stuff occurring over here, come and read it.

And that is all.[/]

Now instead of that appearing on the Entrance page as properly formatted, it is appearing like below. Note the space where the first BOLD tag should have started...that is where all the missing text should be. It is not any accidental HTML (I checked the Source, that middle part of the post is stripped out).
[]Latest Happenings going on.



More interesting stuff occurring over here, come and read it. More interesting stuff occurring over here, come and read it. More interesting stuff occurring over here, come and read it.

And that is all.[/]

Have not looked at newspal, will open it tonight and tinker around.
FYI also, this happens regardless of whether you have your news text amount set to FULL, a number, or NONE.

Also, it is only counting the bytes that display (ie the wrong amount when you have code, or at least bolded text, but when you click on XX Bytes More, it DOES properly display the entire post.
well I didn't change anything but language strings in newspal so I am assuming this is how it has always worked...
Oh not saying you did, just something I found purely by accident.

It might only be the BOLD markup tag, I have not tried others yet.
Can anyone else who has IIP 6.5 loaded test this out and let me know if this is unique to me?

Just enter a news story, put something in bold (or other markup, but note what you used), and see if it displays properly on the Entrance page.

I tested this on a 6.4.4 setup of Forums/IIP, and the news works properly, so scroungr did not change the newspal, but something is goofing it up.
actually would be better if anyone using an OLDER version of IIP checks it out to see if it does the same thing
Well I thought the same thing and did just that (copied and pasted the exact post into an older IIP version).

Using IIP 5.4.4 the post was proper. Using IIP 6.5, it was as I listed above. So there is a glitch in there somewhere between the two that messes with the HTML input into a post by Markup Tags.

So far I have tested the COLOR tag, the BOLD tag, and the ITALICS tag, all of them cause this issue for the latest IIP version.

Trying to figure out why as well.

And scroungr, if I have not said it before, I LOVE having IIP updated.
Medar tell me what the Strip HTML boxes are set to under the IIP News Control Panel section?
sumofa...

That's probably it. I completely missed a setting along the way.

Yes, another fine ID-10-T error!
OK, yea, found that, said NO, it works fine.

Glad YOU knew about those, I never would have checked that, LOL! All these new IIP toys are making me go back and hit every page again to make sure I didn't miss any other cool new settings.

Thanks scroungr.
np glad it worked
While reviewing the languages files I notice several repeat of one and the same string. The best example in genericpal.php is: $pal_language['HERE'] = "HERE";
[]MattUK said:
OHhh i love updates.. but ive got a problem.

I've installed it and configured it up, but when you goto the front page you get

Sorry But Front Entrance is currently down for maintenance.

Even tho its configured.. what have I done wrong ?

ta! [/]

I'm getting this problem too, but I don't know how to fix it--help! Thanks.
Make sure that under 'Initial Setip' tab,

Is IIP Entrance Opened?
Set to Yes for normal operation

is set to Yes
[]Ian_W said:
Make sure that under 'Initial Setip' tab,

Is IIP Entrance Opened?
Set to Yes for normal operation

is set to Yes [/]

Perhaps I'm just stupid, but I truly cannot find where under initial setup there's any place to make IIP opened or closed. Where exactly should I look. Thanks in advance for you patients.
at the bottom of the IIP initial setup tab it says


Is IIP Entrance Opened?
Set to Yes for normal operation.
Here's what I'm doing:
(1) Loging in as Admin.
(2) Going to Control Panel.
(3) From Control Panel going to "IIP Config".
(4) From the "IIP Configure Panel" the pages starts with "Initial Setup". No where on this page is there an option asking "Is IIP Entrance Opened?" How could this be?
at the bottom of the page you should see

[]
A board needs to be created to store shouts in. Use the keyword shoutboxpal when creating the board and make sure ALL GROUPS HAVE NO ACCESS to the board. All other board information will be disregarded by the shout box. Information placed in the form of posts to this board should only be done using the shout box. Allowing access to the boards from the forums is highly discouraged. Create Board Now




If using the IIP Sidebar use these instructions.

After modifying the database with this.




Is IIP Entrance Opened?
Set to Yes for normal operation.
[/]
Here's what I see:

the plot thickens you can't be using IIP 6.5 if you see that and definitly not the version contained here in.. how did you get to the IIP control panel? Did you click on a link at the bottom of the IIP entrance? What version does it say?
Version said 5.5 (???); wierd. I reinstalled the 6.5 version again, and all is well now. One final issue is that, on the entrance page, my logo/header does not show up; the path to the image not correct. When clicking the mainpage link, the logo is displayed just fine. Where can I change the path to graphics on the entrance page?

Thanks so much!!
what path is it displaying? what path does it require? IIP uses the header call from Threads so there isn't anything in IIP to change..
From the "Entrance" the following is displayed:
"http://www.mysite.com/images/forumimages/mysite_com.gif"

Should be displaying this:
"http://www.mysite.com/ubbthreads/images/forumimages/mysite_com.gif"

Any ideas?
Thanks!
Thanks a million to scroungr for his incredible patients and know-how; got me back on track likety split!
np send me a PM anytime
[]Ian_W said:
[]Ian_W said:
Sorry one other problem being reportd by some of my users.

Current Threads

I have spider friendly urls ticked.

People are getting an error, when they click on a current thread instead of http://www.fansfocus.com/forum/showflat.php/Cat/0/Number/354201 they get http://www.fansfocus.com/forum/showflat.php/Cat//Number/354201 - i.e. the 0 is missing.

I have had the problem once or twice but now can't replicate - but others are still getting it.

Will try and do further digging to see why it ocurs some times and not others [/]

Okay - the problem is generated with the spider friendly script if there is no Cat number in the URL of the page containing the recent threads pal.

In the unfriendly version of showflat.php?Cat=$Cat&Number=$palNumber it works fine if Cat does not exist.

This happens more often on non-threads pages where the URL is just .php, but still uses the threads layout and sidebar.

http://www.fansfocus.com/forum/member/conferencetables.php?Cat=0 works
http://www.fansfocus.com/forum/member/conferencetables.php fails

(having said all that forum/index.php works without the Cat number ) [/]

Reaslised why so many people were complaining If the sidebar is on the left they work (in all situation except as above), if the bar is on the right then they all fail irrespective of the page. I can't spot an errors with the code - so going to rescript mine with the alternative version in the meantime.
Hmmm just tried current threads and hot topics on my site on the right and on the left in the index and in the sidebar and there isn't any failure? what o/s are you using linux or windows? need more info to troubleshoot this issue cause it works on my site no problem...
Just installed IIP on my 6.5 version... love it! One thing I can't seem to figure is that when I move 'Current Threads' to the center section, all I get is the bullets and no subject lines... it's a stumper for me!
www.vintage-mustang.com - click on 'new vintage mustang forums'

You can login as username: fervor
pass: fervor123

Then go to http://forums.vintage-mustang.com/forums/

I don't have it published to the users yet, just the mods...

-bob
[]scroungr said:
Hmmm just tried current threads and hot topics on my site on the right and on the left in the index and in the sidebar and there isn't any failure? what o/s are you using linux or windows? need more info to troubleshoot this issue cause it works on my site no problem... [/]

Weird I am running IE 6.0 on XP (SP2) - I went in as a user who said it always failed for him, and noticed he had his on the right - when I clicked on any link they were all missing the 0 in /0/

I logged out of his - tried mine on the left first (worked no problem on the threads pages) - moved mine to the right and it failed straight away.

Puzzled as to why mine is loosing the 0 from /0/ in vasrious circumstances.

Will do some more digging if it is working on yours.

Ian
works on mine with or without the 0
[]fervor said:
Just installed IIP on my 6.5 version... love it! One thing I can't seem to figure is that when I move 'Current Threads' to the center section, all I get is the bullets and no subject lines... it's a stumper for me!
www.vintage-mustang.com - click on 'new vintage mustang forums'

You can login as username: fervor
pass: fervor123

Then go to http://forums.vintage-mustang.com/forums/

I don't have it published to the users yet, just the mods...

-bob [/]

Current Threads
Can only be placed in Right or Left Columns.

been like that for as long as I can remember. Not sure why it was originally set like that but may be because of the size of the pal.
Thanks... didn't see that limitation... sorry for the interruption

-bob
I just noticed that there is no topthreads.pal in the UnSpiderFriendly Folder. Has it gone missing?

That is the only Pal box on my site that isnt working at the moment. Also what are the reasons/causes that Spider Friendly Links would not work on my site?

And one more ?
What is the SQL command for defaulting the IIP Sidebar Dislay to right side for all users?
in your topthreads

Find

$myString .= "<tr><td align="left" valign="top">$spacer</td><td align="left" valign="top"><a href="{$config['phpurl']}/showflat.php/Cat/$Cat/Number/$palNumber">$palSubject</a></td></tr>";


change to

$myString .= "<tr><td align="left" valign="top">$spacer</td><td align="left" valign="top"><a href="{$config['phpurl']}/showflat.php?Cat=$Cat&Number=$palNumber">$palSubject</a></td></tr>";



to set it to rightside for all current users run the following

UPDATE w3t_Users SET U_SideBar = '2' that will set em all to rightside..

UPDATE w3t_Users SET U_SideBar = '1' will set to left..

UPDATE w3t_Users SET U_SideBar = '0' will disable it..
In the instructions about 3/4 the way down we are instructewd to edit ubbt.inc.php and to change 'ubbthreads/' to whatever our directory is. Could that be set in the directions to $config['phpurl']}/ or whatever threads usually uses as the url to the threads install?
yeah will look into that.. will be pushing 6.5.1 on monday with the validation changes you asked for
yeah I guess ya could change it.. the function is already globalizing the $config so we could change it I tried it and it seems to work...
cool. one less thing to do.
Okay updated the scripts to be w3 XHTML 1.0 Compliant and changed the way the ubbt.inc.php startpage part is called. Also triple checked the config writing and made sure it all works in environments with Globals disabled..
Thanks for the updates
Thanks scroungr - good stuff.
My IIP index page is stating that I cannot view the results of a poll until its over even though I can view it in the actual thread itself. I am pretty sure I didnt have that box checked.
its working opposite of what it says will fix hold tight
OK Updated it had the values reversed in the editconfigpal.php and .tmpl
I noticed that this is now 6.5.1
Do I upload everything but my custom pal boxes and configpal.inc.php?
I would because its now 100% XTHML certified.. I would upload all but those.. the custompal boxes...As long as you do NOT overwrite those there should be no issues... either that ot use Beyond Compare to compare them.. make sure you use unspiderfriendly ones because your server can't handle spider friendly url's

also you will need to update the the configpal.inc.php I changed some variables.
[]scroungr said:
....because your server can't handle spider friendly url's [/]

what causes that?
[] Introduction

When writing scripts, it is extremely important to have to ability to transfer information from one script to another. A common method to do this is with the GET convention. Search engine Web spiders, however, tend to ignore pages whose URL contains GET method parameters. If you're not sure what a GET method parameter is, here's an example of a URL with GET method parameters:

http://www.zend.com/mypage.php?myval=1&yourvar=2

The example URL passes two parameters to the script mypage.php: "myval" and "yourvar" with the values 1 and 2 respectively. When a search engine spider encounters such a URL while indexing your pages, the spider will ignore the URL and not index that particular page.

This can have a fairly detrimental effect on how your pages are indexed -- especially if you use the GET convention in your hyperlinks often. Today I'll show you how to use your Web server to pass parameters to PHP scripts so that it fools search engines, and allows your page to be indexed when it would otherwise be ignored.
What's wrong with the GET method

The GET method of transferring parameters between Web pages is by far the simplest method. It is particularly useful for passing parameters from within HREF tags. For example, assume you have a set of articles on your Web site and a single script that displays the articles in the desired fashion.

If you wanted to provide a simple hyperlink using <A HREF> to a particular article, you would need to pass the script a parameter telling it which article you would like to view using the GET convention. Unfortunately, Web spiders generally ignore hyperlinks that include parameters in the URL. This means that the page which the hyperlink points to -- as well as all pages referenced by it -- will be ignored by the Web spider indexing your site.
A spider-friendly GET gimmick

Now that you have a better understanding of the problem, let's look at the solution. In order for a spider to traverse (and consequently index) a given page, the URL must be free of any appearance of parameters. But if a given page requires parameters to function properly, what can be done? The answer lies in the use of the $PATH_INFO environment variable, which you can convert a URL from...
http://www.zend.com/myscript.php?myvalue=Hello

...to a spider-friendly format:
http://www.zend.com/myscript.php/myvalue/Hello

Notice that the spider-friendly format contains no indication that there are any parameters being passed at all. Rather, it simply looks like we are trying to access the directory on the zend.com site /myscript.php/myvalue/Hello, and any search engine spider that accesses the page won't have any trouble following the URL. Yet in reality we are executing the script myscript.php.

But what happened to your parameters?
How to GET your hidden data

Now that you have successfully hidden your parameters within what appears to be a directory structure, how do you get them out? Whenever a PHP script is executed with extra path data appended to the end of the filename (as we did in the spider-friendly example above), the Web server creates an environment variable $PATH_INFO containing this information. You can then access this environment variable through PHP automatically, and parse it to retrieve our data. So our earlier URL...

http://www.zend.com/myscript.php/myvalue/Hello

...would populate the $PATH_INFO variable with:

/myvalue/Hello

...from which you can then parse and retrieve the passed information.
Deciphering your data

Now that you know where your parameters are, the next step is to decipher them into a format that PHP can use. Although there is no required method for doing this, I'll assume that you have formatted your data in the following way:

/var_name/var_data/var2_name/var2_data/...

Using this method, all that is left is to:

* break the provided string every time we encounter a slash ('/')
* create variables to associate the given names (var_name, var2_name, etc.) with their respective values (var_data, var2_data, etc.)

With all of this in mind, let's look at some real code.
The script

As with many powerful techniques, the code required to create this ability in your scripts is not difficult to develop. The process consists of traversing an array based on the $PATH_INFO, and creating variables based on that data. In the end, the object is to take the URL...

http://www.zend.com/myscript.php/myvalue/Hello

...then use the data provided in the $PATH_INFO variable to construct corresponding variables:

$myvalue = "Hello"
Code flow

* Check for the existence of $PATH_INFO
* Split $PATH_INFO into an array
* If the total number of parameters is even, add an extra empty element at the end to simplify the traversal in the next step
* Traverse array and create variables based on the $PATH_INFO data

<?php

if(isset($PATH_INFO)) {

$vardata = explode('/', $PATH_INFO);

$num_param = count($vardata);

if($num_param % 2 == 0) {

$vardata[] = '';
$num_param++;
}

for(var $i = 1; $i < $num_param; $i += 2) {

$$vardata[$i] = $vardata[$i+1];
}
}

?>

NOTE: If the $PATH_INFO variable does contain a value (if no parameters were passed it will not be set), the first element in the $vardata array will be empty (with the actual data starting at index 1). Therefore, it is important to take this into account when parsing and populating variables as we did in the above code.
A step further

In the above script, not only are the assigned values to variables based on the $PATH_INFO of the script, but also the variable names themselves. This was done to show parallels between this method of passing parameters and the GET method. However, in most cases you can assume the names of the passing parameters.

For example, say you would like to pass a first and last name to the script through our $PATH_INFO method. Using the code above, the URL would resemble the following...

http://www.mysite.com/myscript.php/first/John/last/Coggeshall

...to create the variables $first and $last and assign the values "John" and "Coggeshall" respectively. However, when using the $PATH_INFO method, you have more flexibility than with a GET method. The same URL could be written in the following fashion...

http://www.mysite.com/myscript.php/John/Coggeshall

...and then the script could use the following to retrieve the data:

list($dummy, $first, $last) = explode('/', $PATH_INFO);

This would allow the script to statically define variables as necessary for that script. Using this method, the variables $first and $last will always be created and set to the first and second values separated by a slash. Note also the third variable $dummy must also be created to deal with the first slash in $PATH_INFO. This could also be avoided in the following manner:

list($first, $last) = explode('/', substr($PATH_INFO,1));
Final notes

It is important to point out that we are expanding the parameter passing abilities of PHP, rather than changing them. You can you use this script to hide parameters you pass to your script, as well as pass parameters to it with standard GET or POST methods as usual.

Because this script is so transparent, feel free to prepend it to any script either through the auto_prepend directive or with a simple include() statement.
About John Coggeshall

John Coggeshall is a PHP consultant and author who started losing sleep over PHP around five years ago. Lately you'll find him losing sleep meeting deadlines for books or online columns on a wide range of PHP topics. You can find his work online at O'Reilly Networks onlamp.com and Zend Technologies, or at his website http://www.coggeshall.org/.

John has also contributed to WROX Press' Professional PHP4 Programming and is currently in the progress of writing the PHP Developer's Handbook published by Sams Publishing.
Readers' Comments [/]

Original Article by John Coggeshall

So basically it will fail on your server because of the way apache is configured.. It doesn';t allow for you to use the GET Method and thus it will fail. There is nothing you can do at this point. You could try the mod rewrite way (do a search on the net) but I think that would fail also with your present configuration.
Ok I uploaded all files and when I am in the control panel it shows every Pal box as being off (Page Layout) My settings are unchanged in my configpal.inc.php although. How do I update or refresh the Control Panel to reflect the config settings without zapping them?
okay I fixed it for you.. I renamed the variables to more congruent with the rest of the boxes.. they all are Capitalized first words now in the index_include section.. I was getting lost in the mix until I did this.. so yeah you needed to upload the new configpal.inc.php as well as the new index.php.. I did it for ya.. all is good..
aww your the greatest-you still need that chainsaw?
Actually I bought the Chainsaw. Now I am saving up for a Mulching Mower
okay thanx to Chaos I uploaded a new version.. tested out on his funky server setup.
Any way of getting SEF url's to work on a Win2k/IIS server? I have been searching a little without much luck smirk
I've seen it done - I'm not familiar with the specific setup - but there should be an "accept path info" setting in the IIS configuration.
I am gonna make a post.. lets get back on Topic
..
There is an option in MyHome Disply to turn off the side bar. I do not wish that option to be there. In fact, I have no reason not to force the side bar to the right. Can this be forced?

If I were to comment out that choice in the editdisplay.php would that be enough?

OH.. What if meant by "Far Right Table" in the Index File Column widths?

Thanks
Posted By: scroungr Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 10/25/2004 12:54 AM
Hmm where do you see that error? I just logged in using Mozilla with no qualms?
Okay you would need to edit out the editdisplay options AND do a sql update so anyone using other directions left, wide, or none gets set to right...

from what I can deduce from the original code of IIP all the way back to 5.3.1 wideright was a future option and there is no effect whether it is set to 2% or 100%
oh and don't forget in the admin panel to set it to default right
thanks!

I was feeling good today, so I left it Left or Right
[]scroungr said:
I am gonna make a post.. lets get back on Topic [/]

Actually that is on topic, since IIP has search-engine friendly links built-in, they go to 404 pages when you click on them when installed on IIS servers. I had to go through anbd re-write the links.

IIS has a setting to accept path_info josh?
I made a post over here

https://www.ubbdev.com/forum/showflat.php/Cat/0/Number/121879/an/0/page/0#121879
[]AllenAyres said:
IIS has a setting to accept path_info josh? [/]

That's what I've been told - I don't have details, but I thin someone did make my search engine mod work on IIS. I had thought it was incompatible. Not sure exactly how he did it though.
Well the theory of the 404 redirect is plausible. I just don't have access to a windows server to test it. From what I heard though some hosting companies offer the IIS_Rewrite as part of their package
thought for future development... In the status box for logged in users... show the photopost link to gallery.
Has anyone notice that the Status box for a logged in user creates an error on page in an IE browser when you rollover any of the editdisplay icons?

It happens on my site and even here at ThreadsDev.
Nope thats a first
Hmm interesting.. appears only in IE and only when you roll over the icons not the link... strange will look into that
Upon further investigation that happens on all but the main entrance and only when you mouseover.. I removed the mouseover and it didn't throw the error so I will look into the mousover later..
fixed it.. in sidebarpal.php add this line in the top where the requires are

echo "<script language="javascript" type="text/javascript" src="{$config['phpurl']}/pals/java/javapal.php"></script>";


I have uploaded a new zip
will that work for both spiderfriendly and unfriendly versions?
yeah that change only deals with the sidebar throwing an error in IE because it didn;t have the movein moveout functions...as for top posters..

you had

How many days back should the toprecentposters check back?
Note: 0 will show all days.

set to 7 so it will only list the last 7 days totals.. set it to 0 and it shows all
I have noticed that I have been unable to have IIP6.5.1 retain information on selected Boards to include/exclude as well as cache time for Short Stats. Short stats are also not working, although were turned on.

To be honest, i have not double check all code chages, but thought I would ask if this has been noticed by onyone else.

I do have most all server intensive queries turned off, such as Last Posts, Top threads, Members online.
ya I noticed it too,but being a minor issue to me I have put it off. My next step was to try and edit the config manually
Posted By: ChAoS_dup1 Bug - 10/26/2004 5:46 PM
When in the control panel if I select the main link (root) from the location path it opens up a new window with the entrance page and I remain logged in.

Emerald Forest Seattle » Control Panel » Home

But if I were to use the Home button in my browser it opens the Entrance page in the same window but shows me as being logged out (only on the Entrance page) subsequently selecting any of the links within that window will direct me to that particualr page with a logged in status.

This may be an issue if I were using a public computer and left it on the Entrance page thinking I was actually logged out.

This situation seems only to be in Firefox and not IE

Did I explain this correctly?

I am using SpiderUnfriendly
UBBThreads 6.5
IIP 6.5.1 (still shows 6.5)
Posted By: ChAoS_dup1 Poll on Entrance page - 10/26/2004 8:59 PM
This happened again where the poll is marked unviewable until end date, how did you fix it before? I am not sure why it came back-I believe this started again after I uploaded 6.5.1
Posted By: scroungr Re: Poll on Entrance page - 10/26/2004 10:44 PM
the poll you created being marked unviewable until end date was a bug in UBB THREADS 6.5 I remember that.. if ya didn;t watch too carefully it would be autochecked.. had nothing to to do with IIP

the problem with Emerald Forest Seattle » Control Panel » Home sounds like a threads bug. or feature? I know it suppose to open a new browser window. or at least thats what Rick posted on UBBCentral.com
Posted By: ChAoS_dup1 Content Island? - 10/26/2004 11:59 PM
Is it possible for me to have a link to a secondary Entrance page or just another page that I want to have certain CustomPalBaxes on?
Posted By: scroungr Re: Content Island? - 10/27/2004 1:53 AM
sure rename index.php to index2.php and change all variables in it to include2 and then mess with it a little
Posted By: ChAoS_dup1 Re: Content Island? - 10/27/2004 2:24 AM
sweet!!!

Wait till you see what I am going to come up with hehe
Posted By: ChAoS_dup1 Inserting code into Pal Box - 10/27/2004 6:50 PM
How would I insert this into a PAL box (correctly)

Code
 <SCRIPT LANGUAGE="JavaScript"><br />var accountid='[email protected]'<br /></SCRIPT><br /><SCRIPT LANGUAGE="JavaScript" SRC="http://www.banner-mania.com/js/sky.js"><br /></SCRIPT><br /><noscript><br />BannerMania Ad<br /></noscript> 
Posted By: scroungr Re: Inserting code into Pal Box - 10/27/2004 8:33 PM
<SCRIPT LANGUAGE="JavaScript">
var accountid='[email protected]'
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.banner-mania.com/js/sky.js">
</SCRIPT>
<noscript>
BannerMania Ad
</noscript>
Posted By: ChAoS_dup1 Re: Inserting code into Pal Box - 10/27/2004 9:03 PM
wait a minute?
I dont need any of
echo "$tbopen<tr><td align="left" class="tdheader">"; // Table Start

echo this
echo that
Posted By: scroungr Re: Inserting code into Pal Box - 10/28/2004 1:55 AM
oh of course you do.. I figured you knew that... open palbox say 8 and place the above between the lines where it says to place your html code...
Posted By: ChAoS_dup1 Re: Inserting code into Pal Box - 10/28/2004 2:05 AM
I am still a bit new to a lot of this, I cut and paste a lot still

What am I missing?

//
// Email: [][email protected][/]
// URL: http://www.chattersonline.com

// Admins add your php below this line.

// Admins add your php above this line.

echo <<<UBBTPRINT
$tbopen<tr><td align="left" class="tdheader">
Sponsors <!-- Admins update your box header -->
</td></tr><tr><td align="center" valign="top" class="lighttable">

<!-- Admins add your html below this line. -->
<SCRIPT LANGUAGE="JavaScript">
var accountid='[email protected]'
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.banner-mania.com/js/sky.js">
</SCRIPT>
<noscript>
BannerMania Ad
</noscript>
<!-- Admins add your html above this line. -->
</td></tr>$tbclose<br />

UBBTPRINT;
?>
Posted By: ChAoS_dup1 Re: Inserting code into Pal Box - 10/29/2004 4:01 AM
Did I wear everyone out with my questions?
Posted By: scroungr Re: Inserting code into Pal Box - 10/29/2004 5:34 AM
does the straight code even work? I tried putting that straight code into a plain html page and it did nada...
Posted By: ChAoS_dup1 Re: Inserting code into Pal Box - 10/29/2004 7:43 AM
Its working at the top of my page now. I have it in the html header insert but couldt get it to work in the PAL box. The code may not work for you because it was generated for my username and I believe that may be tied to my URL/Website as well
Posted By: scroungr Re: Inserting code into Pal Box - 10/29/2004 2:29 PM
ah ok.. I will recheck it tonite
Posted By: ChAoS_dup1 Polls - 11/01/2004 10:55 PM
Did you know that you can still vote twice in a poll? Once from the Entrance page and once from the post itself.
Posted By: DrChaos Re: Polls - 11/01/2004 11:28 PM
o-O

That could be bad.,...

Im about 30% done installing right now...
Posted By: scroungr Re: Polls - 11/02/2004 5:14 AM
not if you set the cookies correctly.. I have personally tried it and can;t on my server....
Posted By: ChAoS_dup1 Re: Polls - 11/02/2004 5:49 AM
Im not sure I follow you scroungr, what cookie settings do I need to look at?
Posted By: scroungr Re: Polls - 11/02/2004 3:40 PM
cookies have to be set site wide to "/" in the UBBT6.5 and then I have the following settings in UBBT6.5

Allow Poll creation - All users
Allow Poll Voting: - Registered members

under IIP I have the following settings

Who can see polls? Everyone
Who can vote on polls? Registered

with these settings there is no way on my server to vote twice. I have tested it in every possible configuration.
Posted By: ChAoS_dup1 Re: Polls - 11/02/2004 10:41 PM
My settings are exactly as above but I am still having that issue-could it be permission related?
Posted By: scroungr Re: Polls - 11/03/2004 1:10 AM
OK I see why... UBBT 6.5 and below prior to the final release use to record votes using user numbers. Now they are recorded using IP asddresses..

its a bug see this post

http://www.ubbcentral.com/boards/showflat.php/Cat/0/Number/38914/an/0/page/0/gonew/1#UNREAD

hence whyy mine works...

I have it comingt from a forum where I have set

Allow Poll Creation: All Users
Allow Poll Voting: All users

which is taking it by USER ID ... because its opposite of what it should be
Posted By: ChAoS_dup1 Re: Polls - 11/03/2004 2:45 AM
Thankyou once again scroungr
bug in topposterspal.php

search for:
Code
$TopPostersStorageString .= "<tr><td align=\"left\" valign=\"top\"><a href=\"{$config['phpurl']}/showprofile.php/Cat/$Cat/User/$palUserNumber\">$palTopusername</a></td><td align=\"left\" valign=\"top\">$palTotalposts</td></tr>";


replace with:
Code
$TopPostersStorageString .= "<tr><td align=\"left\" valign=\"top\"><a href=\"{$config['phpurl']}/showprofile.php?Cat=$Cat&User=$palUserNumber\">$palTopusername</a></td><td align=\"left\" valign=\"top\">$palTotalposts</td></tr>";
bug in currentthreadspal.php

search for:
Code
$myString .= "<tr><td align=\"left\" valign=\"top\">$spacer</td><td align=\"left\" valign=\"top\"><a href=\"{$config['phpurl']}/showflat.php?Cat/$Cat/Number/$palNumber\">$palSubject</a></td></tr>";


replace with:
Code
$myString .= "<tr><td align=\"left\" valign=\"top\">$spacer</td><td align=\"left\" valign=\"top\"><a href=\"{$config['phpurl']}/showflat.php/Cat/$Cat/Number/$palNumber\">$palSubject</a></td></tr>";
looks like spider friendly/unspiderfirlendly.. which specific files the ones in the spiderfriendly or the nonspiderfriendly directory?
I take the files from /pals/ not from /Unspiderfriendly/ so this should be the files for spiderfriendly.

/edit: if I use your original files and click the links Threads told me that this user doesnt exist or the thread cannot be found
okay cool will update them
I have a problem

I have followed the instructions.txt and when I log on as the admin account and click on IIP in control panel I get this web page

Any thoughts?
Hmm can't resolve parentforum.org.. take a screen shot and let me see it.. btw it looks like the editconfigpal.php which is what ya should get..
Dont know if this helps

After clicking on this

[]http://www.parentforum.org/images/IIP1.gif[/]

I get this



What do you think?
Hmm still can't resolve it.. it's not showing up here.. do me a favor and try and upload it here in the photos section or at www.couch-tomatoe.cc so I can take a look.
Here you go
My pics
can be a timeout from php or a size/memory limit. Seems to be a setting problem of the php server. Do you have access to the server error log file? Access the php info and check the settings.
I managed to get a few hours to look at this last night.
I removed all the files from 'pals' directory and uploaded again.
Ran the install and apart from a few minor code changes all worked
great to hear
Posted By: Gardener Swedish language file for IIP 6.5 - 11/22/2004 1:53 AM
I've updated the Swedish language files so they work with the new version.

Haven't bother to translate the configuration panel though.

I've attached a zip with the new genericpal.php if anyone wants it. Would be great if it could be included in the stock script.

Attached File
123277-iip65_swedish.zip  (12 downloads)
Posted By: Deejay_dup1 Sidebar Driving Me Nutz! - 11/29/2004 5:28 AM
I can't get the sidebar to show on my forums. (www.bogginfreaks.com)

Ok, I just re-opened a website I ran last spring. I upgraded the DB and got it working with a brand new install of 6.5.. .Everything is working awesome...

Sooo, I grab my favorite mod (IIP, here) and install it. I followed the instructions to the "T" and even did it all over again today for the second time, from scratch, just in case i messed up.

Then I came back here to this thread, and read it ALL... Every single post... TO see if there was a fix, or something I may have done wrong. There wasa couple posts, but nothing here solved the problems... (Other users had issues that Ihave made sure to take care of).

I have exhausted everything I can imagine. The control panel is set up. I have put a query to the DB to set everyones account to show the bar on the right. I did the settings in the control panel for the sidebar, and my main homepage IIP is working properly.

I have no idea what could be wrong here, and I hope someone can help. I can provide a login if need be.

Argh!



Deej
Posted By: dparvin Re: Sidebar Driving Me Nutz! - 11/29/2004 8:44 AM
Do you know what, I have the same problem. I have given up and conceded to the fact I don't have a sidebar.
Posted By: scroungr Re: Sidebar Driving Me Nutz! - 12/01/2004 5:14 AM
send me a PM
from way back in september...

[]scroungr said:
so you will need to play with this logic here in ubbt.inc.php

Code
<br />		if ($startpage != "mi" || $myhome) {<br />			$main = "ubbthreads/myhome.php";<br />		}<br /><br />		if ($from == "cp") {<br />			$main = "ubbthreads/admin/login.php";<br />		}<br /><br />		if ($startpage == "en") {<br />			$main = "index.php";<br />		}<br />


to get it right.. or do what I did and hardcade the MyHome [/]

i had to make a similar change to this, and got things working (i've only taken the "front page" feature from IIP 6.5 for now, in hopes of further developing this idea).

it all works now as it should, however... there is a pretty decent lag when i sign into my forums now, as the boards get "stuck" on the "start_page.php" page, leaving a 'white screen of death' for a solid 2-3 seconds before clicking in the selected page (in my case, index.php).

any way around that?
yes if your not using the front page I wouldn;t have played with that logic and left the original.
oh i am using a front page, its just not the index.php bundled with IIP. jcdex uses an index.php page, as well, and thats the destination i have set up as the first page i see when i log in.

however, thats the page that inexplicably causes the 2-3 second white page o'doom before hand

my browser, instead, launches the blank white start_page.php and hangs there for a few moments before loading up index.php
Hmmm so you are using JCDEX's index.php? and while going to that it does the little white dance? Hmmm not sure. I don;t use JCDEX.. what instructions came with JCDEX?
im not sure if its actually the jcdex that is causing the conflict.

for example, if you just go to rkmbs.com, that redirects you to the index.php, without the white screen of death. and even everywhere on my boards, in the top menu on the right, i have a link that says "front page" which takes you to the index.php with no "white dance"

however, the auto-start page login option seems to be sending people to start_page.php (instead of directly to index.php, i guess), which seems to be bringin on the whiteness

...i think..
well I don't think it is anything IIP did either

The way the function works is the login.php page where you login into calls the start_page function located in your ubbt.inc.php.

this function sends them to the start_page.php

now the start_page.php sends them to the do_login function also located in ubbt.inc.php which then also calls the start_page function.

it is the start_page function that sends them to wherever via a meta refresh. if that logic is messed up then it won't send them to the right page.

Try setting the start_page function back to its original form and see if there is any change.

Also make sure your meta refresh is set to 0 in the line

<meta http-equiv="Refresh" content="0;url=$main?Cat=$Cat">
ok...

i changed my display settings so that i'd start at the forum main page. i logged out and back in to test, which resulted in a half-a-second (and perfectly acceptible) white page o'death before going to the ubbthreads.php.

when changing the setting to lead me to my profile, i got similar results.

however, when i changed the setting to direct me to the index.php front page, even just setting that let me to a 3 second white screen, before accepting my settings, this time hanging on changedisplay.php

i logged out and back in and got the same 2-3 second white pause, on start_page.php
okay well I would go back to files BEFORE you touched them with the IIP and see what happens. IF it still happens it may be a issue with JCDEX which I have no idea
Fixed an issue with the sidebar instructions not indicating that you needed to upload the sidebar templates into the ubbthreads/templates/default directory. Also added Gardners Swedish Language Files to the upload.
ah, that would explain my horrid experience with the sidebars
ok, i tried undoing the IIP start page part.

no white page o'doom with just the jcdex.
ok well then theres the horse that will kick ya.. if your not using IIP and your using JCDex what was IIP added for? and send me a PM about it
Any clue on how to fix this:

Warning: array_multisort(): Array sizes are inconsistent in /home/xxxxx/public_html/ubbthreads/pals/eventspal.php(56) : eval()'d code on line 1
//2005
Posted By: ehm Error on the Entrace page at "Last Seen" - 12/28/2004 6:20 AM
I'm having this odd erro on my forum usign 6.5 ad IIP 6.5.
When I click on 'NEXT' at "last seem" box, it keeps givin me the same users.
Also there is a piece of code there. (see my forum at
http://www.imigrar.com/forum/index.php?Cat=0
when you will the the "netx 10} " (note that '}')
I checked here and the code here looks perfect, so it must be some change I did but I can't find were.
Can you tell me were is the code for that Java Next?
So I can compare with the original and fix?
Thank you
Posted By: Deeper01 Internal Server Error - 12/29/2004 10:30 AM
I'm getting server error 500, "Internal Server Error" when I run the index page. I've chmod'ed the pals directory 777, index.php 755. I've attached a copy of my index file. Unfortunately, I don't have access to the server's error logs so I can't give more details. There's is no .htaccess file in my ubbthreads directory where index.php is located.
Any help fixing this error would be appreciated.

Server info:
Linux box running Apache with PHP version 4.3.10

Attached File
124160-index.txt  (67 downloads)
Posted By: scroungr Re: Internal Server Error - 12/30/2004 12:00 AM
[]Any clue on how to fix this:

Warning: array_multisort(): Array sizes are inconsistent in /home/xxxxx/public_html/ubbthreads/pals/eventspal.php(56) : eval()'d code on line 1
//2005 [/]

sounds like empty events array. put an asterik * before the multisort it will suppress the error..

[]
I'm having this odd erro on my forum usign 6.5 ad IIP 6.5.
When I click on 'NEXT' at "last seem" box, it keeps givin me the same users.
Also there is a piece of code there. (see my forum at
http://www.imigrar.com/forum/index.php?Cat=0
when you will the the "netx 10} " (note that '}')
I checked here and the code here looks perfect, so it must be some change I did but I can't find were.
Can you tell me were is the code for that Java Next?
So I can compare with the original and fix?
Thank you [/]

according to Zarzal

[]
There seems to be a missing { in lastseenpal.php:

##find:
$myString .= "<tr><td align="right">...<a href="javascript: document.LastSeenBox.submit()"><em><strong>{$pal_language['NEXT']} $configpal[lastonDisplayNum]}</strong></em></a></td></tr>";
$myString2 .= "<tr><td align="right">...<a href="javascript: document.LastSeenBox.submit()"><em><strong>{$pal_language['NEXT']} $configpal[lastonDisplayNum]}</strong></em></a></td></tr>";

##replace with:
$myString .= "<tr><td align="right">...<a href="javascript: document.LastSeenBox.submit()"><em><strong>{$pal_language['NEXT']} {$configpal[lastonDisplayNum]}</strong></em></a></td></tr>";
$myString2 .= "<tr><td align="right">...<a href="javascript: document.LastSeenBox.submit()"><em><strong>{$pal_language['NEXT']} {$configpal[lastonDisplayNum]}</strong></em></a></td></tr>";
[/]


[]
I'm getting server error 500, "Internal Server Error" when I run the index page. I've chmod'ed the pals directory 777, index.php 755. I've attached a copy of my index file. Unfortunately, I don't have access to the server's error logs so I can't give more details. There's is no .htaccess file in my ubbthreads directory where index.php is located.
Any help fixing this error would be appreciated.

Server info:
Linux box running Apache with PHP version 4.3.10
[/]


could be a few things.. some server configurations don;t allow setting directories to 777 you really need acces to those error logs I suggest contacting your host and tll them you are
trying to track down an error.
Posted By: ehm Re: Error on the Entrace page at "Last Seen" - 12/30/2004 7:04 AM
I just re-install evertying (I had to for 6.5.1b4) and the same error still there.
If you just link to
http://www.imigrar.com/forum
(no need to login to see the error),
note the field "Passaram por aqui" (means Last Seen), number 4 at the midle, from the top.
Them click at "...proximos 10}" (next 10, and note that weird } ) and you will see the same 8 (not even 10) user over and over.
Any ideas?
Posted By: scroungr Re: Error on the Entrace page at "Last Seen" - 12/30/2004 4:38 PM
create a login called Threadsdev with a password of threadsdev and I will check it out
Posted By: ehm Re: Error on the Entrace page at "Last Seen" - 12/30/2004 10:54 PM
Done. you can try with Threadsdev/threadsdev

tks.
Posted By: scroungr Re: Error on the Entrace page at "Last Seen" - 12/31/2004 8:59 AM
ehm throw this into your sql query zone either in the control panel or is you use phpMyAdmin in that and see what it goves you

SELECT U_Username,U_LastSeen,U_Number,U_Visible
FROM w3t_Users
WHERE U_LastSeen <> U_Registered
AND U_LastSeen IS NOT NULL
AND U_Number > 1
ORDER BY U_LastSeen DESC
LIMIT 10

and

SELECT U_Username,U_Laston,U_Number,U_Visible
FROM w3t_Users
WHERE U_Laston <> U_Registered
AND U_Laston IS NOT NULL
AND U_Number > 1
ORDER BY U_Laston DESC
LIMIT 10

also in your configpal.inc.php tell me what value is in

$configpal[moreSeen]
$configpal[lastonDisplayNum]
$configpal[modifiedlastseen]
Posted By: Deeper01 Re: Internal Server Error - 01/10/2005 5:18 PM
I finally found out where the problem was coming from.
The problem is with [:"red"]newspal.php[/].
When I set-up IIP to pull news from more than 1 board on my forum, I get "Internal Server Error" error on the entrance page (index.php). If it is set-up to pull new from only 1 board the entrance page works fine.
Posted By: scroungr Re: Internal Server Error - 01/11/2005 4:28 AM
really? works fine for me.. wonder what it could be
Posted By: Deeper01 Re: Internal Server Error - 01/17/2005 9:38 PM
I've identified the real source of the problem with newspal.php. It can only read from the first board on my forum (to be specific, the first board in w3t_Boards). Any attempt to pull articles from the remaining boards (2 to 11) leads to "Internal Server Error".
Just to remember:

#120884 - 10/05/04 10:39 AM
Minor Bug:

IIP control panel, index file options, at the bottom:

Should we cache the Short Status information to decrease page generation times?
If so, how many minutes should lapse before updating? (0 disables)

if you enter a numeric value in the box and save it the value is disapered next time enter this page.


scroungr
Re: Finished-[6.5] Integrated Index Page (IIP) 6.5 [Re: Zarzal]
#120893 - 10/05/04 02:42 PM

okay will check when I get some time
Posted By: ehm Re: Error on the Entrace page at "Last Seen" - 01/20/2005 12:28 AM
Sorry took so long to repond. I had some problems with my server...
Ok. for the 2 queries:

The first query returns nothing. Blank
The second query returns the last then users.

$configpal[moreSeen] = "";
$configpal[lastonDisplayNum] = "10";
$configpal[modifiedlastseen] = "";

Hope it will help.
Posted By: scroungr Re: Error on the Entrace page at "Last Seen" - 01/20/2005 3:06 AM
Hmm on the IIP User Management Tab did you


Use enhanced who's online tracking?
Before using this option you must follow THESE setup instructions or this WILL NOT WORK CORRECTLY!

and click on the the word THESE?
Posted By: ehm Re: Error on the Entrace page at "Last Seen" - 01/20/2005 4:59 AM
No. I'm not using Enhaced who's online tracking.
Should I?
I clicked on the "THESE" link and received a message "You need to run the "Modify My Database" link in initial setup before using this step."
Posted By: scroungr Re: Error on the Entrace page at "Last Seen" - 01/20/2005 4:39 PM
well I would
Posted By: ehm Re: Error on the Entrace page at "Last Seen" - 01/21/2005 4:47 AM
OK. I changed modes and still doing the very same thing...
It's not moving to the next 10 users...
Any other ideas to try?

Thank you
Posted By: scroungr Re: Error on the Entrace page at "Last Seen" - 01/21/2005 3:39 PM
rerun the query

SELECT U_Username,U_LastSeen,U_Number,U_Visible
FROM w3t_Users
WHERE U_LastSeen <> U_Registered
AND U_LastSeen IS NOT NULL
AND U_Number > 1
ORDER BY U_LastSeen DESC
LIMIT 10

then wait a bit and run it again and see if that query changes the values that you see. that is the key query
Posted By: ehm Re: Error on the Entrace page at "Last Seen" - 01/21/2005 7:53 PM
I run that query 3 times in 15 minutes.
It always return blank.
And if you have a minute, check my page at Entrance:
http://www.imigrar.com/forum/index.php?Cat=0
the Last 10 now are complete empty (since I changed the mode).
It's in Portugues, but please look for the words "Passaram por aqui", in the central column, just below a "Sponsored by" banner.

Do you want me to change back the mode?
Posted By: scroungr Re: Error on the Entrace page at "Last Seen" - 01/21/2005 10:46 PM
I see

Online 1 member (Threadsdev) and 10 guests have been online with in the last 10 minutes.

ok send me a PM
Posted By: scroungr Re: Error on the Entrace page at "Last Seen" - 01/23/2005 10:44 AM
okay think I found the isue with Last seen I have updated the main zip but

find in lastseenpal.php

$thisinstant = $html -> get_date();
$lastonlimit;
$lastonstart = $configpal[moreSeen] + 0;
$lastonend = $configpal[lastonDisplayNum];
$moreSeen = $configpal[moreSeen] + $configpal[lastonDisplayNum];
$date = $thisinstant;


change to

$thisinstant = $html -> get_date();
$lastonlimit;
$lastonstart = $moreSeen + 0;
$lastonend = $configpal[lastonDisplayNum];
$moreSeen = $moreSeen + $configpal[lastonDisplayNum];
$date = $thisinstant;
Posted By: Zarzal Re: Error on the Entrace page at "Last Seen" - 01/23/2005 3:45 PM
there must be another bug.
The initial setup told me while trying to modify the database:

IIP 6.5 modifications already exists. Nothing more to be done here...

If I try to run .../ubbthreads/pals/lastseensetup.php I get :

You need to run the "Modify My Database" link in initial setup before using this step.

Set Use enhanced who's online tracking? to yes give me a empty pal box.

I use IIP very long time so my database modification is from a old version. What should I do ?
Posted By: scroungr Re: Error on the Entrace page at "Last Seen" - 01/23/2005 6:58 PM
yeah looking into why the U_LastSeen field doesn't populate. For now set enhanced to no and should be okay.
Problem with exploitfix:

There is an inofficial exploitfix on www.infopop.com for the file ubb.inc.php

Code
// security fix from www.ubbcentral.com/boards/showflat.php/Cat/0/Number/40981/an/0/page/0#40981<br />@explode_data();<br />$Cat = get_input("Cat","get");<br />if (preg_match("/[^\d,]/", $Cat)){<br />$timea = getmicrotime();<br />$html = new html;<br />$html -> not_right("The script has received a malformed URL.");<br />}


If you apply this, the newspal.php have a malfunction. You are no longer able to click links. the $cat seems to bee empty and this result in a broken link with ...//... and a missing cat number.
have you tried the non spider friendly newspal?
no, but thats a good tip I go and will try it.

/edit: ok, this help. I try it. But if Infopop include this exploitfix you should watch it for spiderfrindly. So I use unfriendly and the fix works. Thanks again for the tip.
np. I will take a look at the spider friendly
I have been testing my "Recommend Us!" at its all working fine.

How would I be able to BCC me on every mail that is sent? I only want this to be noisey
guess you could write something up for that.
I had a go, but it stopped working altogether
Posted By: Eric I must be stupid...I can't get this to work... - 01/31/2005 9:15 AM
After banging my head against the wall trying to get just PHP, MySQL, and Threads installed, I finally got it.

I attempted to install IIP, but I ended up with this mess:

http://aow.rpg.st

Now, you can see, my threads install works...

http://aow.rpg.st/ubbthreads/ubbthreads.php

Can anyone guide me here? I feel so stupid at this point. There has to be an easier way...

~Eric C.
check your path settings

Failed opening '/ubbthreads/includes/main.inc.php' for inclusion (include_path='.;c:\php4\pear')

means its looking in c:\php4\pear for the /ubbthreads/includes/main.inc.php
Posted By: Eric Re: I must be stupid...I can't get this to work... - 01/31/2005 11:58 PM
Thanks for the reply.

I checked my include_path in my php.ini, and it's commented out. I tried to change it to:

include_path = ".;c:\php\includes;c:\inetpub\wwwroot\aowroot"

But that just changes the error message to:

'/ubbthreads/includes/main.inc.php' for inclusion (include_path='.;c:\php\includes;c:\inetpub\wwwroot\aowroot')

Now, the root of that website is c:\inetpub\wwwroot\aowroot

Threads is in c:\inetpub\wwwroot\aowroot\ubbthreads

The IIP index.php is in the aowroot folder.

What should my include_path be?

~Eric C.
c:\inetpub\wwwroot\aowroot\ubbthreads\includes\main.inc.php
Thank you again for your reply, scroungr.

Well, I gave that a try, and that didn't work either. Now the error looks like this:

[:"purple"]PHP Notice: Undefined variable: Cat in C:\Inetpub\wwwroot\aowroot\index.php on line 66 PHP Warning: main(/ubbthreads/includes/main.inc.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\aowroot\index.php on line 70 PHP Warning: main(): Failed opening '/ubbthreads/includes/main.inc.php' for inclusion (include_path='.;c:\php\includes;c:\inetpub\wwwroot\aowroot;c:\inetpub\wwwroot\aowroot\ubbthreads\includes\main.inc.php') in C:\Inetpub\wwwroot\aowroot\index.php on line 70 PHP Notice: Undefined variable: myprefs in C:\Inetpub\wwwroot\aowroot\index.php on line 71 PHP Warning: main(/ubbthreads/pals/languages//genericpal.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\aowroot\index.php on line 71 PHP Warning: main(): Failed opening '/ubbthreads/pals/languages//genericpal.php' for inclusion (include_path='.;c:\php\includes;c:\inetpub\wwwroot\aowroot;c:\inetpub\wwwroot\aowroot\ubbthreads\includes\main.inc.php') in C:\Inetpub\wwwroot\aowroot\index.php on line 71 PHP Fatal error: Cannot instantiate non-existent class: user in C:\Inetpub\wwwroot\aowroot\index.php on line 75[/]

I'm no expert at this by any means, but I see a couple of potential things in this error. I looked at the index.php, and it's referring to the variable $thispath from the main.inc.php

Here are the contents of my main.inc.php:

[:"purple"]<?

// THIS NEEDS TO BE SET, OTHERWISE ADMIN SCRIPTS WILL NOT WORK
// THIS IS THE ACTUAL PATH TO YOUR PHP INSTALLATION
$thispath = "c:\inetpub\wwwroot\aowroot\ubbthreads";

// PATH TO YOUR config.inc.php file. BY DEFAULT THIS IS THE
// SAME AS , BUT IF YOU MOVE config.inc.php TO ANY
// OTHER LOCATION YOU MUST SPECIFY IT HERE.
$configdir = "c:\inetpub\wwwroot\aowroot\ubbthreads\includes";

// DO NOT EDIT ANYTHING BELOW THIS LINE!
include("$thispath/ubbt.inc.php");

// Page load times
$timea = getmicrotime();

?> [/]

The other thing that I'm wondering about is this: If something is wrong with the include_path, why does threads work? After all, it's only the IIP that I can't use...

Thanks again for your help.

~Eric
I dont have a windows server for testing but I rember that I read someting about / and \ in the config files. You use c:\... whats about using unix like /wwwroot/aowroot/... and not filesystem like windows paths.
in the index php you need to set

// WHAT IS THE FULL PATH TO YOUR UBB.threads INSTALLATION (do not include the trailing slash)
$palspath = "";

to

// WHAT IS THE FULL PATH TO YOUR UBB.threads INSTALLATION (do not include the trailing slash)
$palspath = "c:/inetpub/wwwroot/aowroot/ubbthreads";


now create some forums... and good luck
Thank you. Thank you. Thank you!

~Eric
Is this confirmed to work under UBB.Threads 6.5.1 final yet?
works for me at www.cccbmt.org
oops, I'm still running iip 5.5
nope and since I haven't upgraded to 6.5.1 I will need input from others...
I run it on www.dragon-clan.de without bigger problem. I use everywhere non-spider url's. There are some litte problems allready described here in this thread but nothing real big.

I have 2 major problems, but this is not based on UBBt 6.5.1 (I noticed this before).

1) The cache timer doesnt work well. I set it to cache news for 10 minutes but it took time between 30 and 60 minutes, so I disable caching.

2) Setup 4 different newspals with 5 news each. Enable HTML, Names, Avatars and Date will sometimes crash the page generation by mysql (timed out or something else) I get an 503 error from my server. I change the newssetup as follows: Box 1 with name, avatar, date and HTML. All other boxes set to no pictures, no name, date and HTML. If I try to strip html too I get 503 again. Seems to much queries or so.

General I say, you can use it with 6.5.1

Remeber to fix the little bugs in the control panel
Ok just updated a 6.5 instalation to 6.5.1.
I'm using the IIP 6.5.1 from this thread

now threads that show up in "current threads" report
"We cannot proceed.
There was a problem looking up the post in our database.
Please use your back button to return to the previous page."
when they are selected.

also in "top posters" when I click on any name (including the one I'm logged in with) I get "We cannot proceed.
This user is no longer in our database.

Please use your back button to return to the previous page."
also now when a user chooses to select the Entrance as a starting point it throws up reporting:

[] We cannot proceed.

Script: /var/www/html/ubbthreads/pals/pollpal.php
Line#: 85
SQL Error: You have an error in your SQL syntax near ') AND B_Poll != '' AND (B_Sticky = 0 OR B_Sticky IS NULL) ORDER ' at line 6
SQL Error #: 1064
Query: SELECT B_Poll,B_Replies,B_Number,B_Board,B_Posted, B_Subject FROM w3t_Posts WHERE B_Number = B_Main AND B_Approved = 'yes' AND () AND B_Poll != '' AND (B_Sticky = 0 OR B_Sticky IS NULL) ORDER BY B_Posted DESC LIMIT 0,1



[/]
Owen93, be sure to take the files from the spiderUNfriendly directrory. If you take a closer look to your URL's you see that something behind cat is missing and you have two following // in it.

Using the files from this directory should solve it.
ETA -

Ok I found the "Unspiderfriendly" dir
I'll poke around and see if I can deduce where these file might go ?
ok that solved the top posters and current threads part.

but I'm still getting the ugly SQL error when i try to change from Main Index to entrance as a default start page.

I probably fat fingered something somewhere.
ok it seems that my sql crud is spreading :-)

now when I try to navigate to "My Home" I get the
[] Script: /var/www/html/ubbthreads/pals/pollpal.php
Line#: 85
SQL Error: You have an error in your SQL syntax near ') AND B_Poll != '' AND (B_Sticky = 0 OR B_Sticky IS NULL) ORDER ' at line 6
SQL Error #: 1064
Query: SELECT B_Poll,B_Replies,B_Number,B_Board,B_Posted, B_Subject FROM w3t_Posts WHERE B_Number = B_Main AND B_Approved = 'yes' AND () AND B_Poll != '' AND (B_Sticky = 0 OR B_Sticky IS NULL) ORDER BY B_Posted DESC LIMIT 0,1

Please use your back button to return to the previous page. [/]
message
Things have gone from bad to worst.
the board that started out as 6.5 with IIP 6.5.1 has now been trashed by a weeks efforts to fix it.
each time I try it just gets worst. Now the original board is all but useless




I have tried installing a clean 6.5.1 in another directory and applying the IIP 6.5.1 to it and it just isn't happening.

T this point I'm at my wits end.
i have pretty much hosed a months worth of configuring a board that is weeks late in opening to a private community thats waiting for a home .

I am willing to pay someone to help me.

please - I'm hosed !
please don't ignore me - I've tried my best to follow instructions but this is kicking my butt!
Enhancement suggestion:

The newspal schould have another mode (selectable). This mode should display news from 4 boards sorted by time in one newspal box. New postings on top.

Now we have 4 different newspal boxes with it own orders. If you like to view new news from one of this section you have to scroll down.

with my suggestion the latest news out of the 4 boards is every time displayed on top. Is this possible? What do you think about this display mode?
Owen send me a PM and we can discuss your issues.
Works perfectly with 6.5.1b5 and even the spider friendly stuff does too now that we upgraded everything
scroungr,

I have IIP 6.5.1 set up and running with a UBB.Threads 6.5.1 installation. Everything seems to be running smooth, with ONE exception . . . The showflat.php page for viewing threads ends up with the entire sidebar displayed AFTER the post's display, as in this screenshot: link to screenshot.

On my previous 6.4.2 threads install with IIP 5.4.1, I had issues with the sidebar and that page, and simply diabled the sidebar from displaying on the showflat page. If this can't be fixed to behave properly rather than just being shoved at the bottom of the thread display, I'd like to disable it for this page, but I'm not sure how to do that with this version.
Oh, additional bit of info - it displays correctly if I select the sidebar to display on the LEFT side of the screen, and only works wrong with it set to the RIGHT side (which is what I default it to, and where I prefer it personally).
hmm sounds like a tbclose issue.. check to see where the tables are closed.. I would do the following.. load page and right click on screen select copy source then put it into say DreamWeaver to see exactly what the page is doing.. works on my site in either side...
Ok, I'll give that a try . . .but if I just wanted to disable it for showflat anyway, how would I go about doing that? Some of my users have gotten used to it NOT being there on the actual thread view, and are making noises about it being there at all now.
Ok, another issue . . .

New posts made in the forum I've set for the news posts to be pulled out of, aren't updating as news on the front page. I've tried every option I can think of in IIP's config to alter that, I've tried with and without caching, both ignoring and not ignoring stickies, I've hit the admin link that is supposed to force the cache to update . . . and the news doesn't change to reflect newer posts that should be shown as news.
as it says in the instructions somewhere to disable the saidebar on a particular page put

$config['iip_call'] = 1;

just below where the main.inc.php is included

about the second issue whats the value in the $configpal['newscache']

unless set to 0 you are probably looking at a cache copy.. since there is a delay?

$date = $html -> get_date();
$cdate = $date - ($configpal['newscache'] * 60);
$configpal['newscache'] = "0";

Which is what I thought it was, and what I'd set it in the IIP config from the control panel, as I didn't want any caching.

Additionally, I've tried both the default and the spiderunfriendly versions of newspal.php, with the same results for both.

Is there a way to edit newspal.php to skip cache checks and always update if there's a newer post?
sure look at the code.. I didn;t create those pals.. I just made them 6.4 and 6.5 friendly.. you can alter them anyway you want...
I'm about ready to pull my hair out over this. The newspal is STILL not updating - even when I hardcoded 0 * 60 in the pal, and even when I DELETED the post it's currently displaying as the top news entry. I have caching turned off everywhere there's an option.
Posted By: ehm Re: Link on the top 15 posters is not working. - 03/02/2005 8:34 PM
I just realized it today, even do I have 6.5 installed for many weeks now.
If you click on the links to the top 15 posters, I'm getting the message: user is no longer on the data base.
I gues is something wrong with the link, since this is the link the Top 15 shows:
http://www.imigrar.com/forum/showprofile.php/Cat/0/User/4
and this is the link from inside the UBB
http://www.imigrar.com/forum/showprofile...ge=1&topic=
and this one works perfect.

if you want to see my main page, this is the link:
http://www.imigrar.com/forum/index.php?Cat=0

Any ideas what went wrong?

Thank you
scroungr, where does IIP get, and store/cache, its information on what database to connect to, what user to use, etc?

I figured out the problem with the news page not updating. It's a bizarre one to me, though . . .

In upgrading to 6.5.1, I copied over the live database (example names given here), siteforums, to a new database, forums. The same database user/password had access to both of them.

IIP was apparently pulling information from wherever it could get it, from either database, but going for siteforums over forums. Once I removed the user from being able to access siteforums, everything started working properly, as it was now pulling information from the newer, correct database.
Posted By: scroungr Re: Link on the top 15 posters is not working. - 03/02/2005 10:03 PM
[]ehm said:
I just realized it today, even do I have 6.5 installed for many weeks now.
If you click on the links to the top 15 posters, I'm getting the message: user is no longer on the data base.
I gues is something wrong with the link, since this is the link the Top 15 shows:
http://www.imigrar.com/forum/showprofile.php/Cat/0/User/4
and this is the link from inside the UBB
http://www.imigrar.com/forum/showprofile...ge=1&topic=
and this one works perfect.

if you want to see my main page, this is the link:
http://www.imigrar.com/forum/index.php?Cat=0

Any ideas what went wrong?

Thank you [/]

thats cause your website doesn't allow spider friendly url's so use the non-spider friendly ones
[]ZealotOnAStick said:
scroungr, where does IIP get, and store/cache, its information on what database to connect to, what user to use, etc?

I figured out the problem with the news page not updating. It's a bizarre one to me, though . . .

In upgrading to 6.5.1, I copied over the live database (example names given here), siteforums, to a new database, forums. The same database user/password had access to both of them.

IIP was apparently pulling information from wherever it could get it, from either database, but going for siteforums over forums. Once I removed the user from being able to access siteforums, everything started working properly, as it was now pulling information from the newer, correct database. [/]

well thats plain weird cause it pulls from
{$config['tbprefix']}Posts AS t1, and {$config['tbprefix']}Users AS t2
and thats all determined by the database that threads is actually using.. check your config.inc.php in your includes directory.. look at the $config['dbname'] and thats what database it SHOULD pull from...
Checked it, it has the correct database name listed, and that's the -only- database name listed anywhere in config.inc.php.
well thats where its being pulled from? and the only cache for IIP is w3t_IIPcache and it doesn't cache the dabatase name.. it uses what threads uses..
You were right.
I upload the nonspider and is working now.
Thank you
[]scroungr said:
well thats where its being pulled from? and the only cache for IIP is w3t_IIPcache and it doesn't cache the dabatase name.. it uses what threads uses.. [/]

I know it doesn't make sense, but what I described above was indeed what was happening. -How- I have no clue.

Anyway, everything is working as it's supposed to be now, so it's not a concern, other than the sanity I lost trying to figure out what the problem was.
In the 'last seen' box I get this at the bottom:

...next 10}

I'm guessing the } is extra or an arrow?
you are right I see the error

find

{$pal_language['NEXT']} $configpal[lastonDisplayNum]}

change to

{$pal_language['NEXT']} $configpal[lastonDisplayNum]
ah ok, easy fix, thanks
Guys, i'm going mad here....
I CANNOt for the life of me get my config file to save.
Keeps defaulting
Checked and double checked all the permissions....
is the includes directory set to 777.. is the config.pal.inc set to 666?
Yep, have just checked again.
thats kinda weird then... if you want me to check it out send me a PM with some ftp info and a admin account on your forum.
PM'd ya but ya didn;t follow the instructions

ya needed to put

@require_once("$thispath/includes/configpal.inc.php");


in the ubbt.inc.php where I said to

Also ya need to set your domain in the configpal.inc.php

did that and its working just go to the ubbthreads/index.php
Big thanks to Mr Scroungr!!
Got a question for you guys.
The sidebar mod, can it be amended so users cannot turn it off?
I assume it would be just by editing out the options in the template files....
yep that be the way
i shall give it a try at the weekend, i'm pretty sure i can do this!
ok, sorted that one out.
next question, is it possible to force all new users to view the sidebar?
currently I have to run a mysql command.
yes look at the code where it adds to the newuser.php and change that script to where you want the sidebar
what script do i need to amend? the newuser.php script?
if so, what do i need to add? sorry, i'm no php programmer!
in adduser.php find

// ----------------------------------
// Insert this user into the database
$query = "
INSERT INTO {$config['tbprefix']}Users (U_LoginName,U_Username,U_Password,U_Email,U_Totalposts,U_Laston,U_Status,U_Registered,U_RegEmail,U_RegIP,U_Groups,U_Title,U_Color,U_Privates,U_Approved,U_CoppaUser{$regfields})
VALUES ('$Login_q','$Displayn_q','$crypt','$Email_q','0','$date','$Status_q','$date','$Email_q','$ip_q','$Groups_q','$Title_q','$Color_q','1','$approved','$coppauser'{$regvalues})
";
$dbh -> do_query($query,__LINE__,__FILE__);


change to

// ----------------------------------
// Insert this user into the database
$query = "
INSERT INTO {$config['tbprefix']}Users (U_LoginName,U_Username,U_Password,U_Email,U_Totalposts,U_Laston,U_Status,U_Registered,U_RegEmail,U_RegIP,U_Groups,U_Title,U_Color,U_Privates,U_Approved,U_CoppaUser{$regfields},U_SideBar)
VALUES ('$Login_q','$Displayn_q','$crypt','$Email_q','0','$date','$Status_q','$date','$Email_q','$ip_q','$Groups_q','$Title_q','$Color_q','1','$approved','$coppauser'{$regvalues},'2')
";
$dbh -> do_query($query,__LINE__,__FILE__);


where 2 = right, 1 = left, and 0 = disabled
many thanks m8. appreciate your time.
I'll get it integrated tonight
IIP v6.5
========

Well, a bit confused as to why the side bar listed on my Main Index page is not using the correct full link to the links on my Menu Pal.

On the Menu Pal it lists the following links for the users:

Entrance
View Polls
Profile Index
Call Us Home!
Add to Favorites!
Recommend Us!

When a user clicks on any one of these (except Add to Favorites!) the link starts out correct in taking the user to my domain name....but then it cuts out the subdirectory of where my threads is located.

For instance, "View Polls" links out to:
http://www.f-bodyhideout.com/index.php?Cat=0&paction=polls
However, it should be linking out to:
http://www.f-bodyhideout.com/ubbthreads/index.php?Cat=0&paction=polls

Can anyone help me set this correctly?

Thank you,
Gonzo
okay your IIP index is INSIDE your ubbthreads directory?

then you will need to find in menupal.php

if (!(eregi("index.php",$phpSelf))) {
$palurl = "{$config['homeurl']}/index.php";
}
else {
$palurl = $phpSelf;
}


and change it to

if (!(eregi("index.php",$phpSelf))) {
$palurl = "{$config['homeurl']}/ubbthreads/index.php";
}
else {
$palurl = $phpSelf;
}
Worked like a charm! Thank you scroungr.
For some reason, I cannot get the Events Pal to show up on my index page.

I've reviewed and confirmed all the settings under Event Mgmt, and I've set the Events Pal option, and triple-checked that it's not using the same order number as something else in the same column. I've tried it under all three columns - I'll submit the changes, and then IIP refreshes, and it repeatedly shows the Events Pal as turned off, and it never displays on the index.

This is IIP 6.5 with UBB.Threads 6.5.1.
sounds like a problem with the eventpal variable in the index file If I get a chance I will check.. in the meantime uyou can change it in the configpal.inc.php
okay found the issue.. download the new zip and just put the editconfigpal.php, doeditconfigpal.php and editconfigpal.tmpl in the pals directory to replace the ones there... had CurrentEvents in too many spots
grazi for the bugfixes
Thanks for the fixes. This one was driving me nuts.
I seem to have a problem in that even if I set my current threads to display to say 20, it will only display a max of 5.

Is this right?

Also, it would be great if there was a pal that listed a set of current posts in specific forums, so you had a pal that had say 3 blocks of current threads for 3 specific forums.
It seems this information is valid as of when uo activate it.. its growing as more posts are made.. so that would explain that one!
cool..
Do you think its possible to add the 2nd part of my note? Would be really useful.

i.e

You have 5 forums, and you want to list in a single pal window the latest titles only of the say last 5 posts of each forum, seperated by a line ?
well seeing as threads is at end of life.. and I don't think I will be messing with this anymore than it has been.. I didn't create it.. I updated it to use with 6.5 so if you would like to commission someone I am sure someone can... but otherwise..
Good point.

I had noticed that my pals were not using the spider non friendly files, so I just copied them across, but the currentthreadspal file doesnt appear to be working.. now I just have 5 dots instead of thread titles.. ?
can your server handle spider friendly? and does the nonspider friendly one work?
Sorry I have it the wrong way around.

The spiderfriendly one displayed the information properly but the links didn't work.

Its the unfriendly one that doesnt work. It works for the hot topics and top rated ones ok.. jsut not this one.
I have a problem with the top posters.

It is displaying me with 953 posts on the IIP when on threads I have 1039. All boards are unticked so it should be picking up from all of them and cache days is set to 0 to disable.

I have changed to non spider files to fix the click to user profile.


edit, I had to remove the pic as you could not see anything to read.
whats your U_TotalPosts in your w3t_Users table say?
It matches the post count in threads
I am on 2041 in U_Totalposts and on threads, but 955 on IIP. So both are increasing
well heres the complete query

$query = "
SELECT COUNT(*) as total,t1.B_PosterId,t2.U_Username
FROM {$config['tbprefix']}Posts AS t1,
{$config['tbprefix']}Users AS t2
WHERE t1.B_PosterId = t2.U_Number
AND t2.U_Number > 1
$dayssearchlimit
$limit
GROUP BY B_PosterId ORDER BY total DESC
LIMIT 0,$topposters
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);


and looking at that there must be more threads than what your couning.. and there is no way to disbale that per board basis...so am wondering run this query and see what you come up with

SELECT COUNT(*) as total,t1.B_PosterId,t2.U_Username
FROM w3t_Posts AS t1, w3t_Users AS t2
WHERE t1.B_PosterId = t2.U_Number AND t2.U_Number = '<number of the user>'
GROUP BY B_PosterId ORDER BY total DESC
Thanks scroungr

I will run a backup when I get home and let this one rip
I have run that and it came back with no results and the post are not correct still
you did change <number of the user> to the user id of that user right?
Yep, (2), number 2, me
you sure you entered it right? cause I just did it on my board and got total=3268, B_PosterId = 2, U_Username = Couchtomatoe...

barring doing it myself on your site.. I don;t know.. if you want me to check send me a PM with an Admin account for your threads so I can run the query
I kept one of the < in still

Anyways, it has said that I have 962 posts the same as on IIP so that means why does my profile in threads say I have 1048 ???

Thanks again for your help scroungr
no idea but that query is almost fool proof I said ALMOST..
Any update on why I am getting no current threads appearing?
[]scroungr said:
no idea but that query is almost fool proof I said ALMOST.. [/]

MattUK run this in a sql session and see what you get

SELECT B_Number,B_Posted,B_Last_Post,B_Subject,B_Main,B_Replies,B_Counter,B_Board
FROM w3t_Posts
WHERE B_Number = B_Main
AND B_Approved = 'yes'
ORDER BY B_Posted DESC
Hi,

This comes back with 43 records..
The Upcoming Events PAL box is listing events there one day prior to what they should be. For example, there are two posts entered as Calendar events for June 15th - they show up properly on the calendar - both the PAL Calendar box and the full .threads Calendar, but the Upcoming Events is listing them for the 14th.
question: is there a way for the NEWS pal to display the most recent posts, as opposed to the most recent threads?
anything is possible.. you just need to rewrite the pal.
ha! that is not possible
I'm currently having this same issue. I keep editing the initial Setup to read Yes, but still see:
Sorry But Front Entrance is currently down for maintenance.

The Yes defaults back to No. I have also tried to set up page Layout and it reverts as well.

editconfigpal.php I set to 666, won't save, tried 777, still no save.

It's a fresh, clean install of threads 6.5 and IIP 6.5

What am I missing?

~C
[]ZealotOnAStick said:
The Upcoming Events PAL box is listing events there one day prior to what they should be. For example, there are two posts entered as Calendar events for June 15th - they show up properly on the calendar - both the PAL Calendar box and the full .threads Calendar, but the Upcoming Events is listing them for the 14th. [/]

Scroungr - anything on this problem?
which events are they? are they holidays? public days? private days? entered through a forum post or directly thru the calendar? birthdays? the eventspal was kindof involved so I would need more info.. do a database dive and tell me what the record of one of the misappropiated dates looks like so I have more to go on.
Thanks...i've been wondering about that EventsPal issue... all fixed now.
[]drkknght said:
question: is there a way for the NEWS pal to display the most recent posts in a forum, as opposed to the most recent threads? [/]

ok, i'm tryin here, so go slow with me ...

i'm assuming the information i need to tweak is in here:

Code
// --------------------------<br />// Let's grab the news items <br />// New routines created by JustDave<br />   $Newsboard_q = addslashes($newsboard);<br />   $query = "<br />   SELECT     t1.B_Number,t2.U_Number,t2.U_Username,t1.B_PosterId,t1.B_Posted,t1.B_Last_Post,t1.B_Subject,t1.B_Body,t1.B_Main,t1.B_Replies,t1.B_Icon,t1.B_Counter,t2.U_Picture<br />   FROM {$config['tbprefix']}Posts AS t1,<br />   {$config['tbprefix']}Users AS t2 <br />   WHERE t1.B_Number = t1.B_Main<br />   AND t1.B_PosterId = t2.U_Number<br />   AND t1.B_Board = '$Newsboard_q'<br />   AND t1.B_Approved = 'yes'<br />   ORDER BY t1.B_Posted DESC<br />   LIMIT $totalnews <br />";<br />$sth = $dbh -> do_query($query);<br />


and somehow alter the "ORDER BY t1.B_Posted DESC" line ...?

... i think?
No....

Delete
t1.B_Number = t1.B_Main
AND
[]scroungr said:
which events are they? are they holidays? public days? private days? entered through a forum post or directly thru the calendar? birthdays? the eventspal was kindof involved so I would need more info.. do a database dive and tell me what the record of one of the misappropiated dates looks like so I have more to go on. [/]

They're entered via a forum post with the "List as event in calendar on" option used.

If you can tell me with a bit more detail what you're looking for, or how to provide you something usable from a "database dive" I'll do so. I can view one of the posts in phpMyAdmin, but everything appears to be correct - including the Month, Date, and Year in the B_CalDay, B_CalMonth, and B_CalYear fields.

Birthdays also seem to be afflicted with showing up as a day earlier on the "Upcoming Events" box.

Just tested, Private events added directly via the Calendar also show up a day early on the Upcoming Events (though all items are linked to the correct date on the calendar, both the pal-box version and the full forum one). Same with Public events.

There's not a handy Holiday coming up soon enough for me to test on for that.
[]Anno said:
Delete
t1.B_Number = t1.B_Main
AND [/]

woo! thats perfect!! thanks
Question, I have read thru all the posts here and have tried everything I can think of.

Triple checked the install procedures.

I cant get the entrance to stay open.....the first time you go straight there from a new browser window.....its open and works great......

You go back, and it gives the "We are currently updating this page... "

any ideas? please
Posted By: Zarzal Re: (IIP) 6.5 Bug try to setup layout - 08/08/2005 6:09 PM
Hi,

I found a nasty little bug: If yo try to setup a layout with the contropanel all settings will be written to configpal.inc.php and in this file to the keywords

$index_include[number0,1,2,3]['keywordname'] = "";

With one version there must be change and only strings with upper first char for the keywordname will be read by IPP but not set with the setup. For Example: I found in my configpal.inc.php:

$index_include[1]['events'] = "3"; (set by controlpanel)
$index_include[1]['Events'] = "0";

The second string was read by the control panel
Posted By: Zarzal Re: Beta-[6.5] Integrated Index Page (IIP) 6.5 - 05/06/2006 11:17 AM
wen using UBBthreads V6.5.2 and above plase check all IPP files for:

{$myprefs['language']}

and replace them with:

{$_SESSION['myprefs']['language']}

you will run in trouble if you dont change this while using more than on language on your board. There are several places still in it.
thanks zarzal
Zip in original post updated to work with 6.5.2+ (as per zarzal's recommendations) - there were 4-5 files that still needed the language links updated
Is there any way to set it so Shout Box shows in the main listing of forums as well as in selected or all of the forums?
In other words, is there some type of a script that will allow me to do this?
Sure, you could turn the sidebar on and have the shoutbox in it, just like here
© UBB.Developers