Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 17

108.178.x.x download
112.111.x.x forum
157.55.x.x forum
173.199.x.x forum
175.44.x.x forum
175.44.x.x forum
175.44.x.x forum
180.76.x.x forum
192.80.x.x forum
211.97.x.x forum
220.181.x.x comment
23.22.x.x forum
5.63.x.x news
66.249.x.x dilbertplus
69.175.x.x news
88.230.x.x download
91.237.x.x forum

Last Seen

code72 Sun 18:15
xMin Sun 18:02
Wussie Sun 17:35
Hostprofil Sun 15:10
qwas Sun 15:03

Newest Members

Forums
Menu adding game icons?
HoriZon
Wed Apr 25 2007, 01:50PM
Guest Sorry about the multiple post m8 but not sure if you saw my question from the above sticky.


In the menu i have been trying to add this now as i need it, for the pending and completed games add the game icon to each one in the list so multigaming clans can see instantly which is which.

I tried just adding: $rwar_image_gamename <a href='".e_PLUGIN."rwar_menu/details.php?id=$mysql_row[id]' style='text-decoration:none'>$mysql_row[tag2]</a> to "rwar_menu.php" but that didn't work can it be done and if so how?


Again sorry for the double posts
Rich
Wed Apr 25 2007, 04:44PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Im glad you had a go first, you were on the right lines but you need more than that.

A variable ( begins with a $ ) is a container, and its starts off empty.

In the index.php there is code setting the contents of $rwar_image_gamename, but this is not in the menu.php

That code is:


$rwar_image_gamename = "images/game/$mysql_row[gamename]/icon.gif";


But it uses a relative path and the menu varies in location, so needs to be:


$rwar_image_gamename = e_PLUGIN."lgsl_menu/images/game/$mysql_row[gamename]/icon.gif";


Thats the path, but using it now would just show text, so we need to make it html to show the image:


$rwar_image_gamename = "<img style='width:16px;height:16px' src='$rwar_image_gamename' alt='' title='$mysql_row[gamename]' />";


The above copied straight from the index.php and adding those two lines before your existing changes should do the trick.

---------------------------------------------------------------------------------


$rwar_image_gamename = e_PLUGIN."lgsl_menu/images/game/$mysql_row[gamename]/icon.gif";
$rwar_image_gamename = "<img style='width:16px;height:16px' src='$rwar_image_gamename' alt='' title='$mysql_row[gamename]' />";
$text .= " blaa blaa $rwar_image_gamename blaa blaa blaa";

Website
HoriZon
Thu Apr 26 2007, 02:08PM
Guest Hi m8

Thanks for that but still something is not right i have added the code if i add it exact it will work but as soon as i add it to where i want it the image doesn't show up its points to:

rwar_menu/images/game//icon.gif (adding 2 slashes, same for the league image)

We play a number of games so there are a few different images for these games should that matter?

This is my e107 test site still making a theme so noting is final:
http://www.pr-clan.com/e107/news.php

Thanks again!
Anonymous
Thu Apr 26 2007, 02:36PM
Guest aha never mind i figured it out
Mortal
Fri Feb 24 2012, 10:46AM
Posts: 4
Joined: Sat Feb 09 2008, 06:30AM
Registered Member #3654
Where in index.php i add these lines?
$rwar_image_gamename = e_PLUGIN."lgsl_menu/images/game/$mysql_row[gamename]/icon.gif";
$rwar_image_gamename = "<img style='width:16px;height:16px' src='$rwar_image_gamename' alt='' title='$mysql_row[gamename]' />";
$text .= " blaa blaa $rwar_image_gamename blaa blaa blaa";


www.fdsclan.com
Website
Mortal
Sun Feb 26 2012, 02:08AM
Posts: 4
Joined: Sat Feb 09 2008, 06:30AM
Registered Member #3654
This is what i would like Rwar to look in front page:


Im just not good with the code

www.fdsclan.com
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org