The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Hashtags on forum

+5
Jack Atlas
Ange Tuteur
Van-Helsing
Pizza Boi
TheCrow
9 posters

Page 3 of 3 Previous  1, 2, 3

Go down

In progress Hashtags on forum

Post by TheCrow 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!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down


In progress Re: Hashtags on forum

Post by TheCrow 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.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

In progress Re: Hashtags on forum

Post by Pizza Boi 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
Pizza Boi
Hyperactive

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

Back to top Go down

In progress Re: Hashtags on forum

Post by Ahmed.K 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?
avatar
Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

In progress Re: Hashtags on forum

Post by TheCrow 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.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

In progress Re: Hashtags on forum

Post by Ahmed.K 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.
avatar
Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

In progress Re: Hashtags on forum

Post by SLGray 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.


Hashtags on forum - Page 3 Slgray10

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

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Hashtags on forum

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

In progress Re: Hashtags on forum

Post by Pizza Boi 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
Pizza Boi
Hyperactive

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

Back to top Go down

Page 3 of 3 Previous  1, 2, 3

Back to top

- Similar topics

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