vb.org Archive

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

Logician 01-12-2012 08:46 AM

Quote:

Originally Posted by CappingTheGame (Post 2286845)
I am getting a blank, white screen in Admin CP when trying to import:

webtemplate_export.xml

Actually, all of the options under that category on the left result in a full, blank white screen. I uploaded and double-checked all files accordingly. Thoughts?

In product manage, you are importing the file "product-webtemplates.xml" and after hack is installed you are importing "webtemplate_export.xml" in webtemplate import/export section right?

Quote:

STEP 2- Login Admin CP/Product Manager/Add-Import Product/ -> Tick "Allow Overwrite" and Import the file named "product-webtemplates.xml"
(There are 2 XML files, please make sure you import the file named "product-webtemplates.xml"!)
(This steps installs webtemplates templates, phrases, settings to your vbulletin)



CappingTheGame 01-12-2012 05:22 PM

That is correct. I made sure I was importing the correct XML file in Admin. First the product-, then the _export.

Just getting a full blank, white screen with no options. Really strange.

CappingTheGame 01-12-2012 05:24 PM

I can't even get to the Export Import area though on the expand/collapse list. I know I need to upload that file there, but again just a blank white screen for somoe reason.

Any helps appreciated.

CappingTheGame 01-12-2012 05:29 PM

4.1.9 BTW. Not sure if that matters.

Logician 01-12-2012 05:42 PM

Is this a fresh install (of webtemplates)? I believe you already tried, uninstalling/reinstalling the product?

If nothing helps, give me admin cp and ftp access to your site and let me check.

CappingTheGame 01-12-2012 05:47 PM

Yes, fresh install. I did try uninstalling/reinstalling.

PMing you info.

Gamelobby 01-13-2012 08:54 AM

Quote:

Originally Posted by Logician (Post 2286438)
Not really but forcing a webtemplate to use a specific style can be possible by using a code like this in webtemplate's phpinclude section:

PHP Code:

    $styleid 8;
    
$vbulletin->userinfo['styleid'] = $styleid;
    
$userselect true;

$style $db->query_first_slave("
        SELECT *
        FROM " 
TABLE_PREFIX "style
        WHERE styleid = '
$styleid'
            
        
        LIMIT 1
    "
);
        
$templater vB_Template::create('headinclude');
            
$templater->register('foruminfo'$foruminfo);
            
$templater->register('pagenumber'$pagenumber);
            
$templater->register('style'$style);
            
$templater->register('basepath'$vbulletin->input->fetch_basepath());
        
$headinclude $templater->render();

        
$templater vB_Template::create('header');
            
$templater->register('ad_location'$ad_location);
            
$templater->register('pmbox'$pmbox);
            
$templater->register('notifications_menubits'$notifications_menubits);
            
$templater->register('notifications_total'$notifications_total);
            
$templater->register('notices'$notices);
            
$templater->register('facebook_header'$facebook_header);
        
$header $templater->render();

        
$templater vB_Template::create('footer');
            
$templater->register('admincpdir'$admincpdir);
            
$templater->register('ad_location'$ad_location);
            
$templater->register('cronimage'$cronimage);
            
$templater->register('languagechooserbits'$languagechooserbits);
            
$templater->register('modcpdir'$modcpdir);
            
$templater->register('quickchooserbits'$quickchooserbits);
            
$templater->register('template_hook'$template_hook);
            
$templater->register('facebook_footer'$facebook_footer);
        
$footer $templater->render(); 

I didn't test it, it might require tweaks.

Quote:

Originally Posted by Gamelobby (Post 2286643)
I'm not the best with "tweaks" lol
But i can add a style id. :)

Where would this code go..?

Quote:

Originally Posted by Logician (Post 2286668)
PHP Include section of the webtemplate that you want to apply the custom theme.

Soooo, It kind of worked.. what tweaks might you suggest..?

Most of it looks good except:
Logo & search button color (both are default skin)

I'm guessing since these are both part of the header, that is what i should be looking for, or to add/change.?

Thanks

Logician 01-13-2012 09:04 AM

Quote:

Originally Posted by CappingTheGame (Post 2286996)
Yes, fresh install. I did try uninstalling/reinstalling.

PMing you info.

Your problem was:

You uploaded wt_wt.php, wt_wq.php, wt_export.php files in your /admincp/ folder but you are not using this folder as your admincp. You have a custom folder set up in config.php for admincp. So you should upload these files there.

I've fixed the problem for you.

CappingTheGame 01-13-2012 01:20 PM

I appreciate the help, thanks.

Gamelobby 01-14-2012 01:31 AM

Quote:

Originally Posted by Gamelobby (Post 2287213)
Soooo, It kind of worked.. what tweaks might you suggest..?

Most of it looks good except:
Logo & search button color (both are default skin)

I'm guessing since these are both part of the header, that is what i should be looking for, or to add/change.?

Thanks

Any thoughts on this.? :)

Logician 01-14-2012 09:01 AM

Quote:

Originally Posted by Gamelobby (Post 2287213)
Soooo, It kind of worked.. what tweaks might you suggest..?

Most of it looks good except:
Logo & search button color (both are default skin)

I'm guessing since these are both part of the header, that is what i should be looking for, or to add/change.?

Thanks

I really can't say much about this issue. Since hack displays your style fine in your regular style, the problem should be related to your second custom style. I can't suggest tweaking its header template with the help of a designer (its own skin designer if possible).

deverill2010 01-21-2012 09:02 PM

I have a few questions, sorry I can't read through the whole thread as my eyes are starting to hurt (iPad screen).

I have the CMS but think its rubbish and the navigation Ida headache.

Will this mod allow me to easily create pages, at the moment I'm using Lynne's method which is a pain.

How can I get these pages as buttons on the navbar?

And this works ok with the latest version yes?

Logician 01-21-2012 09:16 PM

Quote:

Originally Posted by deverill2010 (Post 2290707)
How can I get these pages as buttons on the navbar?

And this works ok with the latest version yes?

Hack does not create navbar buttons automatically. It has a sample webtemplate that lists all webtemplates automatically though for easy navigation.

And yes it works with all 4.x including last version.

Gn_Snake 01-24-2012 08:04 AM

Hello Logician,
i have a problem, yesterday i edited a template and i modified the code html. I saved and the system gives me error.
I do not remember exactly why now I'm not in front of the home computer, but he said it could not be sent because the rejected by the server.

For months we did not do any changes to the templates, and everything has always gone well.

P.S.
I installed VB4.1.10

Thanks

Logician 01-24-2012 08:19 AM

Quote:

Originally Posted by Gn_Snake (Post 2291648)
but he said it could not be sent because the rejected by the server.

For months we did not do any changes to the templates, and everything has always gone well.

"Rejected by server" are usually related to "mod_security" configuration in the server. Probably your host has recently installed mod_security.

This is NOT related to webtemplates or any application in this regard actually, it is a server related issue. Whenever you try to send such an information to server, mod_security can stop you when it thinks its content is suspicious.

One alternative is to disable it, the other is to disable it only for admincp folder and use admin cp webtemplate edit to edit HTML webtemplates and last alternative is to play with its (mod_security) configuration to whitelist your content.

Danai 01-24-2012 09:07 AM

Thanks, really helpful :D

Gn_Snake 01-24-2012 11:53 AM

Thanks Logician, now i check a two solution apply.

Bye

hugh_ 02-02-2012 07:48 PM

1 Attachment(s)
Logician,

Since I upgraded to 4.1.10 some of my webtemplates generated pages but not all are aligning the whole forum left (not just the text). Any thoughts as to what might be wrong? This is happening in every style...

hugh_ 02-02-2012 10:10 PM

Correction, this is happening to all pages generated by webtemplates...

Logician 02-03-2012 10:25 AM

Quote:

Originally Posted by hugh_ (Post 2295526)
Correction, this is happening to all pages generated by webtemplates...

This looks like a style issue to me rather than hack. Is this a custom style? Have you changed anything with it recently? (especially header/headerinclude/footer templates) Is it compatible with that vb version?

hugh_ 02-03-2012 08:18 PM

I was afraid you might say that. I've played around with those templates but I've been unable to fix the problem...

Logician 02-05-2012 09:41 AM

Quote:

Originally Posted by hugh_ (Post 2295814)
I was afraid you might say that. I've played around with those templates but I've been unable to fix the problem...

Some skins comes with a "pluggin" which runs a special PHP code in a certain hook in vb pages. Please check if this is the case with your skin. If it is, that hook could have been added to webtemplate script as well so that WT will also run it.

Bulbucan 02-05-2012 09:56 PM

Update it please, it would be great with new features and without those informations on every page for administrators.

Logician 02-06-2012 08:47 AM

Quote:

Originally Posted by Bulbucan (Post 2296593)
Update it please, it would be great with new features and without those informations on every page for administrators.

Hack is already up-to-date with all vb versions from vb2.x to vb4.x, including latest vb 4.x version.

You can turn off admin info under pages.

deverill2010 02-06-2012 01:40 PM

Logician I'm using your mod and it's lovely thanks but I've noticed that when I navigate on pages that are using this mod it removes the border around my style for some reason.

If you wnt the URL addy let me know and I'll pm it.

gedsta 02-13-2012 07:08 PM

Installed and been using for years, however a slight problem. Nothing to do with the hack but to do with the server.

I have done all the steps right upto

STEP 3- Close your browser, reopen it, relogin to your admin cp and you should to see "Logician's WebTemplates" in the left menu, expand it and click "Export/Import", then "Upload Webtemplate .XML File", point the file named "webtemplate_export.xml".
(There are 2 XML files, please make sure you import the file named "webtemplate_export.xml"!)
(This step is to upload default webtemplates and webqueries to your webtemplate system)

Which is when I run into this error.

open_basedir restriction in effect. File(C:\Windows\Temp\phpD804.tmp)

The problem is the server uses Plesk and there is a huge issue with this at the moment, with no known fix.

I have tried a fresh install of vB3.8.x and installes no issues (an older version) and then upgraded to vB4.x.x again no issues (on another server)

I then backed up the tables, and then dropped them, then restored them. When clicking the webtemplates link in admin, I get a database error. If I uninstall the mod and then reinstall it on the old server, then it goes through and all works. (no open_basedir restriction)

However, using the backup from the old and restoring to the new database, causes the exact same error. (When clicking the webtemplates link in admin, I get a database error. )

I can uninstall the product, and then reinstall, but then I am back to square one, browsing on my PC and then trying to install webtemplate_export.xml, I get the error

file_exists() [function.file-exists]: open_basedir restriction in effect.

Is there anything you can suggest?

Thanks

Logician 02-13-2012 08:28 PM

As you said open_dir restriction is a server related issue and should be fixed on server level.

But if I can understand what you are trying to achieve, maybe I can suggest an alternative to bypass your problem? Yet I'm not very sure what exactly you are trying to do. Is it fresh install of the hack for vb4 that you are trying to do or do you want to upgrade an 3.x installation to 4.x?

gedsta 02-13-2012 08:31 PM

Hi

It's an upgrade from vB3 to vB4

Logician 02-14-2012 04:45 PM

Quote:

Originally Posted by gedsta (Post 2299389)
Hi

It's an upgrade from vB3 to vB4

Assuming you have another server to test things, have you tried this: Install your 3.x forum/webtemplates to your other server. Upgrade first vb then webtemplates to 4.x there. And then move webtemplates databases from that server to your existing server.

Please note that the work should be done in the exact order I mentioned above.

Also note that you need to make sure 4.x webtemplates are 100% working in the other server before moving its db tables to your current server.

Let me know if you have any problems in the process.

gedsta 02-14-2012 05:12 PM

Quote:

Originally Posted by Logician (Post 2299655)
Assuming you have another server to test things, have you tried this: Install your 3.x forum/webtemplates to your other server. Upgrade first vb then webtemplates to 4.x there. And then move webtemplates databases from that server to your existing server.

Please note that the work should be done in the exact order I mentioned above.

Also note that you need to make sure 4.x webtemplates are 100% working in the other server before moving its db tables to your current server.

Let me know if you have any problems in the process.

Hi

Just to let you know I think I have sort of solved this. (some CSS issues)

I backed up a copy of the old database on the old server

I then upgraded to vB4 and then upgraded the mod

I then dropped the tables, and restored them on the old server, worked.

I then dropped the tables on the new server, and restored the back up from today

It worked.

Thanks for a great mod. :D

Kaishi 02-16-2012 03:44 PM

I'm getting these parse errors on the who's online page, running the 4.0 version with vb 4.1.10

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(2233) : eval()'d code on line 15

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(2233) : eval()'d code on line 15

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(2233) : eval()'d code on line 15

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(1223) : eval()'d code on line 22

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(1223) : eval()'d code on line 22

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(1223) : eval()'d code on line 22

Also, if I have it disabled the who's online will show that I'm in the admin control panel, but if I have the mod enabled, it gives the parse errors and it tells me

Unknown Location
/forum/images/styles/DarkCore/style/js/common.js

or

Unknown Location
/forum/editors.php?do=edit&pg=info_forumrules (or whatever else)

in the who's online.

Logician 02-16-2012 05:04 PM

Quote:

Originally Posted by Kaishi (Post 2300252)
I'm getting these parse errors on the who's online page, running the 4.0 version with vb 4.1.10

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(2233) : eval()'d code on line 15

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(2233) : eval()'d code on line 15

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(2233) : eval()'d code on line 15

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(1223) : eval()'d code on line 22

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(1223) : eval()'d code on line 22

Parse error: syntax error, unexpected T_CASE in /home/kaishi/public_html/forum/includes/functions_online.php(1223) : eval()'d code on line 22

Also, if I have it disabled the who's online will show that I'm in the admin control panel, but if I have the mod enabled, it gives the parse errors and it tells me

Unknown Location
/forum/images/styles/DarkCore/style/js/common.js

or

Unknown Location
/forum/editors.php?do=edit&pg=info_forumrules (or whatever else)

in the who's online.

Can it be another mod? Does it cure itself when you disable webtemplates product?

Kaishi 02-16-2012 05:19 PM

Yes, it doesn't happen if I disable the webtemplate product.

Logician 02-16-2012 05:34 PM

What happens if you enable the hack but just disable pluggin named "Logician Webtemplates : Who is Online Locations"?

I'm running the hack on a vb 4.1.10 system without any issues. More importantly the error you got is pretty weird, does not sound like a "bug" but more like a "clash" or "wrong code" issue.

Can you please go to your pluggin manager and hunt for pluggins which uses "online_location_unknown" hook and disable them one by one until the issue is cured? We can then understand if two hacks using the same hook is clashing or not.

Kaishi 02-16-2012 05:42 PM

If i disable the Logician Webtemplates : Who is Online Locations plug in it still displays the same error..

Disabling the HTTP Error Pages Pro, who's online location one, stops the line 22 error, but the line 15 is still there.

Disabling the v3arcade one gets rid of the line 22, but the line 15 is still there, in addition, this one produces a line 9 (lol)

Update: Disabling online_location_process and online_location_unknown for HTTP Error Pages Pro will stop all parse error msgs, but
Unknown Location
/forum/images/styles/DarkCore/style/js/common.js

still shows up.

Update2: It seems to be HTTP Error Pages Pro being the offender here, sorry. Uninstalling it fixed it, guess I'll have to make error pages the hard way. Unless someone can recommend something. Thanks for the fast support logician.

Kaishi 02-17-2012 04:56 AM

Question, how would I define a custom page as "THIS_SCRIPT = something"? Right now, with only one page I can just use "view" but when I add more pages and need to differentiate them, how would I be able to do that? Thanks.

Logician 02-17-2012 06:47 AM

Quote:

Originally Posted by Kaishi (Post 2300410)
Question, how would I define a custom page as "THIS_SCRIPT = something"? Right now, with only one page I can just use "view" but when I add more pages and need to differentiate them, how would I be able to do that? Thanks.

Do you mean in template conditionals? You can use "pg==webtemplatename" syntax. Eg.

<vb:if condition="THIS_SCRIPT == view AND $pg == 'test'">
We are in test webtemplate
</vb:if>

deverill2010 02-17-2012 09:32 AM

Quote:

Originally Posted by deverill2010 (Post 2296787)
Logician I'm using your mod and it's lovely thanks but I've noticed that when I navigate on pages that are using this mod it removes the border around my style for some reason.

If you wnt the URL addy let me know and I'll pm it.

Any Idea Logician? As at the moment pages made with your mod look a bit out of place and dont fit in with the rest of the site properly.

Thanks.

Logician 02-17-2012 01:14 PM

Quote:

Originally Posted by deverill2010 (Post 2300454)
Any Idea Logician? As at the moment pages made with your mod look a bit out of place and dont fit in with the rest of the site properly.

Thanks.

I'm sorry but my help is quite limited in style issues due to my lack of knowledge in designing. The hack works fine in default vb4 style and in many other custom styles as well but if it does not work in a specific style, its designer can help better than me to fix it.

Kaishi 02-17-2012 01:41 PM

Quote:

Originally Posted by Logician (Post 2300426)
Do you mean in template conditionals? You can use "pg==webtemplatename" syntax. Eg.

<vb:if condition="THIS_SCRIPT == view AND $pg == 'test'">
We are in test webtemplate
</vb:if>

unfortunately that didn't work for this mod that helps me add a tab in my nav

https://vborg.vbsupport.ru/showthread.php?t=233629


All times are GMT. The time now is 06:54 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.01732 seconds
  • Memory Usage 1,878KB
  • 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
  • (1)bbcode_php_printable
  • (20)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