vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   while statements, eval, and only one result showing :( (https://vborg.vbsupport.ru/showthread.php?t=52981)

Dean C 05-15-2003 02:32 PM

The simple way to learn it is to output the bits of data in the while loop can call the actual template outside of the while loop :)

- miSt

dv6cougar 05-15-2003 04:33 PM

haha, thanks everyone...... i usually do $poll = ""; and such, i have done alot of little things to my forum ;)

i made a script that uses the forum usernames and passwordst o login with :)

a new question.... i have 8 different styles, and 5 out of them are very different from the rest.. so how would I go about focring a style? i'd wanna use a styleid but how do you force it... oh wait nm!

PHP Code:

//set varaible for style that you wanna overgiht

$overstyle "1";

$styleid $overstyle

would that work?

dv6cougar 05-15-2003 04:38 PM

or wait i could even use
$session['styleid']

which would be better?!

thanks :)

filburt1 05-15-2003 04:54 PM

I'm not sure if either would work given how the engine works...however $session['styleid'] would probably be cleaner (or maybe even $bbuserinfo['styleid']).

dv6cougar 05-15-2003 04:59 PM

Quote:

Today at 06:54 PM filburt1 said this in Post #14
I'm not sure if either would work given how the engine works...however $session['styleid'] would probably be cleaner (or maybe even $bbuserinfo['styleid']).

when i originally wrote up my script above here i did use
$bbuserinfo['styleid'];

but really all you have to do is reset the string to 1 or whatever styleid you wish to use....


i'm gonna take a look at index.php or oen of those files see how it's done, shouldn't be difficult.

thanks again :)

filburt1 05-15-2003 05:08 PM

Quote:

Today at 01:59 PM dv6cougar said this in Post #15
when i originally wrote up my script above here i did use
$bbuserinfo['styleid'];

but really all you have to do is reset the string to 1 or whatever styleid you wish to use....


i'm gonna take a look at index.php or oen of those files see how it's done, shouldn't be difficult.

thanks again :)

Try looking specifically at forumdisplay.php because one of the options for a forum is to override the style set :)

dv6cougar 05-15-2003 05:25 PM

yeah that's what i was thinking ;) good call on that one :)


i'll let you know if i figure this out, it's pretty cool :)

dv6cougar 05-17-2003 07:48 PM

i'm happy to say that my raffle hack was a 100% success :)

and is now up and running on few beta tests!!!

this was based upon LOGICIAN WEBTEMPLATE & WEBQUERY HACK, a very powerful hack :)

i used his page to show a raffle template and i wrote in all my functions into his php page entitled show.php

i like it :)

not sure if I should actually make an install file and put her up on here, but I'd ask logician first ;)

thanks alot for your help!


All times are GMT. The time now is 01:06 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.01202 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_php_printable
  • (2)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
  • (8)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