Previous Thread
Next Thread
Print Thread
Rating: 5
Page 1 of 11 1 2 3 10 11
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.
Attachments
116683-[6.5]IIP6_5_1.zip (0 Bytes, 622 downloads)

Last edited by scroungr; 05/24/2005 10:36 AM.
Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
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

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
[]
The "Recommend Us!" feature sends a blank e-mail to the recipient. [/]

found error and repaired.

Sponsored Links
Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
Um, thanks... that's great news on all counts!

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
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

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thanks for the updates on this tho, looks like some great upgrades


- Allen wavey
- What Drives You?
Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
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
Attachments
116711-recommenduspal.txt (0 Bytes, 919 downloads)

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
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.

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
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

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
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.


Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
actually I did a beyond compare and couldn't find a difference... whats the difference?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks for updating this.

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
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

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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..

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Okay thanks


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
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!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
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.

Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
Its set to display Random Profile, Shout Box & Online at the moment. I'll go through the instructions again just in case

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.

Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
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?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
actually you have the option for the front entrance twice and yeah now I see it let me look into it further.

Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
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!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
yes use percentages.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I set it to 95% you can change that. I will update the notes to reflect this.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I updated the instructions for the changes needed.

Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
Ok, thanks!

Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
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!

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
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.

Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
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?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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..

Last edited by scroungr; 08/05/2004 6:53 PM.
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
lastly try substituing FILEPATH_INFO for PATH_INFO

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.

Page 1 of 11 1 2 3 10 11

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)