TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,062
  • Total Topics: 21,338
  • Online today: 234
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 151
  • Total: 152
  • Itchdog

How can i make all shouts centered ?

Started by knat, April 30, 2007, 10:02:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Resident Geek

I suspect that the problem is being incurred somewhere in the database. I'm sure that this was not intentional on the part of the devs. (Or was it?)
My guess is that it is either a problem with the posting method OR a limit on the database. The fields in the DB are set as Text though, which means that there shouldn't be a limit, and the method is post, which means that there shouldn't be a limit there either.
Just my 2 cents. I'll see if I can find a solution but I can make no promises.

knat

#11
Maybe it has something to do with the html that my members use to post there hottest thumbs.. or maybe something happens when they post the first code and then change window/tab to get the code for the next thumb '?  :o Im not sure this problem accures if they post simply text but we only use it for pictures/thumbnails..

Idunno.. it really isnt that important to me i was just wondering.. the important thing was to get the pictures centered in the shoutbox and that has been done  :)

@ ЯÃ'”Ã'•Ã'â€"dÃ'”иÃ'‚ Ã,,¢Ã'”Ã'”Ã,,·â„¢

It looks like the code is not in the template file but in /sources/TPortal.php  ::) i posted the code a few post above this.. and it does have something about limit in it .. read up

rand12om

#12
My shoutbox limits number of characters to 300 symbols and 6 spacers which probably count as symbols.

You had 524 characters in your 3 images url, and about 251 got shown..

knat

Quote from: rand12om on May 04, 2007, 04:44:58 PM
My shoutbox limits number of characters to 300 symbols and 6 spacers which probably count as symbols.

You had 524 characters in your 3 images url, and ...

But do you know where this limit is set ??

rand12om

Sorry no, just wanted to test if I had similar limit in my shoutbox output, seeing how people seemed confused about its existence.

Resident Geek

Well, after a very thorough search, I can find no limit in any place. I have traced the submission of text through the php files and all the way to the database.
By the time the text has reached the database, it has been chopped.
I'll try one more thing before I stop.
*Leaves to go install a full PHP debugger onto his computer*
I've been meaning to do this for a while anyway.

G6Cad

Actually i think Bloc added a limit to the shoutbox for security reasons some time ago.

Dont know where to change it though, but one place you can lookin is the DB and TP-settings table or TP Shoutbox table and see if you can find a way to change the limit

Resident Geek

Yah. I saw the shout box limit thing in the code, but it has nothing to do with the number of characters. All that that does is limit the number of shouts shown at any given time. I can find nothing in the DB to change the character limit.

knat

I never been fidling around in the DB so i think i just leave it as it is unless someone can give me clear directions on how to change it, but thanks for investigating  ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.