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)
-   -   What Styles are we All using (https://vborg.vbsupport.ru/showthread.php?t=23206)

Freddie Bingham 07-19-2001 10:00 PM

This is a small hack that will show each users current selected style in showthread. For a demo just follow one of my links in my forum (chins & quills) and find your way to a thread.

Open showthread.php and find:
Code:

attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
add this after it on the same line
Code:

,style.title as styletitle
find this in showthread.php
Code:

LEFT JOIN user ON user.userid=post.userid
add this after it on the next line
Code:

LEFT JOIN style on (user.styleid = style.styleid)
open up the postbit template and place this where you like
Code:

Style: <a href='index.php?styleid=$post[styleid]'>$post[styletitle]</a></smallfont>
Link it to whatever you want.

snyx 07-20-2001 03:59 AM

cool, hack, I will give it a try

thx freddie
snyx

adrianmak 07-20-2001 06:53 AM

Nice little hack !:D

Thx dude

eva2000 07-20-2001 07:06 AM

hmmm i saw rangersfan on my forum earlier today :)

i got a similar code on my forum http://animeboards.com/t21182/s.html

but can't remember where or who i got this from hehe

eva2000 07-20-2001 07:07 AM

whoops kevin made it alot easier than above

http://vbulletin.com/forum/showthrea...hlight=styleid

ztsky 07-20-2001 07:24 AM

works well.
Thanks.
eva2000:
you said is a styleid,but this hack can display a styletitle.:D

eva2000 07-20-2001 07:30 AM

Quote:

Originally posted by ztsky
works well.
Thanks.
eva2000:
you said is a styleid,but this hack can display a styletitle.:D

yeah i just realised that :o

i like styleid better since someone may have a very long styletitle and mess with postbit's cell widths

Freddie Bingham 07-20-2001 01:57 PM

[QUOTE]Originally posted by eva2000
hmmm i saw rangersfan on my forum earlier today :)

i got a similar code on my forum http://animeboards.com/t21182/s.html

but can't remember where or who i got this from hehe

eva2000 07-20-2001 02:00 PM

Quote:

Originally posted by freddie
I forget why I went to your forum...
maybe it was regarding this http://vbulletin.com/forum/showthrea...threadid=23042 ? :)

Mutt 07-23-2001 10:16 PM

just looked at your page and I have a small suggestion

you style hack points back to the main forum page. why not have it point to the current thread so when you click it, the same page is loaded in that style instead of sending you away fromt he thread you were reading.


http://www.chins-n-quills.com/forums...9184&styleid=1

http://www.chins-n-quills.com/forums...9184&styleid=7

Freddie Bingham 07-23-2001 10:26 PM

You may do that if you wish, I had thought about it but didn't get around to doing it.

Freddie Bingham 07-23-2001 10:50 PM

If you want to do that than link to this:

<a href='showthread.php?styleid=$post[styleid]&postid=$post[postid]&s=$session[sessionhash]#post$post[postid]'>$post[styletitle]</a>

GenSec 07-26-2001 06:24 PM

I made a simple hack to show statistics what is the user's choice of the style.
At the same time anyone can change the style for the current session by one click .
It's here .
Sorry, all pages in Russian.
But you need not read, just take a look.;)

Phil 07-28-2001 11:04 AM

Thanks, it's working great but my default style isn't listed....just my 2nd stlye shows up.

http://www.thegenomecollective.com/forum/styleeg.gif

Any ideas on how to have the default style listed? I use a custom style as my default and allow ppl to choose the vBulleting style from their profile.

markrt 08-02-2001 03:17 PM

Hi

I am having trouble geting this hack to work since I have upgraded to 2.0.3.

I have re-installed the hack?

Should this work with this version?

Thanks
Mark

stroppytart 08-02-2001 07:30 PM

Same here.

markrt 08-02-2001 09:28 PM

Hi

I can get this hack to work with 2.0.3 if I upload the old v2.0.0 showthread.php when I do this I loose all of the page navigation?

The hack still works on your board Freddie, what do I have to do to get it working???

Thanks
Mark

Freddie Bingham 08-02-2001 09:43 PM

The code is now in the second function in functions.php.

markrt 08-02-2001 09:46 PM

Found it

There are two places where the code can be added in the showthread.php file, the first piece of code go on line 307 not line 54. the second goes on line 374 not line 58.

It then works again.

Mark

J Wahl 08-31-2001 06:42 PM

Can someone please tell how to incorporate this into v 2.0.3??!!
i got confused but the whole functions.php thingie :)

thx.

Dakota 09-05-2001 09:03 PM

Ummm...can someone please explain how to get this working with 2.0.3? The code was in showthread, but I edited like it said and it didn't work. I looked in functions.php for the code and didn't see it in it.

LuBi 09-14-2001 07:43 PM

Yes I cannot get this to wokr with 2.0.3 either any help?

LuBi 09-14-2001 11:07 PM

Got it, everyone needs to read carfefully. the shot part with commas has to be added to the end of the line you find. You do this twice. Then you find the other line in showthread twice and both times you add that text below it on the next line. I hope this helps.

floleb7 09-15-2001 09:47 AM

Quote:

Originally posted by GenSec
I made a simple hack to show statistics what is the user's choice of the style.
At the same time anyone can change the style for the current session by one click .
It's here .
Sorry, all pages in Russian.
But you need not read, just take a look.;)


could you give this hack ?

GenSec 09-17-2001 09:03 AM

Quote:

Originally posted by floleb7


could you give this hack ?

It's here...

floleb7 09-17-2001 09:45 AM

thanks :)

floleb7 11-01-2001 05:25 PM

this doesn't work with 2.2.0 :o

Syphin 11-01-2001 05:53 PM

Ya it does... Im using it now... :p



-Syphin

floleb7 11-01-2001 08:43 PM

Quote:

Originally posted by Syphin
Ya it does... Im using it now... :p



-Syphin

i do all the change and it don't in my forum

Syphin 11-01-2001 09:04 PM

Code:

attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
Code:

LEFT JOIN user ON user.userid=post.userid

If you meant this one, Did you make sure to add the code on the second set of coding?

Cuz they show up twice in the code..



-Syphin

floleb7 11-02-2001 02:44 AM

i add in the two set,
only in the fisrt, only in the second and nothing appears

floleb7 11-02-2001 02:50 AM

well it shows info only for me because i'm the only one who change my style i will see later if the others will be shown

GameZilla 11-05-2001 06:00 AM

man I can't get this hack to work help

Mohamed 12-03-2001 08:43 AM

it doesn't work with me :(

cityofangelus 12-10-2001 10:40 AM

Installed and all working

Looks great

Thanks :D

Island Roots 12-13-2001 02:04 AM

I'm trying to install the Style ID hack....everything is fine except for it doesn't show the actual style that the person is using. It has the Style: but no style. Go to www.ConsoleBoards.com and take a look for yourself. Any suggestions as to what's wrong/what to do?

EDIT: Nevermind, we got it to work! Nice hack! :cool:

Admin 12-13-2001 05:30 AM

Installed here, looking great. :)

squawell 12-13-2001 10:18 AM

if i only have one style and this hack can show up in postbit??

i use this hack and it not show up is it normal??

Sadie Frost 12-14-2001 02:53 AM

I love this hack - thanks so much! :)

heretic 12-17-2001 11:11 PM

it would be great to have this available in the member profile


All times are GMT. The time now is 04:47 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.01336 seconds
  • Memory Usage 1,790KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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