Previous Thread
Next Thread
Print Thread
Rating: 15
Page 7 of 10 1 2 5 6 7 8 9 10
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I was thinking of grabbing the date of the earliest post and then when short stats counts the total posts the number could be divided by the total days that have elapsed since the earliest post. This would give a daily average. One could also divide by 7 days for a weekly average too.

The numbers generated could be stored in short stats' cache field so the queries aren't run with every page load too. I will get this in for IIP 6.0

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Dave,

How does the "last seen on" work?

I set this up for somebody... and they noted that It doesn't seem accurate. When does it "see you"? At login? or Logout? what if you don't logout?

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
This pulls the unix timestamp from the U_Laston field of the user. This field is set and updated by .threads itself while users use the forum. I believe the only script that updates this time is the addpost.php script and ubbt.inc.php when a user logs in.

I know it's not accurate and this is compounded by the fact that it gets cached. A new field would be needed for the users table and one extra query would be needed during the send_header call to update this field with a timestamp to provide accurate "last seen" information. I don't know if such a modification would be wanted by all but I'll add the directions for the next release as an option for those that do.


Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I thought about porting your IIP to UBB.classic, but I've just noticed the number of features you have and I have to say it's gonna take me years!!!

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
LoL many sleepless nights and lots of caffine should cut the time down considerably.

(more features have been added to the next version... btw)

Sponsored Links
Joined: Aug 1999
Posts: 184
Member
Member
Offline
Joined: Aug 1999
Posts: 184
One quick note, last seen shows people that have chosen to be invisible to all users. Please consider this in the next update.


Silly ricer.. Wings are for airplanes!
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yes I did this because the information is cached. An admin should be able to see invisible users but in order to display both there would need to be two cache fields for the each set. I didn't think it mattered that invisible users were "last seen" because the information is not accurate nor up to date when assembled. Also, I believe if I do change anything I'll be hidding various boxes from invisible users since they don't want to be seen they shouldn't be able to see anyone else.

sjsaunders #223858 10/18/2002 10:38 AM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Hey Dave, I was just poking around for no reason and saw spiderfood.php in the pals dir. I'm asuming it has to do with web spiders and such, but curious as to how it works in relation to IIP, and what the values were you entered in there and if they should be changed or left to what you have or what not.

palmen #223859 10/18/2002 4:54 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
The Profile Index section of IIP can optionally use spiderfood.php to generate bogus email addresses to be displayed to unregistered users which should cover spam bots. (though I have seen bots trying to register as a new user around here so I'll be some day someone will have programed them to be able to actually accomplish such a feat) LoL

You can change the values in the arrays to what ever you want in the spiderfood script or add more. I intend to work spiderfood into any IIP scripts that would display users email addresses as time goes on.

sjsaunders #223860 10/19/2002 8:03 AM
Joined: Oct 2001
Posts: 34
RC Offline
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 34
nevermind, i fixed the problem, you can delete this post, thanks.

Last edited by richierich; 10/19/2002 8:08 AM.
Sponsored Links
fishtails #223861 10/24/2002 11:04 AM
Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
Is it possible to make polls shown on the index-page "votable" at that page, instead of having users to go to another page (the post with the poll) to put his/hers vote? Would be cool!

Love this Mod! It´s the best I´ve used! And my users loves it too!

tubedogg_dup1 #223862 10/24/2002 1:40 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The Poll Pal does allow them to vote directly. If they have already voted, they will see the results.

Joined: Nov 2002
Posts: 3
Lurker
Lurker
Offline
Joined: Nov 2002
Posts: 3
I'm getting this error.

SQL ERROR: Unable to do_query: SELECT Bo_Keyword,Bo_Title,Bo_Write_Perm,Bo_Reply_Perm,Bo_Read_Perm FROM Boards WHERE Bo_Keyword != '' AND Bo_Read_Perm LIKE '%-4-%'
Table 'filam.Boards' doesn't exist
Warning: Supplied argument is not a valid MySQL result resource in /home/filambasketball/www/ubbthreads/mysql.inc.php on line 83
SQL ERROR: Unable to do_query: SELECT COUNT(*) FROM Users WHERE U_Number > 1
Table 'filam.Users' doesn't exist
Warning: Supplied argument is not a valid MySQL result resource in /home/filambasketball/www/ubbthreads/mysql.inc.php on line 83

I'm running 6.0.2 Do I need an earlier version of IIP?

Plus do I need to remove my Calendar Mod?

Please help.


Last edited by jengalla; 11/03/2002 1:25 AM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think for 6.0.x you need IIP 4.6 (was the most current).

Somewhere in this thread.


Daine #223865 11/05/2002 8:22 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
How would I change the title on main page to something else that "at the entrance" without changing the online wording

thanks


Do you believe in love at first sight,
or should I walk by again?
egor #223866 11/05/2002 8:40 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
That may be a problem. The same wording from the online.php file in your language section is used in both places. I believe you can add a title in the send_header call when the index page is generated.


In your index.php page try changing this:

$html -> send_header($config['title'],$Cat,0,$user);


to this:

$html -> send_header("some other title here",$Cat,0,$user);




Hope that works for ya.

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Could something like this be included into IIP? https://ubbdev.com/threads/php/...ew=collapsed&sb=5&o=&fpart=1

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I do think it's a neat feature as far as bells and whistles go. I myself don't intend on creating or porting such a feature for IIP though. Perhaps at a later date when I have covered all of the standard *nuke features I may give the map display a try. After this next version of IIP I'll be working on allowing external modules to be loaded and give an example module so others can add features that I don't plan on doing such as stock quotes and weather information. My main reasons for not doing so is that such features often, if not always, require an agreement between the content provider and the end user and I do not want to create tools to allow users to circumvent such agreements.

Joined: Nov 2002
Posts: 116
Journeyman
Journeyman
Offline
Joined: Nov 2002
Posts: 116
Is there any way to show the number of replies in the frontpage?

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
In what box? Top Threads, Current Threads, Top Rated?

It's probably possible with some editing. I'm just not sure what you have in mind specifically.

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
I get an "Error on Page" in the bottom of the browser with I try to use Add to Favorties from my install. It seems to work on other sites i vist that have implemented IIP? Checked code in the munepal.php file as loaded and it appears to be the same as original file. Also tried upload to orginal file to confirm error. Running 6.1.1 and 5.1.1. under IE6.

Any ideas?

Joined: Nov 2002
Posts: 116
Journeyman
Journeyman
Offline
Joined: Nov 2002
Posts: 116
I mean in the news where after the post it says down how many views this post has, I wonder if next to it can say and how many replies has.
Its a common feature in all the news scripts

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I believe it already does that. What's probably happening is that your using "force public" in which case the number of replies is not displayed because the "public" does not have access to reply. I'll change that over for the next version so it shows the number of replies even though they possibly don't have access to make a reply.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Nope not off hand. Possibly something getting in the way of the javascript? Open tag or something like that?

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I updated the news script to include the reply information when using "forcepublic". Just download the IIP 5.1.1 zip file from the main IIP post and upload the modified newspal.php script. Remember to refresh your site's cache by using:

http://www.somedomain.com/index.php?RefCache=1

Then you will see the changes.

sjsaunders #223876 11/10/2002 4:08 PM
Joined: Nov 2002
Posts: 116
Journeyman
Journeyman
Offline
Joined: Nov 2002
Posts: 116
works great. Thanks
Just one minor suggestion

Instead of having for ex. 26 replies Reply, you can have just the first and when you click on it ,to be lead in the reply page

Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
i followed the directions but i have NO link on the bottom to configure the index page.

what am i doing wrong?

Joined: Apr 2002
Posts: 4
edr Offline
Lurker
Lurker
Offline
Joined: Apr 2002
Posts: 4
I just had the same experience with a copy of IIP I downloaded last night. There's also no link. My setup is a new (functioning) install of UBBT 6.1.1. The pals directory is a sub-directory of my ubbt directory which is a subdirectory of htdocs. Index.php is in the top level of htdocs. My Ubbt config.inc.php is outside my web root.
Also, the cookie path has been set to "/".

Hope that's enough info for a diagnosis.

Last edited by edr; 11/12/2002 3:30 PM.
Joined: Nov 2000
Posts: 210
Member
Member
Offline
Joined: Nov 2000
Posts: 210
make sure you are logged in as administrator before going to the entrance.

Joined: Apr 2002
Posts: 4
edr Offline
Lurker
Lurker
Offline
Joined: Apr 2002
Posts: 4
I am logged in as the administrator. (There aren't any other accounts yet - it's a fresh install of ubbt.) I just realized though that IIP doesn't seem to recognize that I'm logged in since there are "Login" and "Register" links in the top horizontal nav bar. However, when I press the login link UBBT takes me to my Admin Home Page. So, for some reason, IIP is not recognizing my logged in status.

Last edited by edr; 11/12/2002 5:31 PM.
Joined: Nov 2002
Posts: 116
Journeyman
Journeyman
Offline
Joined: Nov 2002
Posts: 116
download cookie pal from www.tucows.com
erase all the cookies from your site
try to login again

is clearly a matter of cookies

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Make sure your cookies are set site wide. That is usually the problem when the index page doesn't recoginize the admin's access.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yes, Hal is right. It sounds like a cookie problem. As long as your cookies are site wide the index should recognize your status. Let me know how it goes.

Joined: Apr 2002
Posts: 4
edr Offline
Lurker
Lurker
Offline
Joined: Apr 2002
Posts: 4
Dave and Hal,

Thanks - it was a cookie problem but I'm not sure what caused it or how it was fixed. I had IE set to block 3rd party cookies, and when I disabled this (temporarily) I was able to see the link and configure IIP. I later went back to blocking 3rd party cookies and I can still see the link to the admin panel.

Thanks again for your help.

EdR

Last edited by edr; 11/13/2002 4:51 PM.
sjsaunders #223885 11/14/2002 8:09 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Doh. As many others I've been fooled by the cache... Didn't think a couple of the pals used the table wrapper, but it turns out they were just cached. Wouldn't it be a good idea to always load the wrapper dynamically and only cache the content? It shouldnät be that much of a problem though, since the wrappers won't be changed that often and the cache can be reread if I'm not mistaken.

I also wonder why Mozilla doesn't count as Netscape when setting text box width? Is it because the fields aren't as wide as in Netscape or something?

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
When I upgrade UBBThreads from 6.1 to 6.1.1 will I have to run the Initial Setup for IIP again?

What is the proper way tp upgrade IIP 5.1 to 5.1.1?

Also when setting the number of posts for past News Links IIP forces all three boxes (B1,B2,B3) to have the same number value no matter what number I chose.
eg;Choosing 3 posts for B1,2 Posts for B2,and 1 post for B3 update config will set them all to 3

Thanks for the help

Last edited by ChAoS; 11/15/2002 11:10 PM.
c0bra #223887 11/16/2002 12:03 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Mozilla will fall under "other" when selecting size for text boxes. I intend on building up the browser detection to allow for other adjustments at some point. I'll try and keep Mozilla in mind though for 6.0

The main problem with not storing the table wrapper is when storing the news into cache. There is usually more than just one news box and since they all settle into the same storage field. I would have to set a specific limit on the news articles in order to create specific room for each in cache.


Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yes you should load the configure panel into your browser and go over the new features and settings. Your old settings should remain in tact.

Going from 5.1 to 5.1.1 you will need to upload all files in the /pals directory except for the subdirectories, configpal.php and create-cache-table.5.1.php.

I have been playing with the number of news posts on my test site, using 3,2,1 and 1,2,3 and 4,1,1 and just about any other combination and I can't get them to do what your's is doing. Perhaps I fixed this in IIP 5.1.1? I dunno...

Anyone else have this problem too?

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Forgot to add that you will need to upload the new index.php file also... sorry...

sjsaunders #223890 11/16/2002 4:21 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I have both username options [*] set to 0, but sometimes when a user who is not logged in comes to the page it is possible to add a shout, which becomes written by Anonymous. Once the first shout is added, the alert box comes up though. Any insight on this?

[*]Should we allow unregistered users to use the shout box? 1=yes 0=no
Should we allow unregistered users to specify a nickname with the shout? 1=yes 0=no

Page 7 of 10 1 2 5 6 7 8 9 10

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
isaac
isaac
California
Posts: 1,157
Joined: July 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)