Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4214
Latest: thatsjustit
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 42793
Total Topics: 7455
Most Online Today: 56
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 55
Total: 55

Author Topic: SMF Classifieds on Classic YaBB SE Theme  (Read 11751 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: 16234
    • 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: 16234
    • 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: 16234
    • 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
5630 Views
Last post June 29, 2007, 10:31:13 pm
by craftervillage
0 Replies
2304 Views
Last post July 25, 2008, 12:55:14 pm
by fussilet
5 Replies
6929 Views
Last post June 24, 2009, 07:19:57 pm
by SMFHacks
12 Replies
9370 Views
Last post May 23, 2010, 09:57:54 am
by billy2
2 Replies
1966 Views
Last post November 27, 2012, 05:50:12 am
by china-stamps

+- Recent Topics

Permissions query by davejo
March 26, 2023, 04:43:48 am

prettyurls - TroubleShooting.wiki by SMFHacks
March 25, 2023, 01:49:35 pm

Download Gallery Option by SMFHacks
March 23, 2023, 09:34:02 am

Lost attachments by pete
March 22, 2023, 10:24:17 am

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

DownloadsPro - Topic Link by Anmer
March 08, 2023, 03:18:05 pm

Powered by EzPortal