>>  Site Map >>  Forums >>  Blocks 6x

Forum module - topics in forum:



Blocks 6x - Discussions regarding PHP-Nuke Blocks.



[Resolved] Name too Long

I have a registered user whose name has 18 letters. That is fine exept on the top posters block it makes it slightly bigger than the other blocks. Is there any code I can put in the block to abrieviate the name or at least make the block smaller. Thanks in advance. Wink






Try adding something like

Code: :


$username = substr("$username", 0,15);
$username .= "..";


at the bottom of block code just above }






I have done that dar63. am I supposed to add their name as well as nothing happened Confused






That should restrict the name to 15 characters, try changing it to 10 or something. Very Happy






Thanks dar63, I have done that and still no change. Shocked






I just tried too, same here.

I'll look into it lol Smile






Thanks dar63 Wink






After a little to'ing and fro'ing with dashe trying to get this to work he decided to completely rewrite the block from scratch.

It includes the required function to limit the length and a couple of new features.

It's in use here and I'm sure once he finishes tweaking it he'll put it up for d/load.






Fantastic. I will keep an eye out for it. I have admired the flags on your top posters. Thanks dar63. Speak soon. Very Happy






Any joy on a solution to the length of the name problem yet, top team. Very Happy






yea, i am having this problem too with a custom user info block. please help... i was thinking if maybe there was a way to change them so if a name is so many characters it does the .... thing


for example

abcdefghijklmn

would be

abcdefghi...






@ weydave.

Dashe's new top posters block is now in the d/load section.






i had the same issue and the guys over at www.dutchies.be figured it out for me in under a week, you can surf over there to find the solution.






dar63 Wrote: :
@ weydave.

Dashe's new top posters block is now in the d/load section.


Absolutely fantastic. Thanks Top Team. Wink






Glad you're happy Dave

T3rry Wrote: :
i had the same issue and the guys over at www.dutchies.be figured it out for me in under a week, you can surf over there to find the solution.


Glad you found a solution T3rry




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS