Knop voor SMF shop.

Started by -Sas-, October 30, 2011, 04:06:41 PM

Previous topic - Next topic

-Sas-

Nadat ik SMF shop 3.1.7 heb geinstalleerd in SMF 1.1.15 heb ik geen `shop knop` meer op het forum. Het thema dat we gebruiken
is: bisdakworldgreen
Link: http://custom.simplemachines.org/themes/index.php?lemma=1312
Wil / kan iemand mij uitleggen hoe ik hier de `shop knop` weer in kan krijgen?

Dank u  :)

Herman's Mixen

open het bestand /Themes/naam_van_je_theme/index.template.php

Code (vind) Select

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';


Code (er na toevoegen) Select

// Begin SMFShop code
if ($context['current_action'] == 'shop')
$current_action = 'shop';
if (in_array($context['current_action'], array('shop_general', 'shop_items_add', 'shop_items_edit', 'shop_cat', 'shop_inventory', 'shop_restock', 'shop_usergroup')))
$current_action = 'admin';
// End SMFShop code


Code (vind) Select


<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Code (er na toevoegen) Select

//Begin SMFShop code
//loadLanguage("shop");
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=shop">Shop</a>
</td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
//END SMFShop code


Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-


Herman's Mixen

Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Een vraagje.... Ik zie bij bovenstaand thema (bisdakworldgreen) als ik naar `huidig thema` ga staan:
`Pas het style.css bestand aan. (kleuren, fonts, enz.) `

Er word dan een voorbeeld gegeven hoe dat thema er met lichtblauw uit ziet. Daaronder staat:
`Bewerk thema - style.css`

Maar hoe kan ik dan daadwerkelijk die lichtblauwe kleur ook op het forum instellen?

-Sas-

Laat maar  ;) We proberen het nu met een ander thema... Toch bedankt  :D

Herman's Mixen

door met photoshop de images aan te passen of het style.css / index.css aan te passen maar ik zou daar niet de standaard editor voor gebruiken maar gebruik : notepad, notepad++ of iets dergelijks  ;)
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Gezien het andere thema niet werkt op ons forum moet ik toch op deze verder. Maar uhmmmm Snap niet helemaal wat je bedoeld en
wat ik nu moet doen om die kleur om te zetten.

Herman's Mixen

plaats een screenshot zodat ik kan zien wat je bedoelt ?!
en als het niet lukt met de knoppen attach dan ook even je index.template.php !!

dat andere topic jij als topic starter kan gewoon je eigen bericht aldaar verwijderen
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Als ik naar mijn beheerscherm ga en kies voor `huidig thema` Krijg ik onderstaand menu op mijn scherm.
In dat menu kies ik voor `pas het style.ccs bestand aan`:


Vervolgens krijg ik dan bovenin mijn scherm dit kleurvoorbeeld:


Daaronder staat dit:


Hoe pas ik het thema dan aan op de voorbeeldkleur die gegeven word? Als ik op opslaan ofzo klik blijft de
groene kleur ingesteld.

Herman's Mixen

die groene kleur blijft omdat dat images zijn catbg en catbg2 zo even uit me hoofd te noemen

in de style.css (welke je extern) dient te bewerken met bijvoorbeeld notepad++
in die editor die standaard in SMF zit zou ik het niet proberen aangezien dit je gehele style van je theme kan slopen...
waardoor je dus de hele layout kwijt bent vandaar dat ik zeg dat je een externe editor moet gebruiken...

download style.css via FTP naar je pc bewerk hem of hier attachen als bijlage zodat ik naar de style kan kijken en eventueel die images er uit filter op die plek.
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Als je dat voor me zou willen doen ben ik je erg dankbaar!! Ik heb namelijk geen idee waar ik dan naar kijken moet.
Ik heb hem (dat style.ccs) bijgevoegd vanuit mijn FTP.


Herman's Mixen

Oke even een snelle aanpassing gedaan bij deze zijn de catbg images uitgefillert dus je zou die blauwe kleuren nu moeten zien
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Nee... helaas nog steeds groen hihi

Herman's Mixen

heb je browser cache wel geleegt of caching aan staan ?!
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Ik heb eerst op mijn pc dat style.ccs verwijderd uit de map en vervangen door die van jou.... Daarna heb ik op de site eventjes
een ander thema erop gezet. Bisdakworldgreen helemaal verwijderd. Toen heb ik vanuit mijn computer de aangepaste Bisdak
weer erop gegooit.

Herman's Mixen

de style.css op de server kan je gewoon laten staan en tijdelijk hernoemen naar bijvoorbeeld style.css1 ofiets dergelijks dan die style.css die ik heb aangepast terug uploaden waar je hem vandaan had gehaald via FTP ;)

naar je site en CTRL+F5 om hard te refreshen
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

En nou even voor de blondjes onder ons hehehe  ;D Ik moet dat oude Style.ccs bestand terug zetten bij Bisdak op FTP... Alleen dan de naam op Style.ccs1 zetten.... En dan de style.ccs die ik van jou heb daarbij zetten...
Naar de site gaan en CTRL+F5 ?

Herman's Mixen

yup op die manier ;)
zo houd je namelijk het orgineel mocht er wat fout zijn gegaan ergens, dat is altijd handig dan weer het theme te downloaden of wat dan ook
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Snap der niks van wat ik niet goed doe  :-\ Misschien moeten vrouwen gewoon niet (computer) technisch doen ofzo.
Maar ik heb alles gedaan, maar het blijft groen.

-Sas-

Ho is.... Ik weet niet wat ik nu heb gedaan via FTP nog.... maar hij schiet nu naar wit in plaats van groen....
Dat vind ik ook best  :D  ;D  :) Dank dank dank!!!!  :-*

Herman's Mixen

hm.. dan kijk ik er morgen even naar moet een beetje erg vroeg op helaas
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Geeft niks  ;D Ben allang blij dat het nu gedeeltelijk is gelukt! Het ziet er nu zo uit:



De groene bovenranden zijn nu veranderd naar wit. Op zich ook best dat het geen blauwe kleur is hoor.
Dit is ook al een stuk rustiger in aanzicht. Alleen waar je de pijl ziet is ook de tekst verdwenen die in die
balk hoort te staan. Alleen als je met je muis erover gaat zie je dat nog oplichten. Das dus nog niet
helemaal zoals het moet zijn... Maar tot zo ver al hartelijk bedankt!! Slaap lekker!  ;)

Herman's Mixen

Vervang nu eens je style.css met deze die ik hier aan heb gehangen vond nog iets weet alleen niet of dat het probleem veroorzaakte maar daar ga ik wel vanuit.
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

JAAHH!!!!!!  :laugh:  ;D  :) Hij doet het!! Jij bent echt GOEEEEEEDDDD !!

Ik moet alleen nog een keer een beetje lastig zijn  :P Eerder gaf je me zo een code voor een `shop` knop. Heb je toevallig ook
zo een code dat ik ook de `arcade` knop er weer in kan zetten?

Herman's Mixen

/Themes/Naam/index.template.php

Code (vind) Select

if (in_array($context['current_action'], array('admin',


Code (er na toevoegen) Select

'managegames', 'arcadesettings', 'arcadecategory',


Code (vind) Select

if (in_array($context['current_action'], array('search',


Code (er na toevoegen) Select

'arcade',


Code (vind) Select

// How about the [search] button?


Code (er na toevoegen) Select

echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'arcade' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a>
</td>' , $current_action == 'arcade' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Dit moet je wel op weg helpen :P

./Themes/default/languages/Modifications.dutch.php

Code (vind) Select

?>


Code (er voor toevoegen) Select

$txt['arcade'] = 'Arcade';


suc6

Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Gelukt!! Alles doet het weer  :) In het echt kan ik je ze niet geven... Maar je moet maar denken dat ze op je tafel staan...
Wel gemeend:


Herman's Mixen

Geen probleem, mooi dat alles het weer doet  ;)
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Elke keer denk ik dat ik er ben... Maar dan mis ik nog wat  :-\ Ik zie nu dat er wel een ingang is voor de leden naar arcade...
Maar dat er nog geen `arcade admin`is...  :-[ Dit bedoel ik:



Dat stukje is bij mij gewoon blank. Hoe kan ik die ook tevoorschijn toveren  ::)

Herman's Mixen

/Themes/default/languages/Modifications.english.php


$txt['arcade'] = 'Arcade';
$txt['arcade_admin'] = 'Arcade Admin';
$txt['arcade_manage_games'] = 'Games';
$txt['arcade_manage_category'] = 'Categories';
$txt['arcade_settings'] = 'Settings';

// Permission names and help
$txt['permissiongroup_arcade'] = 'Arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_play'] = 'Play on Arcade';
$txt['permissionhelp_arcade_play'] = 'Allows member to play on arcade, in games which he/she has rights to';
$txt['permissionname_arcade_admin'] = 'Administrate arcade';
$txt['permissionhelp_arcade_admin'] = 'Arcade Administrator can Install/Edit/Delete game, Delete scores and edit settings for arcade';
$txt['permissionname_arcade_view'] = 'View Arcade';
$txt['permissionhelp_arcade_view'] = 'May access Arcade and use basic features like search and view highscores';
$txt['permissionname_arcade_favorite'] = 'Use Favorites feature';
$txt['permissionhelp_arcade_favorite'] = 'Allows member to favorite and unfavorite games';
$txt['permissionname_arcade_submit'] = 'Save scores';
$txt['permissionhelp_arcade_submit'] = 'Allows users to save their scores.';
$txt['permissionname_arcade_rate'] = 'Rate games';
$txt['permissionhelp_arcade_rate'] = 'Allows users to rate games.';
$txt['permissionname_arcade_comment'] = 'Allow to comment/edit comment';
$txt['permissionhelp_arcade_comment'] = 'Allows user to edit comments, own or any';
$txt['permissionname_arcade_comment_any'] = 'Any';
$txt['permissionname_arcade_comment_own'] = 'Own';

// Errors if they can't do something
$txt['cannot_arcade_play'] = 'You are not allowed to play games!';
$txt['cannot_arcade_view'] = 'You are not allowed to access arcade.';
$txt['cannot_arcade_favorite'] = 'You are not allowed to favorite games';
$txt['cannot_arcade_rate'] = 'You are not allowed to rate games';
$txt['cannot_arcade_comment_own'] = 'You are not allowed to comment';

// Who's online
$txt['who_arcade'] = 'Viewing Arcade index';
$txt['who_arcade_play'] = 'Playing <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';
$txt['who_arcade_highscore'] = 'Viewing highscores of <a href="' . $scripturl . '?action=arcade;sa=play;game=%d">%s</a> on Arcade';

// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';


kopieer die inhoud naar

/Themes/default/languages/Modifications.dutch.php

en vertaal het als het nodig is ;)

Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Moet ik die tekst bij Modifications.english.php en Modifications.dutch.php  er bij zetten? Of bij beide de hele tekst vervangen daarmee?

Herman's Mixen

Alleen de tekst die hierboven heb gepost in het bestand /Themes/default/languages/Modifications.dutch.php plakken ;)
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

-Sas-

Ik zie het idd... Daar staat dat niet  ;) Gelukt!  :D

Advertisement: