Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 464
Likes: 1
I just downloaded the stylesheet the Zarzal was nice enough to share with us. After figuring out how it import it and copy images etc.. The .css it created after the import had a slight issue.

color: #000000;
background: url('images/koniro/bkg2.png') #467FC1;
font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;

All of the references to images didn't have the / in front of 'images/koniro/bkg2.png' Therefore the images didn't load properly. I had to manually add the / infront of '/images/koniro/bkg2.png' Then they loaded properly.




Last edited by Rick; 07/24/2006 11:25 PM.

Happy Customer !!!
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 464
Likes: 1
Also before I even got this far I was getting a 2.php error at line 11:

<?php
$style_array = array(
"id" => '2',
"general" => "",
"avatars" => "",
"forumimages" => "",
"graemlins" => "",
"icons" => "",
"markup_panel" => "",
"news" => "",
"wrappers" => ,
"css" => "_1153695038.css"
);
?>

I had to add "" after wrappers like this "wrappers" => "",

then the error went away.


Happy Customer !!!
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
The images must be upload manual to this directory (/(threadsroot)/styles/images/koniro. I must use a relative path without / and the images loads perfect on my server.
If you put a / in front of the path the images directory is under the root and not inside the threads stucture.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 464
Likes: 1
Originally Posted by Zarzal
The images must be upload manual to this directory (/(threadsroot)/styles/images/koniro. I must use a relative path without / and the images loads perfect on my server.
If you put a / in front of the path the images directory is under the root and not inside the threads stucture.

Ahh this problem might have something to do with the BASE_URL and the FULL_URL references then. Not sure.. I had to add them to make them work.


Happy Customer !!!
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
As for the images portion. When creating/editing a style, this is at the top:

Quote
If you use any images within your css properties make sure you include the full url and the images reside within their own directory in the styles directory.
Example: https://www.ubbcentral.com/version7/styles/image/image.gif

The reason for this is so the full path is translated during the export process so it will work when imported.

Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
To what is it translated? I dont like to give stylesheets to the world with my full image path. If they dont change it they use my images on my server and my bandwidth.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If I were to export a style that had this:

https://www.ubbcentral.com/version7/styles/image/image.gif

When exported it would be changed to this:

FULL_URL/styles/images/image.gif

If I then import that into my personal site it would change to:

http://www.wcsoft.net/styles/images/image.gif

Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
thank you for the information. I try it.
/Edit: Done, works well. I go and update my downloadable stylsheet.

Last edited by Zarzal; 07/24/2006 12:10 PM.

my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)