vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [WEBTEMPLATES HACK:]Share your WebTemplates or WebQueries! (https://vborg.vbsupport.ru/showthread.php?t=36578)

Logician 05-01-2002 02:37 PM

Quote:

Originally posted by -=dm=-

1: where to add the code above?
2: How do I see where is the user (the whoisonline part)

1- You should insert the code somewhere in your web template.

Say, you created a new Web Template (an HTML page) and you want this page post "I love users who use my Red Style Sheet and you're one of them!" to only users who are using Red Style Sheet. Simply create your webtemplate like an ordinary HTML page, then in the place where you want this text posted insert this code:

[[($bbuserinfo['styleid']==X)]]
"I love users who use my Red Style Sheet and you're one of them!"
[[/($bbuserinfo['styleid']==X)]]

While your webtemplate is loaded, the script will check if the viewer's styleid=X and if yes this text will be posted, else it will not..

2- When your users view a webtemplate, they can be monitored in the "Who is Online". However their location is raw, not in a formatted text. (Anyway you can understand in which webtemplate they are).

I would improve this section of the hack with the next release, however I am not sure if I'll code any other releases any more..

Honestly I thought this hack is something that many people can use and benefit, but 1.5 half months passed and only 12 people installed the hack. Seems I was wrong so I think it's not worth spending times to improve it.

Regards,
Logician

TECK 05-02-2002 07:55 AM

Quote:

Originally posted by Wildthinks
- oohh my god.... I have a idea ... I will query only the first Post of every thread and user can answer normally ?!?
if you do this, you will end up with 150queries on that page. i made the same mistake with vbHome (lite). is now corrected in the full version. and it does have the comments separated... ;)

-=dm=- 05-02-2002 11:01 AM

Thanx :)

Quote:

Honestly I thought this hack is something that many people can use and benefit, but 1.5 half months passed and only 12 people installed the hack. Seems I was wrong so I think it's not worth spending times to improve it.
thats strange only 12 have installed this, cuz this hack is one of the best in my opinion, also easy to install and still advanced hack...why is this still in beta section?

Logician 05-02-2002 12:09 PM

Quote:

Originally posted by -=dm=-
why is this still in beta section?
Same reason: The hack had no problems here when I published it. But I posted it in the BETA section anyway, because it has a complicated coding and I wanted some feedback and be sure it has no bugs. Unfortunately I received none. So it stays there..

Thx for the nice comments though..

Wildthinks 05-02-2002 01:30 PM

Quote:

Originally posted by Logician

Same reason: The hack had no problems here when I published it. But I posted it in the BETA section anyway, because it has a complicated coding and I wanted some feedback and be sure it has no bugs. Unfortunately I received none. So it stays there..

Thx for the nice comments though..

Your WT works very fine and is cool stuff, IMHO is it a cool "light" CMS and I'm happy that I can use it and you share it with us. It's very great...

NTLDR 05-02-2002 01:37 PM

Quote:

Originally posted by Logician

Same reason: The hack had no problems here when I published it. But I posted it in the BETA section anyway, because it has a complicated coding and I wanted some feedback and be sure it has no bugs. Unfortunately I received none. So it stays there..

Thx for the nice comments though..

Perhaps the fact that it is in the beta section is putting people of as they think it could mess up there board, the people who have insalled it know its stable but other users may still consider it risky.

Thats just my $0.02 worth.

Logician 05-02-2002 02:07 PM

Quote:

Originally posted by NTLDR

Perhaps the fact that it is in the beta section is putting people of as they think it could mess up there board, the people who have insalled it know its stable but other users may still consider it risky.

Yep, you may have a point..

-=dm=- 05-02-2002 08:43 PM

sorry Logician Im a newbie I cant giv ya the feedback u need:(, but I can tell ya that, its runing fine on my testboard and I love it and u r damn good to giv dummie instructions :D lately there is only 2 hcak which impressed the vBindex and this TemplateHack.
I hope I can use it with the v3 when its out otherwise Im not going to upgrade to v3 :D

NTLDR 05-02-2002 08:53 PM

Quote:

Originally posted by -=dm=-
I hope I can use it with the v3 when its out otherwise Im not going to upgrade to v3 :D
I have a feeling this isn't going 2 work with vB3, I think thats says it all about what -=dm=- thinks about this hack :D

Logician 05-02-2002 09:13 PM

Quote:

Originally posted by NTLDR

I have a feeling this isn't going 2 work with vB3, I think thats says it all about what -=dm=- thinks about this hack :D

-=dm=-'s comment is so nice and flattering that it's now impossible not to convert it to vb3. :laugh: (thx btw!)

In fact I cant see any reason that it will not work with VB3. The script what does the real job is independent from the vbcode. So even if they change the all code, I think it will keep on working provided that "global.php" file structure is same. Anyway I think there will no clash between vb3 and this hack that I cant fix..


All times are GMT. The time now is 01:46 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.01101 seconds
  • Memory Usage 1,745KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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