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)

Wildthinks 04-23-2002 09:15 PM

thx for help i will use the dateformat from Mysql ... and I hope I solve the problem...

Wildthinks 04-24-2002 01:45 PM

Another Question: How can I insert any data in the db?
I don't understand , because when I call aformular then ist query done, but I will write the entry and then insert..
Can you help?

THX

Logician 04-24-2002 01:54 PM

Quote:

Originally posted by Wildthinks
Another Question: How can I insert any data in the db?
I don't understand , because when I call aformular then ist query done, but I will write the entry and then insert..
Can you help?

Basically this hack is for reading FROM database and listing the returned data in a formatted table only, not for writing to the database. So if you want to modify/insert data you have to write the script that does it and then link it form your webtemplate.

Wildthinks 04-24-2002 02:00 PM

Ok I have done this, but I hope you can realize WRITING to Database... I write a new Template/Query for Sponsorlisting and so on and your Webtemplates make my life easier. THX
WT

Wildthinks 04-27-2002 08:13 PM

Hi Logician,

I'm a little bit nervous. I have Problems with a newssystem that use your webtemplates...
I have no idea, how can be realized with commentfunction... can u help me?
The Sponsortemplate is ready, I will share that when I have migration to vb completed...

Logician 04-27-2002 08:24 PM

I didnt understand what the problem is?!? Can you clarify?

Wildthinks 04-27-2002 08:35 PM

The Problem is, that I don't know exactly how can I realize the Newssystem with commentfunction...
my first way was I make a page that call all first thread from a hidden board... and display them on your page, but the smilies don't show's and I have problems with permissions...

Everybody should be commenting this thread ...

Have you another Idea to realize that... I don't need a template, I need a Idea...


PS: The sponsor-thing can you see here http://swishzone.net/vb/show.php?pg=sponsor

Logician 04-27-2002 08:52 PM

ok so why do you need this in a webtemplate? If you need special permissions for certain forums/users to read/reply etc. you can do that with vbulletin. Do you really need your threads moved in a webtemplate?

If you really need it in a webtemplate then may be you can think of moving only thread subjects to your template not the entire thread. You can link your threads in the template and if someone needs to read/reply, they can click the link and beamed to the original thread in the forum.

The hack was not designed to alternate vbulletin's reply feature because we already had it there. Hack's purpose was moreover derive data from the database and automatically create pages integrated with vbulletin. Therefore I dont think we can figure out a way to create a vbulletin reply alternative in a web template..

Wildthinks 04-27-2002 08:57 PM

thx for answer...so I will do what you saw, I think i can also the webtemplate design, that I have the post from VB or the headlines only and then a button to send the user to the thread and he can answer there....

Ok... I hopeI can realize that... thx for help...

-=dm=- 05-01-2002 12:33 PM

Quote:

Originally posted by Logician
Yes this is possible:

What you have to do is create a "conditional" depending on user style variable, ie. $bbuserinfo['styleid']

So this should work:
-- cut ----
[[($bbuserinfo['styleid']==X)]]
your header for users whose styleid is X (Dont forget to replace X with style's id number)
[[/($bbuserinfo['styleid']==X)]]

[[($bbuserinfo['styleid']==Y)]]
your header for users whose styleid is Y (Dont forget to replace Y with style's id number)
[[/($bbuserinfo['styleid']==Y)]]

-- cut ----
and etc..

Let alone header, you can even design the WHOLE page in a different manner depending on user's style id, if that is what you want.

I am not at home now, so couldnt check if it works, but I cant see any reason that it wont.

Let me know if this is what you asked..

Regards,
Logician


Hi Logician
Great hack :)
I have 2 questions.
1: where to add the code above?
2: How do I see where is the user (the whoisonline part)

Thanx in advance
dm


All times are GMT. The time now is 06:11 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.01171 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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