![]() |
thank u mark that was awesome installed and 5 stars
Q \ can i get the number (count) of the Featured Threads for each user ? and add the count to postbit ? |
Quote:
just discovered through diagnostics that vBulletin (admincp) has advised : class_core.php Quote:
|
Quote:
|
Quote:
|
Hi Mark!
Minor bugs in mod Featured Threads v1.9.7 1 Replase all phrases to {vb:rawphrase vb_standart_phrase} This is for non English forums 2 Find and replase <br> ==> <br /> <img src="' . $icon . '">'; ==> <img src="' . $icon . '" alt="" />'; <input bla-bla-bla> ==> <input bla-bla-bla /> <hr></hr> ==> <hr /> 3 This is for forums with UTF8: Code:
$preview = substr($firstpost['pagetext'], 0, $vbulletin->options['threadpreview']); Code:
$preview = iconv_substr($firstpost['pagetext'], 0, $vbulletin->options['threadpreview'], 'UTF-8'); Code:
$forum_trunc = strlen($forum_name) > $forum_length ? substr($forum_name,0,$forum_length) . "...": $forum_name; Code:
$forum_trunc = strlen($forum_name) > $forum_length ? iconv_substr($forum_name,0,$forum_length, 'UTF-8') . "...": $forum_name; 4 Some forums have a short URL: Member, Forum, Thread Code:
return '<a title="' . $title . '" href="member.php?' . $user_name['userid'] . '-' . $user_name['username'] . '" target="_blank">' . $open_tag . $user_name['username'] . $close_tag . '</a>'; Code:
return '<a title="' . $title . '" href="member.php?u=' . $user_name['userid'] . '" target="_blank">' . $open_tag . $user_name['username'] . $close_tag . '</a>'; Code:
$thread .= '<a title="' . get_thread_preview($threadinfo['firstpostid']) . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="showthread.php?' . $threadinfo['threadid'] . '-' . str_replace(' ', '-', $threadinfo['title']) . '">' . $threadinfo['title'] . '</a>'; Code:
$thread .= '<a title="' . get_thread_preview($threadinfo['firstpostid']) . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="showthread.php?t=' . $threadinfo['threadid'] . '">' . $threadinfo['title'] . '</a>'; Code:
return '<td style="border-right: ' . $vbulletin->options['markfl_ft_border'] . '"><a title="' . $ftitle . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="forumdisplay.php?' . $ftthread['forumid'] . '-' . str_replace(' ', '-', $vbulletin->forumcache[$ftthread['forumid']]['title']) . '">' . $forum_trunc . '</a></td>'; Code:
return '<td style="border-right: ' . $vbulletin->options['markfl_ft_border'] . '"><a title="' . $ftitle . '" style="color: ' . $vbulletin->options['markfl_ft_linkcolor'] . '; ' . $vbulletin->options['markfl_ft_linkformat'] .'" href="forumdisplay.php?f=' . $thread['forumid'] . '">' . $forum_trunc . '</a></td>'; |
Quote:
2.) Those slashes add no functionality to HTML and are not necessary. 3.) I will eventually look into adding UTF-8 encoding functionality. I'm learning as I go. 4.) I tried giving URLs that are the most standard, and play nicely with SEO mods. |
1.
It is very necessary. Put it at 1st line in you TODO list. ))) 2. If we used the specification DOCTYPE HTML it would be appropriate to use <br> But in VB we use specification DOCTYPE XHTML in this case it is necessary to use <br />, <hr />, <input />, <img /> and then the code is valid 3. php substr() function with utf-8 leaves "�" marks at the end before "..." I showed how to solve this little problem 4. Maybe you can add settings option SEO link | Standard Link |
Quote:
Your Mod seems to be the first instance of something not totally right. But I'll give it a try and, obviously, let you know. Many thanks for your kind work and patience on helping. One food for thought as an enhancement could be options to create more than one variety of nomination? Similar to DBTechs vBnominate... EDIT : Sorry Mark - have updated the class_core.php file (test forum) - diagnostics clears as OK - but the error continues. |
Quote:
|
Quote:
(Don't forget I'm only running (!) this on my test Forum via xampp; so there might - probably - possibly be fewer/no issues on the Live). vB 4.2.3 C1 PC - test Forum Server Type WINNT Web Server Apache v2.4.17 PHP 5.6.15 MySQL Version 10.1.9-MariaDB MySQL Packet Size 1.00 MB Live Forum Server Type Linux Web Server Apache PHP 5.6.16 MySQL Version 5.6.28 MySQL Packet Size 256.00 MB |
All times are GMT. The time now is 01:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|