PDA

View Full Version : Few Errors: Styles, Forum


LOTR
21 Feb 2005, 11:01
Cing,

1. I have upgrade the hacks and it went smoothly. However i notice it just install on my default style (skin). My second style template its not with the vbarticles templates?

My second style is vbSaint. Any ideas how can i copy those templates from my default style to my another skin?


2.

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



My www.site.com/forum/ is now unaccessible (db error above). However the articles page and admincp is available.

Hopefully you can help me to fix the errors above. Your assistance is highly appreciate on this issue.

Thanks.

Lizard King
21 Feb 2005, 11:34
1. I have upgrade the hacks and it went smoothly. However i notice it just install on my default style (skin). My second style template its not with the vbarticles templates?

My second style is vbSaint. Any ideas how can i copy those templates from my default style to my another skin?

Try to use the default style in your user settings and then try to install the templates again.

LOTR
21 Feb 2005, 12:16
Hi Lizard,

Im using the default style, how can i re-install the templates again? By running the upgrade files?

My board is now unaccessible with the db errors. Hope someone can help me fix those. :(

cinq
21 Feb 2005, 12:44
LOTR, you didn't by any chance install the Latest Articles on Forum Home add-on did you ?

LOTR
21 Feb 2005, 12:55
Yup... remoce the add-on and works fine now. Thanks.. :)

Cing, by any chance how can i re-install the vbarticles templates on my 2nd style? It didnt overwrite during the upgrade process.

cinq
21 Feb 2005, 13:05
Ah guessed so :)
I will update the add-ons soon. Some will no longer work ( like in your case ;) )

Yep, unfortunately the install script only puts in the templates into the default style set.

For a quick fix to install just the templates on all the other style sets as well, perform the following:

In the install_vbarticles.php file,

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


at around line 642 of install_vbarticles.php

replace it with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


where X is the styleid of the Style in which you have (non default).


Now go to this url in your browser:

http://www.yoursite.com/forum/admincp/install_vbarticles.php?hacklanguage=english&step=7

It will then put in the templates into the other non default style set.
You have to repeat this for every style you have ( which is non default ).

Lizard King
21 Feb 2005, 13:08
cinq I didn't install this hack but if a board has multiple styles around 6-7 the installation of the styles will be pain in the ass :)

cinq
21 Feb 2005, 13:11
Thanks for your feedback Lizard, I am actually writing a script to add the templates to all styles. :)

LOTR
21 Feb 2005, 14:37
Thanks lizard for the confirmation, i just thought i did something wrong during the upgrade :p

Great cing.. i look into that soon :)

Thanks guys.