MyBB Community Forums
[How To?] How to limit title length in breadcrumb? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] How to limit title length in breadcrumb? (/thread-221429.html)



How to limit title length in breadcrumb? - Kygo - 2019-01-09

how do I create a limit title on a breadcrumb like this?


RE: How to limit title length in breadcrumb? - effone - 2019-01-09

You can modify _generate_breadcrumb() method in page class and limit the length of $crumb['name']
Or you can use jQuery.

I am not aware of your programming knowledge and whether this much information is sufficient or you need further guidance.


RE: How to limit title length in breadcrumb? - Kygo - 2019-01-09

(2019-01-09, 07:28 AM)effone Wrote: You can modify _generate_breadcrumb() method in page class and limit the length of $crumb['name']
Or you can use jQuery.

I am not aware of your programming knowledge and whether this much information is sufficient or you need further guidance.

I need more detailed instructions because I can't use a programming language.


RE: How to limit title length in breadcrumb? - Serpius - 2019-01-09

(2019-01-09, 07:28 AM)effone Wrote: You can modify _generate_breadcrumb() method in page class and limit the length of $crumb['name']
Or you can use jQuery.

I am not aware of your programming knowledge and whether this much information is sufficient or you need further guidance.

Or...

He/She can use the Advanced Sidebox plugin and define the length of the thread title to whatever he/she wants and it will end in an ellipsis. 

I think a few other "Latest Threads" sideboxes will do the same thing as well.


RE: How to limit title length in breadcrumb? - Kygo - 2019-01-10

(2019-01-09, 12:25 PM)Serpius Wrote:
(2019-01-09, 07:28 AM)effone Wrote: You can modify _generate_breadcrumb() method in page class and limit the length of $crumb['name']
Or you can use jQuery.

I am not aware of your programming knowledge and whether this much information is sufficient or you need further guidance.

Or...

He/She can use the Advanced Sidebox plugin and define the length of the thread title to whatever he/she wants and it will end in an ellipsis. 

I think a few other "Latest Threads" sideboxes will do the same thing as well.

can't it be done without using a plugin?


RE: How to limit title length in breadcrumb? - Serpius - 2019-01-10

(2019-01-10, 02:25 AM)Kygo Wrote:
(2019-01-09, 12:25 PM)Serpius Wrote:
(2019-01-09, 07:28 AM)effone Wrote: You can modify _generate_breadcrumb() method in page class and limit the length of $crumb['name']
Or you can use jQuery.

I am not aware of your programming knowledge and whether this much information is sufficient or you need further guidance.

Or...

He/She can use the Advanced Sidebox plugin and define the length of the thread title to whatever he/she wants and it will end in an ellipsis. 

I think a few other "Latest Threads" sideboxes will do the same thing as well.

can't it be done without using a plugin?

Maybe, but you have to know coding/programming in order to modify the code to your liking.