![]() |
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 |
If I had to wager a guess, it would be the MariaDB that's at the heart of the issue...:)
|
Poor old Maria !
|
Quote:
Quote:
HTML Code:
<!DOCTYPE html... Quote:
Quote:
|
Quote:
Thank you for bringing this to my attention. :) |
Quote:
PHP Code:
|
can i get the number like this {vb:raw post.posts} in postbit ?
|
Quote:
Quote:
|
Quote:
I will wait to publish it though, because I am working on a major upgrade, and this will be part of it. |
Quote:
thank you mark i have made the COUNT from sql using php file how can i find the Featured Threads for each user ? i don't want a major upgrade its hard to translate for arabic language :) |
Quote:
PHP Code:
|
Quote:
|
Quote:
PHP Code:
|
Quote:
version 5.0.51 |
Quote:
PHP Code:
If that works, then we will proceed from there. :) |
Quote:
awesome works successfully :) thank you |
Quote:
PHP Code:
|
Quote:
thank you mark i use this php file with field42 PHP Code:
is that right ? |
You should be able to do this without having to use a profile field...you wouldn't want to have to run an additional query for each postbit, redundantly updating a profile field each time.
|
Quote:
i used Scheduled Tasks for updating user field in every 24 hour |
Quote:
|
Have now installed on Live site and am trying to configure it for a particular purpose. That of member nominations & member voting.
Will let you know how it goes ! I can see you've put an awful lot of work into this - Another product from you that shows your kind generous nature. ps : Like an earlier poster I could do with a second instance of this for another facility :D |
Ah - One query.
In above instructions; custom icon goes in "images/icons" folder according to settings display, but text beneath says it goes into "markfl_featuredthreads/icons". I could save myself the bother and put into both locations - but just wondered which was correct :D |
mmm - activating on Live Forum is similar to that on test site - but I don't get an error message - just a blank screen.
Will investigate I've got all the files on the server and in the 'right' places.... EDIT : All OK - Have deactivated for the moment ..... |
Me stumped.
Test Site : Notifications switched off. CMS disabled. Sideblocks disabled. All products/plugins disabled. Feature Threads enabled. Error message, as before. No database error. All files etc correctly placed - fresh version of download zip file checked against original. |
Quote:
Quote:
Quote:
|
Quote:
You may choose to display an image icon for the featured threads in several places. You are given a choice of 5 included icons, or you may upload your own and give its filename in the settings. You must upload your custom icon to the "markfl_featuredthreads/icons" folder. Quote:
Blank Screen : After activating product, accessing / refreshing Forum through any link, including forum.php. On test site : error : As previously mentioned; above; but I've just had another go through forum.php and I've received effectively timeout error.... Quote:
|
Quote:
The blank screen I presume is associated with the error you are getting, which I have no idea about. :( |
Quote:
If no one else has a similar issue, there must be something in the Forum that differs - and yet!? I'll keep trying and see if I can isolate the particular problem. Though with all hacks disabled, including vBs :( |
Quote:
|
I'm suspecting a template issue, though I can't be sure.
If I uncheck "Render CSS/Featured Threads List Below Navbar/Above Footer", I can load the test Forum and see "Featured Threads" on the navbar. But featurepage.php doesn't load up, with time-out error I'll PM details for Admin access to the Live site. |
All times are GMT. The time now is 02:21 PM. |
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:
|