The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Hashtags on forum

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Go down

In progress Hashtags on forum

Post by Luffy on April 11th 2014, 10:04 am

First topic message reminder :

Hello. Does anyone know how to add hashtags on my forum? I always wanted to add hashtags on my forum

Forum Version: PunBB

Thanks!

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down


In progress Re: Hashtags on forum

Post by Luffy on May 13th 2014, 1:32 pm

The thing that you don't understand is that this system searches for titles of posts. Not for words or names in the post. Search for the work forum or hashtags or system or something else that is written on the title and not in the post.






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

In progress Re: Hashtags on forum

Post by Pizza Boi on May 13th 2014, 3:05 pm

Hi Very Happy

This bickering is quite pointless... or whatever you classify this. Anyway, this portion of the parser:

Code:
  var p = $('.post .entry-content');
  for(var i = 0, post; (post = p[ i++ ]); ) {
      var codes = post.getElementsByTagName('code'), store = [];
      for(var j = 0, c; (c = codes[j++]); ) {
        store.push(c.innerHTML);
        c.innerHTML = '';
      }
      post.innerHTML = LGBB.parse( post.innerHTML );
      for(var s, j = 0; (s = store[j]); ) codes[j++].innerHTML = s;
  }

Is what's causing the 'disappearance' of the image re-size or any image problem for that matter because in the link I provided, as said completely ignores it.

It would be possible to have the parser along with LG's if one of us will be able to write the image-resize JQuery code.

Now my question is, would it be possible for Forumotion to hand out that code (This is directed to staff)? If it's handed out, we can re-write it as a part of LGBB's parser/BBC Code so it works (Unless there's already one in AvacWeb, my apologies as my current internet connection cannot handle being on that site and I'm unable to check).

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

In progress Re: Hashtags on forum

Post by Ahmed.K on May 13th 2014, 11:06 pm

Marios94 wrote:The thing that you don't understand is that this system searches for titles of posts. Not for words or names in the post.
OMG! man, why you repeat your posts again and again.
I know that, and this is exactly what I wrote in my previous posts. just i want show you all that with an example.
I want to say that the true hashtag system is for the posts not for the topics title.

Do you understand now?

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

In progress Re: Hashtags on forum

Post by Luffy on May 13th 2014, 11:13 pm

Yeah but if it searches in the posts, how would we separate the words we search from the post and the titles? This effect is for the titles. If it searches the topics as well it would show the specific word 1000 times and it would shown 10000 results. Imagin if you had 20 times the same word in one post. Whoo. Jesus no.. I prefer it like this.






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

In progress Re: Hashtags on forum

Post by Ahmed.K on May 13th 2014, 11:25 pm

What i wrote is the true hashtag system (like in facebook and twitter). It searches in the posts.
As i said before, we can do that in our forumotion forums, but we will need to an external server, with some codes.

Anyway, good luck.

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

In progress Re: Hashtags on forum

Post by SLGray on May 13th 2014, 11:47 pm

Marios94 wrote:Yeah but if it searches in the posts, how would we separate the words we search from the post and the titles? This effect is for the titles. If it searches the topics as well it would show the specific word 1000 times and it would shown 10000 results. Imagin if you had 20 times the same word in one post. Whoo. Jesus no.. I prefer it like this.

@Ahmed.K wrote:What i wrote is the true hashtag system (like in facebook and twitter). It searches in the posts.
As i said before, we can do that in our forumotion forums, but we will need to an external server, with some codes.

Anyway, good luck.
Please take this discussion to private messages.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35638
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Hashtags on forum

Post by LGforum on May 19th 2014, 11:49 pm

The problem is the LGBB running after the image resizer, therefore un-doing it's work.

You could fix it by finding this in the viewtopic_body template:
Code:
<!-- BEGIN switch_image_resize -->
<script type="text/javascript">
//<![CDATA[
$(resize_images({ 'selector' : '.postbody .content', 'max_width' : {switch_image_resize.IMG_RESIZE_WIDTH}, 'max_height' : {switch_image_resize.IMG_RESIZE_HEIGHT} }));
//]]>
</script>
<!-- END switch_image_resize -->

And putting the LGBB code here instead of in JS management.

Like so:
Code:
<!-- BEGIN switch_image_resize -->
<script type="text/javascript">
//<![CDATA[
(function() {
var p = $('.postbody .content');
for(var i = 0, post; (post = p[ i++ ]); ) {
var codes = post.getElementsByTagName('code'), store = [];
for(var j = 0, c; (c = codes[j++]); ) {
store.push(c.innerHTML);
c.innerHTML = '';
}
post.innerHTML = LGBB.parse( post.innerHTML );
for(var s, j = 0; (s = store[j]); ) codes[j++].innerHTML = s;
}
})();
$(resize_images({ 'selector' : '.postbody .content', 'max_width' : {switch_image_resize.IMG_RESIZE_WIDTH}, 'max_height' : {switch_image_resize.IMG_RESIZE_HEIGHT} }));
//]]>
</script>
<!-- END switch_image_resize -->

Doing this means you're parsing the posts with LGBB before the image resizer is run.

The only disadvantage here is that now your LGBB is only running on the viewtopic page, which means posts elsewhere will not be parsed.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

In progress Re: Hashtags on forum

Post by Pizza Boi on May 20th 2014, 12:58 am

Hi Very Happy

What if we use something like:

Code:
<script src="LINK" />

Instead. would that suffice?

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum