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 2.x: VB Integrated Content Management System (https://vborg.vbsupport.ru/showthread.php?t=54875)

Logician 03-28-2004 01:40 PM

I fail to see how this page is related to webtemplates hack. It looks like a page of "Logician News" hack. If you use a login box in a "webtemplate" (not logician news hack!), it is suppose to take you to that webtemplate after you login successfully.

MeTaL_oRgY 03-28-2004 01:43 PM

lol, yeah, it?s the logicians news hack, as it?s my test page, I use it for everything I want before adding to my website. Your news hack works great!! thnx for that one by the way!

if you see below the news, you?ll see the login box, that?s a webtemplate :).... and if you login it redirects to the forum and no to the test pagee, that?s what I don?t wnt :o... I dunno if it?s possible or no... :o

Logician 03-28-2004 04:39 PM

Quote:

Originally Posted by MeTaL_oRgY
lol, yeah, it?s the logicians news hack, as it?s my test page, I use it for everything I want before adding to my website. Your news hack works great!! thnx for that one by the way!

if you see below the news, you?ll see the login box, that?s a webtemplate :).... and if you login it redirects to the forum and no to the test pagee, that?s what I don?t wnt :o... I dunno if it?s possible or no... :o

Your login form lacks a hidden parameter such as this:
<input type="hidden" name="url" value="http://your url to jump after login">

MeTaL_oRgY 03-29-2004 12:03 AM

I guess I´m starting to get it.. thnx a lot for ur patiente and time logician!!! and thnx for creating such great hacks!!

Highlander 03-30-2004 06:35 AM

thx logician :D

wanna see what i maged till now with webtemplates? its still alpha study *smile*
http://spielplanet2.de/forums/view.p...lpha_news_v0_2 will finish about two weeks .. got not plenty of time to spend with coding all to my needs ...

ahh got a question.. ok tow queries.. wont qwork .. i see .. but how about a long querie wich crosses thread and attachment table ?
you just have integrated one in the standart installations of webtemplates.. ..something with LEFT JOIN and on this way you get tables and collumns from two tables .. is there really no way about?
something like that:
PHP Code:

SELECT FROM threads ..... LEFT JOIN attachment WHERE id

is this a way out?

greetings
Highlander

Logician 03-30-2004 08:15 AM

Quote:

Originally Posted by Highlander
is there really no way about?
something like that:
PHP Code:

SELECT FROM threads ..... LEFT JOIN attachment WHERE id

is this a way out?

You can not do that because attachments are not attached to the threads they are attached to the posts.

So the actual query should be
SELECT post.*, attachment.* FROM post LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid where ...
but this does not even help you altough it successfully returns relevant attachments per post.

It does not work, because after you get the attachment info with this query you need some PHP code to do to display the attachment correctly. They are permissions code, extensions code etc.

Edit functions.php and check the code after this line and you'll understand me better:
PHP Code:

if ($post[attachmentid]!=and $post[attachmentvisible]) { 

Bottom line you can not do it.

Highlander 03-31-2004 04:11 AM

i am very sad :( .. so sad.. i will finish my live now .. cant live anymore with this malfunctions :D ..

okay.. so i looked and understand it now even a little bit better .. yes you are right the attachment table is crossing trough posts and threads table to get the right attachmend_id :( ..

hey but wait maybe there is an trick :D
When i selsect Threads from forum 304 .. i can arrange a selection from attachment table right beside to get the attachments from forum 304 ?
and i have a new question about the query i insert in the webquery list :D

when i insert this query:
PHP Code:

SELECT FROM threads WHERE forumid=304 .. 

<- i am able to get the results from this forum :D . okai thats very fine and also very nice working :D

but what about showing up threads from more than one forum ?
PHP Code:

SELECT FROM threads WHERE forumid=304,305,306 ORDER ..blabla.. 

i get now an error and no results.. anyway it dont matter.. its only one query..

Bug Report
$nowbrowsing -> is not showing up alwys..sometimes no session is showing up .. dont know why.. but i could figure out..that sometimes no session is started.. .. i am recognized with username end everything what belongs to this username.. but brwowsing around somtimes looses the session informations and nowbrowing is not function anymore .. have an idea?

How about this page:
http://spielplanet2.de/forums/view.php?s=$session[sessionhash]&pg=alpha_news_v0_2

it is okai for you to give you there some credits? And where do you want placed a 88x31 button or simple text link?
You did the biggest job on creating these sites.. so the credits belongs to you :D

Logician 03-31-2004 05:55 AM

Quote:

Originally Posted by Highlander
$nowbrowsing -> is not showing up alwys..sometimes no session is showing up .. dont know why.. but i could figure out..that sometimes no session is started.. .. i am recognized with username end everything what belongs to this username.. but brwowsing around somtimes looses the session informations and nowbrowing is not function anymore .. have an idea?

yeah I know about that. Actually it shows you but when you refresh. I'll correct it in the next version.

Quote:

it is okai for you to give you there some credits? And where do you want placed a 88x31 button or simple text link?
thx. no need for a button but if you like you can keep "powered by Logician Webtemplates v.x" text at the bottom.

codemonkey 03-31-2004 08:04 AM

One Question: When will the system work for vBulletin 3??

Highlander 04-02-2004 03:11 AM

the next version will be then for vb3?

*crying* .. i do not plan converting this year :D ..cause i build up so much with this versionb... i dont have the time to convert everything.. so i will try to use that for my need and newsfeeds :D

greetings..and much thanx for helping out in this thread...


All times are GMT. The time now is 04:36 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.01224 seconds
  • Memory Usage 1,756KB
  • 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
  • (5)bbcode_php_printable
  • (4)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