vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Allow BB code in sticky thread titles (https://vborg.vbsupport.ru/showthread.php?t=69234)

Zzed 09-07-2004 10:00 PM

Allow BB code in sticky thread titles
 
Sticky threads have a tendency to be overlooked by the users. So I came up with the idea of allowing BB tags and smilies to be used in the sticky thread titles to make them more noticeable. I made this hack for VB2 about a year or 2 ago, but I neglected to publish it. Another reason why this hack is limited to sticky thread titles is because there are less sticky threads in a forum than there are regular threads, and if this were to be expanded to include regular threads it would be nothing but a can of worms. And also due to the fact that it can only be used in sticky threads, it allows only admins and moderators to use this feature.

This hack is such a simple hack that I am actually embarassed to call it a hack since it actually takes 2 lines of code to do it. :D

The instructions and a screen shot of the hack are attached to this post. :)

kall 09-09-2004 12:35 AM

Quote:

Originally Posted by Zzed
allows only admins and moderators to use this feature.

Unless you have uShop, or some other means for regs to make stickies. :)

Regardless, I'm checking this out.

Bryan Ex 09-09-2004 12:49 AM

I can use it regardless of how simple it is. Thanks.

Johnny 09-09-2004 01:02 AM

pretty cool, but is it possible to have BB codes be used other then stickes, but only limited to a certain group can use bb codes in titles.

SnowBot 09-09-2004 02:05 AM

yer i had this added to my forum months ago but lost it on upgrade and never bothered adding it again. It wasnt yours but something very much alike. Anyway i have clicked install as its worth adding and will remind me to install it again when a new version comes out. :)

kall 09-09-2004 02:11 AM

Quote:

Originally Posted by Johnny
pretty cool, but is it possible to have BB codes be used other then stickes, but only limited to a certain group can use bb codes in titles.

*edit* Damn. I seem to have messed that up.

Johnny 09-09-2004 02:45 AM

thx kall but is their any way to hide the bbcode from being seen in the title since it displays fine in forumdisplay you can see the actuall code in showthread.

second when someone puts a url in the title field it wont go to the actuall thread it will go to that url, just so everyone knows that if your going to use this mod consider who you give access to use this mod as you never know what can happen especially when they have the ability to use almost any of the bbcodes and it will work as regular html.

Bryan Ex 09-09-2004 02:46 AM

A bit of an issue with it on my board unfortunately. Works great for thread titles but the BB code is displayed in both the breadcrumb and thread titles within each post. Attached screen cap....

kall 09-09-2004 02:55 AM

Quote:

Originally Posted by Johnny
thx kall but is their any way to hide the bbcode from being seen in the title since it displays fine in forumdisplay you can see the actuall code in showthread.

second when someone puts a url in the title field it wont go to the actuall thread it will go to that url, just so everyone knows that if your going to use this mod consider who you give access to use this mod as you never know what can happen especially when they have the ability to use almost any of the bbcodes and it will work as regular html.

Oh dear, so you can.

HiDeo 09-09-2004 03:42 AM

Nice hack, Thanks

SnowBot 09-09-2004 03:52 AM

Quote:

Originally Posted by Bryan Ex
A bit of an issue with it on my board unfortunately. Works great for thread titles but the BB code is displayed in both the breadcrumb and thread titles within each post. Attached screen cap....

Yes same here, on my old version i had this fixed but i nolonger have the code.

Can we sort this?

Zzed 09-09-2004 04:38 AM

Quote:

Originally Posted by Johnny
pretty cool, but is it possible to have BB codes be used other then stickes, but only limited to a certain group can use bb codes in titles.

That would require additional logic to determine whether to call parse_bbcode() or not per usergroup. :)

Quote:

Originally Posted by Johnny
thx kall but is their any way to hide the bbcode from being seen in the title since it displays fine in forumdisplay you can see the actuall code in showthread.

second when someone puts a url in the title field it wont go to the actuall thread it will go to that url, just so everyone knows that if your going to use this mod consider who you give access to use this mod as you never know what can happen especially when they have the ability to use almost any of the bbcodes and it will work as regular html.

At the risk of sounding naive, moderators are usually the more responsible group of users on a board. So this shouldn't really be a problem.

Quote:

Originally Posted by Bryan Ex
A bit of an issue with it on my board unfortunately. Works great for thread titles but the BB code is displayed in both the breadcrumb and thread titles within each post. Attached screen cap....

Quote:

Originally Posted by SnowBot
Yes same here, on my old version i had this fixed but i nolonger have the code.

Can we sort this?

I can look into trying to fix this. I'll see what I can come up with over the weekend.

Phalynx 09-09-2004 08:09 AM

Thanks for sharing.

Johnny 09-09-2004 11:32 AM

Quote:

Originally Posted by Zzed
That would require additional logic to determine whether to call parse_bbcode() or not per usergroup. :)



At the risk of sounding naive, moderators are usually the more responsible group of users on a board. So this shouldn't really be a problem.





I can look into trying to fix this. I'll see what I can come up with over the weekend.

you never know anyone can turn their back on you and try to be funny.

Zzed 09-09-2004 01:58 PM

Quote:

Originally Posted by Johnny
you never know anyone can turn their back on you and try to be funny.

I've had that happen, but on a different matter. That person was demoted and banned for a month. :D

Johnny 09-09-2004 05:06 PM

only a month?, they would have to pay me to get unban

Zzed 09-09-2004 05:11 PM

Quote:

Originally Posted by Johnny
only a month?, they would have to pay me to get unban

Believe me, I wanted this guy gone. But this particular site that I admin for, has 3 other admins and I got outvoted by them. :D

maddawg138 09-30-2004 02:18 AM

[high]* maddawg138 installs :)
[/high]


but find out how to get the forum title in the thread to change?

Borgs8472 09-30-2004 09:54 AM

Thanks loads for this hack! :D

Is there a simple extra hack to parse the bb code with seach.php when searching for new posts?

Cause people use newposts a lot at my forum. That would be great. :D

Borgs8472 10-02-2004 11:56 PM

would love these images/smileys/code to display on a search and not just forum view! :D

neocorteqz 10-19-2004 05:14 AM

does this restrict the url tags??? cause if you use it, just like the old 2.x hack, it will go to the url instead of the thread. This can be misused.

Borgs8472 10-24-2004 10:14 PM

^ ^
it's a mods only feature, no problem. :)

cinq 12-05-2004 01:14 PM

Zzed, great idea! :D
But it doesn't show the bbcode parsed titles in many places, like the search, who's online, title in the threaddisplay page, the title on forumhome , print page etc etc.

It only shows on forumdisplay ( which figures since the only code change was there ).

Any plans to cover the rest as well ?
Would be a more complete hack that way :D

Hope to see updates soon ! :D

dutchbb 12-25-2004 10:25 AM

Quote:

Originally Posted by Zzed
I can look into trying to fix this. I'll see what I can come up with over the weekend.

Still would like this Zzed, but don't know how...

It isn't very professional to have these code brackets in a thread...

Watson 12-27-2004 08:02 PM

This been done for 3.0.3 yet, cause I keep getting the code showing up in the topic title within the actual post, and it dont actually work in the topic title

dcarr 12-29-2004 12:43 AM

It's certainly a great idea, but on my forumhome page...the title is coded for all to see:)...anybody figure this yet? It'd be a shame to have to dump it.

ZombieAndy 01-01-2005 06:08 PM

so has a fix been made yet to show this on threads and in posts aswell as in the forum?

kompakt 01-10-2005 04:18 PM

I'm waiting on a fix for showing on the rest of the forum too. I have it installed now and its only showing in the forum display like eveyrone else.

Thanks...

EscortCossie 02-01-2005 02:27 PM

Has the fix been published yet?

kompakt 02-08-2005 02:25 PM

I fixed it in a few places where I felt it was needed mostly.
  1. To display in the search results
    in /search.php find
    Code:

    // get info from thread
    $thread = process_thread_array($thread, $lastread["$thread[forumid]"]);

    and replace with
    Code:

    // get info from thread
    require_once('./includes/functions_bbcodeparse.php');
    $thread['threadtitle'] = parse_bbcode($thread['threadtitle']);
    $thread = process_thread_array($thread, $lastread["$thread[forumid]"]);

  2. To display on the top navigating bit of the thread
    in /showthread.php find
    Code:

    $navbits[''] = $thread['title'];
    and add above it
    Code:

    require_once('./includes/functions_bbcodeparse.php');
    $thread['title'] = parse_bbcode($thread['title']);

I couldn't figure out how to add it to the post titles :devious: This worked fine for the others though. Not bad for 1st timer :)

note: this would allow nonsticky's to show in the search results and the navbit but not in the forum dislpay

cyt0plas 02-09-2005 02:46 PM

*thanks*

yoyoyoyo 02-09-2005 03:47 PM

Quote:

Originally Posted by kompakt
I fixed it in a few places where I felt it was needed mostly.
...This worked fine for the others though. Not bad for 1st timer :)

Thanks much!

jamesyfx 02-09-2005 04:45 PM

I added those fixes.. and it got rid of the bbcode on showthread. :/

Did I add it wrong or something? Hehe.

yoyoyoyo 02-10-2005 11:04 AM

This hack does not like quotes in thread titles.... it displays them as
Code:

"
SO- a title that said:
Quote:

Say "HI" to the new guests!
now reads:
Quote:

Say "HI" to the new guests!

FFZoneXtreme 03-02-2005 01:24 AM

how can I add this to the index and showthread too?? O.o

StangLuverJ 03-11-2005 05:13 PM

Quote:

Originally Posted by FFZoneXtreme
how can I add this to the index and showthread too?? O.o


for the index...

Edit: functions_forumlist.php

Find:
Code:

$lastpostinfo['trimthread'] = fetch_trimmed_title($lastpostinfo['lastthread']);
Under it Add:
Code:

require_once('./includes/functions_bbcodeparse.php');
$lastpostinfo['trimthread'] = parse_bbcode($lastpostinfo['trimthread']);


bigmonay2k 03-23-2005 02:17 AM

mine did not show up??

stumparoooo 04-02-2005 08:52 PM

'Just installed it..makes those stickied threads stand out even more! ;)

Thanks!

stumparoooo 04-02-2005 09:41 PM

I just tried editing the functions_forumlist.php and it still doesn't show up for the index. :(

red_baron2000 04-08-2005 09:17 AM

Quote:

Originally Posted by Bryan Ex
A bit of an issue with it on my board unfortunately. Works great for thread titles but the BB code is displayed in both the breadcrumb and thread titles within each post. Attached screen cap....

having the same problem here ..anyone can help fixing this? thank you :o


All times are GMT. The time now is 04:43 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
  • Page Generation 0.01380 seconds
  • Memory Usage 1,826KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete