vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   WebTemplates 3.5.x: VB Integrated CMS (Content Management System) (https://vborg.vbsupport.ru/showthread.php?t=103076)

zlos 04-03-2006 08:55 AM

Great work, Logician :)

I have question about queries. I want to pass external variable to the query and it seems to controlled somewhere.

Example:

Code:

SELECT name,age FROM user WHERE age=$selected_age
$selected_age would be generated in another template with address, like this:
Code:

<a href=/view.php?pg=myageguys&selected_age=30>30 years old guys</a>
I have tried now and it seems that variable $selected_age is not passed to another template.

Is this possible? If so - how would you solve such problem?

Tom

Logician 04-03-2006 09:40 AM

Quote:

Originally Posted by zlos
Great work, Logician :)

I have question about queries. I want to pass external variable to the query and it seems to controlled somewhere.

Example:

Code:

SELECT name,age FROM user WHERE age=$selected_age
$selected_age would be generated in another template with address, like this:
Code:

<a href=/view.php?pg=myageguys&selected_age=30>30 years old guys</a>
I have tried now and it seems that variable $selected_age is not passed to another template.

Is this possible? If so - how would you solve such problem?

Tom

https://vborg.vbsupport.ru/showpost....&postcount=107

defcon_420 04-03-2006 12:29 PM

First of all i'd like to say Thank you for spending alot of time to make such a great product :)

i have only 1 question, i need an article section that i can catergorise, i'd like my users to be able to provide the content.
Is there a way for users to make the articles and can they be replied to?
thx very much

Annie^.^ 04-03-2006 01:04 PM

this is a great hack. I am having a little trouble tho.

When I create an HTML template and I select my custom header and footer it doesn't apply to the webtemplate only my basic default theme or absolutley nothing.

What am I doing wrong?

Logician 04-03-2006 02:10 PM

Quote:

Originally Posted by defcon_420
First of all i'd like to say Thank you for spending alot of time to make such a great product :)

i have only 1 question, i need an article section that i can catergorise, i'd like my users to be able to provide the content.
Is there a way for users to make the articles and can they be replied to?
thx very much

I'm sorry but this hack wouldn't fit well for using as an article hack.

Quote:

When I create an HTML template and I select my custom header and footer it doesn't apply to the webtemplate only my basic default theme or absolutley nothing.
Can you please rephrase? I couldn't understand what you meant well?

Annie^.^ 04-03-2006 02:51 PM

Sorry if I wasn't clear ...

Ok when I create a a New WebTemplate (HTML)

I select the Header and the Footer i created. After I finished and previewing the page the Header and the Footer is not showing on the page only the html code that I entered in the Text box.

Logician 04-03-2006 05:21 PM

Quote:

Originally Posted by Annie^.^
Sorry if I wasn't clear ...

Ok when I create a a New WebTemplate (HTML)

I select the Header and the Footer i created. After I finished and previewing the page the Header and the Footer is not showing on the page only the html code that I entered in the Text box.

You have to add "$header" and "$footer" to your webtemplate code. (without quotation marks)

Annie^.^ 04-03-2006 05:49 PM

I have tried that, but then the default forum template shows up on the page after previewing.

Logician 04-03-2006 08:04 PM

Quote:

Originally Posted by Annie^.^
I have tried that, but then the default forum template shows up on the page after previewing.

This shouldn't happen. If you don't mind, give me admincp access to your board and let me check.

blacklancer 04-04-2006 08:54 PM

i read through, and maybe i missed it, but can this be used as a main page (i.e. index.html)??

i was trying to get vbcode to work on my home page (i was using vbexternal), but it wouldn't work no matter what i did. this works beautifully as i have tested it, but i am curious to see if i could use this as a home page for my forums.


All times are GMT. The time now is 05:40 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.01902 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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