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)

glo 07-30-2003 06:32 PM

Fantastic! you have just saved me some more work!

Thanks Logician!

ap0c 07-30-2003 11:53 PM

nice addition in the latest release!

glo 07-31-2003 12:04 PM

Hi Logician,

I ran the query for the 2.03 upgrade, but got the follwing error.
_____________________________________
Database glo_vb - Table wt2_visitlogs running on localhost
Error

SQL-query :

ALTER TABLE `wt2_templates` ADD `vbtemplates` MEDIUMTEXT NOT NULL

MySQL said:

Duplicate column name 'vbtemplates'
Back
____________________________________
However, i cant see that the table vbtemplates at all!

Logician 07-31-2003 12:21 PM

Quote:

Today at 04:04 PM glo said this in Post #123
Hi Logician,

I ran the query for the 2.03 upgrade, but got the follwing error.
_____________________________________
Database glo_vb - Table wt2_visitlogs running on localhost
Error

SQL-query :

ALTER TABLE `wt2_templates` ADD `vbtemplates` MEDIUMTEXT NOT NULL

MySQL said:


Duplicate column name 'vbtemplates'
Back
____________________________________
However, i cant see that the table vbtemplates at all!

it seems that you run the query twice.

"vbtemplates" is not a new table, it is a column in wt2_templates table so check there. According to your error message it should be already there.

glo 07-31-2003 12:25 PM

Hi Logician,

I ran the query the first time, and received a page cannot be displayed error.

So i ran the query again.

Itsalready there, have i done any damage running it twice?

Thanks!

Logician 07-31-2003 12:45 PM

Quote:

Today at 04:25 PM glo said this in Post #125
Hi Logician,

I ran the query the first time, and received a page cannot be displayed error.

So i ran the query again.

Itsalready there, have i done any damage running it twice?

Thanks!

nope.. go ahead and replace your files and you are set..

glo 07-31-2003 01:00 PM

thanks! :banana:

glo 08-01-2003 10:09 AM

Hi Logician!

You are a legend! this hack is magical! and i am only finished installing all the extra options! :knockedout:

Cant wait to utilise it to its full potential! :rambo:

However, i do have a very minor question! when i am in the edit section of the Webtemplates Header/Footer default_header_footer, the preview button does not seem to work? And on the bottom of the frame it says "Error on Page"

Seems to work fine when creating my own template?

I cant think of why? I have checked all the notes!

roxics 08-01-2003 11:09 AM

I just moved my vbulletin files from one URL to another. the database stil remains at the old URL. The rest of the baord seems to work fine. Webtemplates also seems to work fine when editing. However clicking the "Visit" linknext to a web template in teh admin CP I notice it goes to the old URL. Why is that? Can I change that somewhere? Or is it in the database?

glo 08-01-2003 11:11 AM

Roxis, change your config file to the new sql location!

roxics 08-01-2003 11:14 AM

SQL hasn't changed. Database is still at ve.roxics.com while the site is at visionengine.com

Logician 08-01-2003 11:25 AM

Quote:

I just moved my vbulletin files from one URL to another. the database stil remains at the old URL. The rest of the baord seems to work fine. Webtemplates also seems to work fine when editing. However clicking the "Visit" linknext to a web template in teh admin CP I notice it goes to the old URL. Why is that? Can I change that somewhere? Or is it in the database?
Visit link uses the value of "$bburl" to locate the whereabouts of "view.php". And the value of $bburl is assigned by vbulletin according to your admin cp/options page setting.

So if that link is taking you to a wrong URL, it must be related to your wrong entry of your site url in admin cp options page.

roxics 08-01-2003 11:28 AM

Thanks Logician
That was the problem. Didn't even think to change that. :)

glo 08-01-2003 11:37 AM

Quote:

Today at 09:09 PM glo said this in Post #128
However, i do have a very minor question! when i am in the edit section of the Webtemplates Header/Footer default_header_footer, the preview button does not seem to work? And on the bottom of the frame it says "Error on Page"

Seems to work fine when creating my own template?

I cant think of why? I have checked all the notes!

Any thoughts?

Logician 08-01-2003 12:32 PM

Quote:

Today at 03:37 PM glo said this in Post #134
Any thoughts?
This might fix it:

edit webtemplate.php, find:

PHP Code:

  maketextareacode("Template<br><br>","headerfootertemplate",'',25,80); 

Replace it as:
PHP Code:

  maketextareacode("Template<br><br>","template",'',25,80); 

Find:
PHP Code:

$headerfootertemplate=trim($headerfootertemplate); 

Replace it as:
PHP Code:

$headerfootertemplate=trim($template); 

(2 instances, replace both)

Find:
PHP Code:

maketextareacode("Template<br><br>","headerfootertemplate",$webtemplate['template'],25,80); 

REplace it as:
PHP Code:

maketextareacode("Template<br><br>","template",$webtemplate['template'],25,80); 


glo 08-01-2003 01:00 PM

Thanks Logician! thats the fix! was it just a bug that slipped thru?

:)

glo 08-02-2003 02:25 AM

Will your web templates allow flash to run inside of them?

Logician 08-02-2003 09:06 AM

Quote:

Today at 06:25 AM glo said this in Post #137
Will your web templates allow flash to run inside of them?
Webtemplates can do anything regular HTML pages can do so yes they allow flash too. Just create your flash snippet and add it to your webtemplate just like you are adding in a regular .html page.

glo 08-02-2003 12:51 PM

For some reason, i cant log out now that i have created my first webtemplate. Have you had any reported bugs of this nature?

Logician 08-02-2003 12:55 PM

what do you mean? You can log out in other forum pages but can not log out in webtemplate pages? Or cant log out in any pages? If later it is not related to the hack, your cookie is corrupted, clear it manually.

glo 08-02-2003 01:02 PM

it very odd, i had no problems since installing the hack, but after i went to test the conditionals, i tried to log out, but i couldnt, so i was thinking "what has changed in the last 30minutes" I cant log out of the forums.

How can i manually clear the cookie? Ive tried changing the settings in Admin,but that didnt change things either.

Your probably right about the cookie being corrupted, but im not certain how to manually clear it.

Logician 08-02-2003 01:05 PM

check in vb.org or vb.com with keywords "corrupt+cookie" or "cant log out" you'll see many posts to see how you handle it.

glo 08-02-2003 01:09 PM

thanks.

Have you had a chance to have a look at the post i left on the WebTemplates/WebQueries thread?

=DH=Demon 08-02-2003 03:17 PM

hello im using this and its absolutly great
im using it together with your news script logician and it owns.

however i want the following thing

i made a webtemplate index and i wanna include other webtemplates in it , how do i do it? thanks

Logician 08-03-2003 08:26 AM

Quote:

Yesterday at 07:17 PM =DH=Demon said this in Post #144
hello im using this and its absolutly great
im using it together with your news script logician and it owns.

however i want the following thing

i made a webtemplate index and i wanna include other webtemplates in it , how do i do it? thanks

Please check the thread, I already gave the webquery that does it.

=DH=Demon 08-06-2003 01:35 AM

i chekc everywhere and i only seem to find to list all templates but what i want is for example :

i created template : INFO
i created template : INDEX

now i want the content of INFO displayed in template INDEX by calling something like $INFO

is this possible? would be GREAT !

Logician 08-06-2003 09:06 AM

Quote:

Today at 05:35 AM =DH=Demon said this in Post #146
i chekc everywhere and i only seem to find to list all templates but what i want is for example :

i created template : INFO
i created template : INDEX

now i want the content of INFO displayed in template INDEX by calling something like $INFO

is this possible? would be GREAT !

Check "theme" part in help document.

soccerclue 08-08-2003 08:53 PM

Hi,

I wonder if the webtemplate hack includes the user authentication or not? So, if the user is not logged in in that webtemplate page, there would be a login box there or sign up link there. Is the webtemplate page has the feature of session, checking the user's username and password in database if it is correct? I would like the page to include login box if not logged in. I am trying to make a form processing page using this webtemplate hack. Is it possible to achieve with this hack?

Logician 08-08-2003 09:32 PM

Quote:

Today at 12:53 AM soccerclue said this in Post #148
Hi,

I wonder if the webtemplate hack includes the user authentication or not? So, if the user is not logged in in that webtemplate page, there would be a login box there or sign up link there. Is the webtemplate page has the feature of session, checking the user's username and password in database if it is correct? I would like the page to include login box if not logged in. I am trying to make a form processing page using this webtemplate hack. Is it possible to achieve with this hack?

If you want only your login box to show (not the webtemplate itself), just add 1 in banned users field of your webtemplates and you will have exactly what you want.

If you want your login box to show inside webtemplate (so webtemplate itself is also displayed), use $WT_Login in your webtemplate content.

soccerclue 08-08-2003 09:54 PM

Thanks a lot Logician for the quick reply. One more question here, if I want to create a php form processing page and copy the code to the webtemplate page, can it handle the user authentication already? So when the user hit the submission button, if the webtemplate page showing not logged in, it cannot proceed. But if logged in, the submission succeeds.

I got other question not related with the hack though. When I create form processing page using php, I would like to get the userid of the user who is processing the form based on the vbulletin username, what is the variable of it? Should I look into the SQL table of 'user' in vbulletin database? Is the webtemplate page already handles that?

Logician 08-09-2003 08:31 AM

1- Yes. Just set the banned userid field in the TARGET webtemplate as 1
2- $bbuserinfo[userid]

soccerclue 08-11-2003 09:52 PM

So is it correct if inserting the variable like this?

$cin = mysqlconnect ("localhost","$bbuserinfo[userid]","password");

What would be the password variable?

chad 08-16-2003 06:37 AM

sweet cool hack.

gmarik 08-16-2003 10:28 AM

When can I await a 3.0 version for this great hack, Logician?

lasto 08-28-2003 09:52 PM

very nice hack - been playint with it all day

/me clicks install

i sort of get the drift on how it works but cant get it working vica-versa which i thought it would as it would make the queries dynamic.

The vistors count to this page i wanted to add to me index.php as a sort of counter but dont work does it.
Is there anyway i can make it work or am i going way overboard here or missed something?

Besides that it works well and yep if u have microstats just add $footer to end of your templates to get server load and web queries

Logician 08-29-2003 09:13 AM

@lasto: Sorry did not understand your question?

lasto 08-29-2003 10:25 AM

sorry Logician will try again :)

u know how your hack shows how many vistors have been on a page etc (sort of like a web counter) why cant i add that query to bottom of my forum homepage so it makes a counter there ?

Logician 08-29-2003 10:39 AM

Quote:

Today at 02:25 PM lasto said this in Post #157
sorry Logician will try again :)

u know how your hack shows how many vistors have been on a page etc (sort of like a web counter) why cant i add that query to bottom of my forum homepage so it makes a counter there ?

Because webqueries and other webtemplate related features work only in your webtemplates (ie when view.php is run), not in your regular vb pages.

For instance to display/run that counter in your webtemplates, you first run "view.php" which has the code for the counter but to display your forum home page, you run "index.php" so counter code does not run.

You need an independent hack for your request. I can suggest hack requests forum..

lasto 08-29-2003 10:48 AM

nps and cheers for feedback

soccerclue 09-04-2003 09:32 PM

Hi..can someone help me here? I have problem creating php page with this hack...please take a look at this page... http://www.asianguild.com/forum/view.php?pg=oddss I am not sure what's wrong. I tried creating php page. Hope someone can help me. Thank you.


All times are GMT. The time now is 05:50 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.01620 seconds
  • Memory Usage 1,840KB
  • 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
  • (6)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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