PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   Using widget on CMS vBulletin (http://www.photopost.com/forum/photopost-pro-bug-reports/149036-using-widget-cms-vbulletin.html)

olijo December 16th, 2012 02:31 AM

Using widget on CMS vBulletin
 
Hi,
sometimes but not always, we have an error on or cms page :
Code:

Content visible to verified customers only.
We use some widget found on or site :
First :
Code:

Content visible to verified customers only.
Second :
Code:

Content visible to verified customers only.
Third :
Code:

Content visible to verified customers only.
Any idea why we have this error, the error sisapear when we remove widget.
Regards,
Olivier

Chuck S December 16th, 2012 10:29 AM

First off this is not a bug or something that we provide product support for. Your not having a problem with our default application. Your telling me your using mod's hacks whatever you want to call them and your having issues.

I will tell you that you can not use hacks multiple times when they have functions within them because you can not redeclare a function that is already the same name in previous code which is the heart of your issue.

So basically your issue is your using someone's work in an incorrect way which is causing your problem.

If you want to replicate and have multiple blocks that all use specific functions you must do one of two things.

Rename any references to function names to something specific in any secondary or third code blocks or remove the function blocks in the second and third code blocks that is in question so you are not redeclaring it.

That will problally point you in the right direction for your hacking mistake.

olijo December 16th, 2012 07:37 PM

Quote:

Originally Posted by Chuck S (Post 1304961)
First off this is not a bug or something that we provide product support for. Your not having a problem with our default application. Your telling me your using mod's hacks whatever you want to call them and your having issues.

I will tell you that you can not use hacks multiple times when they have functions within them because you can not redeclare a function that is already the same name in previous code which is the heart of your issue.

So basically your issue is your using someone's work in an incorrect way which is causing your problem.

If you want to replicate and have multiple blocks that all use specific functions you must do one of two things.

Rename any references to function names to something specific in any secondary or third code blocks or remove the function blocks in the second and third code blocks that is in question so you are not redeclaring it.

That will problally point you in the right direction for your hacking mistake.

Ok,
in fact i already removed before the code
Code:

Content visible to verified customers only.
But i removed the first widget, not the second and i obtained an error.
Logical but i just realize now my mistake.
Regards,
Olivier

Chuck S December 16th, 2012 08:03 PM

Yes whatever widget is first has to have the function and the rest do not.

Chuck S December 18th, 2012 08:05 AM

Another way to look at this also is you can load any functions outside of any specific widget by creating a global cms plugin in vbulletin which loads all the functions your using and loads anytime the cms is accessed. That is the beauty of the vb plugin system.

That way you can create any widget you want without actually including the functions and create this issue trying to replicate the same thing over and over. ;)


All times are GMT -5. The time now is 04:27 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97