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)

Lionel 12-18-2001 04:53 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.;)

Nice, I downloaded and installed... but how do I display it? :confused:

Steve Machol 12-18-2001 02:51 PM

Just run styles.php from your browser, i.e.:

http://www.yourdomain.com/forums/styles.php

Craig Antill 01-04-2002 01:09 PM

Neither of these hacks seem to work for me... all users are shown as being in the default style... despite the fact I was viewing it through a co-branded site at the time, so I should have shown up as in a different style at least!!

Help ?! :)

Craig Antill 01-05-2002 11:58 PM

Can anyone confirm that this hack actually is designed to display the syle, rather than the template set, which the user is using ? Cos it definately ain't working for me if that's what it's supposed to do!! :(

tweak 01-08-2002 07:12 PM

:confused: I tryed over and over. Im using 2.2.1 i can find all code in showthread there are 2 of each???

Ive tryed putting the code in first part and secound no go? also tryed putting it on both.

Any help?

Sadie Frost 01-09-2002 01:41 PM

It does show the style, not the template set :)

Tweak, I have it working in 2.2.1 and I put it in both places.

Craig Antill 01-09-2002 05:19 PM

Not on my forum, it doesn't :( Any suggestions anyone ?

tweak 01-09-2002 10:51 PM

Quote:

Originally posted by Sadie Frost
It does show the style, not the template set :)

Tweak, I have it working in 2.2.1 and I put it in both places.

Hmmm i tryed BOTH and i tryed single i just get a error.
What one is this board using?? and u edited showthread.php right

Sadie Frost 01-10-2002 02:46 PM

Craig - is this the code you're putting in your postbit? (I'm sorry I don't know enough to suggest other problems.)

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

Tweak, if you want to email me your showthread.php I'll compare it to mine and see if I notice anything.

OneRing@destroythering.com

Craig Antill 01-10-2002 05:45 PM

Yep... that's exactly what i've got...

I just double checked that I followed the instructions correctly. I did exactly what it said in post 1 ?

Sadie Frost 01-10-2002 05:57 PM

Quote:

Originally posted by LuBi
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.
Make sure you've made the changes to showthread.php twice - the same code appears twice in that file. So you're really making 4 changes to it, not 2 :) That's what I did wrong at first.

Craig Antill 01-10-2002 06:08 PM

This is how I have it...

However looking into this a bit further, the problem seems to lie with the fact that although the script will display in the alternative colour scheme by adding the ?styleid=xx to the URL, the style identifier in the users profile isn't updated ? Is this supposed to be this way or is there an error somewhere else ?

Sadie Frost 01-10-2002 06:13 PM

If I'm understanding what you're asking (newbie here lol), that is how it is supposed to be.

When you click on the link in the postbit, it changes your scheme, but in your profile it still says you're using your old style.

If you logout or clear your cookies, you go back the style you were originally using.

So I don't think that is the error.

If you want to post or attach your showthread, maybe a fresh pair of eyes will see what's wrong with it :)

Craig Antill 01-10-2002 09:10 PM

But when I go to my admin panel and manually change the style in my profile, then this is reflected in the postbit... so I presume this hack doesn't actually do what I thought it did and show which scheme the user is currently viewing the forums in ?

My bad luck, apologies for not understanding and wasting your time... :)

BTW, I don't think i'm allowed to post the file here anyway :(

Sadie Frost 01-11-2002 12:07 AM

Oh sorry, I didn't know

Yeah, it only shows which scheme is chosen in Edit Options, not if they're actually viewing a different one :)

Shenlong 01-11-2002 12:40 AM

not working, just displaying

Style:

any suggestions?

tweak 01-11-2002 03:45 AM

Finally got it to work... Thanx for the help :D

Craig Antill 01-11-2002 07:29 PM

Quote:

Originally posted by Sadie Frost
Yeah, it only shows which scheme is chosen in Edit Options, not if they're actually viewing a different one :)
Bugger - no use to me then 'as is' :(

Any idea if it is possible to update the user's profile when they are linked to the forum in a way which tags a styleid=xx on it ? I'm sure there must be... seems pretty silly the way it is now!

Shenlong 01-11-2002 10:23 PM

Well can anyone help me?

Sadie Frost 01-12-2002 02:46 AM

if you want to email me your showthread.php, I'll see if I notice what's wrong. But it sounds like you didn't make all four changes to it.

OneRing@destroythering.com

Shenlong 01-12-2002 05:34 PM

sure, e-mailing now

Shenlong 01-12-2002 06:48 PM

THANK YOU so much! Works great now! thanx a ton!

Sadie Frost 01-13-2002 03:45 AM

No problem - glad I could be the one to help for once :)

JTMON 01-15-2002 09:19 PM

Excellent hack! Worked like a charm, running vb 2.2.1 and vbP 3.0PR8

SWFans.net 01-24-2002 06:55 PM

I looked through the thread and may have missed it, but is there a way to display the style name in a User Profile? I am able to get the styleid # but not the name.

Lesane 01-24-2002 07:56 PM

Great hack, works good.

Danny 02-16-2002 11:43 AM

any chance of getting this to work on 2.2.2 ?

had a look at the code and it was the same so figured the hack would of worked but unfortunately it doesn't fill in the style next to style in the post bit template any ideas anyone ?

-=dm=- 02-28-2002 12:38 PM

does it work with 2.2.2
anyone?

-=dm=- 02-28-2002 01:11 PM

ok now it working fine on 2.2.2:)
I have litle problem, it only showing the number not the title:(

Riddel 03-24-2002 11:06 PM

hmm for some reason when I try using styletitle in 2.2.2 it doesn't show up. anyone know why?

-=dm=- 03-25-2002 01:07 PM

Hi GenSec
How did ya add those lines in u r stylestates?
screenshot attached:

Sadie Frost 03-27-2002 02:43 PM

Quote:

Originally posted by -=dm=-
ok now it working fine on 2.2.2:)
I have litle problem, it only showing the number not the title:(

Are you using this code in your postbit? $post[styletitle]

Riddel 03-29-2002 10:32 PM

I did that Sadie but it doesn't show up. could this be a bug with 2.2.2?

Crazy Mofo 04-13-2002 03:15 AM

its i meant too not show up if your the admin? it shows normall users but not mine

Sadie Frost 04-13-2002 03:27 AM

Hmmm...I'm not sure what could be wrong then Riddel...I've used this from 2.2.1 through 2.2.4 with no problems (except for forgetting to make all four changes to showthread - I do that wrong every time lol!).

CrazyMofo - it should show up for everyone :(

Crazy Mofo 04-13-2002 11:05 AM

really :( doesnt show for me

JTMON 04-15-2002 03:34 PM

anyone have this working on 2.2.5?

Admin 04-15-2002 03:49 PM

We have this insatlled. :)

JTMON 04-15-2002 04:15 PM

doy:D hmm, I will try it again and let ya know:D

Dean C 04-21-2002 08:50 AM

attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter

^ that code is shown several times in showthread.php ... where exactly do i add it ???

Thanks In Advance


All times are GMT. The time now is 04:17 AM.

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.01298 seconds
  • Memory Usage 1,792KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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