Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 160
Total: 160

Author Topic: SMF Classifieds on Classic YaBB SE Theme  (Read 12494 times)

0 Members and 1 Guest are viewing this topic.

Offline neforum

  • Member
  • *
  • Posts: 12
    • View Profile
SMF Classifieds on Classic YaBB SE Theme
« on: September 26, 2007, 12:13:25 pm »
I've installed on the Classic YaBB theme, and i've had to modify certain files manually to get the classifieds working, but i'm totally stumped about the editing needed to index.template.php to get a button showing. Is there in fact a button?

If you could help out i'd be much obliged.

I've attached my index.template.php file.

My installation is at www.neforum2.co.uk/smf



« Last Edit: September 26, 2007, 12:18:17 pm by neforum »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Classifieds on Classic YaBB SE Theme
« Reply #1 on: September 26, 2007, 01:28:34 pm »
We do not have a classifieds button to offer for that theme. But we could add a textlink.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline neforum

  • Member
  • *
  • Posts: 12
    • View Profile
Re: SMF Classifieds on Classic YaBB SE Theme
« Reply #2 on: September 27, 2007, 01:47:52 am »
A text link would be ok, if you could advise me what I need to add to the index.template.php file.

This is the bit of code that i'm having trouble accommodating, as the bits it does the searches for aren't there in this theme. What do I need in their place?

Code: [Select]
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[$current_action = 'admin';
if (in_array($context['current_action'], array(]]></search>
<add><![CDATA['classifieds',]]></add>
</operation>
<operation>
<search position="before"><![CDATA[// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</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 . '">&nbsp;</td>' : '';
]]></search>
<add><![CDATA[
// the [SMF Classifieds] button
if ($context['allow_smfclassifieds_view'])
echo ($current_action == 'classifieds' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'classifieds' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=classifieds">' , $txt['smfclassifieds_menu']  , '</a>
</td>' , $current_action == 'classifieds' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

]]></add>
</operation>
</file>



Thanks,

Dave
« Last Edit: September 27, 2007, 03:43:55 am by neforum »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Classifieds on Classic YaBB SE Theme
« Reply #3 on: September 27, 2007, 09:48:06 am »
Attach your index.template.php from the classic theme and I will take a look
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline neforum

  • Member
  • *
  • Posts: 12
    • View Profile
Re: SMF Classifieds on Classic YaBB SE Theme
« Reply #4 on: September 27, 2007, 05:04:45 pm »
Thanks, it's already attached to the first message in this thread.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Classifieds on Classic YaBB SE Theme
« Reply #5 on: September 27, 2007, 05:18:54 pm »
Added a link to the template
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
5790 Views
Last post June 29, 2007, 10:31:13 pm
by craftervillage
0 Replies
2888 Views
Last post July 25, 2008, 12:55:14 pm
by fussilet
5 Replies
7986 Views
Last post June 24, 2009, 07:19:57 pm
by SMFHacks
12 Replies
10267 Views
Last post May 23, 2010, 09:57:54 am
by billy2
2 Replies
2742 Views
Last post November 27, 2012, 05:50:12 am
by china-stamps

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal