Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 18, 2013, 06:41:28 am

Login with username, password and session length
Members
Total Members: 10755
Latest: henrywilliams0173
Stats
Total Posts: 32348
Total Topics: 5473
Online Today: 50
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 45
Total: 45
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Help for installation on custom theme  (Read 2949 times)
jay.clark
Inline PM Customer
*****
Offline Offline

Posts: 28


Refusing to go quietly, retired and loving it


View Profile WWW
« on: February 21, 2009, 06:54:48 pm »

Hi,

I just installed classifieds and switched back to the default theme to check it out, looks good.

Now I need to add a button the my custom theme, I checked for manual installation instructions on the SMF site, however the mod does not appear to be listed there.

I added my license key here expecting to find some kinda of hints file for adding a button to a custom theme, again no luck.

Have done several searches, using different terms, and cannot seem to find anything relating to adding a classified button to a custom theme.

Can anyone give me a pointer? 

Thanks in advance

jayr - jayc@vegasbdsm.com

Logged

Jay Clark - jayc@vegasBDSM - 702.456.7062
http://www.VegasBDSM.com - A public service, Vegas BDSM provides information and resources by and for the Alternative Lifestyle Communities in Las Vegas and Southern Nevada
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #1 on: February 21, 2009, 07:19:33 pm »

Attach the index.template.php of your custom theme and we can set it up except if it requires a custom graphic button/menu
Logged
jay.clark
Inline PM Customer
*****
Offline Offline

Posts: 28


Refusing to go quietly, retired and loving it


View Profile WWW
« Reply #2 on: February 21, 2009, 08:46:10 pm »

Attach the index.template.php of your custom theme and we can set it up except if it requires a custom graphic button/menu

File attached, kinda curious why this is not something I could do myself, I routinely add buttons to my theme for other mods I have installed.

jayr
Logged

Jay Clark - jayc@vegasBDSM - 702.456.7062
http://www.VegasBDSM.com - A public service, Vegas BDSM provides information and resources by and for the Alternative Lifestyle Communities in Las Vegas and Southern Nevada
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #3 on: February 21, 2009, 09:11:20 pm »

You could just takes more time for me to explain and most of the time each custom theme is different. With SMF 2.0 you would not have to edit the theme at all.

File attached:
Logged
jay.clark
Inline PM Customer
*****
Offline Offline

Posts: 28


Refusing to go quietly, retired and loving it


View Profile WWW
« Reply #4 on: February 22, 2009, 08:24:58 am »

You could just takes more time for me to explain and most of the time each custom theme is different. With SMF 2.0 you would not have to edit the theme at all.

File attached:

I installed the template file and seems to be working, have to finish the configuration to see if any problems crop up.

Couple of things I could use help on

1. I want to insert a banner below the classified bar, I think I need to insert some html in classified.template.php, is this correct ?  Could you cut and paste an example of where to put it. Have attached an image showing where I want to place it.  My user base tends to techno illiterate, I plan on linking the banner to a help system for users

2. I need to use Google Analytics to keep an eye on how this mod is performing for me, can you tell me which file to insert the Analytics code into?

3. In configuring catagories and sub-catagories some of the choices are less than obvious.  I checked the distribution zip file in hopes of finding some clarification/How2 information, is there an operators guide or help file for administrators available ?  Try and find out takes way a lot of time on my part.

jayr - jayc@vegasbdsm.com
Logged

Jay Clark - jayc@vegasBDSM - 702.456.7062
http://www.VegasBDSM.com - A public service, Vegas BDSM provides information and resources by and for the Alternative Lifestyle Communities in Las Vegas and Southern Nevada
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #5 on: February 22, 2009, 08:50:37 am »

1. Code snippet.
Themes/default/classifieds.template.php
Around line 543
Code:
</tr>
</table>
<br />';


// Show the index page blocks

Change to
Code:
</tr>
</table>
<br />';

// Custom banner
echo '<img src="http://www.pahtoimage.com" /><br />';


// Show the index page blocks


2. That would be in themes/default/Classifieds.template.php
Probably would want to add to the copyright function since that is included on every page in the classifieds.

3. Currently there is not a help guide created yet but is planned for future major versions.
Logged
jay.clark
Inline PM Customer
*****
Offline Offline

Posts: 28


Refusing to go quietly, retired and loving it


View Profile WWW
« Reply #6 on: February 22, 2009, 06:39:06 pm »

1. Code snippet.
Themes/default/classifieds.template.php
Around line 543

2. That would be in themes/default/Classifieds.template.php
Probably would want to add to the copyright function since that is included on every page in the classifieds.

3. Currently there is not a help guide created yet but is planned for future major versions.

I was able to get the banner to display, it only shows on the entry page into the classified section, and I would prefer it to show on all pages until someone starts creating a listing, but good enough for now.

Putting the Google Analytic Code inside the copyright function killed the Mod, Google suggests adding it just before the closeing </body> statement, any ideas?

My mom used to say dinner ain't done till the dishes are washed, I used to do custom development in dBASE back in the 80's and early 90's and my projects were not considered complete until the documentation was done.

I am a tech writer by trade these days, and will have to puzzle it out enough to at least be able to create a help system that will allow my technically illiterate users to place adds.  I have in mind something like the basic help function that ships with the core SMF system.

Perhaps when I get it done we can talk about a trade of some kind.

Thanks for the help  -- JayR
Logged

Jay Clark - jayc@vegasBDSM - 702.456.7062
http://www.VegasBDSM.com - A public service, Vegas BDSM provides information and resources by and for the Alternative Lifestyle Communities in Las Vegas and Southern Nevada
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #7 on: February 22, 2009, 10:48:55 pm »

Would need to see how you were putting the analytics code in the template the function.

The code needs to be inside an echo statement  if there are ' quotes mostly likely they will need to be escaped. Such as \' in order to work correctly.


If you have a question on a feature let me know.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 15, 2013, 11:31:24 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]

[May 07, 2013, 02:37:14 pm]

[May 06, 2013, 10:29:56 pm]

[May 04, 2013, 03:22:01 pm]

[May 04, 2013, 01:08:57 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.249 seconds with 20 queries.