Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: fishinreeltime.com on April 01, 2014, 09:34:53 PM

Title: /Sources/Subs.php file
Post by: fishinreeltime.com on April 01, 2014, 09:34:53 PM
how/where do I access my /Sources/Subs.php file?  Do I access it from FTP at my host? I cant seem to locate it.
Title: Re: /Sources/Subs.php file
Post by: mashby on April 01, 2014, 09:43:39 PM
FTP or File Manager would do the trick.
Title: Re: /Sources/Subs.php file
Post by: fishinreeltime.com on April 01, 2014, 09:54:29 PM
Im in my ftp file manager and I cant find that file name. When I go to the sources file in my ftp manger I don't see anything that says /Subs.php file.
Title: Re: /Sources/Subs.php file
Post by: mashby on April 01, 2014, 09:56:33 PM
It might be below all of the other Subs-*.php files...it has to be there otherwise your forum might operate so great.
Title: Re: /Sources/Subs.php file
Post by: fishinreeltime.com on April 01, 2014, 10:04:52 PM
the ftp file manager page is attached if you could help me find it, it would be greatly appreciated.
Title: Re: /Sources/Subs.php file
Post by: mashby on April 01, 2014, 10:13:11 PM
OK, see the scroll bar on the right? Drag that down...
Title: Re: /Sources/Subs.php file
Post by: fishinreeltime.com on April 01, 2014, 10:22:00 PM
it was dragged down to the bottom when I took the snapshot
Title: Re: /Sources/Subs.php file
Post by: mashby on April 01, 2014, 10:24:33 PM
OK, this is bit interesting. You are seeing something none of us else can. Without taking a screen shot, can you then scroll down that list and look after anything that starts with Subs-
Title: Re: /Sources/Subs.php file
Post by: fishinreeltime.com on April 01, 2014, 10:31:53 PM
I don't see anything that says subs at all in the sources file. But I do see something like it in the forums file.
Title: Re: /Sources/Subs.php file
Post by: mashby on April 01, 2014, 10:35:21 PM
OK, that's the root of the forum. And your screen shot shows the last visible thing being subscriptions.php. Go to the /Sources directory, scroll down past the Subs- files. Patience is a virtue.
Title: Re: /Sources/Subs.php file
Post by: fishinreeltime.com on April 01, 2014, 10:40:44 PM
when I go to the sources directory I don't see anything that says anything close to subs-files.
Title: Re: /Sources/Subs.php file
Post by: mashby on April 01, 2014, 10:43:52 PM
Is is possible that you could setup a temporary FTP or some kind of account to your site and PM me the details?
Title: Re: /Sources/Subs.php file
Post by: fishinreeltime.com on April 01, 2014, 10:50:12 PM
is it possible that the file could be named something else?
Title: Re: /Sources/Subs.php file
Post by: mashby on April 01, 2014, 10:52:35 PM
No.
Title: Re: /Sources/Subs.php file
Post by: ApplianceJunk on April 01, 2014, 11:11:53 PM
Quote from: fishinreeltime.com on April 01, 2014, 09:34:53 PM
how/where do I access my /Sources/Subs.php file?  Do I access it from FTP at my host? I cant seem to locate it.

Click on your Sources folder I see in your second attachment and search for Subs.php
Title: Re: /Sources/Subs.php file
Post by: br360 on April 02, 2014, 01:16:13 AM
Quote from: fishinreeltime.com on April 01, 2014, 10:04:52 PM
the ftp file manager page is attached if you could help me find it, it would be greatly appreciated.

take a look at that screencap again, and you'll see that the sources are listed alphabetically, and you are only on page 1 of 7 pages for your sources.

Here, take a look- Change your page size to 50, and then click on that > at the far right to go to the next page of your source files, until you find subs.

(http://i59.tinypic.com/uvtyo.png)
Title: Re: /Sources/Subs.php file
Post by: fishinreeltime.com on April 02, 2014, 09:04:27 PM
I found the subs.php file the only thing is im trying to find exactly where I should enter the code.
Title: Re: /Sources/Subs.php file
Post by: ApplianceJunk on April 02, 2014, 09:12:02 PM
What code?
Title: Re: /Sources/Subs.php file
Post by: ApplianceJunk on April 02, 2014, 09:13:41 PM
Seems you have two topics going on what your trying to do...

http://www.simplemachines.org/community/index.php?topic=519627.0
Title: Re: /Sources/Subs.php file
Post by: fishinreeltime.com on April 02, 2014, 09:39:00 PM
I have a paid subscription forum and I am looking for a way to create a tab in the main menu that links directly to the checkout page. I was told to go to the subs.php file and insert the code below. I found the file and now I just wanted to know where I should enter the code in the file. I attached snapshots of the relevant section of code and I just wanted to know exactly where it needed to be entered.




        'subscribe' => array(
      'title' => '<span style="font-weight: bold;">Subscribe</span>',
      'href' => $scripturl . '?action=profile;area=subscriptions',
      'show' => (!$user_info['is_guest']),
      'sub_buttons' => array(
      ),
   ),







Title: Re: /Sources/Subs.php file
Post by: Sir Osis of Liver on April 02, 2014, 10:56:43 PM
Hey, that's my code!

If you'd stayed with your original thread, instead of starting two more, you'd already be done with this.  That code goes into the button array, which is near the end of Subs.php.  Search for 'All the buttons', that's the top of the array.  Save a backup of the file before you tinker with it.
Title: Re: /Sources/Subs.php file
Post by: fishinreeltime.com on April 03, 2014, 07:37:30 PM
I just need to know where I should enter the code in this file. If someone could help me it would be greatly appreciated. Thanks
Title: Re: /Sources/Subs.php file
Post by: Kindred on April 03, 2014, 09:51:52 PM
Quote from: Krash. on April 02, 2014, 10:56:43 PM
Hey, that's my code!

If you'd stayed with your original thread, instead of starting two more, you'd already be done with this.  That code goes into the button array, which is near the end of Subs.php.  Search for 'All the buttons', that's the top of the array.  Save a backup of the file before you tinker with it.