Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1477)
Obsolete
GREAT MOD!!!
Translation to brazilian
$txt['dozen_pages'] = 'Dozen Pages';
$txt['dozen_pages_cat'] = 'Dozen Pages';
$txt['dozen_pages_contents_1'] = 'Conteúdo da página 1:';
$txt['dozen_pages_contents_2'] = 'Conteúdo da página 2:';
$txt['dozen_pages_contents_3'] = 'Conteúdo da página 3:';
$txt['dozen_pages_contents_4'] = 'Conteúdo da página 4:';
$txt['dozen_pages_contents_5'] = 'Conteúdo da página 5:';
$txt['dozen_pages_contents_6'] = 'Conteúdo da página 6:';
$txt['dozen_pages_contents_7'] = 'Conteúdo da página 7:';
$txt['dozen_pages_contents_8'] = 'Conteúdo da página 8:';
$txt['dozen_pages_contents_9'] = 'Conteúdo da página 9:';
$txt['dozen_pages_contents_10'] = 'Conteúdo da página 10:';
$txt['dozen_pages_contents_11'] = 'Conteúdo da página 11:';
$txt['dozen_pages_contents_12'] = 'Conteúdo da página 12:';
$txt['dozen_pages_contents_13'] = 'Conteúdo da página 13:';
$txt['dozen_pages_enable_guest_access'] = 'Permitir o acesso a visitantes:';
$txt['dozen_pages_enable_member_access'] = 'Permitir o acesso a membros:';
$txt['dozen_pages_enable_page_1'] = 'Página 1 habilitada:';
$txt['dozen_pages_enable_page_2'] = 'Página 2 habilitada:';
$txt['dozen_pages_enable_page_3'] = 'Página 3 habilitada:';
$txt['dozen_pages_enable_page_4'] = 'Página 4 habilitada:';
$txt['dozen_pages_enable_page_5'] = 'Página 5 habilitada:';
$txt['dozen_pages_enable_page_6'] = 'Página 6 habilitada:';
$txt['dozen_pages_enable_page_7'] = 'Página 7 habilitada:';
$txt['dozen_pages_enable_page_8'] = 'Página 8 habilitada:';
$txt['dozen_pages_enable_page_9'] = 'Página 9 habilitada:';
$txt['dozen_pages_enable_page_10'] = 'Página 10 habilitada:';
$txt['dozen_pages_enable_page_11'] = 'Página 11 habilitada:';
$txt['dozen_pages_enable_page_12'] = 'Página 12 habilitada:';
$txt['dozen_pages_enable_page_13'] = 'Página 13 habilitada:';
$txt['dozen_pages_not_configured'] = ' - não configurado';
$txt['dozen_pages_not_configured_message'] = 'Esta opção ainda não foi configurada pelo administrador.';
$txt['dozen_pages_page_name_default'] = 'Página ';
$txt['dozen_pages_settings_title'] ='Dozen Pages';
$txt['dozen_pages_tab_default'] = 'Páginas';
$txt['dozen_pages_tab_label'] = 'Dozen Pages tab label:';
$txt['dozen_pages_title_1'] = 'Título da página 1:';
$txt['dozen_pages_title_2'] = 'Título da página 2:';
$txt['dozen_pages_title_3'] = 'Título da página 3:';
$txt['dozen_pages_title_4'] = 'Título da página 4:';
$txt['dozen_pages_title_5'] = 'Título da página 5:';
$txt['dozen_pages_title_6'] = 'Título da página 6:';
$txt['dozen_pages_title_6'] = 'Título da página 7:';
$txt['dozen_pages_title_8'] = 'Título da página 8:';
$txt['dozen_pages_title_9'] = 'Título da página 9:';
$txt['dozen_pages_title_10'] = 'Título da página 10:';
$txt['dozen_pages_title_11'] = 'Título da página 11:';
$txt['dozen_pages_title_12'] = 'Título da página 13:';
$txt['dozen_pages_title_13'] = 'Título da página 14:';
Thank you Deprecated!
Farewell
- Costa
I am getting:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
On applying the mod for 1.1.6
Looks like a nice mod. How hard would it be for an admin to extend the number of pages, assuming basic proficiency with template editing?
ETA: Took a look at the manual installation instructions. It looks like the answer to my question is "not hard at all".
Nice job Dep. :)
1. Execute Modification ./Themes/default/index.template.php Test failed
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
some people dont like to do manual edits.... (Manually added)
but great mod!
Nice mod ;)
@ Costa:
You're welcome, and thanks for the Brazilian, which I may add to the package in a future release.
@ evil-angelist:
I ran a test install here with no problems on 1.1.6. Try again?
@ antechinus:
Yeah, it shouldn't be too hard to add pages although I wonder if I made it "1,001 Pages" and somebody would still like to add another page. :)
@ ccbtimewiz:
Thanks!
@Nfanthrr33:
Probably caused by collisions with other mod packages. It's a popular area. :)
@Nascar:
Thank you sir! :)
nice mod.
there are 2 small glitches in modification1.xml :
line 213: $txt['dozen_pages_title_6'] = 'Page 7 title:';
change to: $txt['dozen_pages_title_7'] = 'Page 7 title:';
line 270: $txt['dozen_pages_title_6'] = 'Page 7 title:';
change to: $txt['dozen_pages_title_7'] = 'Page 7 title:';
OldSwede,
Thanks for the bug report! :) I've fixed it and uploaded Bakers Dozen Pages version 1.01 which has the "page 7" typo corrected.
Quote from: Deprecated on November 01, 2008, 09:02:09 AM
@ Costa:
You're welcome, and thanks for the Brazilian
Dodgey Quote of the Year Award. ;D
Another great mod. Keep up the good work :)
Quote from: antechinus on November 01, 2008, 04:22:48 PM
Dodgey Quote of the Year Award. ;D
???
I don't undestand :P
Quote from: Deprecated on November 01, 2008, 09:02:09 AM
@ Costa:
You're welcome, and thanks for the Brazilian
You're welcome Dude!
Farewell
- Costa
Quote from: Deprecated on November 01, 2008, 09:02:09 AM
@ evil-angelist:
I ran a test install here with no problems on 1.1.6. Try again?
Thanks, I think will go for the manual installation, doesn't look difficult, but having it called
PAGES is a bit boring (and possibly confusing) IMO... how about a rename to
INFO?
Quote from: evil-angelist on November 02, 2008, 06:19:22 AM
Quote from: Deprecated on November 01, 2008, 09:02:09 AM
@ evil-angelist:
I ran a test install here with no problems on 1.1.6. Try again?
Thanks, I think will go for the manual installation, doesn't look difficult, but having it called PAGES is a bit boring (and possibly confusing) IMO... how about a rename to INFO?
Perhaps you missed the instructions that said:
- The tab label name can be customized to suit your preferences or to aid in
internationalization.
In other words, it's a configuration setting. No hand editing or language strings required. Just enter it under "Dozen Pages tab label:" (Enter the name of your label here. Defaults to "Pages.")
Funny, I set mine to read "INFO" too. :)
Looks like a cool mod in which it can be beneficial for me but i cannot load it thru admin package.
I tried to use the smf parser but it wont read it. Something about xml files errors.
**Nevermind.....i saw the manual install on the dload page :P
Quote from: Deprecated on November 02, 2008, 08:11:00 AM
Funny, I set mine to read "INFO" too. :)
Great minds... ;)
I think I missed the instruction page where it said that... Too much time reading 'A baker's dozen defined:'
OK I see there was a newer version released and that has been a bit kinder BUT:
I have these 2 problems:
1. Execute Modification ./Themes/default/index.template.php Test failed
3. Execute Modification ./Sources/ModSettings.php Test failed
Looks over the manual install again... Ummm to do manual installs onto those files I might as well do the whole lot right?
Is the new manual install the correct new one?
thanks
Manual is correct. And the Mod Site has the latest of this or any other modifications. The manual install instructions are automatically generated so they are the latest you can get.
You quite likely have interference with another mod.
Quote from: Deprecated on November 02, 2008, 09:17:41 AM
You quite likely have interference with another mod.
I believe so. anyway thanks for this mod, its certainly one of the best I have come across. :D
It is an xlant mod well done. I wonder if the pages horizontal menu would look better if the page links resembled the menu tabs on the main menu.
Also how about a method of moving the pages up and down to place them in order of preference. I added an initial 5 pages then decided it would be better in a different order.
Again well done and our thanks.
Good luck evil-angelist! :)
Rafferty, the horizontal pages menu was based upon that used in SMF's help system, so as to recycle the code rather than inventing new code, although the code is so heavily modified as to be unrecognizable now. It achieves two goals of (1) being similar to existing SMF pages as far as look and feel, and (2) minimizing the amount of labor necessary to add the feature and support the addition. That's why it looks like SMF's Help pages and that's why it would be impractical to change it.
As far as order of pages, it's just top to bottom in configuration panel = page 1 through 13 in menu position. Just cut 'n paste until you get your preferences satisfied, save that. This isn't a feature that I expected to get maintained a lot. In my own forum I got my "INFO" system set up once and I haven't needed to change it since. So what I'm saying is that the mod doesn't have a lot of fancy features like being able to change page ordering, or the WYSIWYG editor either.
The important thing is what site visitors and forum members see, and I think this mod delivers that pretty well, and I hope 13 pages will cover the huge majority of applications as far as being enough pages.
Fair enough, just suggestions, I wasn't being critical, its a great mod, thanks again
I tried a couple of times, and got the same results.
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Themes/default/index.template.php Test successful
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
6. Extract File ./Sources/DozenPages.php
7. Extract File ./Themes/default/DozenPages.template.php
It works beautifully, thankyou very much 10/10 for this mod, and a new confidence in myself now for manual installations. :)
EDIT: How do I get the TAB to highlight INFO ???
Had to modify my index.template and my ModSettings template simply because they are modded to heck already due to everything else I've done.
Great little mod
hello,
i want this mod installed in my forum. i got error installing it in my dilber mc theme.
there was a test failed in /theme/default/....
@psynx
You need to edit that mannually, I've installed this mod in Dilber, and it works, see the Attach ;)
It's working fine in the dilbermc
*I'm starting love Deprecated :P
sorry but i dont know which files i have to edit. perhaps you could tell me? guide me pls? im a complete noob when it comes to coding.
./Themes/dilbermc/index.template.php
./Themes/dilbermc/languages/Modifications.english.php
Move the included in the package "DozenPages.template.php" to "./Themes/dilbermc".
;)
Farewell
- Costa
Install the package, and after edit the files from dilbermc
Farewell
- Costa
i installed the package even though i have test failed on /theme/default/.... i then edit "/Themes/dilbermc/index.template.php" and
"/Themes/dilbermc/languages/Modifications.english.php" and upload the included package "DozenPages.template.php" to "./Themes/dilbermc".. but when i went to my admin>features and options what i see is just white page! i can not access my "features and options" setting anymore. i tried to uninstall the package, and i regain access to my "features and options". and it is weird because i have the 'dozen pages' in my "features and options" eventhough i unistall the package. i tried enabling a page, but when i click the link, just white page. perhaps it is because i uninstall the package. if i install the package back, i can not access to admin>features and options
Ok, you'll try to edit ALL mannually?
If not, you know how to do it?
If you don't, Attach your files in one post
./Themes/{theme name}/index.template.php./index.php
./Sources/ModSettings.php
./Themes/{theme name}/languages/Modifications.{the language from your forum}.php
Let's try doing it mannually
alright.
these files are from my dilber mc theme. only the sources/modsettings.php is not.
I tried this mod and got the ...Execute Modification ./Sources/ModSettings.php Test failed
So I manually did the amendments in the file but now when I go to features and settings all I get is a blank screen ..... i have uninstalled it in the meantime so I am back to original settings ...
Using 1.1.6, default theme.
any thoughts?
i have that same problems too Kreator.
anyone care to help us? ;)
please ?
Quote from: Kreator on November 05, 2008, 04:09:41 PM
I tried this mod and got the ...Execute Modification ./Sources/ModSettings.php Test failed
So I manually did the amendments in the file but now when I go to features and settings all I get is a blank screen ..... i have uninstalled it in the meantime so I am back to original settings ...
Using 1.1.6, default theme.
any thoughts?
Attached the amended file that you said didn't work.
Nice Mod,
but i have have a Problem with html in the Settings.
HTML dosen´t work correct.
if i put the HTML Code into a Post it works, but not in the mod.
this is the HTML code
[html]
<embed width="482" height="290"
flashvars="width=482&height=290&file=http://www.tier.tv/typo3temp/player_playlist_page_6004.xml&searchbar=false&logo=http://www.tier.tv/fileadmin/tiertv/images/videoplayer/tiertv_flash_logo_488_270.png&autostart=true"
allowfullscreen="true" allowscriptaccess="always" quality="high"
name="mediaplayer" id="mediaplayer" style=""
src="http://www.tier.tv/typo3conf/ext/ff_tiertv/res/mediaplayer-3-16/mediaplayer.swf"
type="application/x-shockwave-flash"/></p>
Wenn Sie mehr über Tiere erfahren wollen besuchen Sie <a href="www.tier.tv" target="_blank">www.tier.tv</a>
[/html]
Greetings
It's the linefeed after height="290" ... use a space instead.
And do remember the [html] and [/html] BBCode tags. :)
thx :) this work.
But why it work in Posts ?
Greetings
Sorry, I can't answer that. :D
I love this mod, but why is my content being pushed down?
I'm using tables - is that the problem? And yes, all HTML is enclosed with the bbCode tags.
I have it enabled for guests (for now) if you want to take a looksie - it's under "Guides"
ETA: Guess I can't use tables. :\
I don't know what content being pushed down that is, but I'm imagining a mental picture of that, and I'd say that your forum's width causes your content to be compressed, and the only way it can expand is downwards (unless you expand your browser window.
You must have removed the guest enable but I'm happy to see that you are using my Rules mod. :)
Is this the best Mod available for adding a custom FAQ section? Is there something better or different available. I have been looking for a few days and haven't come across anything
I am in the process of setting up a forum for our society A.K.A. the Historic Clay District. I have been looking for the best method of adding a FAQ section to relate how best to utilize the forum. Basically a good percentage of what is found in the Help Menu but I think a FAQ section in addition to the Help section will cut down peoples issues and questions. I am wrong here or is the right way to go.
Good idea! Thanks! :)
Medalta:
This mod is more or less the Help section but with pages that you can customize for whatever you want. If your FAQ will fit in a dozen or so pages (or less) and if the page organization suits you, then it could be a good choice. It's up to you to decide.
I do believe the ability to include HTML (or BBCodes) makes it very flexible, as does the ability to change the name of the tab and the titles of the pages.
I searched our Mod Site (http://custom.simplemachines.org/mods/) to see if I could find anything else suitable but didn't see anything. I suggest you have a look there, and if you can't find anything more suitable then give my Dozen Pages a try. :)
Deprecated:
I noticed on several vBulletin sites that they seem to have a generic setup for a FAQ section by the fact they all have the same content. Baker's Dozen looks neater and better organized so I think I will just use it as long as you are OK with me doing so. I will include a link back to the original mod somewhere in the content.
B.T.W. I had a look at a few of your other mods, thanks for doing this kind of stuff for people like me, your efforts make this a much more pleasant experience. :D
Larry
Could you please explain again what you are doing?
I want to make it clear that it is absolutely NOT OKAY for you to rewrite or redistribute my modification!
It is intended for you to install it on your own SMF forum and to use it. You can modify it for your own use, it is NOT okay to redistribute it particularly if you have modified it.
Thats what I did I called it the - FAQS - section.
http://www.links4jeeps.com/forum/index.php?action=pages
I'm using it just like it is and adding content to it. ;)
Whoa, I have no intention of modifying your mod. I wouldn't even if I knew how. I had to reread what I posted to see what you were referring to, when I said "Original Mod" I meant in the context of a Rule Mod and not as I want to use it for a FAQ section.
As to linking back to the mod, what I intended was to link to the community board here to the Bakers Dozen thread or possibly the Mods section if people were interested in where it came from in said FAQ section.
Please don't think I was in any way trying to take away from what you have done or take ANY credit for your work. Sorry if I wasn't clear on this.
Basically I will do it any way you think best.
Larry
Oh, okay, then I misunderstood you. :) Sorry about that. :)
Just install the mod on your forum and enjoy it. I don't need any credit for that!
Please, just install it and use it on your forum. I get quite enough reward from knowing that my work has benefited so many forums and their members! :)
No worries . . . but you scared me there for a sec. :o
I will most definitely use it and most definitely NOT abuse it! :)
Larry
Deprecated,
Well this MOD confirmed that my FTP problems were over :)
But this MOD failed ModSettings.php
Can you take a look at it and tell me what I have to change?
Thanks!
Hello!
Is possible to move the PAGES tab to other position in the SMF top menu so it appears between HOME and HELP?
Thanks for this great mod :)
Yes, in your index.template.php
find and delete the following code
// Show the [pages] button.
global $user_info, $modSettings;
if ($user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']))
echo ($current_action == 'pages' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pages' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pages">', !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'], '</a>
</td>' , $current_action == 'pages' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
and now, to put this mod before the help pages, find
// How about the [Help Button] button?
add before
// Show the [pages] button.
global $user_info, $modSettings;
if ($user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']))
echo ($current_action == 'pages' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pages' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pages">', !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'], '</a>
</td>' , $current_action == 'pages' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Farewell
- Costa
Hmm sorry but I can't find that in my index.template.php . In fact, that file has not been modified recently, and I installed the mod this morning :o
you've installed the mod without any fail test?
Yes, and it shows the PAGES tab between HELP and SEARCH correctly.
if shows the tab PAGES, in your index.template MUST have the following code
// Show the [pages] button.
global $user_info, $modSettings;
if ($user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']))
echo ($current_action == 'pages' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pages' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pages">', !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'], '</a>
</td>' , $current_action == 'pages' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
If you don't find him, attach your index.template on your post please.
No, my index.template.php does not have that code :o
But I found the buttons array in Subs.php, changed the position of the pages button and now it appears in the position I want :)
Anyway here is my index.template.php
Moito obrigado! ;)
You're not using the default theme :P or are you using SMF 2.0 ?
In the default theme the buttons are in index.template.php :P
let me explain
In the index.template.php from default theme you have the buttons like this (in SMF 1.1.x)
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '"> </td>' : '
And here you can change the positions of the buttons just like you want :P
Oh, that's it! I'm using SMF 2.0 and a custom theme :)
Costa was giving you directions for SMF 1.x. He either wasn't aware you are using 2.x or wasn't aware that it was a dual-mode mod. :)
All three of us seem to be posting at the same time. (Greg waves!) :)
that's why you don't find that code!
Shame on me! hahaha
I dont know the codes from SMF 2.0 yet, i need to do a test forum with SMF 2.0 to explore the litlle kid :P
Good luck to your forum and thank you for using SMF ;)
Farewell
- Costa
You gotta watch me. :) Most of my mods are dual-mode, will install on SMF 1.x or SMF 2.x, but the way it's done they do NOT install the same way. :)
Sorry about the off, but i lke to talk with Deprecated :P
I don't know too much about modding, i'm just a curious guy. When something doesn't work, i explore the changes.
I translate the mods for other portuguese/brazilian guys who don't know nothing about editing files
Now I only work with SMF 1.1.x, and i do something on it every day, changing little thing, modificate litlle things, just for playing :)
I share what i know with everybody, i read a lot here in smf.org, I learn a lot study your mods and others
one day I can do a mod :P For now i only can help and translate :P
I'm posting the code for SMF 2.0 ;)
If you want to place the PAGES tab on other position in the top menu just follow these steps:
1) Open Sources/Subs.php
2) Search and cut the following code
'pages' => array(
'title' => !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'],
'href' => $scripturl . '?action=pages',
'show' => $user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']),
'sub_buttons' => array(
),
),
3) Paste the code in the desired place. If you want the PAGES tab to be shown before the HELP tab then paste the code before the HELP button code, like this
'pages' => array(
'title' => !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'],
'href' => $scripturl . '?action=pages',
'show' => $user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']),
'sub_buttons' => array(
),
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),
4) Save the file and you are done!
Would like to thank Costa and Deprecated for their help. Keep up your great work! :)
Quote from: TheDisturbedOne on November 13, 2008, 06:00:04 PM
Deprecated,
Well this MOD confirmed that my FTP problems were over :)
But this MOD failed ModSettings.php
Can you or somebody else take a look at it and tell me what I have to change?
Thanks!
my post was lost in the discussion, if somebody hasn't already seen it
Sorry Disturbed, I sometimes miss a post here or there. :)
I had a look at your installation problem and it was caused by interference from a different mod package. I've just changed my own package to see if I can avoid that in the future. Please download the new Pages version 1.02 which I hope will fix your problem.
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1477)
Please let me know if that fixes your problem. :)
Quote from: Deprecated on November 14, 2008, 04:46:15 PM
Sorry Disturbed, I sometimes miss a post here or there. :)
I had a look at your installation problem and it was caused by interference from a different mod package. I've just changed my own package to see if I can avoid that in the future. Please download the new Pages version 1.02 which I hope will fix your problem.
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1477)
Please let me know if that fixes your problem. :)
Its fine, I just wanted to bump it, since I really need to add this.
It worked!
You rock \m/!
Not a bump if somebody requested a reply from you. :)
I'm glad you're fixed up man! Enjoy! :)
Quote from: TheDisturbedOne on November 14, 2008, 04:17:58 PM
Quote from: TheDisturbedOne on November 13, 2008, 06:00:04 PM
Deprecated,
Well this MOD confirmed that my FTP problems were over :)
But this MOD failed ModSettings.php
Can you or somebody else take a look at it and tell me what I have to change?
Thanks!
my post was lost in the discussion, if somebody hasn't already seen it
That was the post that I wanted to bump :)
It works great, now I just gotta put some content in!
Quote from: Lady Night Owl on November 11, 2008, 11:45:05 AM
I love this mod, but why is my content being pushed down?
I'm using tables - is that the problem? And yes, all HTML is enclosed with the bbCode tags.
Quote from: Deprecated on November 11, 2008, 01:24:31 PM
I don't know what content being pushed down that is, but I'm imagining a mental picture of that, and I'd say that your forum's width causes your content to be compressed, and the only way it can expand is downwards (unless you expand your browser window.
I'm trying to use this mod and I'm having the same problem as Lady Night Owl.
I'm trying to make a double layer background but it doesn't start at the top of the page.
There's a very large white area, and then my background appears.
Perhaps I'm not using the correct codes to start off the page.
How exactly should it start?
I'm not very good when it comes to html, etc, and I don't even know what you mean when you say BBC codes.
I do know that a normal web page using html starts off with:
<html>
<head>
<title>
<body>
but I get the impression it doesn't work that way for the Baker's Dozen.
After trying several different ways to include codes I normally use when working with html, I decided to try adding an image at the top cause I thought perhaps it's a header area an maybe images belonged there.
Surprisingly enough, I can add an image but then there's another big gap between the image and the backgrounds I'm trying to use.
If you need to see what I'm talking about, I'll give you a link to my site and make it possible for guests to view that page. Just let me know.
Thanks.
Sheryl
BBCode (http://www.simplemachines.org/community/index.php?action=help;page=post#bbc)
This are the BBCodes for SMF (http://www.simplemachines.org/community/index.php?action=help;page=post#bbcref)
Thanks for the link to the BBC codes but I still need some help setting up a page on the Bakers Dozen.
What tags do you use to start the page?
Sheryl
Quote from: evil-angelist on November 04, 2008, 10:50:41 AM
It works beautifully, thankyou very much 10/10 for this mod, and a new confidence in myself now for manual installations. :)
EDIT: How do I get the TAB to highlight INFO ???
No one knows ???
Quote from: sheryltoo on November 15, 2008, 02:53:29 PM
Thanks for the link to the BBC codes but I still need some help setting up a page on the Bakers Dozen.
What tags do you use to start the page?
Sheryl
I use the BBC to wrote in the dozen pages, it's easier than htmal
look in the link below
http://zonasport.site88.net/forum/index.php?action=pages
All of that it's in BBC
Just open a topic, wrote what you want, format with bbc and Copy and paste in the dozen pages :)
Are only certain codes working?
[hr] works
[b] works
[color=???] works
[sub] works
but, when I try to do list items, it works in post, but not in the mod
[list]
[li][/li]
[/list] do not work
I'm using firefox and have no problem with it inside the post showing up with the bullet points. Just no bullet points in the mod.
It works for bold, center, color, size, tables.... but not for listing.
I get this when I try and install the mod . . .
An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.
has happened several times, what am I doing wrong? :o
Quote from: sheryltoo on November 15, 2008, 12:16:26 PMI'm trying to make a double layer background but it doesn't start at the top of the page.
There's a very large white area, and then my background appears.
Perhaps I'm not using the correct codes to start off the page.
How exactly should it start?
I'm not very good when it comes to html, etc, and I don't even know what you mean when you say BBC codes.
I do know that a normal web page using html starts off with:
<html>
<head>
<title>
<body>
but I get the impression it doesn't work that way for the Baker's Dozen.
No, no, no! You learned
too much HTML! Less is more!
You see, you can't have more than one <HTML>, <HEAD>, <TITLE>, <BODY>, etc. tags in any
one HTML page! SMF already has those tags! You're trying to put a second HTML page inside of the first HTML page.
Just skip all that stuff. The only HTML tags you need are those used for formatting, links, images, etc. SMF already started out the page before your code is ever displayed, and SMF is going to finish it up too so don't put in tags like </BODY> and </HTML> either!
Just remember, start your text with the [HTML] BBCode tag, and finish it up with the [/HTML] tag. Put your codes and text between them.
Just get rid of all those tags and the
Dozen Pages will work fine for you! :)
Quote from: evil-angelist on November 16, 2008, 03:38:05 AM
Quote from: evil-angelist on November 04, 2008, 10:50:41 AM
It works beautifully, thankyou very much 10/10 for this mod, and a new confidence in myself now for manual installations. :)
EDIT: How do I get the TAB to highlight INFO ???
No one knows ???
Please tell me which version SMF you are using. I already read your comments and tested it myself, and it works fine for me. Also, please be certain that you are using the latest version of this modification. Also, did you get any warnings when you installed the modification?
Quote from: Costa on November 16, 2008, 08:51:12 AMI use the BBC to wrote in the dozen pages, it's easier than htmal
look in the link below
http://zonasport.site88.net/forum/index.php?action=pages
All of that it's in BBC
Just open a topic, wrote what you want, format with bbc and Copy and paste in the dozen pages :)
You understand it! :) Some people are trying to smash a spider with a nuclear weapon. Sure you can include HTML in your pages, but that doesn't mean that you have to use it. In many if not most cases BBCodes are easier to use and get the same results.
I compose my pages in ordinary posts in a test forum in the same way. Then just paste it into the modification's pages when you are satisfied with the results. You can do this with text, BBCodes and HTML.
Quote from: Medalta on November 20, 2008, 12:07:57 PM
I get this when I try and install the mod . . .
An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.
has happened several times, what am I doing wrong? :o
That error is not due to the modification package. It is a problem with SMF's Package Manager. Please post a support request in either SMF 1.x Support or SMF 2.x Support boards.
The Bakers Dozen Pages review
by Reverend Jeremiah
Rated: ***** (5 stars)
So here is your delima: You have just installed Simple Machines Forum as the Content Management system for your site, but you have certain information/web pages/code/naked pictures/yada yada yada that you want available to your visitors outside of a forum post.
Don't you worry and don't you fear, The Bakers Dozen Pages are here!
(Cue cheesy advertisement music)
The Bakers Dozen Pages gives you 12+1 permanent and professionally embedded webpages for you to offer to your browsers. THATS RIGHT! I said 12+1 pages. Thats 13 user friendly pages available for those of you who failed elementary mathematics. For those of you who want to add 12+1 pages to your forum with a single navigation bar button that you can customize, it doesnt get any easier! Just go to the Simple Machines Forums Mod site and download this WONDERFUL modification by following this link (http://custom.simplemachines.org/mods/index.php?mod=1477) and it can be yours for 3 easy installments of FREE! Thats right... 13 user friendly website style pages on your forum for absolutely nothing!
The Bakers Dozen Pages Mod can handle BBcode just like you use when you are making a forum post, and it can also handle basic HTML code. The cherry on the cake is that it morphs beautifully with the "Help" button navigation template, making this mod mold seamlessly into your forum.
So what are you waiting for? You like doughnuts don't you? Hell, everyone loves doughnuts! So why not grab yourself a Bakers Dozen and enjoy the rich, decadent flavor of 13 easy edit web page options for your forum.
Quote from: Deprecated on November 20, 2008, 06:06:53 PM
Quote from: evil-angelist on November 16, 2008, 03:38:05 AM
Quote from: evil-angelist on November 04, 2008, 10:50:41 AM
It works beautifully, thankyou very much 10/10 for this mod, and a new confidence in myself now for manual installations. :)
EDIT: How do I get the TAB to highlight INFO ???
No one knows ???
Please tell me which version SMF you are using. I already read your comments and tested it myself, and it works fine for me. Also, please be certain that you are using the latest version of this modification. Also, did you get any warnings when you installed the modification?
Hi Deprecated, I have 1.1.7 and I did a manual install, so that is why I dont know what the problem could be:
Possible future change: on the http://*website*.com/index.php?action=pages the Page titles go down instead of across in bullet style?
Rating ***** 5 star
Quote from: Reverend Jeremiah on November 22, 2008, 10:17:06 PMSo what are you waiting for? You like doughnuts don't you? Hell, everyone loves doughnuts! So why not grab yourself a Bakers Dozen and enjoy the rich, decadent flavor of 13 easy edit web page options for your forum.
You're a pretty funny guy Rev! :D But donuts? Couldn't it be beer instead? I don't see any point in getting fat if it doesn't make you feel better! >:D
Quote from: evil-angelist on November 23, 2008, 03:15:09 AMHi Deprecated, I have 1.1.7 and I did a manual install, so that is why I dont know what the problem could be:
Possible future change: on the http://*website*.com/index.php?action=pages the Page titles go down instead of across in bullet style?
Hi! My favorite evil Angel again. We've got to quit meeting like this! ;) :D
Angel, please attach your index.template.php file to your reply post. I'm pretty sure I know which line is mangled. :)
Evil-angelist..I absolutely LOVE your website. In fact, I dont think I ever seen so many smiley on one page before. There is a nutiness about your site that I find magnetic.
Quote from: Deprecated on November 23, 2008, 12:57:27 PM
You're a pretty funny guy Rev! :D But donuts? Couldn't it be beer instead? I don't see any point in getting fat if it doesn't make you feel better! >:D
LOL, you're a great guy too Deprecated ;D but wouldnt that be a "Brewers Dozen"? Not that I have anything against an extra beer with my beloved Miller lite or Newcastle ale 12 pack. Its funny that you said that, I just spent the last 5 months working in Pennsylvania and their beer has to be sold in seperate building sort of like an ABC store. Well, to make a long story short, they would often give you a free micro beer sample with every purchase.. and get this..they DELIVERED :D ..God bless America!
Hello,
Would you be open to the idea of being able to limit one or more pages access by group?
I'd like to have an "Info" tab, and under there have pages for everyone to see things like links, FAQ, etc. But I'd also like a page or two for just the Moderators or just the Admins to record appropriate reference info, instead of relying on them know which topics and posts to reference. Maybe a field to list the groupids if you don't want to create a set of checkboxes?
Grazie mille!
Cal
There's already an admin notepad mod.
I know. Already have it installed. However, I don't give moderators access to the AdminCP.
I must be smoking some good stuff because I have a dilemma...
I get
3. Execute Modification ./Sources/ModSettings.php Test failed
and it appears to have been covered here because folks are saying, thanks i mad the edits and it works...however It seems to be flying right over my head at this point because I cannot seem to pinpoint what I need to do. ?
[bows head and bats eyes innocently]
On the mod download page ( http://custom.simplemachines.org/mods/index.php?mod=1477 ) you can select the manual installation instructions for 1.1.7 by using the drop box and the Submit button.
That will tell you the edits for your file. You'll love it.
Please be advised that I have updated this modification as follows:
Version 1.1 (Nov. 25, 2008) Improved 1.x installation script to avoid interference from other mods. Added British and British UTF-8 language strings.
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1477)
Anybody having problems with installing on SMF 1.1.7 should try the new version of this mod.
Great job as usual deprecated. I manually installed this package on my SMF1.1.7 and I know enough about code to get around most problems. Perhaps I should have documented my tweeks and posted them on this thread to help you and the others out, but hind site is always 50/50. Of course, Im using English language strings because of many reasons (including Tiny Portal).
Hey..I thought the British spoke English? LOL. I suppose if I use the British strings i would see; "Oh crap!" turn into "Oh bloody Hell!" Or "God bless America" would turn into "God save the King and the Queen mother"
"Have a jolly good day chap."
(see, your improved installation script is working like a champ!)
Quote from: tk2012 on November 19, 2008, 03:40:20 PM
Are only certain codes working?
[hr] works
[b] works
[color=???] works
[sub] works
but, when I try to do list items, it works in post, but not in the mod
[list]
[li][/li]
[/list] do not work
I'm using firefox and have no problem with it inside the post showing up with the bullet points. Just no bullet points in the mod.
It works for bold, center, color, size, tables.... but not for listing.
I've done what you said. I made my post in the post editor and then copied the info into the block for one of the pages. As you can see, all the codes work, but the "listing". Now, the listing does work in the post. The bullets appear as normal like I want them. I've attached pictures to show you what I've done in case I'm just doing something incorrect. I've used the "listing" bb code with no problems previously.
Please note, because I am using the info already in the Baker's Dozen mod, I added a "*" where the bullet is supposed to be located until I get an answer. (That's why you see the bullet plus the "*" in the post examples)
Attachment #1 = the written part in the post editor
Attachment #2 = the written part if posted in a thread/post
Attachment #3 = using the Dozen Pages Mod
default theme w/ color changes
smf 2.0 b4.0
Hi Deprecated,
I am running a website for professionals and it's a members only website. I've got SMF 1.1.7 install (member activation) and that works absolutely brilliantly. I was wondering, if I install Baker's Dozen and then use them to link to my other website with mostly html pages, pdf files, audio/video content, etc, can the folders and contents outside of the forum folders be protected, ie only registerd members can view and have access to them?
Thanks.
Hey,
how about the ability to add full html/php code? I do not even get html links to work correctly (without BB code) and the list items are bit bugged like said before. For the BB codes it works well.
This is a very interesting mod.
Is there a way to manipulate the codes to make this mod replace the ''recent post window'' or appear at the same place the recent posts appear. I want to use it to announce interesting topics to the homepage
is there a possible way to add a 14th page?
Quote from: Nfanthr33 on November 30, 2008, 05:33:36 AM
is there a possible way to add a 14th page?
Yep, look at the manual instructions and add as many more pages as you like, very easy.
Hi all,
I tried installing this mod but ended up with errors. I am using ApolloBB theme and I had a look at previous post for fields to edit using non-default theme.
However when I looked in the ApolloBB index.template, the show button seems very different from instructions for manual install.
I've attached the file index.template file and I would appreciate if somebody can advise me how to edit it to include the "show pages" button.
Awsome work, thank you!
I really enjoy the way this mod works.
Hi all,
I managed to do a manual mod however I am getting the following error
Quote8: Undefined index: dozen_pages_settings_title
File: /mydomain/forum/Sources/ModSettings.php
Line: 413
and the same error but on line 150.
The other error is
QuoteTemplate Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.
You can also try refreshing this page.
No other errors. Any help people???
Quote from: vulcan59 on December 06, 2008, 03:45:53 PM
No other errors. Any help people???
Unfortunately this mod is no longer supported due to the bullying tactics of SMF against the author. If you are unable to resolve this, remove the manual installation.
Quote from: evil-angelist on December 07, 2008, 04:09:43 AM
Quote from: vulcan59 on December 06, 2008, 03:45:53 PM
No other errors. Any help people???
Unfortunately this mod is no longer supported due to the bullying tactics of SMF against the author. If you are unable to resolve this, remove the manual installation.
Thanks for the response evil-angelist. In which case all his mods should be removed from SMF. But if SMF chooses to make it available for it's members, then someone should be responsible for it or at least a note there stating "no support' or use at own risk" or something to that effect.
Regards.
Quote from: vulcan59 on December 07, 2008, 12:46:32 PM
Quote from: evil-angelist on December 07, 2008, 04:09:43 AM
Quote from: vulcan59 on December 06, 2008, 03:45:53 PM
No other errors. Any help people???
Unfortunately this mod is no longer supported due to the bullying tactics of SMF against the author. If you are unable to resolve this, remove the manual installation.
Thanks for the response evil-angelist. In which case all his mods should be removed from SMF. But if SMF chooses to make it available for it's members, then someone should be responsible for it or at least a note there stating "no support' or use at own risk" or something to that effect.
Regards.
Probably the second until I guess someone takes over them (whether they can find someone with Deprecated's abilities and know-how is another thing) BIG shoes to fill.
Quote from: evil-angelist on November 30, 2008, 06:00:15 AM
Quote from: Nfanthr33 on November 30, 2008, 05:33:36 AM
is there a possible way to add a 14th page?
Yep, look at the manual instructions and add as many more pages as you like, very easy.
Hi evil,
I read through the manual instructions...am I missing something or should it just be obvious to me. How would I go about adding about 5 more pages? Thanks.
**Edit: Also, where would I remover the redundant linktree that is created with these pages?
I'll post how when I get the time @ adding more pages.
its easy to do, you just need to edit 4 files
Hi ,
I think something is missing in the Dozen Pages Mod, which is adding PHP contents so I added some Code and made it functional with php contents, here is the additional Code which will make adding PHP Pages possible :
in DosenPages.template.php find :
function template_main()
{
global $context;
echo theme_linktree();
echo '
<div class="tborder" style="margin-top: 1ex;">
<div class="helpmenu titlebg" style="padding: 4px;">
', $context['dozen_pages_menu'], '
</div>
<div style="padding: 2ex;" id="helpmain" class="windowbg2">
', $context['dozen_pages_contents'], '
</div>
</div>
';
}
Replace with :
function template_main()
{
global $context,$pcontent;
$pcontent=$context['dozen_pages_contents'];
echo theme_linktree();
if (preg_match('/<?/',$pcontent)){
$pcontent=str_replace('<br />',"\n",$pcontent);
$pcontent=str_replace(' ',' ',$pcontent);
$pcontent=str_replace(''',"'",$pcontent);
$fp=fopen("changable.php","w");
fputs($fp,$pcontent);
fclose($fp);
echo '
<div class="tborder" style="margin-top: 1ex;">
<div class="helpmenu titlebg" style="padding: 4px;">
', $context['dozen_pages_menu'], '
</div>';
echo '<div style="padding: 2ex;" id="helpmain" class="windowbg">';
include("changable.php");
echo '</div></div>'; } else {
echo '
<div class="tborder" style="margin-top: 1ex;">
<div class="helpmenu titlebg" style="padding: 4px;">
', $context['dozen_pages_menu'], '
</div>
<div style="padding: 2ex;" id="helpmain" class="windowbg2">
', $context['dozen_pages_contents'], '
</div>
</div>
';
}
};
add an empty php page in the root Directory of your forum call it 'changable.php' , it should have a file permission of 766 (or it depends on your server).
The addition of the php content should be with its start and end Signs
adding other Contents like [HTML] , [CODE ] ,etc. remain unchanged.
Quote from: Nintendofanthr33 on December 14, 2008, 01:12:51 AM
its easy to do, you just need to edit 4 files
@whom are you speaking and what 4 files?
Modsettings.php
find
'',
array('check', 'dozen_pages_enable_page_13'),
array('text', 'dozen_pages_title_13', '20'),
array('large_text', 'dozen_pages_contents_13', '4'),
add after
'',
array('check', 'dozen_pages_enable_page_14'),
array('text', 'dozen_pages_title_14', '20'),
array('large_text', 'dozen_pages_contents_14', '4'),
modifications.english.php
find
$txt['dozen_pages'] = 'Dozen Pages';
$txt['dozen_pages_cat'] = 'Dozen Pages';
$txt['dozen_pages_contents_1'] = 'Page 1 contents:';
$txt['dozen_pages_contents_2'] = 'Page 2 contents:';
$txt['dozen_pages_contents_3'] = 'Page 3 contents:';
$txt['dozen_pages_contents_4'] = 'Page 4 contents:';
$txt['dozen_pages_contents_5'] = 'Page 5 contents:';
$txt['dozen_pages_contents_6'] = 'Page 6 contents:';
$txt['dozen_pages_contents_7'] = 'Page 7 contents:';
$txt['dozen_pages_contents_8'] = 'Page 8 contents:';
$txt['dozen_pages_contents_9'] = 'Page 9 contents:';
$txt['dozen_pages_contents_10'] = 'Page 10 contents:';
$txt['dozen_pages_contents_11'] = 'Page 11 contents:';
$txt['dozen_pages_contents_12'] = 'Page 12 contents:';
$txt['dozen_pages_contents_13'] = 'Page 13 contents:';
$txt['dozen_pages_enable_guest_access'] = 'Enable guest access:';
$txt['dozen_pages_enable_member_access'] = 'Enable member access:';
$txt['dozen_pages_enable_page_1'] = 'Page 1 enable:';
$txt['dozen_pages_enable_page_2'] = 'Page 2 enable:';
$txt['dozen_pages_enable_page_3'] = 'Page 3 enable:';
$txt['dozen_pages_enable_page_4'] = 'Page 4 enable:';
$txt['dozen_pages_enable_page_5'] = 'Page 5 enable:';
$txt['dozen_pages_enable_page_6'] = 'Page 6 enable:';
$txt['dozen_pages_enable_page_7'] = 'Page 7 enable:';
$txt['dozen_pages_enable_page_8'] = 'Page 8 enable:';
$txt['dozen_pages_enable_page_9'] = 'Page 9 enable:';
$txt['dozen_pages_enable_page_10'] = 'Page 10 enable:';
$txt['dozen_pages_enable_page_11'] = 'Page 11 enable:';
$txt['dozen_pages_enable_page_12'] = 'Page 12 enable:';
$txt['dozen_pages_enable_page_13'] = 'Page 13 enable:';
$txt['dozen_pages_not_configured'] = ' - not configured';
$txt['dozen_pages_not_configured_message'] = 'This feature has not yet been configured by the administrator.';
$txt['dozen_pages_page_name_default'] = 'Page ';
$txt['dozen_pages_settings_title'] ='Dozen Pages';
$txt['dozen_pages_tab_default'] = 'Pages';
$txt['dozen_pages_tab_label'] = 'Dozen Pages tab label:';
$txt['dozen_pages_title_1'] = 'Page 1 title:';
$txt['dozen_pages_title_2'] = 'Page 2 title:';
$txt['dozen_pages_title_3'] = 'Page 3 title:';
$txt['dozen_pages_title_4'] = 'Page 4 title:';
$txt['dozen_pages_title_5'] = 'Page 5 title:';
$txt['dozen_pages_title_6'] = 'Page 6 title:';
$txt['dozen_pages_title_7'] = 'Page 7 title:';
$txt['dozen_pages_title_8'] = 'Page 8 title:';
$txt['dozen_pages_title_9'] = 'Page 9 title:';
$txt['dozen_pages_title_10'] = 'Page 10 title:';
$txt['dozen_pages_title_11'] = 'Page 11 title:';
$txt['dozen_pages_title_12'] = 'Page 12 title:';
$txt['dozen_pages_title_13'] = 'Page 13 title:';
add after
$txt['dozen_pages_title_14'] = 'Page 14 title:';
$txt['dozen_pages_enable_page_14'] = 'Page 14 enable:';
$txt['dozen_pages_contents_14'] = 'Page 14 contents:';
I had to edit 4 files for language
This mod is awesome! Deprecated rocks!
I was wondering if it was possible to add a drop menu to the main menu item for this mod so that u can link to the pages directly instead of going to page 1 first and then go to the pages displayed on top of the content page.
Hello,
I'm definitely interested in this mod! But I'm a little confused about what happened to the support.
Is anyone here using this mod with DZiner Studio themes (my site uses SilentWave)?
Thanks,
Matthew
Quote from: Matthew Schenker on December 23, 2008, 12:04:49 PM
Hello,
I'm definitely interested in this mod! But I'm a little confused about what happened to the support.
Is anyone here using this mod with DZiner Studio themes (my site uses SilentWave)?
Thanks,
Matthew
1st to be helped help us: have you installed this mod ??? Without knowing any possible problem support can not be given.
It is not right to simply ask about the support, is there some specific problem?
Hello im quit noob here i need some help with this install on 1.1
i cannot find the following
1. /index.php i dont see any of the coding that im suppose to replace its only 9 lines
2. ./Sources/ModSettings.php i dont even see this file at all
3. ./Themes/default/languages/Modifications.english.php dont see this file either
please help when u guys can ive been looking for a cpl hours for this stuff and to no avail i dont see ne of it i have the mod on the site but it looks weird if somebody could look at that also and tell me why it it looks outta place on the nav bar www.cutting-edge-streams.com
thank u in advance
Rob
I had to apply this mod again because of some updating I did to my database and I got an error warning me there was an error in the
themes/index.template.php file so I went to the Bakers Dozen download page and looked at the manual instructions for the index.template.php file.
I see the codes are in my index.template.php file and the program seems to work so should I be ok?
Why do you think I got that warning?
I'm using ezportal. Could there be a conflict between these two mods and if so, do I need to make some adjustments?
Sheryl
Fantastic mod. I've used it to embed an Amazon shop widget into two of sites. As someone else said, it would be cool to have a drop down menu.
Quote from: sheryltoo on January 11, 2009, 01:47:06 PM
Why do you think I got that warning?
Just a conflict with other mods, happens all the time. Its good to see that it is working for you, now you just have to set up the pages :)
Ok, Thanks.
Sheryl
Hi annaAdult,
Go to Admin>Features and Options. Do you see a tab there call Dozen Pages?
Great mod from Deprecated.
A TIP:
If you want to mix pages you've created with links to some other pages elsewhere you can use the following code in the contents of a page and it will directly link to to external URLs...
<meta HTTP-EQUIV="REFRESH" content="0.5; url=http://www. insert url here ">
You have to wrap this html code in html BBC tags - I'm sorry I can't type these here as they get read as BBC tags!
Two suggestions
1. Not really important, but the ability to rearrange the order of the pages without manually changing them around. Like, up/down buttons.
2. My main request... The ability to restrict who can and cannot access the pages depending on membership level. Such as, I have the Persona mod installed, and I don't want the PLAYER ranking accounts to be able to view a page that is for CHARACTER ranking access only. So, being able to restrict that would be awesome, rather than just "members" and "guest" access.
Other than that, I am loving this mod :D
Quote from: FireDitto on January 26, 2009, 02:01:10 AM
Two suggestions
1. Not really important, but the ability to rearrange the order of the pages without manually changing them around. Like, up/down buttons.
2. My main request... The ability to restrict who can and cannot access the pages depending on membership level. Such as, I have the Persona mod installed, and I don't want the PLAYER ranking accounts to be able to view a page that is for CHARACTER ranking access only. So, being able to restrict that would be awesome, rather than just "members" and "guest" access.
Other than that, I am loving this mod :D
If anybody takes this over I would love an addition to Who's Online too ;)
how can i use this in an other theme?
which files do i have to edit?
Love the addition !
Is there a way to install it twice
e.g. when i click this it goes to action=pages..
is there a way of installing it again and link to 13 different pages at another location?
I'm trying to insert an HTML table into the info box for one of the tables.
But when view the page theres a massive gap at the top and then my table.
If I write some text imediately next to my table this appears at the top. I can't figure out why this gap is appearing or how to remove it.
I had the same problem. Use the bbc code table tags instead of html tags. For some unknown reason, html tables always drop to the bottom of the page.
Hello,
I installed this mod with only partial success--somehow I blew the formating.
For some reason my new tab shows up as text only--not as a true tab like the others. There also seems to be an ordering problem. When I first load the page "Bookstore" (my new tab or just plain text in this case) is sort of in-between help and search. However after any tab is clicked the "Bookstore" text ends up at the end of the line. of tabs On the bright side, I am able to click the text link and it will take me to the inline amazon bookstore I added code for so HTML is working great. I just need to get this formatting fixed--help! :o
Will this work with 2.0 RC1?
Sheryl
Quote from: markwillows on February 13, 2009, 11:00:48 AM
Love the addition !
Is there a way to install it twice
e.g. when i click this it goes to action=pages..
is there a way of installing it again and link to 13 different pages at another location?
I imagine it would be a matter of manipulating the install info. Change action to action=pages2 or any other name you prefer, and to correspondingly change every reference in the template edits to match. Rename a second copy of dozenpages.php and match it up to the template references, etc. It would be easier to do it manually to insure that the install doesn't bork up the first installation. I will try it on a test forum in a day or so and let you know how it goes.
Thanks Tiribulus. Did you have to make any modifications to it?
Sheryl
Quote from: sheryltoo on February 22, 2009, 10:02:27 PM
Thanks Tiribulus. Did you have to make any modifications to it?
Sheryl
Not on 2.0 RC1.
I did on 1.1.8
I installed this on RC1 and it seems to be working fine, however I'm getting an error in my error log on my host site saying this file doesn't exist:
themes/classic/images/english/pages.gif
I'm assuming it has something to do with this mod.
I'm using the default theme but I think some of my members may be using classic.
Is there suppose to be a gif added some place?
Sheryl
I don't know where that's coming from. There is no gif file in the package ???
Somebody else will have to address that one for ya.
Ok.
Sheryl
I haven't used classic in so long, but if I am not mistaken, classic uses gifs for each menu bar selection. Home.gif, profile.gif, etc. Simply create a gif the same size and color as the ones you will find in your /themes/classic/images/english directory. name it pages.gif, and that error should be resolved.
Quote from: Nabil1 on December 15, 2008, 05:49:02 AM
Hi ,
I think something is missing in the Dozen Pages Mod, which is adding PHP contents so I added some Code and made it functional with php contents, here is the additional Code which will make adding PHP Pages possible :
in DosenPages.template.php find :
function template_main()
{
global $context;
echo theme_linktree();
echo '
<div class="tborder" style="margin-top: 1ex;">
<div class="helpmenu titlebg" style="padding: 4px;">
', $context['dozen_pages_menu'], '
</div>
<div style="padding: 2ex;" id="helpmain" class="windowbg2">
', $context['dozen_pages_contents'], '
</div>
</div>
';
}
Replace with :
function template_main()
{
global $context,$pcontent;
$pcontent=$context['dozen_pages_contents'];
echo theme_linktree();
if (preg_match('/<?/',$pcontent)){
$pcontent=str_replace('<br />',"\n",$pcontent);
$pcontent=str_replace(' ',' ',$pcontent);
$pcontent=str_replace(''',"'",$pcontent);
$fp=fopen("changable.php","w");
fputs($fp,$pcontent);
fclose($fp);
echo '
<div class="tborder" style="margin-top: 1ex;">
<div class="helpmenu titlebg" style="padding: 4px;">
', $context['dozen_pages_menu'], '
</div>';
echo '<div style="padding: 2ex;" id="helpmain" class="windowbg">';
include("changable.php");
echo '</div></div>'; } else {
echo '
<div class="tborder" style="margin-top: 1ex;">
<div class="helpmenu titlebg" style="padding: 4px;">
', $context['dozen_pages_menu'], '
</div>
<div style="padding: 2ex;" id="helpmain" class="windowbg2">
', $context['dozen_pages_contents'], '
</div>
</div>
';
}
};
add an empty php page in the root Directory of your forum call it 'changable.php' , it should have a file permission of 766 (or it depends on your server).
The addition of the php content should be with its start and end Signs
adding other Contents like [HTML] , [CODE ] ,etc. remain unchanged.
I like the idea of adding php content but lack the experience of coding to fully understand how to go about this. I can follow these instructions but need further help, perhaps an example of how to pull latest post content from a particular board or member stats?
many thanks
I installed this mod on my forum using v 1.1.8 and it works great....on the default theme, which is not the theme I use on my forum
I use the aero79 theme.
Can someone tell me what file would I need to edit in order to get the pages button to show up in the menu?
thanks
Look at the manual installation instructions for the mod. Check for any edits made to files inside the /themes/default folder. Any of those files that have their own versions in the folder for your theme may need matching edits. Also see if any files in the mod package are copied to the /themes/default folder and put copies in the folder and or any sub folders for your theme. Basically you duplicate the steps taken to install for the default theme. Back up the files before you edit them. If you blow anything up just copy the unedited copy back where it was.
ok, thanks!
No problem. Works for me. I'm new to this stuff myself, but I've managed to pull off a few dozen tweaks and changes successfully and usually (but not always) without asking for help now, though at first I was pestering these guys all the time O:) As long as you have backups all kinds of kamikaze coding missions can be attempted. Of course my forum is not a production outfit so that leaves me more freedom than somebody who has a few hundred users online all the time.
I don't have a few hundred but I do have quite a few ;)
Thanks for your help. It's working perfectly now
Could someone help me implement this mod in to my theme -
RuNet:
http://custom.simplemachines.org/themes/index.php?lemma=1356
After playing with the code, I now think that I need to add something to index.template.php
Here is the code from index.template.php :
<?php
// Version: SMF 2.0 RC1; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 Beta 4 Public';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;
/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;
/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;
/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = true;
}
// The main sub template above the content.
function template_html_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="SMF, русский, скачать, моды, руссификация, темы, для, smf, форум, поддержка" />
<meta name="verify-v1" content="52t1TsMiCuaOFW48eXmXiANYhNUlqXa3WTsPwHYCwp4=" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?b21"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/theme.js?b21"></script>
<!--[if lt IE 7]>
<script defer type="text/javascript" src="', $settings['default_theme_url'], '/scripts/pngfix.js"></script>
<![endif]-->
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_default_theme_url = "', $settings['default_theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open("' . $scripturl . '?action=pm");' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>
<title>', $context['page_title'], '</title>';
// script to support LATIN to Cyrillic translit button
echo '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/', $txt['translit_tbl'], '.js"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/translit.js"></script>';
// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="index, follow" />';
// The ?b21 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?b21" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?b21" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// Create the main header object.
var mainHeader = new smfToggle("upshrink", ', empty($options['collapse_header']) ? 'false' : 'true', ');
mainHeader.useCookie(', $context['user']['is_guest'] ? 1 : 0, ');
mainHeader.setOptions("collapse_header", "', $context['session_id'], '");
mainHeader.addToggleImage("upshrink", "/upshrink.gif", "/upshrink2.gif");
mainHeader.addTogglePanel("upshrinkHeader");
mainHeader.addTogglePanel("upshrinkHeader2");
// ]]></script>';
echo '
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
</head>
<body>';
}
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
//start 1st table here;
// table 1;
echo '<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>';
//table 1.1;
echo '
<table cellpadding="0" cellspacing="0" class="logobg">
<tr>
<td>';
//Insert logo image!;
echo '<img src="', $settings['images_url'], '/smflogo.jpg" style="margin-left: 20px;" title="', $context['forum_name'], ' " alt="Logo" />';
//table 1.1 end;
echo '
</td></tr>
</table>';
echo '
</td>
</tr><tr>';
//begin navigation panel;
//table 1.2;
echo '
<td><table cellpadding="0" cellspacing="0" class="menu_nav_panel_bg" width="100%"><tr><td>';
//table 1.3; Insert Navigation menu;
echo '
<table cellpadding="0" cellspacing="0" class="menubg"><tr>';
//[Site] , [Home] , [help] , [searh] buttons; Special thansk css-school.ru =\ ;
echo '<td id="home"><a href="', $scripturl, '?action=forum"><span>' ,$txt['home'], '</span></a></td>';
echo '<td id="help"><a href="', $scripturl, '?action=help"><span>' , $txt['help'] , '</span></a></td>';
if ($context['allow_search'])
echo '<td id="search"><a href="', $scripturl, '?action=search"><span>' , $txt['search'] , '</span></a></td>';
if ($context['allow_calendar'])
echo '<td id="calendar"><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar'] , '</span></a></td>';
//Table 1.3 end; End menu;
echo '
</tr></table></td><td valign="top"><img src="', $settings['images_url'], '/menu_right.gif" alt="" /></td><td width="100%" align="right">';
// Hello "%user";
if($context['user']['is_logged'])
echo '
<span class="hello_member"> ', $txt['hello_member_ndt'], ' <b><a href="', $scripturl, '?action=profile">', $context['user']['name'] , '</a></b>(<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', $txt['logout'] , '</a>)</span>';
Else
{
echo '<span class="hello_member">';
echo sprintf($txt['welcome_guest'], $txt['guest_title']);
echo '</span>';
}
//table 1.2 and 1 end;
echo '</td></tr></table></td></tr></table>';
//shadow
echo '<table cellpadding="0" cellspacing="0" width="100%" class="shadow">
<tr>
<td><img src="', $settings['images_url'], '/blank.gif" height="0" alt="" /></td>
</tr>
</table>';
//user panel begin;
if($context['user']['is_logged'])
echo '<table cellpadding="10" cellspacing="0" width="100%" class="userpanel" border="0">';
Else
echo '<table cellpadding="10" cellspacing="0" width="100%" class="ghostpanel" border="0">';
echo '<tr>
<td style="font-family: Verdana; color: #212121; font-size: 12px;">';
if($context['user']['is_logged'])
{
echo '
', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '';
}
else
echo ' ', $txt['quick_login_dec'], '';
echo '</td>';
//usermenu
if($context['user']['is_logged'])
{
echo '<td class="usermenu">';
if ($context['allow_admin'])
echo '<a href="', $scripturl, '?action=admin">' , $txt['admin'] , '</a>';
if ($context['user']['can_mod'])
echo '<a href="', $scripturl, '?action=moderate">', $txt['moderate'], '</a>';
if ($context['allow_edit_profile'])
echo '<a href="', $scripturl, '?action=profile">' , $txt['profile'] , '</a>';
echo '<a href="', $scripturl, '?action=mlist">', $txt['members_title'], '</a>';
echo '<a href="', $scripturl, '?action=pm">', $txt['pm_short'], '';
if ($context['user']['unread_messages'] > 0)
echo ' (<strong>'. $context['user']['unread_messages'] . '</strong>)';
echo '</a>';
}
Else
echo '<td align="right"><form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<input type="text" name="user" size="15" value="" style="background: #FFF url(', $settings['images_url'], '/login1.gif) right no-repeat; border: 1px solid #aaa;" alt="" />
<input type="password" name="passwrd" size="15" value="" style="background: #FFF url(', $settings['images_url'], '/password.gif) right no-repeat; border: 1px solid #aaa;" alt="" />
', $txt['always_logged_in'], ':<input type="checkbox" name="cookieneverexp" checked="checked" class="check" />
<input type="submit" value="', $txt['login'], '" />
</form>';
echo '</td></tr></table><br />';
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 0px 20px 0 20px;">';
}
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</div>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
</tr>
<tr><td align="center" style="font-size: 10px;">
<a href="http://validator.w3.org/check/referer" target="_blank" title="valid XHTML"><span>XHTML</span></a>
<a href="', $scripturl , '?type=rss;action=.xml"><span>RSS</span></a>
<a href="', $scripturl , '?wap2"><span>WAP2</span></a>
<br />
<a href="http://smf2.uuuq.com">RuNet Theme by [cer]</a>
</td></tr>
</table>';
// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</span>';
echo '
</div>';
}
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
</body></html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;
echo '<div class="nav" style="font-size: smaller; margin-bottom: 15px;">';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' <img src="', $settings['images_url'], '/strela.gif" alt="" /> ';
}
echo '</div>';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}
// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' , $first , '"></td>';
foreach ($context['menu_buttons'] as $act => $button)
echo ($button['active_button'] || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , ' <td valign="top" class="maintab_', $button['active_button'] ? 'active_back' : 'back', '">
<a href="', $button['href'], '">', $button['title'], '</a>
</td>', $button['active_button'] ? '<td class="maintab_active_' . $last . '"></td>' : '';
// The end of tab section.
echo '
<td class="maintab_' , $last , '"> </td>
</tr>
</table>';
}
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
{
if ($value['url'] === '{SUBMIT}')
$buttons[$key] = '<input type="submit" value="' . (isset($value['custom']) ? $value['custom'] : '') . $txt[$value['text']] . '" class="button_strip_submit" />';
else
$buttons[$key] = '<a href="' . $value['url'] . '" ' . (isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
}
$button_strip[$key] = $buttons[$key];
}
if (empty($button_strip))
return '<td> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
}
?>
I narrowed it down to this section:
//usermenu
if($context['user']['is_logged'])
{
echo '<td class="usermenu">';
if ($context['allow_admin'])
echo '<a href="', $scripturl, '?action=admin">' , $txt['admin'] , '</a>';
if ($context['user']['can_mod'])
echo '<a href="', $scripturl, '?action=moderate">', $txt['moderate'], '</a>';
if ($context['allow_edit_profile'])
echo '<a href="', $scripturl, '?action=profile">' , $txt['profile'] , '</a>';
echo '<a href="', $scripturl, '?action=mlist">', $txt['members_title'], '</a>';
echo '<a href="', $scripturl, '?action=pm">', $txt['pm_short'], '';
if ($context['user']['unread_messages'] > 0)
echo ' (<strong>'. $context['user']['unread_messages'] . '</strong>)';
echo '</a>';
}
But I couldn't pick the right code to put in.
Great Mod!
I checked allow member access & enabled 2 pages - yet only 1 will show.
Why?
:)
For those looking for more than a bakers dozen pages, and permissions based access, worth looking at Robbos "Custom Pages" mod (http://custom.simplemachines.org/mods/index.php?mod=1347).
You will need to set up your own menu or call the pages from links elsewhere but other than that a great follow-up to this mod - and the two are compatible so you can run both without conflict...
I "need" this mod. Here is the deal though ... I have ver. 1.1.8 installed and use the default (Core) Theme. I have seen somewhat contradictory postings here regarding the mods suitability for 1.1.8. Will it work with out modification? If it needs modifications what might those be? As long as I back everything up prior to installation what is the worse that can happen?
BTW other mods I've installed are Logo Redirect, Simple Portal, Aeva, SMF Trader and AjaxChat if that makes a difference.
I would suggest a manual install if you want to be extra cautious but i used it with 1.1.8 w/ no side effects.
Thanks Nena. I'll give it a try.
Thanks for the great mod 8) Installed it on my 1.1.8 default core with package manager. Got an index template php test failed but applied it anyway and did the 2 simple edits to the index template. Works great.
TD
I installed the Bakers Dozen Pages Mod. It was installed successfully and I configured to enable it. But still, the tabs to click and go to the pages are not seen in the main page. Any step I may have missed? See pic below.
You'll need to install the button manually on any custom themes. Also this isn't a request for a new mod so I'll move it to the support thread for Baker's Dozen.
In index.template.php find this:
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
Change to this:
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
if ($context['current_action'] == 'pages')
$current_action = 'pages';
Find this:
// How about the [search] button?
if ($context['allow_search'])
Change to this:
// Show the [pages] button?
// Show the [pages] button.
global $user_info, $modSettings;
if ($user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']))
echo'
<td align="center" class="menubg' , $current_action == 'pages' ? '2' : '' , '">
<a href="', $scripturl, '?action=pages">', !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'], '</a>
</td>';
// How about the [search] button?
if ($context['allow_search'])
Thank you. :)
Great Mod Thanks.
Just one question. Where do I change the colour of the text of the page header titles?.
I am using 2.0 RC1 With extreme6 theme and the titles are currently red when a page is being viewed, I would like green if possible.
Thank you.
Guess I should offer an update ...
I did install on ver. 1.1.8, Core theme.
Working flawlessly! Thanks for a great mod and to NenaGb for the help.
BTW ... installed the Help Page mod also. No issues.
woo hoo I finally got to help someone :)
DOZEN PAGES working fine........... But I need one more SET of a DOZEN PAGES................ so let me know how I can install two sets of dozen pages........... in my smf 1.1.8
You can edit the files to let you have more than 13.
Quote from: Realinfo on May 15, 2009, 01:09:13 PM
DOZEN PAGES working fine........... But I need one more SET of a DOZEN PAGES................ so let me know how I can install two sets of dozen pages........... in my smf 1.1.8
Easy to make edits to add more pages. Here are the specifics.
http://www.simplemachines.org/community/index.php?topic=271527.msg1842261#msg1842261
Good Luck,
TD
hi tried to install this mod but got this message
Execute Modification ./Themes/default/index.template.php Test failed
Quote from: andy40 on May 15, 2009, 05:50:25 PM
hi tried to install this mod but got this message
Execute Modification ./Themes/default/index.template.php Test failed
Same thing happened to me, I just looked at the manual install instructions and manually changed the index.template.php and it works great. Good Luck.
TD
Quote from: TDNY on May 15, 2009, 06:08:34 PM
Quote from: andy40 on May 15, 2009, 05:50:25 PM
hi tried to install this mod but got this message
Execute Modification ./Themes/default/index.template.php Test failed
Same thing happened to me, I just looked at the manual install instructions and manually changed the index.template.php and it works great. Good Luck.
TD
hi yes i tried that but still the same not sure why
Hey Andy40 what version of SMF are you using?
1.1.8
just looked at your forum looks good i would like a baner at the top
Quote from: andy40 on May 15, 2009, 06:56:38 PM
1.1.8
just looked at your forum looks good i would like a baner at the top
Thanks a lot, my friends wife made the banner and someone here installed it for me. What's your site? If you go to the help wanted section here a lot of people will help for free. I can't do graphics yet or I'd help you.
As far as the Dozen pages error goes, I have to run out to take care of an errand, I have the same smf version as you, if you post up your index.template.php I will look at it, do you know how to do that? use the "attach" feature below. I will be back at about 8pm New York time.
TD
hi m8 do you use msn?
Quote from: andy40 on May 15, 2009, 07:11:48 PM
hi m8 do you use msn?
Hey Just got back, no on the MSN if you want we can PM each other here so we don't take over the thread LOL
Quote from: TheDisturbedOne on May 15, 2009, 04:25:20 PM
You can edit the files to let you have more than 13.
Yes sir........... that's ok..... but, but.......... I need two SETS of dozen pages............... See in one set I will get 13 pages to put radios........... in second sets, I want to put you tube videos.......... like that............. may I need more than 2 sets. but now atleast I need two sets of dozen pages............... help..............
hi still having problems with this mod problem below i tried to edit the index file but still wouldnt work
Execute Modification ./Themes/default/index.template.php Test failed
Quote from: andy40 on May 18, 2009, 05:55:06 AM
hi still having problems with this mod problem below i tried to edit the index file but still wouldnt work
Execute Modification ./Themes/default/index.template.php Test failed
Post up the index.template I'll take a look.
Quote from: TDNY on May 18, 2009, 08:59:43 AM
Quote from: andy40 on May 18, 2009, 05:55:06 AM
hi still having problems with this mod problem below i tried to edit the index file but still wouldnt work
Execute Modification ./Themes/default/index.template.php Test failed
Post up the index.template I'll take a look.
hi sent it to your email addy you sent me
Hey,
Got the email but there was a warning upon opening that forced me to delete the email. It said that access to the unsafe attachment has been applied. I can't help you......Sorry
what does that mean never had that problem b4
Thanks for the mod.
Here is the swedish translation (utf-8):
//_ * Bakers Dozen Pages (Ett dussin sidor). Swedish translation by djkmmo
$txt['dozen_pages'] = 'Ett dussin sidor';
$txt['dozen_pages_cat'] = 'Ett dussin sidor';
$txt['dozen_pages_contents_1'] = 'Innehåll sida 1:';
$txt['dozen_pages_contents_2'] = 'Innehåll sida 2:';
$txt['dozen_pages_contents_3'] = 'Innehåll sida 3:';
$txt['dozen_pages_contents_4'] = 'Innehåll sida 4:';
$txt['dozen_pages_contents_5'] = 'Innehåll sida 5:';
$txt['dozen_pages_contents_6'] = 'Innehåll sida 6:';
$txt['dozen_pages_contents_7'] = 'Innehåll sida 7:';
$txt['dozen_pages_contents_8'] = 'Innehåll sida 8:';
$txt['dozen_pages_contents_9'] = 'Innehåll sida 9:';
$txt['dozen_pages_contents_10'] = 'Innehåll sida 10:';
$txt['dozen_pages_contents_11'] = 'Innehåll sida 11:';
$txt['dozen_pages_contents_12'] = 'Innehåll sida 12:';
$txt['dozen_pages_contents_13'] = 'Innehåll sida 13:';
$txt['dozen_pages_enable_guest_access'] = 'Aktivera åtkommst för gäster:';
$txt['dozen_pages_enable_member_access'] = 'Aktivera åtkommst för medlemmar:';
$txt['dozen_pages_enable_page_1'] = 'Aktivera sida 1:';
$txt['dozen_pages_enable_page_2'] = 'Aktivera sida 2:';
$txt['dozen_pages_enable_page_3'] = 'Aktivera sida 3:';
$txt['dozen_pages_enable_page_4'] = 'Aktivera sida 4:';
$txt['dozen_pages_enable_page_5'] = 'Aktivera sida 5:';
$txt['dozen_pages_enable_page_6'] = 'Aktivera sida 6:';
$txt['dozen_pages_enable_page_7'] = 'Aktivera sida 7:';
$txt['dozen_pages_enable_page_8'] = 'Aktivera sida 8:';
$txt['dozen_pages_enable_page_9'] = 'Aktivera sida 9:';
$txt['dozen_pages_enable_page_10'] = 'Aktivera sida 10:';
$txt['dozen_pages_enable_page_11'] = 'Aktivera sida 11:';
$txt['dozen_pages_enable_page_12'] = 'Aktivera sida 12:';
$txt['dozen_pages_enable_page_13'] = 'Aktivera sida 13:';
$txt['dozen_pages_not_configured'] = ' - Ej konfigurerat';
$txt['dozen_pages_not_configured_message'] = 'Administratören har inte konfigurerat den här funktion ännu.';
$txt['dozen_pages_page_name_default'] = 'Sida ';
$txt['dozen_pages_settings_title'] ='Ett dussin sidor';
$txt['dozen_pages_tab_default'] = 'Sidor';
$txt['dozen_pages_tab_label'] = 'Ett dussin sidor tabb-etikett:';
$txt['dozen_pages_title_1'] = 'Titel sida 1:';
$txt['dozen_pages_title_2'] = 'Titel sida 2:';
$txt['dozen_pages_title_3'] = 'Titel sida 3:';
$txt['dozen_pages_title_4'] = 'Titel sida 4:';
$txt['dozen_pages_title_5'] = 'Titel sida 5:';
$txt['dozen_pages_title_6'] = 'Titel sida 6:';
$txt['dozen_pages_title_7'] = 'Titel sida 7:';
$txt['dozen_pages_title_8'] = 'Titel sida 8:';
$txt['dozen_pages_title_9'] = 'Titel sida 9:';
$txt['dozen_pages_title_10'] = 'Titel sida 10:';
$txt['dozen_pages_title_11'] = 'Titel sida 11:';
$txt['dozen_pages_title_12'] = 'Titel sida 12:';
$txt['dozen_pages_title_13'] = 'Titel sida 13:';
Very very sweet mod. It works on 2.0RC1-1 perfectly... First page is about M.Jackson youtube videos now.... Other pages are all national newspapers
I have one snippet that I cannot use in dozen pages but I can use it on forum:
code example is given bellow:
<div id="lrep7366493" style="width: 350px;">Data loading....<a href="http://ps3glcom.leaguerepublic.com/Index.do?divisionseason=8784595">click here for Premier Division</a><br/><br/><a href="http://www.leaguerepublic.com">LeagueRepublic</a></div>
<script language="javascript" type="text/javascript">
var lrcode = '7366493'
</script>
<script language="Javascript" type="text/javascript" src="http://api.leaguerepublic.com/client/api/cs1.js"></script>
Is there any way to enable this snippet on dozen pages to appear?
Just to add: Have 2.0 RC1-1 and default Theme
I love The Rules Mod, and this is a great follow-up! Works great! Thank you for taking the time to create both Mods!
Anyone here?
Quote from: Realinfo on May 16, 2009, 03:49:51 AM
Yes sir........... that's ok..... but, but.......... I need two SETS of dozen pages............... See in one set I will get 13 pages to put radios........... in second sets, I want to put you tube videos.......... like that............. may I need more than 2 sets. but now atleast I need two sets of dozen pages............... help..............
I needed the same. I run two Clubs on one site and wanted a set of pages for each that coped with html and BBC and used a similar navigation style to the forum HELP pages.
Today I went through all the parse files manually and changed all references to bakers_dozen_/... to bakers_dozen2_/..., changed the sub actions from sa=pages to sa=pages2, renamed BakersDozen2.php and BakersDozen2.template.php (and changed the references inside those files) and finally amended and uploaded the add_default_settings.php to the forum root directory.
Uploaded all files, replacing and creating new as necessary, ran add_default_settings from my browser and emptied the cache from Admin.
Worked a dream. Now have two examples of Bakers Dozen in my Modifications tab of Admin and can call the pages using /index.php?action=pages2;sa=1...2...3 etc. And of course you get the top menu in the title.
Just take care and rename all systematically.
W
So, where can I go to change the color of the active page from the by-default red, to something more fitting for my forums' theme? Does that particular piece of code likely affect the color of other things not at all related to Bakers Dozen Pages?
Novice to beginner in php here, so can figure some things out on my own, but just can't crack this one :)
~ Marc
Quote from: marcberm on September 02, 2009, 07:31:20 PM
So, where can I go to change the color of the active page from the by-default red, to something more fitting for my forums' theme? Does that particular piece of code likely affect the color of other things not at all related to Bakers Dozen Pages?
Novice to beginner in php here, so can figure some things out on my own, but just can't crack this one :)
~ Marc
I asked that question once and was told that it's not a "mod" thing but an SMF thing (example: the same "red" you see when you look down at the bottom of your forum's page under "Users Online" and see your own name, as the admin, in red). So.... CSS? I didn't pursue it.
Quote from: gbsothere on September 03, 2009, 08:06:09 AM
I asked that question once and was told that it's not a "mod" thing but an SMF thing (example: the same "red" you see when you look down at the bottom of your forum's page under "Users Online" and see your own name, as the admin, in red). So.... CSS? I didn't pursue it.
That's pretty much what I figured, I just have no idea where exactly to look in the style sheet... My best idea (and the thing I'll probably try next) is pasting a printscreen of that particular red color into adobe in order to use the color picker tool to get the hex code for the color, then search the CSS for that code and replace it. I guess that will probably work :)
Quote from: marcberm on September 03, 2009, 09:54:02 AM
Quote from: gbsothere on September 03, 2009, 08:06:09 AM
I asked that question once and was told that it's not a "mod" thing but an SMF thing (example: the same "red" you see when you look down at the bottom of your forum's page under "Users Online" and see your own name, as the admin, in red). So.... CSS? I didn't pursue it.
That's pretty much what I figured, I just have no idea where exactly to look in the style sheet... My best idea (and the thing I'll probably try next) is pasting a printscreen of that particular red color into adobe in order to use the color picker tool to get the hex code for the color, then search the CSS for that code and replace it. I guess that will probably work :)
Hey, no fair using my trick! :D
(It's a good idea; the only two occurrences I can find for "red" in default's style.css don't seem to have anything to do with that link.)
You're right (as I just found out)!
I couldn't find the particular hex code anywhere, and the two instances of red seem to be related to other things (emote, error text). I've changed both just to see if it worked, and it didn't so I'm back to square one :)
Quote from: marcberm on September 03, 2009, 10:08:11 AM
You're right (as I just found out)!
I couldn't find the particular hex code anywhere, and the two instances of red seem to be related to other things (emote, error text). I've changed both just to see if it worked, and it didn't so I'm back to square one :)
Try searching your style.css for this, marcberm: cc3333
http://www.colorcombos.com/cc3333-hex-color (http://www.colorcombos.com/cc3333-hex-color)
Got it!!!
So, at first, I was looking in the default CSS, instead of the one for my current theme. It's tied to the same code that makes the error text red. I changed:
/* Sometimes there will be an error when you post */
.error{
color: #FF0000;
}
to
/* Sometimes there will be an error when you post */
.error{
color: #FA7500;
}
to change it from Red to Orange, understanding this also affects error text and anything else associated with that color setting.
Thanks for your help gbsothere!! :)
I thought it was this section
a.nav:hover
{
color: #cc3333;
text-decoration: underline;
}
but, still........
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fimages%2Fthumb.gif&hash=fbe057efff6d88bc8293617d752cf12a98abaa09)
Has anyone attempted to install this on 1.1.10?
Yep. Works fine. ;D
Just installed it. Works good..so far, gotta fix up the pages like I want. But installed fine other then having to do a manual edit on my custom index.template.php :)
Quote from: Lady Night Owl on November 11, 2008, 11:45:05 AM
I love this mod, but why is my content being pushed down?
I'm using tables - is that the problem? And yes, all HTML is enclosed with the bbCode tags.
I have it enabled for guests (for now) if you want to take a looksie - it's under "Guides"
ETA: Guess I can't use tables. :\
I'm having this same issue. Everything gets pushed down, and its blank at the top. Anyone come up with a way to fix this yet?? The Demo site has an HTML table in it, so I assume it does work. I hate using BBcode. Takes me forever to do a table correctly...and I have no idea if I can change the background of a BBcode table..
I'm able to use tables without the added space at the top but, for me at least, the solution was to, after all, replace html with bbc. So: <table> becomes [ table], <a href > becomes [ url=http:/ /] and so forth. Not ideal, I suppose, but it did work.
:)
ETA: I must remember to watch those spaces when posting; forgetting them can really skunk up a post.
Yeah, for now I'm using an HTML editor, then converting the code into BBCode via a website.
Takes a lot of time...and I've screwed up many times, but hopefully in the end it will be done and I won't have to edit again.
Just find it odd that it seems tables work on the demo HTML version...
I tried to install this on SMF 2.0 RC1.2, IT did install without any errors but upon loading the configuration for the mod, there is a error, a lot of weird text.
Will this be updated for use on SMF 2 RC1.2 anytime soon?
what kind of weird text?
i'm using this mod in rc1.2 without any problem...
Quote from: gbsothere on September 15, 2009, 03:39:53 PM
I'm able to use tables without the added space at the top but, for me at least, the solution was to, after all, replace html with bbc. So: <table> becomes [ table], <a href > becomes [ url=http:/ /] and so forth. Not ideal, I suppose, but it did work.
:)
ETA: I must remember to watch those spaces when posting; forgetting them can really skunk up a post.
any other solution for this?
there is another solution for this, you can use tables (html) but code needs to be in one line...
if you have something like this:
<table border="1">
<tr>
<td>100</td>
<td>200</td>
<td>300</td>
</tr>
<tr>
<td>400</td>
<td>500</td>
<td>600</td>
</tr>
</table>
you have to put it in the box (Dozen pages cp) like this:
<table border="1"><tr><td>100</td><td>200</td><td>300</td></tr><tr><td>400</td><td>500</td><td>600</td></tr></table>
I make no secret I like your stuff, Dep. They work well and you include english-british-UTF8 so no errors in the admin log and language strings which need adding.
One question : I'm using the mod to add a Links to other sites page. Is there a way I can make someone's banner clickable so if someone clicks onto that banner it will take them directly to that site using a URL instead of an embedded code?
[url=http://URL GOES HERE][img]http://IMAGE GOES HERE[/img][/url]
Cheers, Sabre.
For those who are with problems using HTML...
Some people are trying to smash a antz with a nuclear weapon. Of course you can include HTML in your pages, but that doesn't mean that you have to use it. In many if not most cases BBCodes are easier to use and get the same results.
I compose my pages in ordinary posts in a test forum in the same way. Then just paste it into the modification's pages when you are satisfied with the results. You can do this with text, BBCodes and HTML.
Most people who is using HTML, can have the same result with BBC :P
Quote from: Sabre™ on October 03, 2009, 03:44:12 PM
[url=http://URL GOES HERE][img]http://IMAGE GOES HERE[/img][/url]
before you ask, you may want the link to open in the same window, use "iurl" tag instead of just "url" tag, however this is more useful when making internal links
Thanks, folks.
Hi
Theme: Silentwave
Version: SMF 2.0 RC1.2
I installed this mod onto my forum. My Subs.php got a fail but added it in. Whenever I click the pages tab it says:
An Error Has Occurred!
Unable to load the 'DozenPages' template.
Please Help!
Joe
Version: SMF 2.0 RC1.2
Theme iBlue
Works awesome.
I don't post in these forums as I have nothing productive to say but wanted to say thank you for such an awesome mod. It is by far my favorite and most useful for my site.
Thanks and much appreciated.
Quote from: Joe N on October 16, 2009, 01:42:51 PM
Hi
Theme: Silentwave
Version: SMF 2.0 RC1.2
I installed this mod onto my forum. My Subs.php got a fail but added it in. Whenever I click the pages tab it says:
An Error Has Occurred!
Unable to load the 'DozenPages' template.
Please Help!
Joe
attach your subs.php
I'm probably the only person to screw this up, but I've buggered this one.
leafboxtea.com
I installed the package and had to do the manual edits to my theme. Not a problem, it's there -- just in the wrong spot and it looks horrible.
In the default theme, it works as designed on my installed theme its working wonky (that's a technical term).
Go to the website above and look at it. Can't find it? It's in dark lettering on the right end of the menu "About Us". I wanted to put it next to the forum tab (in the default theme that's where it is), but at this point I might settle for just having it look correct.
Where do I start to work on this? I'm not sure which file is going to handle this (I'm a newb). Can someone help me troubleshoot this out?
If you placed the mod's edits in your custom theme's index.template.php and index.php, did you also place the edits in your theme's language folder, Modifications.english.php?
The theme's language folder doesn't have that file so I assume that it uses the file from the default theme. That one was been modded properly by the Dozen Pages installer.
I copied that one over into the theme's language folder now - no change. Problem still there.
I had to drag my mouse over the red portion to get "About Us" to even show up. I don't find the Baker's Dozen Tab, though. Can you attach your theme's index.template.php and index.php?
Edit: I see... "About Us" will be your new page.
Here they are...
Your index.template.php is correct and, since I've never used a custom theme, myself, I'm assuming that the index.php reverts back to the SMF default index.php.
Is your forum's language set in Admin to English, or to English-utf8?
It is set to English
I do notice this difference between the edits for the button that this mod places in your index.template.php and the coding that your theme uses for all the other buttsons: "class="
The mod's edits are: class="maintab_'
Your theme's coding for buttons is: class="chosen"'
Have you tried replacing all the incidents of: class="maintab_' with ' class="chosen"' to see what happens?
EDIT: I'm sorry, I have to take off for a doctor appointment, but I'll check back in when I return to see where you are on this.
sigh....done.
No change. Like you, I just can't see what the differences are and why this is being bugged out.
That menu section now looks like this:
// Show the start of the tab section.
echo '
<div id="container">
<ul id="simple-menu">';
// Show the [home] button.
echo '<li', $current_action == 'home' ? ' class="chosen"' : '', '><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
// Show the [forum] button.
echo '<li', $current_action == 'forum' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=forum">' , $txt['tp-forum'] , '</a></li>';
// Show the [pages] button.
global $user_info, $modSettings;
if ($user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']))
echo ($current_action == 'pages' || $context['browser']['is_ie4']) ? '<td class="chosen' . $first . '"> </td>' : '' , '
<td valign="top" class="chosen' , $current_action == 'pages' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pages">', !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'], '</a>
</td>' , $current_action == 'pages' ? '<td class="chosen' . $last . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo '<li', $current_action == 'search' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li', $current_action == 'admin' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li', $current_action == 'profile' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li', $current_action == 'pm' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<blink> '. $context['user']['unread_messages'] . ' </blink>]' : '' , '</a></li>';
// The [calendar]!
if ($context['allow_calendar'])
echo '<li', $current_action == 'calendar' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';
// The [member] list button.
if ($context['allow_memberlist'])
echo '<li', $current_action == 'mlist' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li', $current_action == 'register' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li', $current_action == 'login' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li', $current_action == 'logout' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';
echo '
</ul></div>';
}
Try the attached file.
Your index.php edited is the one in the root of your forum, but doesn't need to be touched as it would have already been edited.
*back and checking*
That's the ticket! I thought it had something to do with the "chosen" bit.
And you didn't even break it. :D
Break what?
As you could see, there were a few minor changes. The "chosen bit" could have been left there and it wouldn't have mattered, it would have just been un-needed code.
Quote from: Sabre™ on October 29, 2009, 11:48:22 AM
Break what?
As you could see, there were a few minor changes. The "chosen bit" could have been left there and it wouldn't have mattered, it would have just been un-needed code.
Just referencing your "If it ain't broke, I can fix it 'til it is".
It was a lame attempt at kidding but, since I'm a bit under the weather, perhaps I'd better leave the kidding to those who are more adept at it.
lol
He hasn't tried it yet!
So there's still hope. lol ;)
Nah mate, it's 2:50am here and I've just woken up to get a drink, and now I've got the night owls hitting me up on IM, fb and emails, so your joke went whooosh over my head! lol
*yawn*
You just didn't get the right kind of drink. :)
I can't describe how much you guys rock! Thank you much for the help -- all works as designed. That streamlined code and changes did the trick.
Well done! Thanks!
Quote from: Kat9119 on September 15, 2009, 12:08:34 PM
Has anyone attempted to install this on 1.1.10?
Yes. On my forum it's called the Salad Bowl in the main menu. Please check it out if you'd like to see it in action: OurMomSpot.net/community
This is a great mod.
New issue with this has come up. It works fine with BBCode and I've got a few pages formatted with it.
I tried doing one up with html (I want the flexibility) and used the tags to enclose the code but it all comes up wrong and lousy with the code exposed and generally not working.
What experiences have you guys had in working in html with this mod? Any idea what the problem is? Linky: http://leafboxtea.com/pages/?sa=2
This is the code I'm using
[html]
<div style="text-align: center;"><big><span
style="font-weight: bold;"><big>Leafbox Picks</big><br>
<br>
</span></big>
<table style="text-align: left; width: 100%;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="width: 150px;"><small>Leafbox Picks
are featured items of special and rare deals picked out by our staff to
share with you</small></td>
<td></td>
</tr>
</tbody>
</table>
<big><span style="font-weight: bold;">1970's
Cultural Revolution Tuocha<br>
</span><small><small>by</small></small><span
style="font-weight: bold;"><br>
Generation Tea<br>
<br>
</span></big>
<table style="text-align: left; width: 100%;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="width: 250px;">Have you ever want to own
a piece of history? This is your chance with a special 30-year old
Pu-erh tea from Generation Tea.<br>
<br>
This tea has been well kept and most likely comes from a state run
factory in the height of the Chinese Cultural Revolution. <br>
<br>
This is a sheng (raw) tea, and the leaves are very dark when steeped
with some deterioration. Many other old teas exhibit the deep dark wet
color, there is no off or dank taste with this tea. This is a piece of
history that reveals a far away forest taste with hints of
ginseng/herbal notes. <br>
<br>
Lasts 5-10 infusions if done well and quickly. There are no original
wrappers on the tuo's. The paper wrapper was added later to help
preserve the integrity of each tuocha. The rice paper wrappers are
stamped with a traditionally inked chop indicating "Aged Pu-erh Tuocha
tea". For those that are in search of Pu-erh teas with qi, this one
delivers. <br>
<br>
We recommend a full 10g per leaf set to realy unleash the depth of this
historic tea.<br>
<br>
</td>
<td></td>
<td
style="vertical-align: top; text-align: center; width: 250px;"><img
style="width: 219px; height: 165px;" alt=""
src="http://www.generationtea.com/store/images/DSC0001070tuo216.JPG"><br>
<br>
<img style="width: 219px; height: 197px;" alt=""
src="http://www.generationtea.com/store/images/DSC0000870tuo216.JPG"><br>
<br>
<img style="width: 219px; height: 199px;" alt=""
src="http://www.generationtea.com/store/images/DSC0000570tuo216.JPG"></td>
</tr>
</tbody>
</table>
<big><span style="font-weight: bold;"></span></big></div>
[/html]
hrm ... love this mod. Extremely useful.
One question though .... i'm trying to change the link that the mod creates in the menu from a text link to an image and i'm admittedly brain dead on it. I've tried a couple of variants but nothing seems to work. I'm on SMF 1.1.11 with a heavily modified version of the Babylon theme. Here's the code from the index.template.php that the mod generated:
// Show the [pages] button.
global $user_info, $modSettings;
if ($user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']))
echo ($current_action == 'pages' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pages' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pages">', !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'], '</a>
</td>' , $current_action == 'pages' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
The mod itself does everything it's supposed to and works like a charm ... just ... must .. have .. image button! >.<
Much appreciated in advance!
Cheers!
Quote from: Prometheus Fire on December 23, 2009, 01:16:43 PM
New issue with this has come up. It works fine with BBCode and I've got a few pages formatted with it.
I tried doing one up with html (I want the flexibility) and used the tags to enclose the code but it all comes up wrong and lousy with the code exposed and generally not working.
What experiences have you guys had in working in html with this mod? Any idea what the problem is? Linky: http://leafboxtea.com/pages/?sa=2
This is the code I'm using
[html]
<div style="text-align: center;"><big><span
style="font-weight: bold;"><big>Leafbox Picks</big><br>
<br>
</span></big>
<table style="text-align: left; width: 100%;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="width: 150px;"><small>Leafbox Picks
are featured items of special and rare deals picked out by our staff to
share with you</small></td>
<td></td>
</tr>
</tbody>
</table>
<big><span style="font-weight: bold;">1970's
Cultural Revolution Tuocha<br>
</span><small><small>by</small></small><span
style="font-weight: bold;"><br>
Generation Tea<br>
<br>
</span></big>
<table style="text-align: left; width: 100%;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="width: 250px;">Have you ever want to own
a piece of history? This is your chance with a special 30-year old
Pu-erh tea from Generation Tea.<br>
<br>
This tea has been well kept and most likely comes from a state run
factory in the height of the Chinese Cultural Revolution. <br>
<br>
This is a sheng (raw) tea, and the leaves are very dark when steeped
with some deterioration. Many other old teas exhibit the deep dark wet
color, there is no off or dank taste with this tea. This is a piece of
history that reveals a far away forest taste with hints of
ginseng/herbal notes. <br>
<br>
Lasts 5-10 infusions if done well and quickly. There are no original
wrappers on the tuo's. The paper wrapper was added later to help
preserve the integrity of each tuocha. The rice paper wrappers are
stamped with a traditionally inked chop indicating "Aged Pu-erh Tuocha
tea". For those that are in search of Pu-erh teas with qi, this one
delivers. <br>
<br>
We recommend a full 10g per leaf set to realy unleash the depth of this
historic tea.<br>
<br>
</td>
<td></td>
<td
style="vertical-align: top; text-align: center; width: 250px;"><img
style="width: 219px; height: 165px;" alt=""
src="http://www.generationtea.com/store/images/DSC0001070tuo216.JPG"><br>
<br>
<img style="width: 219px; height: 197px;" alt=""
src="http://www.generationtea.com/store/images/DSC0000870tuo216.JPG"><br>
<br>
<img style="width: 219px; height: 199px;" alt=""
src="http://www.generationtea.com/store/images/DSC0000570tuo216.JPG"></td>
</tr>
</tbody>
</table>
<big><span style="font-weight: bold;"></span></big></div>
[/html]
When using HTML, for some reason it works better like this:
[html]<div style="text-align: center;"><big><span style="font-weight: bold;=""><big>Leafbox Picks</big><br><br></span style="font-weight:></big><table style="text-align: left; width: 100%;" cellpadding="2" border="0" cellspacing="2"> <tbody> <tr> <td style="width: 150px;"><small>Leafbox Picksare featured items of special and rare deals picked out by our staff toshare with you</small></td> <td></td> </tr> </tbody></table><big><span style="font-weight: bold;">1970'sCultural Revolution Tuocha<br></span><small><small>by</small></small><span style="font-weight: bold;=""><br>Generation Tea<br><br></span style="font-weight:></big><table style="text-align: left; width: 100%;" cellpadding="2" border="0" cellspacing="2"> <tbody> <tr> <td style="width: 250px;">Have you ever want to owna piece of history? This is your chance with a special 30-year oldPu-erh tea from Generation Tea.<br> <br>This tea has been well kept and most likely comes from a state runfactory in the height of the Chinese Cultural Revolution. <br> <br>This is a sheng (raw) tea, and the leaves are very dark when steepedwith some deterioration. Many other old teas exhibit the deep dark wetcolor, there is no off or dank taste with this tea. This is a piece ofhistory that reveals a far away forest taste with hints ofginseng/herbal notes. <br> <br>Lasts 5-10 infusions if done well and quickly. There are no originalwrappers on the tuo's. The paper wrapper was added later to helppreserve the integrity of each tuocha. The rice paper wrappers arestamped with a traditionally inked chop indicating "Aged Pu-erh Tuochatea". For those that are in search of Pu-erh teas with qi, this onedelivers. <br> <br>We recommend a full 10g per leaf set to realy unleash the depth of thishistoric tea.<br> <br> </td> <td></td> <td style="vertical-align: top;="" text-align:="" center;="" width:="" 250px;=""><img style="width: 219px;="" height:="" 165px;="" alt="" src="http://www.generationtea.com/store/images/DSC0001070tuo216.JPG"><br> <br> <img style="width: 219px; height: 197px;" alt="" src="http://www.generationtea.com/store/images/DSC0000870tuo216.JPG"><br> <br> <img style="width: 219px; height: 199px;" alt="" src="http://www.generationtea.com/store/images/DSC0000570tuo216.JPG"></img style="width:></td style="vertical-align:> </tr> </tbody></table><big><span style="font-weight: bold;"></span></big></div>[/html]
Quote from: willerby on August 06, 2009, 01:52:01 PM
Quote from: Realinfo on May 16, 2009, 03:49:51 AM
Yes sir........... that's ok..... but, but.......... I need two SETS of dozen pages............... See in one set I will get 13 pages to put radios........... in second sets, I want to put you tube videos.......... like that............. may I need more than 2 sets. but now atleast I need two sets of dozen pages............... help..............
I needed the same. I run two Clubs on one site and wanted a set of pages for each that coped with html and BBC and used a similar navigation style to the forum HELP pages.
Today I went through all the parse files manually and changed all references to bakers_dozen_/... to bakers_dozen2_/..., changed the sub actions from sa=pages to sa=pages2, renamed BakersDozen2.php and BakersDozen2.template.php (and changed the references inside those files) and finally amended and uploaded the add_default_settings.php to the forum root directory.
Uploaded all files, replacing and creating new as necessary, ran add_default_settings from my browser and emptied the cache from Admin.
Worked a dream. Now have two examples of Bakers Dozen in my Modifications tab of Admin and can call the pages using /index.php?action=pages2;sa=1...2...3 etc. And of course you get the top menu in the title.
Just take care and rename all systematically.
W
Great idea! Do you mind packing it?
For RC2 only.
I managed to make a second set of this mod. For the pros out there, do you mind telling me why is not saving my settings in admin when creating pages?
It installs just fine. Renamed everything to bakers_dozen2 in all files and coding but no go. ???
File Attached.
Thanx,
Mick.
Maybe you should rename that attached file if it performs the before mentioned function, so it doesn't confuse anybody.
Even better would be a to put it in its own thread.
In relation to your query, did you make the edits for the db?
Quote from: Sabre™ on January 28, 2010, 05:40:12 PM
Maybe you should rename that attached file if it performs the before mentioned function, so it doesn't confuse anybody.
Even better would be a to put it in its own thread.
In relation to your query, did you make the edits for the db?
I think so...
<?php
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');
updateSettings(array(
'dozen_pages2_enable_guest_access' => 1,
'dozen_pages2_enable_member_access' => 1,
));
if(SMF == 'SSI')
echo 'Database settings successfully made!';
?>
Hrm ... ok, so I solved my initial question on my own through various bouts of trial and error, but I have another question, if I may ..
When using additional pages, is it possible to remove the links that the mod generates to all the other pages? Currently, I have 3 custom pages, all of widely varying content with their own links from the main menu ... I'd really like users to not see the links that the mod generates with each additional page. =/
Much thanks in advance
Cheers!
If I understand correct, you want to remove where it says: *Page 1 *Page 2 etc etc on the pages themselves?
If so, there are a few ways of achieving this depending on how you'd like the page displayed visually.
Where you make the change is in the DozenPages.template.php
To display the pages without that 'title bar' and no border, you change the code in the template to
function template_main()
{
global $context;
/* echo '
<div class="tborder" style="margin-top: 1ex;">
<div class="helpmenu titlebg" style="padding: 4px;">
', $context['dozen_pages_menu'], '
</div> */
echo '
<div style="padding: 2ex;" id="helpmain" class="windowbg2">
', $context['dozen_pages_contents'], '
</div>
</div>
';
}
Or to keep a border around the page you change it to
function template_main()
{
global $context;
echo '
<div class="tborder" style="margin-top: 1ex;">
<div style="padding: 2ex;" id="helpmain" class="windowbg2">
', $context['dozen_pages_contents'], '
</div>
</div>
';
}
There are others way to achieve this, and other visual options you have, but these are the more simple options, and will achieve what you desire, if I read your post right ;)
Thanks a billion, Sabre. Your second tip was exactly what I needed.
You're a super hero. ;D
Cheers!
Always glad to help buddy.
Enjoy :)
Quotei'm trying to change the link that the mod creates in the menu from a text link to an image a
hi reliquary or anyone! i see that u sorted this trial n error - can u advise me how to do this?
( i'm using 1.1.11 with custom themes - corto and adagio with tp 1 beta 4)
i've manually added code to index template in the custom themes, but only text "pages" appears in menu so far ..
any help appreciated thx
Hello all,
I love this mod but i am having some issues on one of my sites.
I am using heavily moded SMF 1.1.11 with Black Rain V2 theme by Crip. I always seem to have issue with the menu buttons on manual edits.
I tried using <span> as all the other button on this theme use but i keep getting errors no matter where i place it. I just don't understand the code enough.
attached is my index.template.php file and a picture of what it looks like now.
Can someone help me with the proper code to display the menu button (named Glamis) correctly? Thanks!
how can i make this script working on one of the pages??
<script type='text/javascript'> playid='4428';uriid='tv'; width='630px';</script><script type='text/javascript' src='http://www.tvembed.com/player/tvembed_embed.js'></script>
Quote from: Swayforth on April 18, 2010, 10:47:06 AM
Hello all,
I love this mod but i am having some issues on one of my sites.
I am using heavily moded SMF 1.1.11 with Black Rain V2 theme by Crip. I always seem to have issue with the menu buttons on manual edits.
I tried using <span> as all the other button on this theme use but i keep getting errors no matter where i place it. I just don't understand the code enough.
attached is my index.template.php file and a picture of what it looks like now.
Can someone help me with the proper code to display the menu button (named Glamis) correctly? Thanks!
The theme you are using, does it have its own language files or does it use the default ?
Afro thanks for the reply.
It uses the default
Hi Guys anyone install this on SMF 2.0 RC3 or will there be an update for it
Thanks
Rob
Quote from: welshbikers on May 04, 2010, 03:44:54 PM
Hi Guys anyone install this on SMF 2.0 RC3 or will there be an update for it
Thanks
Rob
It already works on RC3.
1- Download the RC2 package from the mod site.
2- Go into the BROWSE PACKAGES PAGE on your forum.
3- At the bottom right side of page there is a link that says ADVANCED.
4- Click on ADVANCED and more info will appear.
5- Change the textbox info from "SMF 2.0 RC3" to "SMF 2.0 RC2".
6- Hit APPLY.
7- From the DOWNLOAD PACKAGES PAGE on your forum you can just upload the package as normal and install.
8- Once finished, go back and change the RC2 to RC3 in step #5 above.
Works like a charm!
I got it to install on RC3 first time without need for Emulation. Give it a shot, Welshbikers, then if not use C4G-TK's workaround.
Hey guys I was wondering if it's possible to have a DP tab at the top auto direct to my website's twitter page?
DP Tab?
I believe this is not the right mod for what you are asking.
A DP tab = A Dozen Pages tab. I'll name it Twitter and I want it to auto direct to my twitter page...
Ah I get ya.
No the mod will only give you more pages which can be used with the forum.
Quote from: Brack1 on June 06, 2010, 07:13:55 PM
Ah I get ya.
No the mod will only give you more pages which can be used with the forum.
Damn. I;m also noticing that it actually doesn;t add mnu buttons across the top. It adds a master tab which the other pages are only sub tabs of. Can this be fixed?
No.
This is how the mod is supposed to work.
Ca n you recommend a mod that adds separate Menu tabs across the top for custom pages?
http://custom.simplemachines.org/mods/index.php?mod=2564
Hello! Very excited to use this mod on our freshly updated RC3 smf forum! I'm glad to hear it works for this version!
Having a problem with installation:
I get the Test Failed message on the first modification: ./Sources/Subs.php
I manually changed that part in that file, but it gave back the same failed message.
I did the Browse Packages -> Advanced -> change it over to RC2 thing as well.
Here is that part of my Sub.php file, but I have also attached the whole thing.
'help' => array(
'title' => $text['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),
'pages' => array(
'title' => !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'],
'href' => $scripturl . '?action=pages',
'show' => $user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']),
'sub_buttons' => array(
),
),
Thank you very much for your help!
Mabley
can we see your forum please.
www.absitomen.com
8)
Has the mod been enabled?
( Thought I would try and see it)
( I'm not an expert on coding)
I have not gone through with the install because of this warning message that appears when tests fail:
QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
What other mods do you have?
Simple Portal & SubAccounts
Mabley, you might try pulling your Subs.php from your server onto your desktop. Then upload a clean, fresh Subs.php from your RC3 zip to your server and proceed with the installation. If you are successful, then place this mod's manual RC3 edits in the Subs.php you saved onto your desktop and then upload it to your server. (This will not only allow this mod to function properly, but will preserve the edits of any other mods you have that use this file.)
You might want to revert your emulator back to RC3 (if you've changed it) before you begin.
:)
Guys, please read mableys primary post, your reply's are of steps already taken, or unnecessary.
Although you have already manually installed the code to your subs.php, this will not stop the error popping up on installation. The idea would be to click install even though it is showing the error, Then replace your subs.php with the one you've manually edited. note: if uninstalling the mod, you will have to manually remove that code.
I can't see why it wouldn't accept the installation as the layout you've provided is correct.
Anyhow, the above method will work for you.
Quote from: Sabre™ on July 01, 2010, 10:14:12 PM
Guys, please read mableys primary post, your reply's are of steps already taken, or unnecessary.
Although you have already manually installed the code to your subs.php, this will not stop the error popping up on installation. The idea would be to click install even though it is showing the error, Then replace your subs.php with the one you've manually edited. note: if uninstalling the mod, you will have to manually remove that code.
I can't see why it wouldn't accept the installation as the layout you've provided is correct.
Anyhow, the above method will work for you.
I'm afraid I opted for my old trick; having assumed that Mabley had stopped after the warning. :) Sorry, if I missed it.
Time for old men to shuffle off to bed.
lol Yeah I was surprised you especially missed that, a rare event from you mate, but we all do it.
Rest well buddy :)
Quote from: Sabre™ on July 01, 2010, 10:21:53 PM
lol Yeah I was surprised you especially missed that, a rare event from you mate, but we all do it.
Rest well buddy :)
It has nothing to do with Scotch. O:)
*grin*
Goodnight, mate.
Thank you everyone for your help! I ultimately was able to get thing sorted with gbsothere's advice. I was just all worried about installing past the error message. But I double-checked my edits in the Subs.php file for all my mods, so I was sure everything was fine.
Just getting one error on RC3. Anyone else getting the error or know of a fix?
3: * DozenPages.template.php *
4: ***********************************************************************************
5: * *
6: * Template file for "Dozen Pages" modification. *
7: * *
8: * Copyright (c) 2008-2009 by Deprecated (at) Earthlink (dot) net. *
9: * All rights reserved. Redistribution prohibited except at SimpleMachines.org *
10: * *
11: **********************************************************************************/
12:
13: function template_main()
14: {
15: global $context;
16:
17: echo '
18: <div class="tborder" style="margin-top: 1ex;">
19: <div class="helpmenu titlebg" style="padding: 4px;">
20: ', $context['dozen_pages_menu'], '
21: </div>
22: <div style="padding: 2ex;" id="helpmain" class="windowbg2">
==>23: ', $context['dozen_pages_contents'], '
24: </div>
25: </div>
26: ';
27: }
Did you manually make the edits to your other templates?
Check that all the edits were made correct in their designated positions.
Quote from: Sabre™ on July 17, 2010, 02:51:25 AM
Did you manually make the edits to your other templates?
Check that all the edits were made correct in their designated positions.
I've had the error show up more than once.
Am I reading the URL correct though in the error log? Is it stating that page 5 is pulling the error?
The reason that I am asking is because I double checked every edit and not just the theme edit. Everything was correct. I went into the admin section where you type ion your pages and I don't have any information on page 5. ??? I don't even have that page checked to show since there isn't any info on it. I went ahead and cleared the forum cache again and will report back if it shows up again. But, after looking at the URL, I found it odd that it would say that page 5 is where the error flags.
I tried installing it for 1.1.11 and got this:
Execute Modification ./Themes/default/index.template.php Test failed
Is it the default them you use on your forum?
I have a default theme and a customized theme.
You may have to manually edit the default theme so the mod shows.
Also edit your custom themes index.template.php if you wish the button to be visible there also.
Hi all,
I've recently installed this MOD, as well als the SMF Staff MOD and I'd really like to combine these two MODS, so the Staff list becomes one of the Dozen+1 pages.
Anyone?
Big fan of this mod and we love it at our site.
QUESTION: I'd like to make the text boxes for entering in the content bigger. Where can I find that? Right now they are tiny little boxes. I would like to make them bigger so we can actually edit the pages there on the page, and not have to take it to a text editor.
Powered by SMF 2.0 RC4 |
Hereby an Dutch translation for this Mod
// Bakers dozen pages
$txt['dozen_pages'] = 'Dozen Pagina\'s';
$txt['dozen_pages_cat'] = 'Dozen Pagina\'s';
$txt['dozen_pages_contents_1'] = 'Pagina 1 inhoud:';
$txt['dozen_pages_contents_2'] = 'Pagina 2 inhoud:';
$txt['dozen_pages_contents_3'] = 'Pagina 3 inhoud:';
$txt['dozen_pages_contents_4'] = 'Pagina 4 inhoud:';
$txt['dozen_pages_contents_5'] = 'Pagina 5 inhoud:';
$txt['dozen_pages_contents_6'] = 'Pagina 6 inhoud:';
$txt['dozen_pages_contents_7'] = 'Pagina 7 inhoud:';
$txt['dozen_pages_contents_8'] = 'Pagina 8 inhoud:';
$txt['dozen_pages_contents_9'] = 'Pagina 9 inhoud:';
$txt['dozen_pages_contents_10'] = 'Pagina 10 inhoud:';
$txt['dozen_pages_contents_11'] = 'Pagina 11 inhoud:';
$txt['dozen_pages_contents_12'] = 'Pagina 12 inhoud:';
$txt['dozen_pages_contents_13'] = 'Pagina 13 inhoud:';
$txt['dozen_pages_enable_guest_access'] = 'Activeer gasten toegang:';
$txt['dozen_pages_enable_member_access'] = 'Activeer leden toegang:';
$txt['dozen_pages_enable_page_1'] = 'Pagina 1 activeer:';
$txt['dozen_pages_enable_page_2'] = 'Pagina 2 activeer:';
$txt['dozen_pages_enable_page_3'] = 'Pagina 3 activeer:';
$txt['dozen_pages_enable_page_4'] = 'Pagina 4 activeer:';
$txt['dozen_pages_enable_page_5'] = 'Pagina 5 activeer:';
$txt['dozen_pages_enable_page_6'] = 'Pagina 6 activeer:';
$txt['dozen_pages_enable_page_7'] = 'Pagina 7 activeer:';
$txt['dozen_pages_enable_page_8'] = 'Pagina 8 activeer:';
$txt['dozen_pages_enable_page_9'] = 'Pagina 9 activeer:';
$txt['dozen_pages_enable_page_10'] = 'Pagina 10 activeer:';
$txt['dozen_pages_enable_page_11'] = 'Pagina 11 activeer:';
$txt['dozen_pages_enable_page_12'] = 'Pagina 12 activeer:';
$txt['dozen_pages_enable_page_13'] = 'Pagina 13 activeer:';
$txt['dozen_pages_not_configured'] = ' - not configured';
$txt['dozen_pages_not_configured_message'] = 'Deze mod is nog niet door de Amdin geconfigureerd.';
$txt['dozen_pages_page_name_default'] = 'Pagina ';
$txt['dozen_pages_settings_title'] ='Dozen Pages';
$txt['dozen_pages_tab_default'] = 'Pagina\'s';
$txt['dozen_pages_tab_label'] = 'Dozen Pagina\'s tab label:';
$txt['dozen_pages_title_1'] = 'Pagina 1 titel:';
$txt['dozen_pages_title_2'] = 'Pagina 2 titel:';
$txt['dozen_pages_title_3'] = 'Pagina 3 titel:';
$txt['dozen_pages_title_4'] = 'Pagina 4 titel:';
$txt['dozen_pages_title_5'] = 'Pagina 5 titel:';
$txt['dozen_pages_title_6'] = 'Pagina 6 titel:';
$txt['dozen_pages_title_7'] = 'Pagina 7 titel:';
$txt['dozen_pages_title_8'] = 'Pagina 8 titel:';
$txt['dozen_pages_title_9'] = 'Pagina 9 titel:';
$txt['dozen_pages_title_10'] = 'Pagina 10 titel:';
$txt['dozen_pages_title_11'] = 'Pagina 11 titel:';
$txt['dozen_pages_title_12'] = 'Pagina 12 titel:';
$txt['dozen_pages_title_13'] = 'Pagina 13 titel:';
// End Dutch Baker Modifications
I like this Mod and thanks for making it
was this mod abandoned ?, it was a very useful mod
I'm working on a modified version of the Post It SMF Theme here:
http://autismforum.pixelita.net
I modified the theme template to place the link to the Baker's Dozen Pages "Page" (in my case called "Menu") in the top nav. Works just fine. The ONLY issue I have -- and this is something the mod developer should consider in any event -- is the HARD CODED style within the mod itself which causes the following code to be rendered:
<div class="tborder" style="margin-top: 1ex;">
Styles should be left to the stylesheet; not hard-coded into the template. The site would look perfect BUT FOR this piece of styling code. I tried modifying the template, and rezipping the entire distro, but when I tried to install that modified zip file, SMF bellyached that the file was corrupted. Any workarounds? I mean, if you just put a STYLE HOOK there, then folks could adjust it as they need. :)
Thanks.
Can't you mod this into :
<div class="tborder" id="pages">
or so?
Works on 2.0 if anyone was wondering
Yup, working fine in 2.0.1
QUESTION: Any idea on how to get the pages to show up in a drop-down from the nav menu?
How can I change the page title colors. They presently use:
/* Sometimes there will be an error when you post */
.error
{
color: red;
...unless of course, this is an actual error.
Any ideas?
Thanks as per usual.
-s.w
tHave you tried replacing red with another colour?
Quote from: Brack1 on November 26, 2011, 06:00:34 PM
tHave you tried replacing red with another colour?
I can't find the page. (I know there's a bad joke in there somewhere.) All I can locate is a /Sources/DozenPages.php and a /Themes/default/DozenPages.template.php.
If you're asking me if I altered the .error CSS, then no, I haven't. I notice also that my "The Rules" mod uses the same .error CSS for the page(s) title that that mod creates.
If you have further instruction, I'll gladly cooperate.
-s.w
I have installed this, but because I already have the Menu Editor Lite mod installed, I am not seeing the new tab on the top. Please can you tell me what the URL of the tab and pages would be, in order to add the button manually. Thank you :)
This modification is scheduled for updating within the next few days. Please let me know if you have any issues that I must address.
I am using the Dozen Pages mod on my site. Although the first page I entered works well, it seems some of the pages are bugged and dont save/keep the text I input. Anyone has encountered such a problem before? Any solutions?
Thank you very much
Try to update your pages with simple material to make sure it isn't your content itself that is causing the problems.
Also note this mod has not beeen updated to use the new integration hooks yet, although I doubt that is your problem.
I have a question about page content, Deprecated.
I want to put a news widget on my page.
I know you said to enclose all HTML with BBC HTML tags. If I do use the BBC HTML tags and put the widget info between them, nothing shows up on the page. However (and here's the odd part) if I go to Admin-->News and Newsletters and paste that same exact code into the news text field, enclosed in the BBC HTML tags, it does show up on the forum's news area. The code below is exactly how I pasted it onto the new page, which doesn't show. It's also exactly how I pasted it into News, which does.
Should I add some sort of extra tags around the CSS and Javascript? I would think that since it's viewable on SMF's News feature, it should be viewable on the page, if I could just sort it. :-\
[html]<!--start news gadget -->
<style type="text/css">
#bm1465081170754 div.bmfeedItem{margin-bottom:1em;overflow:hidden;zoom:1}
#bm1465081170754 img{float:left;margin-right:5px;}
#bm1465081170754 div > p:first-child{margin-top:0}
#bm1465081170754 div > p:last-child{margin-bottom:0}
</style><script type="text/javascript" id="bm1465081170754_scr">
(function(){
var id="bm1465081170754",d=document.createElement("div");d.id=id;
var me=document.getElementById(id+"_scr");me.parentNode.insertBefore(d,me);
var s=document.createElement("script");s.type="text/javascript";s.charset="utf-8";
s.src="http://www.cstnews.com/bm~feed.js?12-90;count=5;desc=1;image=1;target=;id=bm1465081170754";
setTimeout(function(){d.appendChild(s);d=me=s=null;},1);})();
</script>
<!--end news gadget -->[/html]
SMF 2.0.11 default No errors
The code is too complex for the baker's dozen mod. Why not just post it as the news box?
Also,. don't mistake me for somebody who has any expertise in web coding. I have some experience getting this stuff to work from several years ago, but even then it was with the help of the folks around here. I'm just trying to be helpful if possible.
Quote from: Tiribulus on June 05, 2016, 10:43:42 PM
The code is too complex for the baker's dozen mod. Why not just post it as the news box?
Also,. don't mistake me for somebody who has any expertise in web coding. I have some experience getting this stuff to work from several years ago, but even then it was with the help of the folks around here. I'm just trying to be helpful if possible.
Well... I did have it in the news box at first, but it's so large that it pushed the forum way down. I've been thinking of making a new page with SimplePortal but, again, it's not showing up. I guess I'm just curious as to why SMF's News feature allows it to show, just by sandwiching the code between two BBC HTML tags but SMF mods don't? It's real head-scratcher. :-[
Well, like I say, I'm no expert, but I know a mod doesn't necessarily have the same code rendering capability as SMF itself depending on how it's written.
Quote from: Tiribulus on June 07, 2016, 12:02:17 AM
Well, like I say, I'm no expert, but I know a mod doesn't necessarily have the same code rendering capability as SMF itself depending on how it's written.
I finally ended up making a new page in SimplePortal and pasting the code in there. I didn't need any tags other than what's in the widget itself. It doesn't show up on Preview, but it does render correctly when you create the page. Then I put a button on the menu that links directly to the page and Bob's Your Uncle! :D
Thanks, Tiribulus. :)
You bet.
Installing on default theme I get an error on the ./Sources/Admin.php
Can't help you. The mod wasn't designed to be compatible with HTML BBcode tags. As previously said, use News.
----
QuoteInstalling on default theme I get an error on the ./Sources/Admin.php
Likely another mod package stepped on the search key.
Never install a mod if you get an error indication before you hit install.
To fix this it either requires more expertise than you have or more patience than I have. My mods do not step on search keys.
Even then, the way that old mods work (pre-hook), mods are sensitive to order of installation and often cause conflicts, either during installation or removal.
I'll be going 100% hook based mods when SMF 2.1 stable is released.
hello people,
I assume that this mod is meant to allow me add extra tabs to my menu.
I uploaded and installed it but no menu tab is showing.
I got one test failed error while installing.
does anybody have help for me?
Quote
I got one test failed error while installing.
well, when you get an error and install anyway - why do you expect things to work?
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Also, you have to SET UP the pages in the admin, modifications section...
This doesn't just put tabs... it defines the main page content in a simplistic editor (not wysiwyg).
read the actual mod description and instructions
http://www.simplemachines.org/community/index.php?topic=271527.0
Quote from: uamsameter
I got one test failed error while installing.
Did you correct the issue and manually apply the bits of the mod that failed to apply?
No, I will do that later
well, how do you expect it to work if you don't make all of the code changes?
Quote from: uamsameter on September 06, 2016, 11:49:18 AM
hello people,
I assume that this mod is meant to allow me add extra tabs to my menu.
I uploaded and installed it but no menu tab is showing.
I got one test failed error while installing.
does anybody have help for me?
Never install a mod if an error test fails, excepting in themes you don't use and won't ever use.
I know exactly what happened. Somebody else's mod crapped the install point that adds the tab, I think that may be Admin.php if my memory serves me.
Fixing it is a much harder problem. You have to find what got stepped on and fix that, or uninstall, reinstall and note what file and what line or mod, and then manually edit that in.
Baker's Dozen installs one tab giving access to 13 pages you add your own content to. You can have anywhere between 1 to 13 pages. Thus the mod's name.
As stated above, you can configure the mod but you can't access it until you fix your mod package collision.
OK, this is going to get a little weird...... :P
Deprecated, you asked me to post here so here goes.......
http://www.simplemachines.org/community/index.php?topic=548489.msg3890766#msg3890766
Quote
One button (with a name you pick) on the main menu then clickable links to as many pages as you have enabled, maximum 13. (Pages not enabled don't appear.) The links run across the top of the page you get when you click the main button and you pick what each link says, and fill in the contents with your text. Just think of it as a button that links to up to 13 pages you can flip back and forth between.
In the topic linked above you had given me a link to the add tabs mod. Later you described it's functions as the Bakers Dozen mod. So long story short..... the add tabs mod works nothing like the Bakers Dozen but once I installed Bakers Dozen it works exactly as you described. I like it and I'm really glad you have any of the links open in a new tab. It works good and I got no warnings when installing. I also do not have any errors spamming my error log as I did when I added my own custom button. An added benefit of using Bakers Dozen over adding a custom button with sub buttons is Bakers Dozen will not see any of the lack of functionality on mobile devices. :)
Thanks!
PS, does your donations button allow for donations through Paypal?
Sorry I got confused, but it appears to have worked out. If it's the topic I'm thinking, the one where you were going to manually edit code, then I'm glad you found a mod that does it with no code editing.
No I don't accept donations any more. The only reason the button is still there is (1) can't edit the OP in my support topic, and (2) too lazy to go through all the mods and edit out the donation links. I got so few donations that the difference few and zero was insignificant to me. Thanks anyway!
No problem and thanks for creating the Bakers Dozen.
QuoteI got so few donations that the difference few and zero was insignificant to me.
Thats :(