[RC] cBB Follower 1.0.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
User avatar
Theriddler1
Registered User
Posts: 451
Joined: Sat Aug 27, 2011 11:00 pm
Location: NL
Name: Theriddler❶

Re: [RC] cBB Follower 1.0.1

Post by Theriddler1 »

canidev wrote:Hi,

In the current version is not possible but, I think that i will add this feature in the next version :)

Regards
Awesome thanks
Theriddler - Former Moderator @ phpBB.nl | phpBBservice.nl Team-member
Image My Extensions | buy me a beer Image
User avatar
Mathieu M.
Registered User
Posts: 181
Joined: Tue Nov 02, 2010 11:42 am
Location: France 🇫🇷
Name: Mathieu

Re: [RC] cBB Follower 1.0.1

Post by Mathieu M. »

Hello canidev,

Do you plan to update your cBB Chat, cBB Follower and cBB Blog MODs for phpBB 3.1 extensions soon ?


Thanks for your wonderful work ;)
😄😄😍😄😄
User avatar
tol336
Registered User
Posts: 13
Joined: Sun Jul 22, 2007 7:55 am
Location: Russia

Re: [RC] cBB Follower 1.0.1

Post by tol336 »

Hello! Good work!
But I found small bug.
follower.php have two U_NOTES with different values

Code: Select all

'U_NOTES'		=> ($user_notes_enabled && $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=notes&mode=user_notes&u=' . $user_id, true, $user->session_id) : '',

Code: Select all

		'U_NOTES'				=> "$user_action&mode=wall",
/subsilver2/template/follower/right_side_body.html generates the wrong link (such as /follower.php?u=132 instead of /mcp.php?i=notes&mode=user_notes&u=132) in the block

Code: Select all

<td style="text-align:{S_CONTENT_FLOW_BEGIN}"><strong>{WARNINGS}</strong><!-- IF U_NOTES or U_WARN --> [ <!-- IF U_NOTES --><a href="{U_NOTES}">{L_VIEW_NOTES}</a><!-- ENDIF --> <!-- IF U_WARN --><!-- IF U_NOTES --> | <!-- ENDIF --><a href="{U_WARN}">{L_WARN_USER}</a><!-- ENDIF --> ]<!-- ENDIF --></td>
Neubivljiv
Registered User
Posts: 76
Joined: Mon Jan 11, 2010 11:05 pm

Re: [RC] cBB Follower 1.0.1

Post by Neubivljiv »

Hi,

this is really nice MOD. There is only one small flaw, which can be a serious. When a user follows a few regular members, he will be buried with emails. This can be a serious problem, and mostly against the anti-spam policies (email domain can be marked as a spammer and blacklisted).

Maybe a solution to this that there is a threshold for sending: send a maximum of 2 email, until the user visits the site. No need to spam a user with e-mails until he visit the forum.
Or simple option to setup the time between sending email notifications to individual users (for example, field "last_email_time" + 3600 * 6 => every six hours 1 email)

For example, if the user follows the 10 regular members, it can easily happen that he receives 20-50 emails per day. This should definitely be prevented.

Otherwise, the mode is excellent (and much better than other attempts to "clone" the social network or similiar).
User avatar
Meis2M
Translator
Posts: 1012
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری

Re: [RC] cBB Follower 1.0.1

Post by Meis2M »

Hello

plz convert this mod for phpBB 3.1 as an extension.
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
Theriddler1
Registered User
Posts: 451
Joined: Sat Aug 27, 2011 11:00 pm
Location: NL
Name: Theriddler❶

Re: [RC] cBB Follower 1.0.1

Post by Theriddler1 »

When someone mention another user within a post, the other user get email or pm or both

in the pm they recieve:

Code: Select all

Hi username1,

You are receiving this notice because you have been mentioned
by username2 in a comment or message.
but where can username1 see where he or she has been mentioned in which post?

is it possible that there can be a link added to the post they have been mentioned.

Edit: nevermind it's the red eye on the banner
777Firebrand777
Registered User
Posts: 91
Joined: Sat Oct 27, 2012 5:03 pm

Re: [RC] cBB Follower 1.0.1

Post by 777Firebrand777 »

Currently the mod is not compatible with 3.0.12. There are installation errors.

Code: Select all

styles/prosilver/template/posting_topic_review.html

Find
						<td valign="top" nowrap="nowrap">&nbsp;<!-- IF topic_review_row.POSTER_QUOTE and topic_review_row.DECODED_MESSAGE --><a href="#" onclick="addquote({topic_review_row.POST_ID},'{topic_review_row.POSTER_QUOTE}'); return false;">{QUOTE_IMG}</a><!-- ENDIF --></td>
Add After
						<!-- IF topic_review_row.MENTION_BUTTON --><td valign="top" nowrap="nowrap">{topic_review_row.MENTION_BUTTON}</td><!-- ENDIF -->
The Find specified by the MOD could not be found

Code: Select all

styles/prosilver/template/viewtopic_body.html
Find
<b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b>
Replace With
<b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b> {postrow.AUTHOR_FOLLOW_NAME}
The Find specified by the MOD could not be found
Find
<span class="postdetails">
Add Before
				<!-- IF postrow.S_FOLLOW_BUTTON --><div style="text-align: center">{postrow.S_FOLLOW_BUTTON}</div><!-- ENDIF -->
The Find specified by the MOD could not be found
styles/prosilver/template/posting_topic_review.html
styles/prosilver/template/viewtopic_body.html


Somebody already mentioned this in the topic, but I did not understood the reply.

Also, does this mod uses jQuery? Because the toolbar on the top of the page is not appearing.

Anybody can help?
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11137
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo

Re: [RC] cBB Follower 1.0.1

Post by Raul [ThE KuKa] »

These lines are for subsilver2 style, not prosilver style.
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
admice
Registered User
Posts: 5
Joined: Mon Nov 09, 2015 1:58 pm

Re: [RC] cBB Follower 1.0.1

Post by admice »

Hi! Great MOD, but i experience a strange bug ((
I can mention well users with latin names, both lowercase or not (mice and Mice al good), also i can mention user with lowercase cyrillic names (мышь). But if user name starts with uppercase cyrillic (Мышь), @username isn't parsed as link ((
User avatar
canidev
Registered User
Posts: 208
Joined: Sun Jun 26, 2011 5:40 pm
Location: Spain

Re: [RC] cBB Follower 1.0.1

Post by canidev »

admice wrote:Hi! Great MOD, but i experience a strange bug ((
I can mention well users with latin names, both lowercase or not (mice and Mice al good), also i can mention user with lowercase cyrillic names (мышь). But if user name starts with uppercase cyrillic (Мышь), @username isn't parsed as link ((
I will check this problem in future versions.
User avatar
admice
Registered User
Posts: 5
Joined: Mon Nov 09, 2015 1:58 pm

Re: [RC] cBB Follower 1.0.1

Post by admice »

Sound's great, but it seems to be urgent, forum is near to become production.
It's strange, that tags work well with Capital-started tags (

Maybe, you could tell me, where should i dig in your code or how to test the issue..?
User avatar
canidev
Registered User
Posts: 208
Joined: Sun Jun 26, 2011 5:40 pm
Location: Spain

Re: [RC] cBB Follower 1.0.1

Post by canidev »

Ok, try with this (I did not tested this solution to 100%) :

1. Open /follower/includes/follower.php
2. Find:

Code: Select all

$text = preg_replace('#((?:^|\s)+@)([^<>\s]+)#e', "'\$1' . strtolower('\$2')", $text);
3.Replace with:

Code: Select all

$text = preg_replace('#((?:^|\s)+@)([^<>\s]+)#e', "'\$1' . utf8_strtolower('\$2')", $text);
4. Find:

Code: Select all

				$find = array(
					'@' . strtolower($row['user_follow_name']),
					'@[' . $row['username'] . ']',
					'@[' . $row['username_clean'] . ']',
				);
5. Replace with:

Code: Select all

				$find = array(
					'@' . utf8_strtolower($row['user_follow_name']),
					'@[' . utf8_strtolower($row['username']) . ']',
					'@[' . utf8_strtolower($row['username_clean']) . ']',
				);
User avatar
admice
Registered User
Posts: 5
Joined: Mon Nov 09, 2015 1:58 pm

Re: [RC] cBB Follower 1.0.1

Post by admice »

Wow, maan! Thank you so much!
Solved!
FOXBROOK
Registered User
Posts: 7
Joined: Fri Jun 20, 2014 2:44 am

Re: [RC] cBB Follower 1.0.1

Post by FOXBROOK »

Hello, I want to start off by saying this is a fantastic MOD.
I installed it on my board which is running a acidtech theme (based off subsilver2). I manually installed it because of the different theme. So I'm currently testing it and the follower_header doesn't appear on my overall_header after inserting the code.
Also I'm not able to post anything to the wall. I hit "new comment" and nothing pops up. I'm not a pro with installations but I'm able to follow instructions if you have any ideas. Thanks
User avatar
admice
Registered User
Posts: 5
Joined: Mon Nov 09, 2015 1:58 pm

Re: [RC] cBB Follower 1.0.1

Post by admice »

Hi! Just got the bug:
when i start typing @... - memberlist appears in the number of two. One below another with some different margin, so both can be seen.

Any ideas, what may cause that?

Return to “[3.0.x] MODs in Development”