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)

Highlander 02-26-2004 04:38 AM

Hello Logician,

its me again and i read all posts in this thread.. before i figure out my quastion i have :D

If you have one minute to overview this .. i would be very happy ..

What i want to get done
You see this test Template i did .. it was work of 10 seconds :D
-> http://spielplanet2.de/forums/view.php?s=&pg=testone <-

i have in my forums .. espically these forums i showed up in this test template an news based posting style.. this means only news writer are allowed to start threads there, with uploading an image .. this News shows up like here .. www.spieleplanet.org/news.php ..you see i show the attachment file as simple link to attachment.php in IMG tags and the img is showing beside the topic title..

the same i want to get shown in a (for example) News WebTemplate .. this means not only the topic title should show up like here (http://spielplanet2.de/forums/view.php?s=&pg=testone) i also want to show up the attachment file (i only show up images) .. the thumbnailing is not my problem..the query itself is a problem to get the topic titel inclidiung the attachment image to show up..

Can you follow me?
My english is not always understandable :D .. sorry for that but you webtemplates are a better, faster and easier way to make a new News Based Website based on the forum .. with many oiptions i cozuld integrate .. your CMs is very mighty and i love it ..

i would marry you if you would be a nice looking girl *lol*

Highlander 02-27-2004 05:23 AM

Hi Logician,

You just heard this maybe thousand times .. but i want you to know that this thing is the right thing i am searching for over one year for my web study :D .. i managed a whole bunch of finishing projects with this hack :D

i cant believe that everything is just getting exactly as i want :D

and i cant wait to get from work to work on this new spieleplanet project :D

..okai .. that should be enough for you wounded fingers .. how many keybords did you crashed until you finished this hack ..hehe :D

Project Example (still not Finished)
http://spielplanet2.de/forums/view.p...lpha_news_v0_2

Question (planned features)
- how to migrate the search field? Can you give me an tip?
- How to migrate attachemnts from (for exapmple) listed threads you see on the example page link?

If you find time for this (just for me important) things .. it would be nice.. otherwise i am testing also till i find it out..

vBulletin 3 support
Just leave it alone *smile* i dont need it also and your hacks make an vb2.* more eficient than the naked vb3.*
One day maybe i have to start with the upgrade.. but everything is working better than fine .. and you know "never touch a running system"

Greetings from germany (Frankfurt)
Highlander
www.spieleplanet.org/forums
http://spielplanet2.de/forums/view.p...lpha_news_v0_2

NORRITT 02-28-2004 12:48 PM

hello,

I have some questions for modifying that great hack.

1. I know it is not supportet, but what have I to modify to use view.php in an other directory? (instead of site.com/forum/view.php I would like to see it in site.com/view.php)

2. How can I get templates generated by the vbhome lite hack working in the THEMES (Parent WebTemplates)? I would like to include:
- home_loggedinusers
- home_newposts
- home_userloggedin
- home_userloggedout
- home_threadbit
- home_welcomeguest
- home_welcomeuser

3. How can I use WebQuery to show all (or latest 5) headlines of all Webtemplates created for a category? How can I show all headlines of all categories? The Headlines should be links to the full Artikle (Webtemplate page).

thank you a lot
lukas

GoTTi 03-02-2004 02:44 AM

log, you got any movement on making this work with vb3 yet?

NORRITT 03-02-2004 10:04 AM

Hello friends,

I got my 1. question solved on my own: just copied the view.php into my root directory and changed every path ./admin/.... into forum/admin/....

Can anyone help me with 2 and 3?

lukas

Highlander 03-04-2004 05:21 AM

Hi there

have an problem creating a webtemplate including informations like this:

First i have this QUERY to find out the Threadid wich i can use in TABLE "Post" toi get the "postid" to get in the end the "attachmend_id" i can use to show up images :D

PHP Code:

$newsquery=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid,iconid,dateline FROM thread WHERE forumid='$newsforum' ORDER BY dateline DESC LIMIT $newsposts");
while (
$news=$DB_site->fetch_array($newsquery)) {
  
$newsthreadid=$news[threadid];
  
$newstitle=$news[title];
  
$newsicon=$news[iconid];
  
$newstime=vbdate($timeformat,$news[dateline]);
  
$newsdate=vbdate($dateformat,$news[dateline]);
  
$newsusername=$news[postusername];
  
$newsuserid=$news[postuserid];
  
$comments=$news[replycount]; 

So now i get the postid to search for to create an image with when one is attachend to a post (ex: attachment.php?s=$session[sessionhash]&postid=$postid)
PHP Code:

  $getnews=$DB_site->query_first("SELECT postid,pagetext,iconid FROM post WHERE threadid='$newsthreadid' ORDER BY postid ASC LIMIT 1");
  
$postid=$getnews[postid]; 

this are two queries to get an image out of a post a user makes :D
but how it seems with the webtemplates i can do only one query.. i dont know how to migrate this code into the qebqueries ?

please help me someone out with this.. i tried now for several days and did not manage this .. anyway i just need to show it up..

an working example with a *.php page i did here:
www.spielplanet2.de/news.php <- on the left site you see this code working.. and this option i just need to migrate into webtemplates..so i can turn off this news page and use webtemplates 100% for everything ..

Example of an early Alpha Layout of exisitng Webtemplates:
http://spielplanet2.de/forums/view.p...lpha_news_v0_2

JohnXWA 03-21-2004 04:54 PM

Logician,

I'm in major need of this hack to work with VB3 or i'm screwed. Is there a quick and dirty way to get it to play ball? I don't need the fancy features just plain html pages.

I have a over 200 hundred pages on WebTemplates I cannot afford to loose. VB3 is very stable, considering the extensive beta.

Thanks!

Logician 03-21-2004 05:21 PM

No promises but I am hoping to work on its VB3 version this month. I'm sorry to not to give you an alternative solution but your only way to save your 200 webtemplates would be using the VB3 version of this hack.

NORRITT 03-21-2004 05:37 PM

Logician, can you help me with the webquery and template questions:

1. How can I get templates generated by the vbhome lite hack working in the THEMES (Parent WebTemplates)? I would like to include:
- home_loggedinusers
- home_newposts
- home_userloggedin
- home_userloggedout
- home_threadbit
- home_welcomeguest
- home_welcomeuser

2. How can I use WebQuery to show all (or latest 5) headlines of all Webtemplates created for a category? How can I show all headlines of all categories? The Headlines should be links to the full Artikle (Webtemplate page).

Quote:

Originally Posted by Logician
No promises but I am hoping to work on its VB3 version this month. I'm sorry to not to give you an alternative solution but your only way to save your 200 webtemplates would be using the VB3 version of this hack.


JohnXWA 03-21-2004 05:45 PM

Quote:

Originally Posted by Logician
No promises but I am hoping to work on its VB3 version this month. I'm sorry to not to give you an alternative solution but your only way to save your 200 webtemplates would be using the VB3 version of this hack.

Cool,

I thought as it requires no editing of VB files it would be somethign quick and easy to get it going.

Thanks


All times are GMT. The time now is 04:27 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.01234 seconds
  • Memory Usage 1,761KB
  • 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_php_printable
  • (2)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