Few Questions

Started by Spidey, November 18, 2012, 11:11:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Spidey

Quote from: TheHippy on November 24, 2012, 06:06:48 PM
If the images don't show it's because you haven't put them in the right place. Check the paths to your images are correct :-)

thanks man  i tried again and  the problem solved :)

ChubbyNinja

If the images don't show it's because you haven't put them in the right place. Check the paths to your images are correct :-)

Spidey

#9
Quote from: TheHippy on November 20, 2012, 09:19:33 AM
Hi Spidey,

For the menu bar, you will need to change your menu to this:

Code (php) Select

$htmlout .= "
   <ul id='iconbar'>
    <li><a href='./index.php'><img src='/templates/1/images/menu_home.jpg' width='103' height='41' alt='Home' /></a></li>
    <li><a href='./browse.php'><img src='/templates/1/images/menu_browse.jpg' width='102' height='41' alt='Browse' /></a></li>
    <li><a href='./forums.php'><img src='/templates/1/images/menu_forum.jpg' width='102' height='41' alt='Forums' /></a></li>";
    if( $CURUSER['class'] >= UC_UPLOADER )
    {
   $htmlout .= "<li><a href='./upload.php'><img src='/templates/1/images/menu_upload.jpg' width='102' height='41' alt='Upload' /></a></li>";
    }
    $htmlout .= "<li><a href='./irc.php'><img src='/templates/1/images/menu_irc.jpg' width='102' height='41' alt='IRC' /></a></li>
    <li><a href='./top10.php'><img src='/templates/1/images/menu_top10.jpg' width='102' height='41' alt='Top 10' /></a></li>
    <li><a href='./rules.php'><img src='/templates/1/images/menu_rules.jpg' width='102' height='41' alt='Rules' /></a></li>
    <li><a href='./faq.php'><img src='/templates/1/images/menu_faq.jpg' width='102' height='41' alt='FAQ' /></a></li>";
    if ($CURUSER['class'] >= UC_POWER_USER)
    {
   $htmlout .= "<li><a href='./staff.php'><img src='/templates/1/images/menu_staff.jpg' width='102' height='41' alt='Staff' /></a></li>";
    }
    $htmlout .= "<li><a href='./donate.php'><img src='/templates/1/images/menu_donate.jpg' width='99' height='41' alt='Donate' /></a></li>";


Please note: the source ("src") of every image is /templates/1/ this is because i am assuming you're using the default template - you will need to change this to the correct template number.

I have cut up the image for you, please find attached.

They need to be uploaded into /templates/1/images/

I hope this helps.

thanks man for helping me but i tried to add the codes but it didn't  work with me the links shown but the images not and i changed the temp number  but it  didn't work and thanks a lot for cutting the menu bar :) and i hope their is any solution to fix this problem  :)


ChubbyNinja

#8
Hi Spidey,

For the menu bar, you will need to change your menu to this:

Code (php) Select

$htmlout .= "
   <ul id='iconbar'>
    <li><a href='./index.php'><img src='/templates/1/images/menu_home.jpg' width='103' height='41' alt='Home' /></a></li>
    <li><a href='./browse.php'><img src='/templates/1/images/menu_browse.jpg' width='102' height='41' alt='Browse' /></a></li>
    <li><a href='./forums.php'><img src='/templates/1/images/menu_forum.jpg' width='102' height='41' alt='Forums' /></a></li>";
    if( $CURUSER['class'] >= UC_UPLOADER )
    {
   $htmlout .= "<li><a href='./upload.php'><img src='/templates/1/images/menu_upload.jpg' width='102' height='41' alt='Upload' /></a></li>";
    }
    $htmlout .= "<li><a href='./irc.php'><img src='/templates/1/images/menu_irc.jpg' width='102' height='41' alt='IRC' /></a></li>
    <li><a href='./top10.php'><img src='/templates/1/images/menu_top10.jpg' width='102' height='41' alt='Top 10' /></a></li>
    <li><a href='./rules.php'><img src='/templates/1/images/menu_rules.jpg' width='102' height='41' alt='Rules' /></a></li>
    <li><a href='./faq.php'><img src='/templates/1/images/menu_faq.jpg' width='102' height='41' alt='FAQ' /></a></li>";
    if ($CURUSER['class'] >= UC_POWER_USER)
    {
   $htmlout .= "<li><a href='./staff.php'><img src='/templates/1/images/menu_staff.jpg' width='102' height='41' alt='Staff' /></a></li>";
    }
    $htmlout .= "<li><a href='./donate.php'><img src='/templates/1/images/menu_donate.jpg' width='99' height='41' alt='Donate' /></a></li>";


Please note: the source ("src") of every image is /templates/1/ this is because i am assuming you're using the default template - you will need to change this to the correct template number.

I have cut up the image for you, please find attached.

They need to be uploaded into /templates/1/images/

I hope this helps.

[attachment deleted by admin]

Spidey

#7
thanks a lot gram i added the ar lang but one thing pleas told me how i make the users  select Between ar and en lang in the profile :) 

gram

Edit usercp to add the language

Spidey

#5
Quote from: gram on November 19, 2012, 03:09:06 PM
for language translate the english files all of them and put your lang in lang folder
look at this topic
https://u-232-forum.duckdns.org/index.php?topic=842.0.html

thanks alote gram but i added the ar lang files in lang folder but in the profile nothing appear except eng lang pleas tell me how i add it in the data base :)

Quote from: autotron on November 19, 2012, 03:19:53 PM
for crazy hour look herehttps://u-232-forum.duckdns.org/topic,1528.0.html

thanks a lot autotron but this solution for u-232 v3 and iam using v1 non memacached
any idea fo v1 pleas :)

Quote from: TheHippy on November 19, 2012, 03:33:58 PM
In regards to the menubar, is this just an image? if it is, you have two options - either split it up and make each item an individual image, and contain them within a ul i.e

Code (html5) Select

<ul class="top_menu">
<li><a href="index.php"><img src="/templates/yourtheme/images/menu_home.jpg" /></a></li>
<li><a href="browse.php"><img src="/templates/yourtheme/images/menu_browse.jpg" /></a></li>
<li><a href="forum.php"><img src="/templates/yourtheme/images/menu_forum.jpg" /></a></li>
<li><a href="upload.php"><img src="/templates/yourtheme/images/menu_upload.jpg" /></a></li>
<li><a href="irc.php"><img src="/templates/yourtheme/images/menu_irc.jpg" /></a></li>
<li><a href="top10.php"><img src="/templates/yourtheme/images/menu_top10.jpg" /></a></li>
<li><a href="rules.php"><img src="/templates/yourtheme/images/menu_rules.jpg" /></a></li>
<li><a href="faq.php"><img src="/templates/yourtheme/images/menu_faq.jpg" /></a></li>
<li><a href="staff.php"><img src="/templates/yourtheme/images/menu_staff.jpg" /></a></li>
<li><a href="donate.php"><img src="/templates/yourtheme/images/menu_donate.jpg" /></a></li>
</ul>


and add some styling
Code (html5) Select

.top_menu {list-style-type:none;}
.top_menu li {float:left;}


Or, you could use it as one image and use image mapping to make the links

Code (html5) Select

<img src="menubar.png" width="1018" height="41" usemap="#Map" border="0" />
<map name="Map" id="Map">
    <area shape="rect" coords="924,8,1014,33" href="donate.php" />
    <area shape="rect" coords="823,8,913,33" href="staff.php" />
    <area shape="rect" coords="719,8,809,33" href="faq.php" />
    <area shape="rect" coords="618,8,708,33" href="rules.php" />
    <area shape="rect" coords="515,8,605,33" href="top10.php" />
    <area shape="rect" coords="413,8,503,33" href="irc.php" />
    <area shape="rect" coords="311,8,401,33" href="upload.php" />
    <area shape="rect" coords="209,8,299,33" href="forum.php" />
    <area shape="rect" coords="108,8,198,33" href="browse.php" />
  <area shape="rect" coords="8,8,98,33" href="index.php" />
</map>


I would suggest the first one

thanks a lot TheHippy for helping me but this codes is for html i think i Don't know i am not a pro coder and i Tried  and it didn't work in template  and that is the code for icon bar in  my template theme   

$htmlout .= "
    <ul id='iconbar'>
    <li><a href='./index.php'>
{$lang['gl_home']}</a></li>
    <li><a href='./browse.php'>
{$lang['gl_browse']}</a></li>";
    
    if( 
$CURUSER['class'] <= UC_VIP )
    {
    
$htmlout .= "<li><a href='./uploadapp.php'>{$lang['gl_uploadapp']}</a></li>";
    }
    if( 
$CURUSER['class'] >= UC_UPLOADER )
    {
    
$htmlout .= "<li><a href='./upload.php'>{$lang['gl_upload']}</a></li>";
    }
    
$htmlout .= "<li><a href='./viewrequests.php'>{$lang['gl_request']}</a></li>
    <li><a href='./forums.php'>
{$lang['gl_forums']}</a></li>
    <li><a href='./rules.php'>
{$lang['gl_rules']}</a></li>
    <li><a href='./links.php'>
{$lang['gl_links']}</a></li>
    <li><a href='./usercp.php'>
{$lang['gl_profile']}</a></li>";
    if (
$CURUSER['class'] >= UC_POWER_USER)
    {
    
$htmlout .= "<li><a href='./staff.php'>{$lang['gl_staff']}</a></li>";

    }

so pleas tell me how can i add the images to the links  and thanks guys for helping me :)





ChubbyNinja

In regards to the menubar, is this just an image? if it is, you have two options - either split it up and make each item an individual image, and contain them within a ul i.e

Code (html5) Select

<ul class="top_menu">
<li><a href="index.php"><img src="/templates/yourtheme/images/menu_home.jpg" /></a></li>
<li><a href="browse.php"><img src="/templates/yourtheme/images/menu_browse.jpg" /></a></li>
<li><a href="forum.php"><img src="/templates/yourtheme/images/menu_forum.jpg" /></a></li>
<li><a href="upload.php"><img src="/templates/yourtheme/images/menu_upload.jpg" /></a></li>
<li><a href="irc.php"><img src="/templates/yourtheme/images/menu_irc.jpg" /></a></li>
<li><a href="top10.php"><img src="/templates/yourtheme/images/menu_top10.jpg" /></a></li>
<li><a href="rules.php"><img src="/templates/yourtheme/images/menu_rules.jpg" /></a></li>
<li><a href="faq.php"><img src="/templates/yourtheme/images/menu_faq.jpg" /></a></li>
<li><a href="staff.php"><img src="/templates/yourtheme/images/menu_staff.jpg" /></a></li>
<li><a href="donate.php"><img src="/templates/yourtheme/images/menu_donate.jpg" /></a></li>
</ul>


and add some styling
Code (html5) Select

.top_menu {list-style-type:none;}
.top_menu li {float:left;}


Or, you could use it as one image and use image mapping to make the links

Code (html5) Select

<img src="menubar.png" width="1018" height="41" usemap="#Map" border="0" />
<map name="Map" id="Map">
    <area shape="rect" coords="924,8,1014,33" href="donate.php" />
    <area shape="rect" coords="823,8,913,33" href="staff.php" />
    <area shape="rect" coords="719,8,809,33" href="faq.php" />
    <area shape="rect" coords="618,8,708,33" href="rules.php" />
    <area shape="rect" coords="515,8,605,33" href="top10.php" />
    <area shape="rect" coords="413,8,503,33" href="irc.php" />
    <area shape="rect" coords="311,8,401,33" href="upload.php" />
    <area shape="rect" coords="209,8,299,33" href="forum.php" />
    <area shape="rect" coords="108,8,198,33" href="browse.php" />
  <area shape="rect" coords="8,8,98,33" href="index.php" />
</map>


I would suggest the first one


gram

#2
for language translate the english files all of them and put your lang in lang folder
look at this topic
https://u-232-forum.duckdns.org/index.php?topic=842.0.html

Spidey

#1
Hello after i fixed the charset and it worked perfectly thanks a lot  gram he told how to do it :)

so i need to ask Few Question pleas

1 i want to Know How to disable Crazy hour because my tracker will be Ratio less so i don't need it

2- i want to know how can i add Lang i already TR some files from the script but i Don't know how i add it

3  -  i want to make this

http://s15.postimage.org/4z38crz2j/menubar.png

icon bar active which mean when i click for example on Home it redirect me to home page

pleas help me and thanks any way :)