News:

Wondering if this will always be free?  See why free is better.

Main Menu

Quick Question

Started by mattchewone, May 02, 2009, 03:55:47 PM

Previous topic - Next topic

SoLoGHoST

Ok, make sure you uninstall that MOD Completely before installing my MOD.  Should have it up sometime tonight.  So all of the EDITS you did to the files should be undone before installing my MOD.

mattchewone

I havent installed the other mod to my main site, nor have i made any edits.

I look forward to installing your mod. Hopefully it will work with all the other mods i have installed.

SoLoGHoST

It should as I am trying to make this as easy to install as possible.  But then again... I can only test it on a fresh install of SMF.

SoLoGHoST

#23
Ok, it's all yours, just finished uploading it.  You can get it here ==>  Category View MOD

Didn't bother with the Admin option for setting the layouts.  You can set the layout in the Category.template.php file.  variable called:  $modSettings['boards_vbulletin']

If = 1, looks like vbulletin, if = 0, looks like SMF.

Well, will definately improve on this MOD later on down the road, but this should work perfect for you.

Please let me know how it goes.

Solomon

mattchewone

I got this error when i tried to upload it

Package upload failed due to the following error:
"Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF."

SoLoGHoST

huh? 
So you extracted the contents of the .zip archive somewhere on your pc? and you uploaded the files to your server relative to the root of the SMF folder right?  the only files that you should be uploading are the Category.php (into the ./Source Directory), Category.template.php (into the ./Themes/default Directory and any other themes directories you have), and the Language files found in the language folders of each of your themes.

Have you done the edits for all of the EDIT.txt files in there??

Is there a page where I can take a look at so I can see what you are seeing?

mattchewone

I think i have done something wrong lol.

Can you explain how to install it as i thought i just needed to upload via package manager. Now im thinking that was wrong.

SoLoGHoST

Ok, you definately didn't install it correctly.

The following is detailed instructions on how to install this mod:

1. Download the .zip file ==> DOWNLOAD Category View MOD

2. Unzip CategoriesViewMOD.zip and copy all files/folders in there onto another folder on your desktop.

3. Open "How to Install.txt" file found within the files that you extracted and moved to that folder on your desktop.

4.  Follow all instructions in this .txt file.

NOTE:  You will need to download 4 files from your server and edit these files according to the edits specified in:

index.php EDITS.txt
Load.php EDITS.txt
script.js EDITS.txt
and
Subs-BoardIndex.php EDITS.txt

FILES above.

Ok, after you do the edits to these files you will need to reupload them into the same place where you downloaded them from.  Where you download these files are located when you open up each of the .txt files.  So open up the files and you'll see where you need to go to download the file relative to your SMF Root.  This works best for FTP Access, however, if you have an actual built in editor for all files on your server that will work fine also.

Well, I don't know what else to say, the only way it can be any easier is if I did the edits for you myself.

Well, let me know how that works for you.

Solomon

mattchewone

I read the instructions, sorry i didnt realise it was a manual edit. I stupidly assumed i needed to upload it lol.

I have one question i cannot find the index.php can you tell me where it is located. The one i found did not have the suggested part you said i needed to replace.

Thanks once again.

SoLoGHoST

There are 2 index.php files.  1 in the ./Sources Folder relative to your SMF Root and another in the SMF Root Folder (where SSI.php is located).  The index.php file that you should edit is the 1 that is in your SMF Root Folder (where SSI.php is located), however, if you do not find the related code in that file, search and see if you find it in the index.php file that is located in the ./Sources Folder.  If it is not in that folder either, than upload your index.php file that is in your SMF Root directory here and I will have a look at it and do the edits for you.

Cheers :)

SoLoGHoST

mattchewone - Can you let me know if you got it working?  Also, if it's not too much trouble, can you post a link to the site that it is working on?  Thank You.

Going to add a Jump To: Drop Down box, as this is the only thing it is missing ;)

mattchewone

I'll post you up the index.php as i cant find it in either.

Thank you

SoLoGHoST

Ok, did the edits.  By the way I found the code: elseif (empty($_REQUEST['action']))
{
On LINES 287 & 288.

Attached the index.php file for you after doing the EDIT to it.

There you go, are you able to do the other file edits yourself??

SoLoGHoST

#33
Ok, new update available for the Category View MOD.  Now has a Jump To: box on the bottom right.

If you already have done all of the edits to the files mentioned in Version 1.0.0, then all you need to do is the script.js EDITS.txt edits and just overwrite Category.php and Category.template.php with the one's in the new package (Category View 1.1).

You can get the New Update in the same place = Category View MOD - Version 1.1

You can view an example of this working at:  THE SMF 2.0 RC1 TEST SITE

I gotta tell ya, it was a pain in the arse adding the Jump To box!!  But well worth it.  If you register on the test site you will see more things in each Category also :)

Well, had a ton of fun with it.  Don't forget to change $modSettings['boards_vbulletin'] in Category.template.php to equal 1 if you want the Boards listed like VBulletin, otherwise it is already set to 0 (for the default SMF style Category Layout (seen on the index.php page)).

Note:  If you don't know what to do or need help with this, just upload the files in here and I'll do it for you and re-upload them back in here after doing the edits, k?

ENJOY :)

SoLoGHoST

Also, I am working on making this MOD automatically installable from the Admin as a MOD Package, should be done this in a few and re-up it over at GM for you.  Then all you will do is add the Package to SMF in the Admin->Main->Packages->Download Packages->Upload a Package.

Will be right back after this is done :)

SoLoGHoST

#35
Ok, All Set.  I never made a package before using SMF, but I have already tested it very vigorously and it is now packaged up and you can now add it to SMF 2.0 RC1 via Admin->Main->Packages->Download Package->Upload a Package.

Here's the URL again -> Category View MOD 1.2

Also added a drop down for only Admins to see in each Category that gives the Admins the ability to change the layout for that category.  So this makes it possible for each Category to have a different layout (although at the moment there are only 2 layouts - VBulletin & SMF Default).

Well hope you get good use from this MOD as I have put a ton of work into it.  So now it's as easy as pie and you can go ahead and upload it as you tried the first time.

Well, let me know how this goes, k?

Solomon

mattchewone

Hi Solomon,

I have just uploaded to my test site and got these errors

2.   Execute Modification   ./Sources/Load.php   Test failed
   1.   Replace   ./Sources/Load.php   Test failed
   3.   Execute Modification   ./Sources/Subs-BoardIndex.php   Test failed
   1.   Add After   ./Sources/Subs-BoardIndex.php   Test successful
   2.   Replace   ./Sources/Subs-BoardIndex.php   Test failed
   3.   Replace   ./Sources/Subs-BoardIndex.php   Test failed
   4.   Replace   ./Sources/Subs-BoardIndex.php   Test failed
   4.   Execute Modification   ./Themes/default/scripts/script.js   Test failed
   1.   Replace   ./Themes/default/scripts/script.js   Test failed

Thanks

SoLoGHoST

#37
Ok, you must have other MODs that have replaced the code that it is searching for.  Will have to do it manually.  If you want, I'll do the edits for you.  Will just need the following files, before any edits of this MOD...

1. ./Sources/Subs-BoardIndex.php
2. ./Themes/default/scripts/script.js
3. ./Sources/Load.php

4. ./index.php (Tho, I have already edited this 1 for you above..., but if you want, I can do it again)

So if you upload these files, I'll do the edits myself and throw them back on here for you to try them, k?

mattchewone

Here i have attached the files as you requested. What would i need to do to get this mod to work, just upload the edited files? Or do i need to do anything else. Thank you very much

p.s i havent attached index.php as ill use the one above.

SoLoGHoST

Yeah, after I edit them, you'll need to upload the edited files, the Category.php, Category.template.php, Category.english.php, & Category.english-utf8.php.  And then you'll need to run categoryinstall.php from your SMF Root Directory.  Will attach all files you'll need in here when done editing your files.  BRB

Advertisement: