![]() |
Quote:
Edit view.php, find lines 787 and 916 and put a @ symbol at the beginning of files. Error will be gone. |
Quote:
Thanks |
I must be missing some syntax change in the versions. Can't find it in the vb manual? Can anyone spot it?
In PHP Include: Code:
$cleantestvar =& $vbulletin->input->clean_gpc('g', 'imageid', TYPE_INT); Code:
<center><img src="http://pokegym.net/gallery/displayimage.php?imageid=$cleantestvar"></center> So passing this gives a blank page! Code:
http://server/forums/view.php?pg=towercard&imageid=52494 but executing the template with $cleantestvar substituted with the value 52494 gives the desired result, so I'm guessing $cleantestvar is coming up null/blank. Suggestions? |
Quote:
In vb4.x you can't simply use a variable inside a template without registering it in the PHP code. So outside variables can still be used in webqueries etc. but to display them inside templates, they should be declared like "$templater->register('cleantestvar', $cleantestvar);" in view.php. Or to avoid this, maybe you can trick vb by assigning your variable to an already recognized vb variable in phpinclude like: $vbulletin->input->clean_array_gpc('r', array( 'cleantestvar' => TYPE_STR, )); $vbulletin->options[cleantestvar] = $vbulletin->GPC['cleantestvar']; As $vbulletin->options is a declared variable, vb will allow this in templates. As for the error, you can trace it via PHP error log, not apache error log. You can enable it in WHM if already not enabled, or simply turn on screen display to see them posted directly to screen during running of the scripts. |
Question, I have this installed just fine. I have the ProGamer Theme installed and each of the pre-installed templates don't bring across the background image of the theme. Please help!!
|
I'm seeing the following errors since I upgraded to vbulletin 4.2.2 and php 5.4...
Warning: Assigning the return value of new by reference is deprecated in ..../includes/wt_class_core.php on line 305 Warning: Assigning the return value of new by reference is deprecated in ..../view.php on line 81 |
Warning: Assigning the return value of new by reference is deprecated in ....Bla Bla Bla
How to fix. Open the file, view.php, in that file find the following (twice in the file): Code:
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); Code:
$parser = new vB_BbCodeParser($vbulletin, fetch_tag_list()); Code:
$bgclass =& $GLOBALS['bgclass']; Code:
$bgclass = $GLOBALS['bgclass']; Code:
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); Code:
$parser = new vB_BbCodeParser($vbulletin, fetch_tag_list()); Code:
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); Code:
$parser = new vB_BbCodeParser($vbulletin, fetch_tag_list()); |
That worked. Thank you very much!
|
Not a problem, glad to help. :)
|
1 Attachment(s)
Fresh install on 4.2.2 Please help.
|
That screenshot don't help, you need to get the error message from your error logs, or from your email.
|
Where is the logs at?
|
If you are not sure where the are at, ask your host, they should be able to tell you where they are located on your setup.
|
I am the host lol. I rent a vps server. PM sent.
|
Then if you own the server, you should be able to find the logs, If you lease it from a service, contact them.
|
Its weird cause I installed the Advanced Application forms mod too and I get the same thing when I click on any of the links too
|
I think its not letting me modify the admin folder. hmmmm
|
Then I would suggest to do the following.
Open your config.php and below<?php add this line: PHP Code:
PHP Code:
Then you can uninstall the mod since it seems to blow your site up. |
Quote:
If you get it in regular vb pages, I doubt its about webtemplates. Webtemplates does not have any hooks in vb system which can effect other vb pages. A problem in the hack will only effect its own page. BTW internal server error in all pages can mean you messed up .htacess file. If you changed it recently, change it back. (or at least temporarily remove it to get rid of the problem) |
Long story short....I'm a dumbass. :) I was using FireFtp to upload files. My provider suggested to use filezilla to upload files and that did the trick. Something was happening when I uploaded using the firefox add-on. All is up and working now. Thanks!!
|
Ahh cool, thanks for reporting back, I would have never though of that as I have always used FileZilla.
|
Finally added this. Thank you, now i can remove like 3 mods that this one alone replaced.
|
How to use this mod in custom style? Header is all messed up.
|
Great mod thank you so much!
Is there a way to make these templates accessible via tapatalk? |
Quote:
|
Hi Logician, I was wondering if you can solve my puzzle:
I'm using your default web query $WQ_last10threadfromforum2 but changed it to extract threads from forum#121 and it works as it should. PHP Code:
PHP Code:
Quote:
Quote:
I did try to read the 5.1.72 manual until my eyes crossed and fell out on to my cheeks. Can you help please? Logician's WebTemplates 4.0.2 MySQL Version - 5.1.72-cll vB 4.2.2 |
Quote:
So its NORMAL that BOTH of these queries will produce a syntax error when you try to run them "as they are" in tools like phpmyadmin. If you want to run them there, you need to remove " . TABLE_PREFIX . " part and use this query: PHP Code:
PHP Code:
However this still does not explain why your query is not running in webtemplates. :) I suspect there is another problem somewhere else rather than the query syntax. I don't know if your webmaster email in config.php file is accurate but if webquery died with a DB error (like syntax error) you would get a DB error notification in your email. Since you didn't get it, I'd think that there is no problem with your webquery. Blank pages usually means PHP errors and they happen in servers where PHP error display is turned off in php.ini. If it was on, the page would display the error and we would have more clue. Since its off, I don't know what is causing the error but maybe you can check it in your server's php error log. I'd suspect something about the webtemplate your recently created (rather than webquery). So my first suggestion is, create a new test webtemplate with nothing in it but a simple "hello there $WQ_last10threadfromforum3" and see if it will also produce a blank page. If it works, then you can understand its somehow related to the content of your other webtemplate (not webquery!). It might be clashing with an other plugin or smt. It would really help if you enable php error display in server so that we'll see the error message that blank page is suppose to produce. |
Quote:
http://imageshack.com/a/img32/1315/zw9u.jpg Thanks for your effort. My apologies for wasting your time. |
vB 4.2.2
bellow 'Site Help Pages' : Quote:
|
I do not use this mod, but I believe the error message is saying that it cannot auto insert changes to the header template, due to it being already modified.
You should always test a new modification on a default vbulletin setup (no customizations) -- a test board. Make sure you read the thread on this mod since there are some change you will have to make to run it on v4.2.2. |
1 Attachment(s)
I am using the Header 2 location in ad management. I am running 4.2.2, using the default style. Based on advice I was given to correct a display issue (header 2 ad was just right of the header image instead of all the way to the right), this has been corrected on all forum pages, but it is still displaying incorrectly on the pages using webtemplates (see attachment). The attachement image is not a webtemplate page, but that is how it is still displaying there. To fix it on the forum pages, I entered this into additional.css:
HTML Code:
.ad_global_header { |
Quote:
|
Yes, they are all Default Basic Theme that I am concerned with. I am not great at all of this, can you give me some more direction? I know what template to edit now, but what am I inserting exactly? Does it go immediately after "{vb:raw headinclude}"?
Sorry to be dense, my know-how with all of this is minimal. |
Quote:
|
You mean the same code (as above) that I put into addition.css? If so, I did try that and the image was still in the same place but the code was listed out at the top of the page. If it is something else I am supposed to put after, then I'm not sure it that code would be.
|
Quote:
|
I installed this, worked absolutely perfectly on the default VB theme however when I try to use my theme which I set as default TF_Ideal the background is missing and the template a bit messy.
The footer is also having some serious alignment problems, I searched through the threads and only one other user mentioned this but he/she received no answer, here is an image of whats happening. https://vborg.vbsupport.ru/ |
Quote:
1- I'm a coder and I have very limited designing skills. 2- There are way too many custom skins users have. So I wish I could help but I can't. Hopefully you get help from another hack user or the designer of that custom skin. |
Quote:
|
I have to throw in my thanks for prompt assistance to fix the issue I was having!
|
All times are GMT. The time now is 01:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|