Guild Wars 2 Theme v2.0

Daraku, 2014. Feb 09. Sun, 11:34

Hey Fizi,

I bought your Guild Wars 2 theme in 2012 and used it ever since. But now with the new version of e107 the Version 2.0 alpha1 the Theme doesn't work as good as with the 1.0 version. So I was wondering if you could update the theme to work in the new version as well. I would really appreciate if you could do that.

With regards and keep up the good work.

Re: Guild Wars 2 Theme v2.0
fizi, 2014. Feb 09. Sun, 22:54

What the wrong. I read on the e107.org that the themes backward compatible and it is a test version.
Can I see the problem with theme? Need see that I know what a problem.
Re: Guild Wars 2 Theme v2.0
Daraku, 2014. Feb 11. Tue, 12:03

it looks like this -link- its not broken but the Menu isn't quite good
Re: Guild Wars 2 Theme v2.0
fizi, 2014. Feb 11. Tue, 19:33

What menu?
If you think to slider, slider work from the news sql table. If no news images, appears nothing, because no image in the news. Write news with images and you will see the slider work.
Re: Guild Wars 2 Theme v2.0
Daraku, 2014. Feb 11. Tue, 20:23

I mean the arrows on the Menu entries Home, News, Content, Contact us
Re: Guild Wars 2 Theme v2.0
Daraku, 2014. Feb 22. Sat, 14:14

okay I fixed the arrows by myself and edited the footer to include the ncsoft, arenanet and rating image. But after submiting a new news post I noticed that the slider doesn't work anymore. after screwing around with firebug I found out that the URL is probably broken.

working: e107_images/newspost_images/
not working: e107_images/newspost_images/{e_MEDIA_IMAGE}2014-02/

Re: Guild Wars 2 Theme v2.0
fizi, 2014. Feb 22. Sat, 21:47

I don't know what you want, write me and if I can help I will help...but the dev team said that this is a test version not recommed on the live web. The dev team always upgrade the v2.0.
But If I see your page and write me what you want I try help you (I will use v2.0 if the dev team will finish and release it.)
Re: Guild Wars 2 Theme v2.0
Daraku, 2014. Feb 22. Sat, 23:47

oh okay didn't actually noticed that it is still an alpha version. And thank you.

so to describe my problem. in the 1.X version of e107 I added a new News Item and set a Image which would be displayed in the Slider which worked perfectly. But now it doesn't work that way anymore

here is the link to my news section -link-

like you can see the image I uploaded isn't displayed in the Slider and that is probably because of the new Media Upload in v2.0 because now the source of the image os e107_images/newspost_images/{e_MEDIA_IMAGE}2014-02/gw2_october_2012_news.png but it should be e107_images/newspost_images/ OR {e_MEDIA_IMAGE}2014-02/

thats my problem so far and I would appreciate your help.
Re: Guild Wars 2 Theme v2.0
fizi, 2014. Feb 23. Sun, 10:22

I see the v2.0 and I dn't now how insert the news image (need ask dev team). Probably try it, replace the code in the slider.sc file (it's in the theme folder):
<img src='".e_IMAGE."newspost_images/".$image."' alt='' title='<h2>".$title."</h2>".$body."...' />
with this:
<img src='".e_IMAGE_ABS."newspost_images/".$parm."' alt='' title='<h2>".$title."</h2>".$body."...' />
Re: Guild Wars 2 Theme v2.0
Daraku, 2014. Feb 23. Sun, 10:39

source is now "/cem-gilde/e107_images/newspost_images/" but the images aren't uploaded to the newspost_images folder

just a suggestion from my end... wouldn't it be easier to just parse the Shortcode {e_MEDIA_IMAGE} and use $image as source?

with this we would always get the correct path to the image. But how do you parse a shortcode?
Re: Guild Wars 2 Theme v2.0
Daraku, 2014. Feb 26. Wed, 17:48

Okay I fixed it:

first I tried to figure out what this e_MEDIA_IMAGE is. Turns out its just a variable or something like that. That gives us the path to the images folder. Next I only needed to replace the SHORTCODE from the image var to get the src URL. DONE!!

$imgsource = e_MEDIA_IMAGE . "" . str_replace("{e_MEDIA_IMAGE}","",$image);
		  
		$ret .= " 
				<a href='".e_HTTP."news.php?extend.".$news_id."' title='".$title."'> 
          <img src='".$imgsource."' alt='' title='<h2>".$title."</h2>".$body."...' />
        </a>";

works good so far
Re: Guild Wars 2 Theme v2.0
fizi, 2014. Feb 26. Wed, 20:20

You're right. I'm happy that you solved it. Sorry I don't know the v2.0. I only wanted to help. It looks like you know better than I. happy
Re: Guild Wars 2 Theme v2.0
Daraku, 2014. Feb 27. Thu, 17:33

just try and error then try again happy but now you dont need to fix it yourself and can use it if you release a version for the v2.0