vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   VBCodes and smilies in thread and post title (https://vborg.vbsupport.ru/showthread.php?t=50392)

grog6 03-17-2003 10:00 PM

VBCodes and smilies in thread and post title
 
Installation time : 20 sec

With this hack you will be able to add in your thread and posts titles vbcodes and smilies :)
This modifications is displayed in the forumdisplay, in the postbit, in the navbar, in the who's onlinne, and in the search.php

Moreover, in your browser titlebar, they aren't displayed ;)

Files to modify : 3

You will now be able to create original and colored title for your post :bunny:






Ce hack est tout simple a mettre en place : 20 sec d'installation

Il permet de rajouter dans les titres de forums des smileys et les vbcodes et ainsi de les voir s'afficher
dans la liste des forums :-D

Ainsi vous pourrez creer des posts avec un titre original, color? :cool:

Fichier a modifier : 3




Here is the french version
Voici la version francaise

grog6 03-18-2003 04:12 PM

And here the english version
Et ici la version anglais

grog6 03-18-2003 04:14 PM

Result in the postbit and the navbar
Resultat dans le postbit et la barre de navigation

grog6 03-18-2003 04:15 PM

Result in the forumdisplay
Resultat dans le forumdisplay

N9ne 03-18-2003 04:19 PM

Very nice grog :).

Xenon 03-18-2003 04:20 PM

why are you so unfriendly to french people and use yellow color for them which is unreadable??

poor french users...

use the highlight tag instead of color yellow. It's mentioned in the hack releasing rules:
Quote:

Also don't use unreadable colors in your post. Remember we have different styles on vB.org, and for example yellow is just readable in one of them.
:)

VeoMorphine 03-18-2003 04:21 PM

Nice hacks. I've used all of them so far.

grog6 03-18-2003 04:28 PM

@ Xenon : Ok, xcuse me, I use blue style and all is ok for me ;)
Correct it now

Xenon 03-18-2003 04:40 PM

thx grog :)

as said if you want to highligh passages use [high] [/high]

this shows up as yellow on dark blue style and red on the others :)

grog6 03-18-2003 04:41 PM

Arghhhh ... too late, I've searched in the vbcodes but didn't found it .... why don't you add a button ?

It would be usefull ;)

Xenon 03-18-2003 04:43 PM

hmm isn't there one?

i'll tell Erwin to add one, he's the bb code specialist :)

Enforcer 03-18-2003 05:49 PM

so far it works ... but:

mais ici je voit seulement ça:

or did I miss smth?

grog6 03-18-2003 06:28 PM

@Enforcer : Are you sure you made modifications in the admin/functions.php ?

Drowned 03-19-2003 12:55 AM

Will users be able to use the SIZE vbcode? That could cause some problem with users making threads with HUGEEE fonts and the main index looking all weird... :S Just wondering...

Lesane 03-19-2003 07:57 AM

^Yes, they can.

@grog: Nice hack, but what about the thread title in the browser? ;)

grog6 03-19-2003 08:02 AM

@Lesane : If you have an idea about this contact me ... :p

Davey 03-19-2003 08:46 AM

Nice idea grog6.
Keep them coming :)

Dave.

Boofo 03-19-2003 08:49 AM

Quote:

Today at 03:57 AM Lesane said this in Post #15
^Yes, they can.

@grog: Nice hack, but what about the thread title in the browser? ;)

Here you go, buddy. I owed you one so here it is. ;)

In showthread.php

Find

PHP Code:

$thread['title']=dowordwrap($thread['title']); 

And replace by

PHP Code:

$thread['title']=bbcodeparse(dowordwrap($thread['title'])); 


Lesane 03-19-2003 11:14 AM

hehe thanks Boofo. But that's not the problem, the problem is that it will not parse the vbcode/smilies on the title tag in your browser. Wich can't be obviously thus there is a need of a 2nd variable wich contains the title of the thread. The 'showthread' template needs to be edited, replacing $thread[title] in the title tag.

Boofo 03-19-2003 11:39 AM

I guess I'm confused here. The code I gave you parsed the thread title I use (the big one like on here at the top of the page) and the post titles fine. Do you mean something other than that? ;)

Lesane 03-19-2003 12:11 PM

Look at the attached picture ;)

Boofo 03-19-2003 12:22 PM

Oh, ok, that's easy. Just put this:

PHP Code:

$thread['title']=bbcodeparse(dowordwrap($thread['title'])); 

Above this:

PHP Code:

eval("dooutput(\"".gettemplate("showthread")."\");"); 


Lesane 03-19-2003 12:45 PM

That won't work, i don't think that you can parse vbcode/smilies in the browser bar. You must re-parse it to take those vbcode tags and smilies away from the title bar.

Boofo 03-19-2003 12:47 PM

I am parsing a vbcode out of it from another hack. ;) Did you try it?

Lesane 03-19-2003 12:50 PM

Yes, i have tried it. Still those vbcode tags in the title bar + it reparsed the parsed showthread title...hehe.

Boofo 03-19-2003 12:53 PM

Aha, I just rechecked my code and I am doing a preg_replace instead of a bbcodeparse. Maybe that makes a difference? ;)

Lesane 03-19-2003 12:56 PM

Definately :D

Boofo 03-19-2003 01:09 PM

Sorry about that. ;)

grog6 03-19-2003 01:25 PM

You can't display an image in your browser title bar ?? lol

Don't think I understood well :devious:

Lesane, you just want to not display for exemple

[VBCODE]title :-)[/VBCODE]

in the browser title bar ... but 'Test' ?!

wolfe 03-19-2003 01:51 PM

d00d got an error while posting a thread


PHP Code:

Invalid SQLINSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attachVALUES (NULL,'[COLOR=orange][B]New Thread [I]Title[/I] Effect Added[/B][/COLOR]','1048088796','2','1','0','DEATHCAT','1','DEATHCAT','1048088796','16','1','0'
mysql errorYou have an error in your SQL syntax near '' at line 1 


wolfe 03-19-2003 01:59 PM

sorted was another hack interfiering

great hack nice work

/me Installs *

Lesane 03-19-2003 02:05 PM

Quote:

Today at 04:25 PM grog6 said this in Post #29
You can't display an image in your browser title bar ?? lol

Don't think I understood well :devious:

Lesane, you just want to not display for exemple

[VBCODE]title :-)[/VBCODE]

in the browser title bar ... but 'Test' ?!

Yes, you need to fix something wich takes the vbcode/smilies from the browser title bar away but keep the rest intact.

Sweet Cheeks 03-19-2003 07:16 PM

Awesome hack, my members are already in love with it :banana:

Just a few things I have noticed, but no biggie to me personally:

1. The who's online locations shows the Vb tags instead of the actual color/smilie

2. Its supports the glow text effect and the rainbow vb text, however; it removes the link to the thread.

Awesome hack you have here :cool:

Here's an example of number 2

http://www.belliesandbabies.com/boar...s=&forumid=168

mikeB 03-19-2003 07:23 PM

what happens if a user uses the URL tag?

Sweet Cheeks 03-19-2003 07:30 PM

Quote:

Today at 01:23 PM mikeB said this in Post #34
what happens if a user uses the URL tag?

I just tested it and it goes to the actual URL, not the thread :paranoid:

grog6 03-19-2003 07:33 PM

@Sweet Cheeks : Humm, I'll try to resolve it (for the whosonline, there is no pb but I've no time now to search for it ;) and say you exactly what to replace)

@mikeB : Hummm ... that's right it could beannoying ... I'll try to find a sloution to remove some VBCodes from thread title ;)

Sweet Cheeks 03-19-2003 07:36 PM

Thanks a bunch Grog :D

wolfe 03-19-2003 11:57 PM

what about the Profile shows code not colours

wolfe 03-20-2003 12:34 AM

sorted it if anyone needs code here

in member.php i found

PHP Code:

$lastposttitle=$getlastpost[title]; 

and replaced it with

PHP Code:

$lastposttitle=bbcodeparse($getlastpost[title]); 

works great thanx for the hack Grog6 :D

grog6 03-20-2003 09:52 AM

I'll made soon a release with others some things to replace and try to see what I could do for vbcodes ... ;)


All times are GMT. The time now is 04:44 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.01495 seconds
  • Memory Usage 1,800KB
  • 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_php_printable
  • (4)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