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)
-   -   WebTemplates v.0.1 (Old Version) (https://vborg.vbsupport.ru/showthread.php?t=36419)

Logician 06-17-2002 05:49 AM

Quote:

Originally posted by DancesWithLysol
since you would be familiar with both hacks, do you think it would be possible create something similar to the news hack using web templates?
It's possible to compile news and post to a news page (not index.php though!) with WebTemplates Hack.

However considering the fact that you already applied Logician News Hack, you really wouldnt need WebTemplate for news. Logician News has more features for news like taking some part of the news, parsing smilies (Web Templates new release will do it too), having sticky news etc. So for news I suggest using Logician News, not Web Templates.

If you are tending to use WebTemplates, yes you can though. Just create a web query to compile data from your db and create a webtemplate to post them away. But it would be a little awkard at the moment since smilies, bbcode cant be parsed for example and you are for sure need show.php to display this page.

BTW. why to you want to combine both of them? The only reason I can think of is to apply vb access permissions to your news page and except this you wouldnt need to integrate two, would you?

DancesWithLysol 06-17-2002 02:31 PM

Quote:

BTW. why to you want to combine both of them? The only reason I can think of is to apply vb access permissions to your news page and except this you wouldnt need to integrate two, would you?
The site that I would like to use this for is a subscription site where subscribers get access to additional content (e.g. files). I was considering a system where I could show all the most recent files that the user has access to (based on the usergroupid) on the left, and have the site news on the right.

While I like your news hack, one thing I wish it would do is use the colors defined in the user's selected style. I figured that templates solve this problem and are a more general approach to accessing information from the database for use in web pages.

Logician 06-17-2002 02:45 PM

Quote:

Originally posted by DancesWithLysol

While I like your news hack, one thing I wish it would do is use the colors defined in the user's selected style. I figured that templates solve this problem and are a more general approach to accessing information from the database for use in web pages.

I see.. Unfortunately it's not possible to combine Logician News and WebTemplates. If you want to create such an enviroment you need to stick with Webtemplates. It can help you to get the page you have in your mind, just one downside: It cant parse smilies and bbcode for your news yet. However I already added this feature to the new release which will be released soon, so I guess until you finish designing your page, it will be ready and you can use it with your news.

Alan Ang 06-17-2002 07:18 PM

hi logician...

i tried to install your hack, but got this after the installation... i am lost at what to do...

Quote:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/poolfana/public_html/forum/admin/functions.php on line 812

Fatal error: Call to undefined function: vbsetcookie() in /home/poolfana/public_html/forum/admin/sessions.php on line 183

Logician 06-17-2002 07:30 PM

Quote:

Originally posted by Alan Ang
i tried to install your hack, but got this after the installation... i am lost at what to do...

Alan please double check if you applied step 3 correctly. It seems that you made a mistake in step 3. Check it out, reapply if necessary and if you cant figure that out send me your "functions.php" via pm and I'll take a look at it.

Alan Ang 06-17-2002 07:36 PM

PM sent to you... thx in advance. :)

GuruXL 06-17-2002 11:47 PM

you know this hack seems kinda pointless I mean their is already a "Pages Via Templates" hack...so in my mind this hack is well...crap...

Logician 06-18-2002 09:27 AM

Quote:

Originally posted by GuruXL
you know this hack seems kinda pointless I mean their is already a "Pages Via Templates" hack...
Already?

Pages Via Templates hack released in 03-27-02 05:49 AM
WebTemplates hack released in 03-22-02 07:58 PM

Make a subtraction..

I hope your maths is better than your "great" knowledge in coding and "wisdom" in critising something you have no idea.

Alan Ang 06-28-2002 02:32 AM

logician,
i finally got mine up and running. great hack!
it seems that i have a little problem, i can't preview the WebQuery but I can preview the WebTemplate...
what can be the cause?
also, when i run http://myURL/show.php?pg=whoareyou, the list of messages seems NOT to be the latest posts.
when i try out your PM Query, the PMs that i get are all the Odd numbered ones... ???
can i re-install the Webtemplates? will it create another extra 2 tables or will it just write over?
oh, and one last thing (sorry too many:()... how do i link my index.htm to show the http://myURL/show.php?pg=whoareyou
please advice.
thx.

Logician 06-28-2002 07:03 AM

Quote:

Originally posted by Alan Ang

it seems that i have a little problem, i can't preview the WebQuery but I can preview the WebTemplate...
what can be the cause?

what do you mean by "you cant preview webquery"? You cant access webquery screen inside your Admin CP? Can you list webquery list in Admin CP when you click modify query? Can you access your webquery when you click one in the modify query screen? Or is it just webquery doesnt work when you load a webtemplate?

Please give some more details, I didnt get it.

Quote:

also, when i run http://myURL/show.php?pg=whoareyou, the list of messages seems NOT to be the latest posts.
when i try out your PM Query, the PMs that i get are all the Odd numbered ones... ??? can i re-install the Webtemplates?
Have you modified any webquery? Was it so when you first installed the hack and loaded whoareyou or did it become broken after sometime?

I must say that this is weird :)

Anyway here is my tips:
1- First apply the fix to show.php a few messages above and let's see if it will do the trick.

2- If not please delete your tables via these SQL commands:

drop table webtemplates;
drop table webtemplatequery;

(You have a tool to run a SQL query right? If not, you can use this one)

After deleting both, run installation script again..

Quote:

how do i link my index.htm to show the http://myURL/show.php?pg=whoareyou
Do you mean replacing your index.htm with this template or inserting the results returned from this template inside index.htm?

Or if you just mean to put the link of the template in index.htm, you should link it just like a normal internet URL:
<a href="http://myURL/show.php?pg=whoareyou">My Template</a>

BTW. can I see your webtemplate? What's the URL?


All times are GMT. The time now is 03:38 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.01685 seconds
  • Memory Usage 1,752KB
  • 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