Previous Thread
Next Thread
Print Thread
Rating: 15
Page 8 of 10 1 2 6 7 8 9 10
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
OK, thanks. No worries on the template caching, it's not a very big deal.

Sponsored Links
c0bra #223892 11/16/2002 4:31 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
LoL well since my last post on the subject I have been dwelling on things... as usual. I forget the limit for the number of fields a table can have but I do know it was quite high. I don't think the space the empty fields would use up just sitting around would matter much so perhaps adding a total of 15 "news" fields? But then I was also going to add in (at some point) a way for admins to add what ever posts they wanted to the news section. Perhaps a total of 20? fields and once they are full the add-in posts would need to be selectively flushed to make room for new ones? Or perhaps allow for a choice to overwrite them.

LoL perhaps I'm dwelling to much. The way it is now keeps it simple and lessons the load on php to generate the layout with the data. It's already done and stored in bulk.

sjsaunders #223893 11/16/2002 4:47 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I just found this on the searchpage:

<img width="65" height="75" src="http://www.tradition.se/prodbilderdb/mageknights/SE_150.jpg" alt="<span class="standouttext>Morgoth</span>" />

Note the span-tag in the middle of the alt-text. Not very pretty.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Yeah, I'd skip it, no need to add a whole bunch of fields to the table, that isn't pretty either.


c0bra #223895 11/16/2002 4:57 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Search page? Or is that the "new members" box? I'll go looking for it... Thanks.

Sponsored Links
c0bra #223896 11/16/2002 4:58 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I'll bet you mean the "Profile index" page?... I'll track that down and upload the fix.

sjsaunders #223897 11/16/2002 5:01 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Yup, that's the one. Sorry about the confusion.

While you're at it, remove all language strings from it and use the ones from the language pal instead. And load the showprofile.php language string for the user information (Username, Bio, Name etc.)

A languagepal translated into swedish is coming, I just need to have it spellchecked first.

c0bra #223898 11/16/2002 5:10 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I redid the language include for the next IIP. I used pretty much the same sentances/words in the languagepal.php file but have them all in the same array so calling them globally from a function is easier and more straight forward like Rick does with .threads.

I have to finish the "day view" and "single event + comments view" for IIP 6.0's calendar and I'll be able to offer the language file for translation at that point. I have a number of other things to finish up as well but I don't think there will be any language strings needed for them. One of the last things I'll be doing is bolting it on to .threads 6.2 and bondoing the seams and adding a coat of paint... lol

c0bra #223899 11/16/2002 5:11 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
What was the search you entered that caused the error? Or am I not looking hard enough?

sjsaunders #223900 11/16/2002 5:17 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Nothing fancy, it happens when I search for a specific username. I guess it's caused by the marking up of the username, which is found as the alt text on the profile image.

Sponsored Links
c0bra #223901 11/16/2002 5:25 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I kinda figured that was the problem. I only searched for the name "dave" and it seemed to work... or at least I think it did. LoL I'll try it again and make the fix. Shouldn't be to hard to find and do. Thanks.

sjsaunders #223902 11/16/2002 5:27 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Okey, I guess the swedish translation can wait until 6.0, not many swedish sites will probably start using it until then anyway. Except us, of course. =]

Sounds great on the progress of IIP 6.0, I'm really waiting for it, as many others are. Don't want to have you spend time on 5.x either, but I'd like these few things fixed before I go live with it.

Another thing, people say that it says "Add to favorite" even though I have translated this and can't find any more strings in the code. Is this magically inserted, or am I blind? I was thinking it was a cache problem, but nothing changed when I asked a user to use the RefCache=1 argument.

c0bra #223903 11/16/2002 5:34 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I'll bet that's hidden in the javascript of the menupal for that IE function. I'll pull it out and put it in the languagepal.php script right now. I have fixed the alt tag problem with the profile index page. It's working here now.

I'll upload the updated zip file. I will also append the instructions with what changes I have done and date them. This will help when figuring out what to upload for those that already have it installed.

sjsaunders #223904 11/16/2002 5:41 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks, can't hardly wait. =]

c0bra #223905 11/16/2002 5:54 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
The way the news section displays the post's info and options is as such:

311 views · 10 replies · Reply


Would putting a link in "views" to the post so users can view the post and it's replies along with putting a link in "replies" so users can make a reply and removing the "Reply" link be better?

Or do this:

311 views · 10 replies · View · Reply


And make a new "View" link to go with the "Reply" link?

Just want to cover something suggested by Brewskie

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I'd say adding a "View" link is the best, it will be easiest to understand.

I won't be using the news section though, so I don't really care. =]

c0bra #223907 11/16/2002 6:37 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
hehehe... ok I'll put that in right now. Was just waiting for someone else's opinion... lol

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Sounds good.

And now for something completely different:
Since our page design is restricted to 800 pixels, the attachment list is way too wide (at least when users have too long filenames, so I'm thinking of always show it in full mode. Hope that's an easy hack. =] The Profile Index is a bit too wide also, because of some long Extra Information fields that we use (or rather, will be using when we open IIP), but that can be fixed by rearranging the search box at the top I think.

Bonus odd thing:
The complete poll list shows a poll from a closed board (which my user have access to, but the name of the board doesn't show in the list, it's just empty.

c0bra #223909 11/16/2002 7:17 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I'll look things over and see if there's a simple way to keep that in full mode. I intend to use a cookie to store the viewer's display mode with the next version. Since the next version is templated it will also be just a matter of displaying the specific page in a "full mode" by default.

I know what's causing this:

The complete poll list shows a poll from a closed board (which my user have access to, but the name of the board doesn't show in the list, it's just empty.

It's the fact that your using "force public" and when I initially grab the board's information the limited access board doesn't have any title information available. I had to modify the attachment's list to adjust for the force public option. I'll do the same for the poll list as well.

I just updated IIP's main post with a new zip file and appended the information I placed in a new "CHANGES.txt" file included in the zip so everyone can tell what was modified last so they know what needs to be uploaded.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Yummy! I'll install it right away and see what I can break. =P

The attachment list is only too wide when there is a filename with a really long name (something like 30 characters), but unfortunately it seems quite common, especially because of the added extra numbers by threads. Maybe the name could be clipped, but that would make the extension disappear... If there is a subject with a really long name without spaces it can also screw things up, not so common though, but I've seen it.

Yup, I'm using "force public", anything to make things go faster. If it only happens for us admins it doesn't really matter, we don't use polls that often anyway.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I've considered putting in a function to chop words over X length so various layouts are not stretched. I have yet to tackle this but it's on my list.

If I remember right the fix I applied to the attachment's list wasn't hard to put in. I think I simply reauthed the viewer. I'll do the same for the poll list as well. This problem has been banquished in the next version. Each page auths on it's own since they are not part of the index it's self. This also allowed for each section to have it's own "online" language string so we can see if their making a recommendation, viewing attachments or searching profiles...

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I've changed the profilepal.php to make use of information from the languagepal and moved all text strings into the languagepal.

A zip with new profilepal.php and languagepal.php is included. Just unzip and upload into your directory if you want to use it.


Edit note: I have included the changed files in IIP's zip file located in IIP's main post. Thanks Gardener!

Last edited by JustDave; 11/16/2002 8:51 PM.
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Thanks Gardener

I'm tracking down that polllist bug. It's happening here to me with the "archives" Allen has hidden from everyone including admins.

I should have this fixed yet tonight. I'll add your files to the zip when I get this fixed and upload the entire zip.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Hope I'm not keeping you too much from getting any work done on 6.0. =]

I found that I'd missed two language strings:
$pal_ProfileIndex[27] = "Default search used. Please reformat your search query and try again.";
$pal_ProfileIndex[28] = "for word(s)";

Also, there are missing leading { for $pal_ProfileIndex[15] and $pal_ProfileIndex[16] in the profilpal.php script.

I've already hacked this one, so I hope it's not to much of a trouble to add the changes yourself.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
LoL I just uploaded the zip. I'll get them in and re-upload... I don't think I'll append the changes to the list... lol the main post is getting pretty long tonight... LoL

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Ok I got them fixes in and uploaded the zip again.

I also edited your post stating that the files are in the main zip. Hope you don't mind.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
How rude!!! I can't believe hearing about this violation of my rights and personal integrity!!!

Or not. =] Good work.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Just to bug you a bit more: The user status is just read from the database, a couple of lines need to added to the profilepal script, and three lines to the languagepal.

#
# Find these lines
#

if ($totalprofiles > 0) {
while (list($palUsername,$palFakeemail,$palname,$palTotalposts,\
$palHomepage,$palOccupation,$palHobbies,$palLocation,$palBio,$palICQ,$palExtra2\
,$palExtra3,$palExtra4,$palExtra5,$palRegistered,$palPicture,$palTitle,$palStat\
us,$palUNumber,$palRegIP,$palPicHeight,$palPicWidth,$palAcceptPM) = $dbh -> fet\
ch_array($sth)) {

#
# Add this below:
#

if ($palStatus == "Administrator") {
$palStatus = $pal_ProfileIndex[31];
} elseif ($palStatus == "Moderator") {
$palStatus = $pal_ProfileIndex[30];
} else {
$palStatus = $pal_ProfileIndex[29];
}

Add these lines to the languagepal.php:

$pal_ProfileIndex[29] = "User";
$pal_ProfileIndex[30] = "Moderator";
$pal_ProfileIndex[31] = "Administrator";

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Here's just a small update that makes e-mail links clickable in the profile index, as well as breaking up long addresses in two lines.

#
# Find this code in profilepal.php:
#
code:

if ($profindexemailhide && !$user['U_Username']) {
$palFakeemail = screwy_Mail($palFakeemail);
}


#
# Change it into this:
#
code:

if ($profindexemailhide && !$user['U_Username']) {
$palFakeemail = screwy_Mail($palFakeemail);
} else {
if (strlen($palFakeemail) > 25) {
$showEmail = substr($palFakeemail, 0,
strpos($palFakeemail, "@"));
$showEmail .= "<br />";
$showEmail .= substr($palFakeemail,
strpos($palFakeemail, "@"));
} else {
$showEmail = $palFakeemail;
}
$palFakeemail = "<a href="mailto:$palFakeemail">$show\
Email</a>";
}



I also did a small change to add icons in front of all action items next to the profile images, just like on threads profile page. But I'm afraid that JustDave will kill me if I show any more changes. ;]

Last edited by Gardener; 11/16/2002 10:25 PM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
A suggestion/question.....

I don't know if there's a way to have "unlimited pals" on the fly or not...
or an easy way for add ons to be included in the online config option (for placement).

I just put together the "birthday pal" which works with the birthday mod.

IIP is very user friendly (install wise).
The easiest way for someone to add in and add-on like mine, or the photpost pal etc... is to simply rename it customboxpal1 or customboxpal2 etc.... Then they can choose it's position in the control panel without having to do any hacking.

I guess 3 should be enough... but it wasn't for me. I had to hard code the include in somewhere.


Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Since 6.0 is template based it will allow for the addition of what ever box you want into the template.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I hadn't considered adding the icons but the email link is already clickable in 6.0

If I use the icons I may have to find one for the "show all users pictures" link which takes viewers to the picture gallery thingie I have started. Also, at some point I may add in links for users to view another's personal calendar (provided they allow public viewing).



The changes you suggest though are not that hard and I should be able to get them in 5.1.1 quick enough. I'll do that sometime today.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
If you have a "Show all users' pictures", why not also add a "Show all users' files" as well?

I also did a small hack so that the random profile only shows profiles with pictures, otherwise I'd get mostle profiles with just a name and nothing else. Those who have pictures generally also fills in their user info. I had to add one query though, since I didn't feel like changing the way it chose the random profile...

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I had considered only showing profiles with pictures or that contained more complete information when I first created the box but it was that extra query that made me decide not to. I spose I could make it an option so if they want the extra query ran they could elect to do so.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Since it's cached, that extra query will only happen once every X minutes anyway, which won't make that much of a difference. So I'd say it's a good idea to add that as an option.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
That's true. I wasn't caching at that time. I'll definately have this in for the next version.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You'd mentioned that you might be using the Profile Status Bars.

If that's the case... I've included instructions in that thread which only pull profiles that are like 60% complete.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Yes, I've actually installed it on my test site now, where I think I have everything that I will be using now, it just needs to be tested a bit more. I will be using a lot of hacks, I think there are 18 at the moment (not counting small changes and the ones I've forgot about). It won't be fun to upgrade...

But I think I'm going to use the one that checks for profile image, since it looked so empty with just the standard image. Maybe that will make more people upload an image of their own as well.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Just a bump...

I fixed a small bug in the index.php page that was counting all uses. This would be a problem on sites that are aproving new users.

Download the zip from IIP's main post and upload the new index.php page.


Or....

In your index.php page find this:

code:

$query = "
SELECT COUNT(*)
FROM {$config['tbprefix']}Users
WHERE U_Number > 1
";




and change it to this:


code:

$query = "
SELECT COUNT(*)
FROM {$config['tbprefix']}Users
WHERE U_Number > 1
AND U_Approved = 'yes'
";





and that should do the trick.


I swear I fixed this once. Or maybe it was something else... lol I think I need sleep.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Since I needed to change something to be able to use the attachment pal I did the following changes:
  • Any leading numbers followed by a '-' is removed.
  • The file extension is separated from the filename and put in it's own cell
  • If the filename is too long (more than 25 characters) it's cut off.
  • The complete filename is inserted as a title to the link
  • The thread subject is cut at 25 characters as well.

I also did the username into a link to the profile, and aligned the hits and comment fields to the center and right, respectively.

If anyone wants this functionality, just let me know and I'll write it up.

Page 8 of 10 1 2 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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 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)